Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120941 - portage allows installing files into ${D}/${D}
Summary: portage allows installing files into ${D}/${D}
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-01-30 07:20 UTC by Simon Stelling (RETIRED)
Modified: 2006-02-26 14:55 UTC (History)
0 users

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


Attachments
patch to enable checking for files installed to ${D}/${D} (qa.patch,596 bytes, patch)
2006-01-30 07:20 UTC, Simon Stelling (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Stelling (RETIRED) gentoo-dev 2006-01-30 07:20:00 UTC
lately i saw quite a lot of packages installing files to /var/tmp/portage/${P}/usr/lib/... instead of just /usr/lib. This completely breaks most (all?) packages and should of course get fixed as soon as possible. I suggest to add a small patch which enables checking for ${D}/${D} and dies if files are found. This would make catching these cases much easier for the ebuild devs and hopefully increase QA a lot.

Sample output:

[...]
QA Notice: /var/tmp/portage/grub-0.96-r2/image//usr/share/man/man8/grub-install.8 installed to ${D}/${D}
QA Notice: /var/tmp/portage/grub-0.96-r2/image//usr/share/man/man8/grub-md5-crypt.8 installed to ${D}/${D}
QA Notice: /var/tmp/portage/grub-0.96-r2/image//usr/share/man/man8/grub-terminfo.8 installed to ${D}/${D}

!!! ERROR: sys-boot/grub-0.96-r2 failed.
!!! Function dyn_install, Line 1025, Exitcode 0
!!! Aborting due to QA concerns: 39 files installed to /var/tmp/portage/grub-0.96-r2/image///var/tmp/portage/grub-0.96-r2/image/
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-01-30 07:20:29 UTC
Created attachment 78501 [details, diff]
patch to enable checking for files installed to ${D}/${D}
Comment 2 solar (RETIRED) gentoo-dev 2006-01-31 17:56:35 UTC
I like this patch
Comment 3 solar (RETIRED) gentoo-dev 2006-02-01 12:57:41 UTC
InSVN -r2620
Comment 4 Zac Medico gentoo-dev 2006-02-26 14:55:16 UTC
Released in 2.1_pre5.