bsdcpio(1): -L|-R options don't work?

Anonymous swell.k at gmail.com
Sun Aug 1 07:21:06 UTC 2010


Tim Kientzle <kientzle at FreeBSD.org> writes:

[...]
> The -L handling here looks correct, though.  Remember
> that -L means "follow symlinks", which means that foo/baz
> should get created in the target as a directory and not as
> a symlink, which is exactly what you've shown.
>
> If you want blah/foo/baz to be a symlink, you want to omit
> the -L option.

OK, GNU cpio works as you say. I was just confused about bsd.gecko.mk

   cd ${FAKEDIR}/${dir} && ${FIND} . | \
           ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${dir}

that creates empty directories, e.g.

  PREFIX/lib/firefox3/bin
  PREFIX/lib/firefox3/idl
  PREFIX/lib/firefox3/include
  PREFIX/lib/firefox3/lib

rather than copying contents.


More information about the freebsd-current mailing list