Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634820 - [RAP] dev-libs/glib-2.52.3: uses /usr/bin/perl5 instead of $EPREFIX/usr/bin/perl5
Summary: [RAP] dev-libs/glib-2.52.3: uses /usr/bin/perl5 instead of $EPREFIX/usr/bin/p...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-19 20:45 UTC by Alex Wilson
Modified: 2018-08-25 14:12 UTC (History)
1 user (show)

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


Attachments
build.log for glib-2.52.3 (build.log,735.29 KB, application/octet-stream)
2017-10-19 20:47 UTC, Alex Wilson
Details
modified ebuild to export PERL=$EPREFIX/usr/bin/perl (glib-2.52.3.ebuild,9.46 KB, text/plain)
2017-10-20 17:08 UTC, Alex Wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Wilson 2017-10-19 20:45:16 UTC
Using bootstrap-rap.sh on RHEL 6.8

Reproducible: Always

Steps to Reproduce:
1. wget http://dev.gentoo.org/~heroxbd/bootstrap-rap.sh
2. bootstrap-rap.sh
Actual Results:  
Passed stages 1, 2, and 3 successfully.
Failed while running "emerge -e system".


Snippet from $EPREFIX/var/tmp/portage/dev-libs/glib-2.52.3/temp/build.log

...


>>> Completed installing glib-2.52.3 into /gentoo-rap/var/tmp/portage/dev-libs/glib-2.52.3/image/

 * Final size of build directory: 119308 KiB (116.5 MiB)
 * Final size of installed tree:   41304 KiB ( 40.3 MiB)

 * prefixing shebang of gentoo-rap/usr/bin/glib-gettextize
 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 *   gentoo-rap/usr/bin/glib-mkenums:/usr/bin/perl5 (script glib-mkenums installed in PATH but interpreter /usr/bin/perl5 not found)
 * ERROR: dev-libs/glib-2.52.3::gentoo failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 662:  Called install_qa_check
 *   misc-functions.sh, line 217:  Called source 'install_symlink_html_docs'
 *            05prefix, line 114:  Called install_qa_check_prefix
 *            05prefix, line 110:  Called die
 * The specific snippet of code:
 *   		die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/glib-2.52.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/glib-2.52.3::gentoo'`.
 * The complete build log is located at '/gentoo-rap/var/tmp/portage/dev-libs/glib-2.52.3/temp/build.log'.
 * The ebuild environment file is located at '/gentoo-rap/var/tmp/portage/dev-libs/glib-2.52.3/temp/environment'.
 * Working directory: '/gentoo-rap/var/tmp/portage/dev-libs/glib-2.52.3/image/gentoo-rap'
 * S: '/gentoo-rap/var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3'


Expected Results:  
Entire bootstrap script runs to completion without error.
Comment 1 Alex Wilson 2017-10-19 20:47:57 UTC
Created attachment 499336 [details]
build.log for glib-2.52.3
Comment 2 Alex Wilson 2017-10-20 17:08:32 UTC
Created attachment 499366 [details]
modified ebuild to export PERL=$EPREFIX/usr/bin/perl

This successfully ignored the /usr/bin/perl5 symlink in $PATH and passed "emerge <ebuild path> install" without error.
Comment 3 Mart Raudsepp gentoo-dev 2018-06-04 11:40:26 UTC
Note that glib-2.54 has ported the glib-mkenums utility from perl to python, so this will become obsolete then (at least in the form reported here)
Comment 4 Benda Xu gentoo-dev 2018-06-08 20:17:22 UTC
(In reply to Mart Raudsepp from comment #3)
> Note that glib-2.54 has ported the glib-mkenums utility from perl to python,
> so this will become obsolete then (at least in the form reported here)

Hi Mart, thanks for the information.  Will glib-2.54 be in tree soon?
Comment 5 Mart Raudsepp gentoo-dev 2018-06-08 20:46:00 UTC
Any time now, got postponed due to having to fix some new python scripts handling - precisely that mkenums, and another one, for our multi-python support.
Comment 6 Mart Raudsepp gentoo-dev 2018-06-10 08:31:06 UTC
dev-libs/glib-2.54.3-r5 is in main tree now. No perl usage seems to remain there - glib-mkenums was ported to python and I hope I made it handle prefix correctly via python-single-r1.eclass
Comment 7 Mart Raudsepp gentoo-dev 2018-08-25 09:01:33 UTC
With 2.56, the python tools are now split out into a new dev-util/glib-utils package. No perl stuff in sight. Where is RAP about this now, maybe it's all obsolete if they keep things in sync with main tree or use main tree?
Comment 8 Benda Xu gentoo-dev 2018-08-25 14:12:50 UTC
Thank you Mart for looking into it.  Let's close the bug.