pkg_create broken?

Dwayne MacKinnon Dwayne.MacKinnon at xwave.com
Thu Jun 26 08:04:29 PDT 2003


Julian Elischer wrote:
>  Alternatively, the man page hints that
> a 'srcdir' would stop a following 'cwd' from having effect in the create
> phase.

Just wanted to mention that order is extremely important with package 
creation. If you have @cwd /foo/bar; @srcdir /bar/foo your files will be 
picked up from /bar/foo. If you have @srcdir /bar/foo; @cwd /foo/bar 
your files will be picked up from /foo/bar. @cwd changes the directory 
pointer for both creation and extraction, and so if you have @cwd AFTER 
@srcdir the @srcdir command effectively gets over-written.

An experiment using just @srcdir and @dstdir might be worthwhile...

Cheers,
DMK



More information about the freebsd-hackers mailing list