[pacman-dev] [PATCH] makepkg: Fix xz extraction
cedric at gmx.ca
Tue Aug 4 17:51:14 EDT 2009
Dan McGee wrote:
> On Tue, Aug 4, 2009 at 12:23 PM, Xavier<shiningxc at gmail.com> wrote:
>> On Tue, Aug 4, 2009 at 7:06 PM, Cedric Staniewski<cedric at gmx.ca> wrote:
>>> Xavier wrote:
>>>> But should we remove the symlink manually then?
>>>> pacman-dev mailing list
>>>> pacman-dev at archlinux.org
>>> I'm not sure. Always thought they are there on purpose (mostly used
>>> bsdtar), even though they are usually not needful.
>>> The current behaviors are:
>>> bsdtar keeps symlinks
>>> gunzip removes symlinks
>>> bunzip2 removes symlinks
>>> xz keeps symlinks
>> Thank you, thats very informative :)
>> So we were already inconsistent before.
>> What about always keeping symlinks, ie adding -k to gunzip and bunzip2 as well?
> We should always keep, this was probably an oversight when adding
> direct decompression of non-tar formats. That way someone can very
> easily see what source was copied in that directory both before and
> after decompression.
> pacman-dev mailing list
> pacman-dev at archlinux.org
Unfortunately, gzip/gunzip do not have something like a -k option and it
seems that there are no plans to add one [1,2]. The only possibilities
are recreating the link or decompressing to stdout (gzip -dc file.gz >
By the way, another issue might be the use of file, because
decompressing via gzip/bzip2/xz without the -c option relies on the suffix.
More information about the pacman-dev