Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673808 - sys-apps/groff-1.22.4 fails to compile because of /usr/bin/makeinfo supplied by boostrap-prefix.sh
Summary: sys-apps/groff-1.22.4 fails to compile because of /usr/bin/makeinfo supplied ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-27 11:07 UTC by Burak Arslan
Modified: 2019-01-29 15:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Burak Arslan 2018-12-27 11:07:36 UTC
Stock /usr/bin/makeinfo creates empty info files which are refused to be installed. 

emerge sys-apps/texinfo installs the proper makeinfo script but now needless .info files are produced.

adding FEATURES=noinfo to prefix/etc/portage/make.conf does not fix the issue

Reproducible: Always

Steps to Reproduce:
1. Run ./bootstrap-prefix.sh $PWD/prefix noninteractive
2. Run emerge sys-apps/groff 
3. Emerge operation dies in install stage of the groff ebuild because of .info files with zero size.
Actual Results:  
emerge fails.

Expected Results:  
either FEATURES=noinfo should work or fake makeinfo script should produce info files with size > 0

Workaround: emerge -1 sys-apps/texinfo to make sure info files worthy of install scripts are generated.
Comment 1 Burak Arslan 2018-12-27 11:09:03 UTC
Addendum: 

Step 1.5: Run ./prefix/startprefix before attempting emerge.
Comment 2 James Le Cuirot gentoo-dev 2019-01-01 21:19:02 UTC
Thanks for the workaround!
Comment 3 Piotr Karbowski (RETIRED) gentoo-dev 2019-01-05 21:14:00 UTC
I wonder if we're hitting the same issue.

From time to time I take the stable stage3 of amd64 and upgrade it to ~amd64. I am getting groff failures and the noinfo feature does not do trick for me.

Can't locate Locale/Messages.pm in @INC (you may need to install the Locale::Messages module) (@INC contains: /usr/lib64/texinfo /usr/share/texinfo /usr/share/texinfo /etc/perl /usr/local/lib64/perl5/5.26.2/x86_64-linux /usr/local/lib64/perl5/5.26.2 /usr/lib64/perl5/vendor_perl/5.26.2/x86_64-linux /usr/lib64/perl5/vendor_perl/5.26.2 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl/5.24.3 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.26.2/x86_64-linux /usr/lib64/perl5/5.26.2) at /usr/bin/makeinfo line 109.
BEGIN failed--compilation aborted at /usr/bin/makeinfo line 109.
make: *** [Makefile:11892: doc/groff.info] Error 2

In my case it looks like a perl-cleaner should be executed after upgrade of perl but before rest of system upgrade. I do not see a logs for your failure, can you check them if it's not the same case here?
Comment 4 Larry the Git Cow gentoo-dev 2019-01-29 15:59:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b109ca82c51df4073dbb37ff239f6097504582ef

commit b109ca82c51df4073dbb37ff239f6097504582ef
Author:     Michael Haubenwallner <haubi@gentoo.org>
AuthorDate: 2019-01-28 17:28:23 +0000
Commit:     Michael Haubenwallner <haubi@gentoo.org>
CommitDate: 2019-01-28 17:34:57 +0000

    bootstrap-prefix.sh: provide fake makeinfo early
    
    Provide fake makeinfo scripts early enough to avoid MAKEINFO variable.
    Closes: https://bugs.gentoo.org/673808
    
    Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>

 scripts/bootstrap-prefix.sh | 55 ++++++++++++++++++++++++---------------------
 1 file changed, 29 insertions(+), 26 deletions(-)