Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712786 - app-editors/xemacs-21.5.34-r5.ebuild fails to build on Gentoo Prefix due to QA concerns: there are files installed outside the prefix
Summary: app-editors/xemacs-21.5.34-r5.ebuild fails to build on Gentoo Prefix due to Q...
Status: RESOLVED FIXED
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: 2020-03-16 04:29 UTC by Sammy Pfeiffer
Modified: 2020-04-22 21:02 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 Sammy Pfeiffer 2020-03-16 04:29:19 UTC
Hello, as a dependency app-editors/xemacs-21.5.34-r5 was pulled in a Gentoo Prefix environment. It failed to install as the tittle says.

The exact error is (long list of files coming):

2020-03-15T15:28:52.5977872Z >>> Completed installing app-editors/xemacs-21.5.34-r5 into /data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/image
2020-03-15T15:28:52.5979280Z 
2020-03-15T15:28:52.6222583Z  * Final size of build directory: 103092 KiB (100.6 MiB)
2020-03-15T15:28:52.6292020Z  * Final size of installed tree:   59496 KiB ( 58.1 MiB)
2020-03-15T15:28:52.6299620Z 
2020-03-15T15:28:53.0365324Z  * QA Notice: the following files are outside of the prefix:
2020-03-15T15:28:53.1462578Z  * /usr
2020-03-15T15:28:53.1463503Z  * /usr/bin
2020-03-15T15:28:53.1467574Z  * /usr/bin/xemacs-21.5-b34-5e6910ff.dmp
2020-03-15T15:28:53.1468396Z  * /usr/bin/gnuattach-xemacs
2020-03-15T15:28:53.1469049Z  * /usr/bin/xemacs-script
2020-03-15T15:28:53.1469463Z  * /usr/bin/xemacs
2020-03-15T15:28:53.1470326Z  * /usr/bin/etags-xemacs
2020-03-15T15:28:53.1470929Z  * /usr/bin/gnudoit-xemacs
2020-03-15T15:28:53.1477861Z  * /usr/bin/ellcc
2020-03-15T15:28:53.1481979Z  * /usr/bin/gnuclient-xemacs
2020-03-15T15:28:53.1483121Z  * /usr/bin/ctags-xemacs
2020-03-15T15:28:53.1493486Z  * /usr/bin/b2m-xemacs
2020-03-15T15:28:53.1494296Z  * /usr/bin/xemacs-21.5-b34
2020-03-15T15:28:53.1494755Z  * /usr/bin/ootags
2020-03-15T15:28:53.1501827Z  * /usr/lib
2020-03-15T15:28:53.1502338Z  * /usr/lib/xemacs
2020-03-15T15:28:53.1509274Z  * /usr/lib/xemacs/site-modules
2020-03-15T15:28:53.1510083Z  * /usr/lib/xemacs-21.5-b34
2020-03-15T15:28:53.1517404Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux
2020-03-15T15:28:53.1518273Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/rcs2log
2020-03-15T15:28:53.1544526Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/mmencode
2020-03-15T15:28:53.1545407Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/fakemail
2020-03-15T15:28:53.1546086Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/config.values
2020-03-15T15:28:53.1546808Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include
2020-03-15T15:28:53.1547704Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/EmacsShell.h
2020-03-15T15:28:53.1548826Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/number-mp.h
2020-03-15T15:28:53.1552033Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/lisp-union.h
2020-03-15T15:28:53.1552779Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/glyphs.h
2020-03-15T15:28:53.1553493Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/balloon_help.h
2020-03-15T15:28:53.1554208Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/libsst.h
2020-03-15T15:28:53.1554906Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/frame.h
2020-03-15T15:28:53.1555608Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/keymap-buttons.h
2020-03-15T15:28:53.1556549Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/tooltalk.h
...
2020-03-15T15:28:53.1986716Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/gc.h
2020-03-15T15:28:53.2024546Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/text.h
2020-03-15T15:28:53.2025433Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/events.h
2020-03-15T15:28:53.2026442Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/procimpl.h
2020-03-15T15:28:53.2027235Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/paths.h
2020-03-15T15:28:53.2027992Z  * /usr/lib/xemacs-21.5-b34/i686-pc-linux/include/glyphs-msw.h
...
2020-03-15T15:28:53.2476972Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/COPYING
2020-03-15T15:28:53.2477580Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/JIS0208.TXT
2020-03-15T15:28:53.2478199Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/KOI8-R.TXT
2020-03-15T15:28:53.2478792Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-5.TXT
2020-03-15T15:28:53.2479398Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP1254.TXT
2020-03-15T15:28:53.2480008Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-2.TXT
2020-03-15T15:28:53.2480602Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP1253.TXT
2020-03-15T15:28:53.2481216Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-7.TXT
2020-03-15T15:28:53.2481810Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP1251.TXT
2020-03-15T15:28:53.2482420Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-8.TXT
2020-03-15T15:28:53.2483204Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-13.TXT
2020-03-15T15:28:53.2483781Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP1250.TXT
2020-03-15T15:28:53.2484639Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/unicode-consortium.html
2020-03-15T15:28:53.2485276Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP932.TXT
2020-03-15T15:28:53.2485867Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP1256.TXT
2020-03-15T15:28:53.2486636Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/JIS0212.TXT
2020-03-15T15:28:53.2487235Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/oreilly.html
2020-03-15T15:28:53.2487815Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/CP874.TXT
2020-03-15T15:28:53.2488703Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-16.TXT
2020-03-15T15:28:53.2489355Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-9.TXT
2020-03-15T15:28:53.2489935Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/KSX1001.TXT
2020-03-15T15:28:53.2490539Z  * /usr/share/xemacs-21.5-b34/etc/unicode/unicode-consortium/8859-4.TXT
...
2020-03-15T15:28:53.3907200Z  * /usr/share/xemacs-21.5-b34/lisp/newcomment.el
2020-03-15T15:28:53.3907805Z  * /usr/share/xemacs-21.5-b34/lisp/gnome.el
2020-03-15T15:28:53.3908443Z  * /usr/share/xemacs-21.5-b34/lisp/font-mgr.elc
2020-03-15T15:28:53.3909079Z  * /usr/share/xemacs-21.5-b34/lisp/cus-load.el
2020-03-15T15:28:53.3909689Z  * /usr/share/xemacs-21.5-b34/lisp/mwheel.elc
2020-03-15T15:28:53.3910691Z  * /usr/share/xemacs-21.5-b34/lisp/x-mouse.el
2020-03-15T15:28:53.3911339Z  * /usr/share/xemacs-21.5-b34/lisp/gtk-ffi.elc
2020-03-15T15:28:53.3912169Z  * /usr/share/xemacs-21.5-b34/lisp/map-ynp.el
2020-03-15T15:28:53.3913153Z  * /usr/share/xemacs-21.5-b34/lisp/gtk-faces.el
2020-03-15T15:28:53.3913952Z  * /usr/share/xemacs-21.5-b34/lisp/movemail.elc
2020-03-15T15:28:53.3914601Z  * /usr/share/xemacs-21.5-b34/lisp/dialog-items.el
2020-03-15T15:28:53.3915250Z  * /usr/share/xemacs-21.5-b34/lisp/gutter-items.el
2020-03-15T15:28:53.3915861Z  * /usr/share/xemacs-21.5-b34/lisp/x-misc.el
2020-03-15T15:28:53.3916496Z  * /usr/share/xemacs-21.5-b34/lisp/package-ui.el
2020-03-15T15:28:53.3917131Z  * /usr/share/xemacs-21.5-b34/lisp/version.elc
2020-03-15T15:28:53.3917752Z  * /usr/share/xemacs-21.5-b34/lisp/next-error.el
2020-03-15T15:28:53.3918540Z  * /usr/share/xemacs-21.5-b34/lisp/gtk-package.el
2020-03-15T15:28:53.3919192Z  * /usr/share/xemacs-21.5-b34/lisp/autoload.elc
2020-03-15T15:28:53.3919809Z  * /usr/share/xemacs-21.5-b34/lisp/cl-seq.elc
2020-03-15T15:28:53.3920452Z  * /usr/share/xemacs-21.5-b34/lisp/mode-motion.elc
2020-03-15T15:28:53.3921067Z  * /usr/share/xemacs-21.5-b34/lisp/gtk-init.el
2020-03-15T15:28:53.3921698Z  * /usr/share/xemacs-21.5-b34/lisp/x-faces.elc
2020-03-15T15:28:53.3922330Z  * /usr/share/xemacs-21.5-b34/lisp/behavior.elc
2020-03-15T15:28:53.3923069Z  * /usr/share/xemacs-21.5-b34/lisp/derived.elc
2020-03-15T15:28:53.3923715Z  * /usr/share/xemacs-21.5-b34/lisp/ChangeLog.GTK
2020-03-15T15:28:53.3924362Z  * /usr/share/xemacs-21.5-b34/lisp/special-mode.el
2020-03-15T15:28:53.3924997Z  * /usr/share/xemacs-21.5-b34/lisp/check-features.el
2020-03-15T15:28:53.3925634Z  * /usr/share/xemacs-21.5-b34/lisp/derived.el
2020-03-15T15:28:53.3926268Z  * /usr/share/xemacs-21.5-b34/lisp/msw-faces.elc
2020-03-15T15:28:53.3926890Z  * /usr/share/xemacs-21.5-b34/lisp/config.elc
2020-03-15T15:28:53.3927534Z  * /usr/share/xemacs-21.5-b34/lisp/msw-font-menu.el
2020-03-15T15:28:53.3928149Z  * /usr/share/xemacs-21.5-b34/lisp/menubar.el
2020-03-15T15:28:53.3929219Z  * /usr/share/xemacs-21.5-b34/lisp/custom-load.elc
2020-03-15T15:28:53.3929838Z  * /usr/share/xemacs-21.5-b34/lisp/x-win-xfree86.elc
2020-03-15T15:28:53.3930381Z  * /usr/share/xemacs-21.5-b34/lisp/obsolete.elc
2020-03-15T15:28:53.3930927Z  * /usr/share/xemacs-21.5-b34/lisp/keydefs.elc
2020-03-15T15:28:53.3931537Z  * ERROR: app-editors/xemacs-21.5.34-r5::gentoo failed:
2020-03-15T15:28:53.3932001Z  *   Aborting due to QA concerns: there are files installed outside the prefix
2020-03-15T15:28:53.3932515Z  * 
2020-03-15T15:28:53.3932918Z  * Call stack:
2020-03-15T15:28:53.3964094Z  *   misc-functions.sh, line 586:  Called install_qa_check
2020-03-15T15:28:53.4032083Z  *   misc-functions.sh, line 132:  Called source 'install_symlink_html_docs'
2020-03-15T15:28:53.4098854Z  *            05prefix, line 114:  Called install_qa_check_prefix
2020-03-15T15:28:53.4142405Z  *            05prefix, line  27:  Called die
2020-03-15T15:28:53.4173826Z  * The specific snippet of code:
2020-03-15T15:28:53.4230278Z  *   			die "Aborting due to QA concerns: there are files installed outside the prefix"
2020-03-15T15:28:53.4259136Z  * 
2020-03-15T15:28:53.4291648Z  * If you need support, post the output of `emerge --info '=app-editors/xemacs-21.5.34-r5::gentoo'`,
2020-03-15T15:28:53.4325754Z  * the complete build log and the output of `emerge -pqv '=app-editors/xemacs-21.5.34-r5::gentoo'`.
2020-03-15T15:28:53.4369309Z  * The complete build log is located at '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/temp/build.log'.
2020-03-15T15:28:53.4402097Z  * The ebuild environment file is located at '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/temp/environment'.
2020-03-15T15:28:53.4435989Z  * Working directory: '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/image/tmp/gentoo'
2020-03-15T15:28:53.4466680Z  * S: '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/work/xemacs-21.5.34'
2020-03-15T15:28:53.5353736Z [91m!!! post install failed; exiting.
2020-03-15T15:28:53.7481908Z [0m
2020-03-15T15:28:53.7483512Z >>> Failed to emerge app-editors/xemacs-21.5.34-r5, Log file:
2020-03-15T15:28:53.7484427Z 
2020-03-15T15:28:53.7485616Z >>>  '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/temp/build.log'
2020-03-15T15:28:53.7494118Z 
2020-03-15T15:28:53.7495343Z  * Messages for package app-editors/xemacs-21.5.34-r5:
2020-03-15T15:28:53.7497975Z 
2020-03-15T15:28:53.7499036Z  * ERROR: app-editors/xemacs-21.5.34-r5::gentoo failed:
2020-03-15T15:28:53.7499869Z  *   Aborting due to QA concerns: there are files installed outside the prefix
2020-03-15T15:28:53.7500496Z  * 
2020-03-15T15:28:53.7501096Z  * Call stack:
2020-03-15T15:28:53.7501935Z  *   misc-functions.sh, line 586:  Called install_qa_check
2020-03-15T15:28:53.7503210Z  *   misc-functions.sh, line 132:  Called source 'install_symlink_html_docs'
2020-03-15T15:28:53.7504183Z  *            05prefix, line 114:  Called install_qa_check_prefix
2020-03-15T15:28:53.7505053Z  *            05prefix, line  27:  Called die
2020-03-15T15:28:53.7505684Z  * The specific snippet of code:
2020-03-15T15:28:53.7506370Z  *   			die "Aborting due to QA concerns: there are files installed outside the prefix"
2020-03-15T15:28:53.7507024Z  * 
2020-03-15T15:28:53.7508987Z  * If you need support, post the output of `emerge --info '=app-editors/xemacs-21.5.34-r5::gentoo'`,
2020-03-15T15:28:53.7510358Z  * the complete build log and the output of `emerge -pqv '=app-editors/xemacs-21.5.34-r5::gentoo'`.
2020-03-15T15:28:53.7511754Z  * The complete build log is located at '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/temp/build.log'.
2020-03-15T15:28:53.7513132Z  * The ebuild environment file is located at '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/temp/environment'.
2020-03-15T15:28:53.7514422Z  * Working directory: '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/image/tmp/gentoo'
2020-03-15T15:28:53.7516443Z  * S: '/data/home/nao/gentoo/var/tmp/portage/app-editors/xemacs-21.5.34-r5/work/xemacs-21.5.34'


Basically everything installs out of prefix. I don't know if the team maintaining these ebuilds would support Gentoo Prefix, but I tried and it's a matter of changing in the ebuilds the references to ${D} into ${ED}. I would be grateful if the change would be considered.
Comment 1 Mats Lidell gentoo-dev 2020-03-23 22:22:08 UTC
Changing D to ED does not sound that difficult, however - What else is required? Is there some neat and easy way to verify that the ebuild work in the prefix environment?
Comment 2 Sammy Pfeiffer 2020-03-25 01:31:54 UTC
Nothing else is required as far as I know.

As for how to test it yourself:

I maintain a CI pipeline for Gentoo Prefix (amd64) here: https://github.com/awesomebytes/gentoo_prefix_ci

(I also maintain a pipeline for 32b and @haubi maintains a new one https://github.com/haubi/gentoo-prefix-ci that covers many different bootstraps)

You can use the latest successful bootstrap (run nightly) from the releases page: https://github.com/awesomebytes/gentoo_prefix_ci/releases

You can download (800-900MB), extract and execute a shell in the prefix with (using the latest right now):
wget https://github.com/awesomebytes/gentoo_prefix_ci/releases/download/release%2F2020-03-24T18at28plus00at00/gentoo_on_tmp-amd64_2020-03-24T18at28plus00at00.tar.gz
tar xf gentoo_on_tmp*.tar.gz
cd gentoo
./startprefix

Alternatively, if you are familiar with Docker, you can use the latest successful Docker image with:
docker pull awesomebytes/gentoo_prefix_latest_image_package_stage
docker run -it awesomebytes/gentoo_prefix_latest_image_package_stage
./startprefix

You can verify you are in the Prefix environment by checking your $PATH. Note that the 'startprefix' script will create a symlink in /tmp/gentoo pointing to the directory where 'startprefix' resides. '/tmp/gentoo' is the EPREFIX. I did this in order to make this Gentoo Prefix portable to any machine (otherwise there are hardcoded paths in the building process that wouldn't match, like, /home/myuser/gentoo, and some things break). Other than that it doesn't touch anything outside the 'gentoo' folder. (Sorry if I'm explaining a bit too much for the point here).

Now you can do:
emerge app-editors/xemacs

Right now you'll see how it fails. Then doing:
cd /tmp/gentoo/var/db/repos/gentoo/app-editors/xemacs
sed -i -e 's/${D}/${ED}/g' xemacs-21.5.34-r5.ebuild
ebuild xemacs-21.5.34-r5.ebuild manifest

Will work. Let me know if I can help in anything else.
Comment 3 Mats Lidell gentoo-dev 2020-03-26 06:41:02 UTC
The xemacs-21.5.34-r5.ebuild has been updated to support gentoo prefix. The prefix build was verified using the docker method.
Comment 4 Mats Lidell gentoo-dev 2020-04-22 21:02:19 UTC
The prefix build has been verified using the the docker build. Closing this as resolved.