Item11172: BuildContrib tar command doesn't dereference links, sets file ownership
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: BuildContrib
Branches: Release01x01 trunk
While trying to build 1.1.4 beta a couple of issues were encountered
- Build.pm doesn't dereference symbolic links. The topic Development/BuildingARelease specifically says to build the final release using
pseudo-install.pl -link default
however the tarfile then ends up with links instead of files for the extensions. Need to add the =( -h / --dereference ) parameter to the tar command.
- Also when building as a normal user, the resulting tarfile contains the current users user/group ownership. The normal release distributions have user/group of 0, so are probably built by the root user. This can be resolved by adding the
( --group 0 --user 0 )
parameters to the archive command
--
GeorgeClark - 07 Oct 2011
--owner and --group options are not supported on
FreeBSD or Mac OSX. Need to test and fall back to prior command if option is not supported. -h / -L options appear to be supported so not changing that part of the fix.
--
GeorgeClark - 27 Oct 2011