Now it's possible to fix and change symlinks in embedded root filesystems (e.g. /gpfs/sys/ubuntu11.04) without the need of chroot or fakechroot.
Therefore option -e has been added, to tell symlinks that it operates in a relative rootfs.
The current working directory is taken as the relative path to the system root, so symlinks has to be called within the rootfs directory.
Tested in Ubuntu 13.10 on x86_64, Arch on i686, and Mac OS X 10.9 on x86_64.
NOTE: Though this should work in most cases, it doesn't appear to be the POSIX/SUS-compliant way. We should probably just use autotools or cmake.
Permitted per: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273338
Quote:
My "symlinks" utility pre-dates the "open source licensing" fad
by a number of years. Just to clarify, this is 100% freeware,
written entirely by myself. The intent is to use it to detect
missing/obsolete symlink targets on an installed distro, before
creating the "gold" (or "final") release discs.
Use and distribute and modify as you (or anyone else) sees fit.
There have no formal restrictions or requirements whatsoever
regarding distribution of either binaries or source code,
whether modified or original.
Cheers
--
Mark Lord
Real-Time Remedies Inc.
mlord@pobox.com