Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 595062

Summary: =dev-libs/libtasn1-4.9 - configure.ac patch doesn't call eautoreconf, breaks cross-compiling
Product: Gentoo Linux Reporter: James Le Cuirot <chewi>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: alonbl
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch against libtasn1-4.9.ebuild

Description James Le Cuirot gentoo-dev 2016-09-24 20:55:21 UTC
Created attachment 447788 [details, diff]
Patch against libtasn1-4.9.ebuild

A patch against configure.ac was added to 4.9 but no call to eautoreconf was added. The patch also breaks cross-compiling as the prebuilt man pages are no longer considered fresh. help2man is subsequently called and this always fails when cross-compiling.

Please see the attached patch to deal with both issues. I can commit this myself if you like.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2016-09-24 22:05:32 UTC
Hi,
I fixed several issues, however, I do not understand why the help2man breaks in cross compile, can you please attach a build log? It should work as far as I remember.
Thanks.
Comment 2 James Le Cuirot gentoo-dev 2016-09-24 22:50:19 UTC
It's fundamentally at odds with cross-compiling as it tries to execute the binary with --help in order to generate the man page. A stupid idea, if you ask me! See these links.

https://lists.debian.org/debian-devel/2007/11/msg00212.html
https://lists.gnu.org/archive/html/grub-devel/2009-09/msg00206.html
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2016-10-03 23:05:12 UTC
I still try to understand... the help2man is executed on the build not the host, so it should succeed.
build-aux/missing help2man is running the host help2man.
so unless you have the host bin in your $PATH it should work.
Comment 4 James Le Cuirot gentoo-dev 2016-10-04 06:58:07 UTC
Yes, it is the build's help2man but this then executes the host binary that was just built (such as asn1Parser) with --help in order to generate the man page.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2017-10-07 08:24:45 UTC
this version is out of tree.