Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120311 - help2man is having problems with the nls useflag enabled
Summary: help2man is having problems with the nls useflag enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Other
: High critical
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 132546 (view as bug list)
Depends on: 128593
Blocks:
  Show dependency tree
 
Reported: 2006-01-25 08:12 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2006-05-09 11:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated help2man ebuild (help2man-1.35.1.ebuild,885 bytes, text/plain)
2006-01-25 08:38 UTC, Bjarke Istrup Pedersen (RETIRED)
Details
patch-configure (patch-configure,604 bytes, patch)
2006-01-25 08:40 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff
updated help2man ebuild (FIXED) (help2man-1.35.1.ebuild,889 bytes, text/plain)
2006-01-25 09:26 UTC, Bjarke Istrup Pedersen (RETIRED)
Details
patch-makefile.patch (patch-makefile.patch,957 bytes, patch)
2006-01-25 09:27 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff
updated popt ebuild (popt-1.7-r1.ebuild,964 bytes, text/plain)
2006-01-25 09:27 UTC, Bjarke Istrup Pedersen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 08:12:43 UTC
When I emerge help2man and popt with the nls useflag enabled, they complain about this:

checking for pre-loadable libintl... no
configure: error: libpreloadable_libintl.so required (gettext 0.12+)

The interresting thing is, that I have gettext installed.
I suspect this is due to it not looking the right place for the .so , but not sure. (Haven't got any ideas of how to check)
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 08:38:15 UTC
Created attachment 78082 [details]
updated help2man ebuild

This ebuild applies the patch, not sure the patch should be applied on linux though (since it works there without the patch), so a check for USERLAND == BSD might be added, I don't know how to do it though, or if it should be.
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 08:40:18 UTC
Created attachment 78083 [details, diff]
patch-configure

The patch
Comment 3 Benigno B. Junior (RETIRED) gentoo-dev 2006-01-25 08:44:34 UTC
Just adding an information to the developers: the patch comes from ports, from FreeBSD: http://www.freebsd.org/cgi/cvsweb.cgi/ports/misc/help2man/files/
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 08:49:29 UTC
here is the output for emerge popt:

i686-gentoo-freebsd5.4-gcc -march=pentium2 -mmmx -O3 -pipe -fomit-frame-pointer -o test1 -static test1.o  ./.libs/libpopt.a
./.libs/libpopt.a(popt.o)(.text+0x184d): In function `poptGetNextOpt':
: undefined reference to `libintl_dgettext'
./.libs/libpopt.a(popt.o)(.text+0x24c7): In function `poptStrerror':
: undefined reference to `libintl_dgettext'
./.libs/libpopt.a(popthelp.o)(.text+0x41): In function `getArgDescrip':
: undefined reference to `libintl_dgettext'
./.libs/libpopt.a(popthelp.o)(.text+0xfe): In function `singleOptionHelp':
: undefined reference to `libintl_dgettext'
./.libs/libpopt.a(popthelp.o)(.text+0x4cd): In function `singleOptionHelp':
: undefined reference to `libintl_dgettext'
./.libs/libpopt.a(popthelp.o)(.text+0x95d): more undefined references to `libintl_dgettext' follow
collect2: ld returned 1 exit status
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-25 09:26:15 UTC
Please open a separate bug for popt as that's a different issue; the problem of help2man is in the preloadable, I'll try to take a look later today.
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 09:26:22 UTC
Created attachment 78085 [details]
updated help2man ebuild (FIXED)

fixes ebuild so it only applies patch if nls useflag is set
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 09:27:00 UTC
Created attachment 78086 [details, diff]
patch-makefile.patch

Patch for fixing the makefile of popt.
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 09:27:44 UTC
Created attachment 78087 [details]
updated popt ebuild

Updated the ebuild for popt to apply the patch-makefile.patch patch.
Comment 9 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-01-25 09:29:48 UTC
(In reply to comment #5)
> Please open a separate bug for popt as that's a different issue; the problem of
> help2man is in the preloadable, I'll try to take a look later today.

ops, didn't see that until after I posted it, but I have included the fix for popt here too, hope thats okay.
The patch is from freebsd ports like the help2man patch.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-25 10:03:35 UTC
The patch for popt is wrong, I'm pretty sure popt uses automake so Makefile.in should not be touched.
The same goes for help2man, touching configure is a no-go, and removing the check that way, neither.
Ports patches are almost never good for us in their raw form, needs to be reworked.
See http://programming.newsforge.com/article.pl?sid=05/07/19/1713230&tid=53 .
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-25 13:07:14 UTC
FWIW, I've added the patch to popt to the tree. I'll see for help2man.
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 04:54:13 UTC
*** Bug 132546 has been marked as a duplicate of this bug. ***
Comment 13 Chris Slycord 2006-05-07 13:21:12 UTC
(In reply to comment #11)
> FWIW, I've added the patch to popt to the tree. I'll see for help2man.
> 

Until we get it patched couldn't we just update the ebuild to check if we're running x86-fbsd and if so require that nls not be set in the useflags?

Obviously, it's a kludge but it would work for the moment I think.
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 20:54:32 UTC
I was trying to avoid this asking portage team for the per-package use.mask, but with the bad surprise they gave me, I suppose base-system team might go poking portage teams if they don't like the idea.
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 20:58:18 UTC
Okay, if anyone has to rant, direct them to portage devs :P