Date: Sun, 01 Aug 2010 11:20:59 +0400 From: Anonymous <swell.k@gmail.com> To: Tim Kientzle <kientzle@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: bsdcpio(1): -L|-R options don't work? Message-ID: <86sk2y3ijo.fsf@gmail.com> In-Reply-To: <AC6D94B5-2401-42ED-B96D-A18873671A46@FreeBSD.org> (Tim Kientzle's message of "Sat, 31 Jul 2010 23:26:32 -0700") References: <86fwz1bfmi.fsf@gmail.com> <AC6D94B5-2401-42ED-B96D-A18873671A46@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Tim Kientzle <kientzle@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sk2y3ijo.fsf>
