pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: final copy to PACKAGES dir on network volume fails; patch for mk/pkgformat/pkg/package.mk



Matthias Ferdinand <mf+ml.pkgsrc-users%netzwerkagentursaarland.de@localhost>
writes:

> Error message like
>   /bin/cp: failed to preserve ownership for ...: Permission denied

> ==>  84                 ${CP} -pf ${STAGE_PKGFILE} ${PKGFILE}

Which version of cp?

What does POSIX say about -pf?  I'd expect "try to preserve permissions,
but don't fail".   But actually it is a bit ambiguous, and your cp is
probably ok:

  http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html

I think -p is there for mod times.

So perhaps adding || and ${CP} without the -p is the right thing.

Attachment: pgp_OjQ8MWn6r.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index