<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>206302</bug_id>
          
          <creation_ts>2008-01-17 08:43 0000</creation_ts>
          <short_desc>[PATCH] dev-libs/newt-0.52.7 fails to compile with uclibc due to missing libintl.h</short_desc>
          <delta_ts>2008-03-19 16:18:30 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>206088</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>natanael.copa@gmail.com</reporter>
          <assigned_to>embedded@gentoo.org</assigned_to>
          <cc>xmerlin@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 08:43:35 0000</bug_when>
            <thetext>i386-gentoo-linux-uclibc-gcc -march=i386 -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -I/usr/include/slang    -c -o test.o test.c
i386-gentoo-linux-uclibc-gcc -march=i386 -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -I/usr/include/slang    -c -o newt.o newt.c
i386-gentoo-linux-uclibc-gcc -march=i386 -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -I/usr/include/slang    -c -o button.o button.c
In file included from whiptail.c:12:
nls.h:9:22: libintl.h: No such file or directory
In file included from dialogboxes.c:12:
nls.h:9:22: libintl.h: No such file or directory
i386-gentoo-linux-uclibc-gcc -march=i386 -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -I/usr/include/slang    -c -o form.o form.c
i386-gentoo-linux-uclibc-gcc -march=i386 -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -I/usr/include/slang    -c -o checkbox.o checkbox.c
make: *** [depend] Error 1
make: *** Waiting for unfinished jobs....

NOTE: patches from #206088 needs to be applied first to be able to reproduce.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 08:45:39 0000</bug_when>
            <thetext>Created an attachment (id=141111)
newt-0.52.7-nonls.patch

Attatched patch fixes the problem.

...
IUSE=&quot;gpm nls tcl&quot;
...
use nls || epatch &quot;${FILESDIR}&quot;/${P}-nonls.patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-01-17 09:22:39 0000</bug_when>
            <thetext>there&apos;s no need to hack it out like that ... if it doesnt already have a standard --disable-nls option to key off of, add one and wrap the header logic in that</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 09:45:28 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; there&apos;s no need to hack it out like that ... if it doesnt already have a
&gt; standard --disable-nls option to key off of, add one and wrap the header logic
&gt; in that
&gt; 

It does not have a standard --disable-nls option. Adding it would require gettext.m4 which is provided in gettext which is masked on uclibc.

If upstream would do that for next release problem would be solved. There was no easy way to find out how to report things upstream (HOMEPAGE points to a major Linux distribution/vendor rather than a project page for newt)

I went for the quick and dirty solution and moved on.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 10:15:00 0000</bug_when>
            <thetext>Got contact with upstream developer, mlichvar at redhat.

Package uses autoconf but not automake so AM_GNU_GETTEXT will not work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-01-17 10:21:13 0000</bug_when>
            <thetext>sorry, when i said &quot;standard&quot; i was merely referring to the user interface for building the package

so you&apos;d do AC_ARG_ENABLE(....nls..........) and handle the enable/disable stuff yourself rather than relying on adding gettext cruft

does that make sense ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 10:32:00 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; sorry, when i said &quot;standard&quot; i was merely referring to the user interface for
&gt; building the package
&gt; 
&gt; so you&apos;d do AC_ARG_ENABLE(....nls..........) and handle the enable/disable
&gt; stuff yourself rather than relying on adding gettext cruft
&gt; 
&gt; does that make sense ?
&gt; 

yes. thanks!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-17 11:02:12 0000</bug_when>
            <thetext>Created an attachment (id=141126)
newt-0.52.7-nonls.patch

adds a standard --disable-nls option to the configure script. tested on uclibc x86 (without nls) and glibc amd64 (with nls).

patch is submitted to upstream maintainer.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-01-17 15:45:02 0000</bug_when>
            <thetext>usually people macro away all functions when !NLS:
# define setlocale(category,locale
# define bindtextdomain(domainname, dirname)
....

that way people dont need to sprinkle #ifdef checks throughout their code

you should use AC_HELP_STRING([--disable-nls],[compile without NLS support])

otherwise i think this looks good and can be submitted upstream to see how they feel about it</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-18 07:14:12 0000</bug_when>
            <thetext>(In reply to comment #8)
&gt; usually people macro away all functions when !NLS:
&gt; # define setlocale(category,locale
&gt; # define bindtextdomain(domainname, dirname)
&gt; ....
&gt; 
&gt; that way people dont need to sprinkle #ifdef checks throughout their code

Thanks for the tip! Will do this next time.

&gt; 
&gt; you should use AC_HELP_STRING([--disable-nls],[compile without NLS support])

Don&apos;t think this is needed. It is already listed under &quot;Optional Features&quot; help text.

&gt; 
&gt; otherwise i think this looks good and can be submitted upstream to see how they
&gt; feel about it
&gt; 

I already submitted upstream and he said he would apply it to his CVS.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-01-18 10:57:38 0000</bug_when>
            <thetext>i&apos;m not saying AC_HELP_STRING() will make any practical difference at all ... i&apos;m saying that is the correct way for generating help strings in autotools rather than padding it with whitespace yourself</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-01-24 10:36:34 0000</bug_when>
            <thetext>The patch is included in newt-0.52.8.
http://koji.fedoraproject.org/koji/buildinfo?buildID=32661
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>natanael.copa@gmail.com</who>
            <bug_when>2008-03-17 12:51:56 0000</bug_when>
            <thetext>Could we either bump to 0.52.8 or commit this patch? Would be nice to close this bug.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2008-03-19 16:18:30 0000</bug_when>
            <thetext>0.52.8 in cvs</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>141111</attachid>
            <date>2008-01-17 08:45 0000</date>
            <desc>newt-0.52.7-nonls.patch</desc>
            <filename>newt-0.52.7-nonls.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgbmV3dC0wLjUyLjcub3JpZy9ubHMuaCBuZXd0LTAuNTIuNy9ubHMuaAotLS0gbmV3
dC0wLjUyLjcub3JpZy9ubHMuaAkyMDA4LTAxLTE3IDA3OjMwOjIwICswMDAwCisrKyBuZXd0LTAu
NTIuNy9ubHMuaAkyMDA4LTAxLTE3IDA3OjM1OjIwICswMDAwCkBAIC02LDggKzYsMTAgQEAKIAog
IyBpbmNsdWRlIDxsb2NhbGUuaD4KIAotIyBpbmNsdWRlIDxsaWJpbnRsLmg+Ci0jIGRlZmluZSBf
KFRleHQpIGdldHRleHQgKFRleHQpCisvLyMgaW5jbHVkZSA8bGliaW50bC5oPgorIyBkZWZpbmUg
XyhUZXh0KSAoVGV4dCkKKyMgZGVmaW5lIGRnZXR0ZXh0KFBhY2thZ2UsIFN0cmluZykgKFN0cmlu
ZykKKwogIyBpZmRlZiBnZXR0ZXh0X25vb3AKICMgIGRlZmluZSBOXyhTdHJpbmcpIGdldHRleHRf
bm9vcCAoU3RyaW5nKQogIyBlbHNlCk9ubHkgaW4gbmV3dC0wLjUyLjc6IHB5dGhvbjIuNApPbmx5
IGluIG5ld3QtMC41Mi43OiBzaGFyZWQKZGlmZiAtcnUgbmV3dC0wLjUyLjcub3JpZy93aGlwdGFp
bC5jIG5ld3QtMC41Mi43L3doaXB0YWlsLmMKLS0tIG5ld3QtMC41Mi43Lm9yaWcvd2hpcHRhaWwu
YwkyMDA4LTAxLTE3IDA3OjMwOjIwICswMDAwCisrKyBuZXd0LTAuNTIuNy93aGlwdGFpbC5jCTIw
MDgtMDEtMTcgMDc6MzE6NTAgKzAwMDAKQEAgLTM4OSwxMSArMzg5LDExIEBACiAJICAgIHsgInZl
cnNpb24iLCAndicsIDAsICZ2ZXJzaW9uLCAwLCBOVUxMLCBOVUxMIH0sCiAJICAgIHsgMCwgMCwg
MCwgMCwgMCB9IAogICAgIH07Ci0gICAKKy8qCiAgICAgc2V0bG9jYWxlIChMQ19BTEwsICIiKTsK
ICAgICBiaW5kdGV4dGRvbWFpbiAoUEFDS0FHRSwgTE9DQUxFRElSKTsKICAgICB0ZXh0ZG9tYWlu
IChQQUNLQUdFKTsKLQorKi8KICAgICBvcHRDb24gPSBwb3B0R2V0Q29udGV4dCgid2hpcHRhaWwi
LCBhcmdjLCBhcmd2LCBvcHRpb25zVGFibGUsIDApOwogCiAgICAgd2hpbGUgKChhcmcgPSBwb3B0
R2V0TmV4dE9wdChvcHRDb24pKSA+IDApIHsK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>141126</attachid>
            <date>2008-01-17 11:02 0000</date>
            <desc>newt-0.52.7-nonls.patch</desc>
            <filename>newt-0.52.7-nonls.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgbmV3dC0wLjUyLjcub3JpZy9jb25maWd1cmUuYWMgbmV3dC0wLjUyLjcvY29uZmln
dXJlLmFjCi0tLSBuZXd0LTAuNTIuNy5vcmlnL2NvbmZpZ3VyZS5hYwkyMDA4LTAxLTE3IDEwOjQz
OjM3ICswMDAwCisrKyBuZXd0LTAuNTIuNy9jb25maWd1cmUuYWMJMjAwOC0wMS0xNyAxMDo0NDoy
MCArMDAwMApAQCAtMzUsNiArMzUsMTIgQEAKICAgQUNfREVGSU5FKFtVU0VfR1BNXSwgMSwgW0Rl
ZmluZSB0byAxIGlmIEdQTSBzdXBwb3J0IGlzIGVuYWJsZWRdKQogZmkKIAorQUNfQVJHX0VOQUJM
RShbbmxzXSwgWyAgLS1kaXNhYmxlLW5scyAgICAgICAgICAgY29tcGlsZSB3aXRob3V0IE5MUyBz
dXBwb3J0XSkKKworaWYgdGVzdCAieCRlbmFibGVfbmxzIiAhPSAieG5vIjsgdGhlbgorICBBQ19E
RUZJTkUoW0VOQUJMRV9OTFNdLCAxLCBbRGVmaW5lIHRvIDEgaWYgTkxTIHN1cHBvcnQgaXMgZW5h
YmxlZF0pCitmaQorCiBBQ19DT05GSUdfRklMRVMoW01ha2VmaWxlXSkKIEFDX09VVFBVVAogCmRp
ZmYgLXJ1IG5ld3QtMC41Mi43Lm9yaWcvbmxzLmggbmV3dC0wLjUyLjcvbmxzLmgKLS0tIG5ld3Qt
MC41Mi43Lm9yaWcvbmxzLmgJMjAwOC0wMS0xNyAxMDo0MzozNyArMDAwMAorKysgbmV3dC0wLjUy
LjcvbmxzLmgJMjAwOC0wMS0xNyAxMDo0Nzo0OSArMDAwMApAQCAtNiw4ICs2LDE0IEBACiAKICMg
aW5jbHVkZSA8bG9jYWxlLmg+CiAKKyNpZ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