After ecopying and installing dev-util/debugedit, FEATURES=installsources doesn't quite work because the prepstrip script has this: rsync -tL0 --files-from=- "${WORKDIR}/" "${ED}${prepstrip_sources_dir}/" where prepstrip_sources_dir is defined as: prepstrip_sources_dir="${EPREFIX}"/usr/src/debug/${CATEGORY}/${PF} ${ED} is defined as ${D}/${EPREFIX}, so ${EPREFIX} appears twice in the rsync dest dir, which causes QA failures with "double prefix files installed." Reproducible: Always Steps to Reproduce: 1. ecopy dev-util/debugedit and install it 2. FEATURES=installsources emerge htop 3. you'll see emerge fail and spit out "Aborting due to QA concerns: double prefix files installed"
Created attachment 296345 [details, diff] change prepstrip_sources_dir to not include EPREFIX This patch to ebuild-helpers/prepstrip fixes the issue for me.
So, emerging htop works with the patch, but now rpm2targz fails with QA concerns. The problem seems to be that ${ED} is expanding to ${D} and not ${D}/${EPREFIX} in the prepstrip script when emerging rpm2targz. Whereas it expands correctly to ${D}/${EPREFIX} when emerging htop. Any ideas as to why this may be happening?
Created attachment 296373 [details, diff] disable setting of ${ED} to incorrect value This additional patch fixes the problem for me.
can you please post your emerge --info?
Created attachment 296375 [details] emerge info Attached. Also, my patch in comment #3 is for ebuild-helpers/prepall
Yes, thanks, but without file and context, that patch is really close to unusable. Please use diff -u for patches. First you can update your portage to 2.2.01.19941, that already fixes the case with ED thing. Next I just committed a patch that does a similar thing to what you did in comment #1.
Cool. Thank you. Can you also add dev-util/debugedit to the prefix tree to make installsources work without having to ecopy the script? If it needs a new ticket, i can do that.
If it needs more than a straight import, then you'll have to file a new bug for that, please.
Just doing an ecopy worked, without making any more modifications at all. If that doesn't count as a straight-forwad import, please close this ticket and i'll create a new one.
can only close this one once I release a portage with a fix for this one ;)
ok, fix released in 2.2.01.19981, thanks
This commit makes the master branch compatible with prefix: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b135c01eff4ea89d16ae711271cc215388d08d17