helpAutoconf - Support: sr #110435, autoreconf does not recognize...

 
 

sr #110435: autoreconf does not recognize AM_ICONV

Submitter:  None
Submitted:  Thu 28 Jan 2021 10:58:17 AM UTC
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sat 30 Jan 2021 11:12:18 AM UTC, comment #2: 

comment #1:

> > https://lists.gnu.org/archive/html/bug-gettext/2011-10/msg00012.html
> > When a project wants to only use AM_ICONV and none of the other gettext autoconf macros
>
> If your package only wants to use iconv() but no support for localized messages, it should use the gnulib module 'iconv'. This module includes the config.rpath file.


Could you show to me (and also to other people) a configure.ac example how to to use it? Yes I just need to use only iconv() library and ICONV_CONST macro in C source code which is provided by autoconf macro AM_ICONV.

> autoreconf deals with gettext for convenience. It does not know about gnulib modules.
>
> > projects which needs to use AM_ICONV started providing their own "autogen.sh" script which copies required file config.rpath to current directory and then run autoreconf.
>
> This is not future-proof: if new files (.m4 files or else) are needed as new dependencies of iconv.m4, this method will not know about it.


I know. But all projects started doing it due to above unfixed bug in autoreconf/autopoint/gettext and it started to be de-facto start way how to workaround above bug. And I'm just following this way.

Anonymous
Sat 30 Jan 2021 10:10:03 AM UTC, comment #1: 

> https://lists.gnu.org/archive/html/bug-gettext/2011-10/msg00012.html
> When a project wants to only use AM_ICONV and none of the other gettext autoconf macros


If your package only wants to use iconv() but no support for localized messages, it should use the gnulib module 'iconv'. This module includes the config.rpath file.

autoreconf deals with gettext for convenience. It does not know about gnulib modules.

> projects which needs to use AM_ICONV started providing their own "autogen.sh" script which copies required file config.rpath to current directory and then run autoreconf.


This is not future-proof: if new files (.m4 files or else) are needed as new dependencies of iconv.m4, this method will not know about it.

Bruno Haible <haible>
Thu 28 Jan 2021 10:58:17 AM UTC, original submission:  

This is old bug which was reported at least 10 years ago, affects more projects and there was no response for it yet. So I'm filling this bug report again.

Here is one of the original reports:
https://lists.gnu.org/archive/html/bug-gettext/2011-10/msg00012.html

Problem is that if autoconf project wants to use AM_ICONV macro without any other gettext macro support, autoreconf does not install required file config.rpath, which leads to broken configure script.

Details with reproducer are in linked bug above.

As a temporary workaround to this issue, projects which needs to use AM_ICONV started providing their own "autogen.sh" script which copies required file config.rpath to current directory and then run autoreconf.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9