[pacman-dev] [PATCH] makepkg: canonicalize paths from environmental variables
chantry.xavier at gmail.com
Wed Sep 29 09:58:31 EDT 2010
On Wed, Sep 29, 2010 at 3:52 PM, Allan McRae <allan at archlinux.org> wrote:
> Just to clarify (thanks to Xavier), it worked on BSD but not in OSX which
> does not have either "readlink -f" or "realpath"...
just found a link that might help :
To sum up the solutions :
1) use python os.path.realpath
2) use C realpath (3)
3) use fink /sw/sbin/readlink -f
4) implement in bash
Someone already proposed 4) a while ago :
I did not compare this bash implementation with the one found on stackoverflow.
The best might still be to see if there is any way to avoid using
realpath, like I did for repo-add back then. But maybe there is really
no way out for makepkg, I don't know.
More information about the pacman-dev