Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57901 - RFE: docp portage helper script
Summary: RFE: docp portage helper script
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 14:46 UTC by Sandy McArthur
Modified: 2004-07-21 16:06 UTC (History)
0 users

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 Sandy McArthur 2004-07-21 14:46:57 UTC
I'm working on a package for Apple's mDNSResponder package and their "install" is a rather crude hand written makefile that uses the cp command. They do define all uses of the cp command via a CP variable.

If there was a "docp" helper script in /usr/lib/portage/bin that acted just like cp but adjusted the last parameter to be in the ${D} directory that would be helpful.

This would let me call: `make CP=docp install` such that the makefile ran:
docp ../mDNSShared/dns_sd.h /usr/include/dns_sd.h
Comment 1 Sandy McArthur 2004-07-21 15:05:59 UTC
It would be nice if there was a matching `doln` and a `dochmod` also
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-07-21 16:06:14 UTC
Err... why?

do* scripts typically do a bit more then just cp "$1" "${D}/${2}".
I'd suggest fixing the makefile.

As for adding a doln, that would be a pita, since the symlink likely needs to be relative and tacking on ${D} to the src will break the link (it'll be absolute, not relative).
I don't see the point in a dochmod either; chmod mode "${D}/blar" suffices.

Keep in mind each of those scripts are basically wrappers- w/ the dochmod example, nothing is gained except for an extra process started up.

Doing this as bash functions, yeah, I spose.  Not much of a fan of that though, since ebuilds thus far have always done it on their own.