The code in prepstrip to copy sources when installsources FEATURE is enabled uses a non-portable GNUism in cp, the --parents option. There's no alternative portable version of --parents, but there is a replacement function in portability eclass (treecopy). This is with portage 2.1_pre5-r2. Thanks, Diego
Olivier, Mind working with flameeyes to find a solution? Clearly the prepstrip can't inherit eclasses directly.
Created attachment 81275 [details, diff] patch to use mkdir -p instead of cp --parents Please test this patch.
That is so ugly. Why not apply that patch only on freebsd, or even better, install GNU cp on Fbsd. or patch the freebsd cp to have --parents
(In reply to comment #3) > patch the freebsd cp to have --parents That would be nice. The performance of my patch from comment #2 is quite bad in comparison to that of the cp --parents version.
Created attachment 81351 [details, diff] patch to use cpio in copy-pass mode instead of cp --parents Using cpio in copy-pass mode gives practically identical performance to cp --parents. Luckily, cpio is included in the base profile. Please test this new patch.
Zac what's going on with this? Use cpio, rsync, whatever you want but please don't use cp --parents...
the cpio patch looks fine to me.. I dont think I have access to the portage svn, but anyone who does has my blessing to apply it.
(In reply to comment #7) > the cpio patch looks fine to me.. Thanks for your feedback. This is in svn r3419.
cpio wont exists in all stages. On GNU systems it has to be explicitly merged. rsync however will exist in all stages across all arches. That is probably the safest route to go imo.
Created attachment 87609 [details, diff] patch to use rsync instead of cpio This is in svn r3420.
This has been released in 2.1_rc3.