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/

Matthias Ferdinand <>

> 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:

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