Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#9097 - makepkg can't handle tar files unless tar is installed

Attached to Project: Pacman
Opened by Fredrik (vEX) - Friday, 04 January 2008, 23:05 GMT
Last edited by Dan McGee (toofishes) - Friday, 04 January 2008, 23:30 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version 3.0.6
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
makepkg can't extract tar-files without having tar installed. Even so pacman doesn't even depend on tar and it's clearly used by makepkg:

==> Extracting Sources...
-> tar -xf teewars-0.3.2-src.tar.gz
/usr/bin/makepkg: line 831: tar: command not found

Also, for zip-files it will just fail silently and you won't notice anything until you try to access the files you thought were unzipped. Perhaps it should depend on unzip as well?

This snippet from makepkg shows that unzip is used for zip-files:
*application/x-zip*)
unziphack=1
cmd="unzip -qqo $file" ;;

Not sure why I don't get any error about unzip not being found though.

$ pacman -Q pacman fakeroot tar unzip
pacman 3.0.6-2
fakeroot 1.8.10-1
error: package "tar" not found
error: package "unzip" not found

Steps to Reproduce:
'pacman -R tar' and try to build a package which have a file in the source array that's a tar of some sort (be it plain tar or compressed).
This task depends upon

Closed by  Dan McGee (toofishes)
Friday, 04 January 2008, 23:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  Dependencies should be right in pacman 3.1 with switch to bsdtar usage.
Comment by Dan McGee (toofishes) - Friday, 04 January 2008, 23:07 GMT
tar is in core/base, and we don't support systems that don't have all those packages installed.

That said, makepkg 3.1 no longer depends on tar/unzip/etc. as it uses bsdtar for all zipping purposes which can handle all of these formats.

Closing unless there are other objections.
Comment by Fredrik (vEX) - Friday, 04 January 2008, 23:09 GMT
So even if it needs (3.0.x) tar, it won't depend on it since it's in core? I didn't know that, thanks for clarifying.
Comment by Dan McGee (toofishes) - Friday, 04 January 2008, 23:11 GMT
Well it should, yes. However, we forgot to put it in there, and no point in going back now just to add a dependency. However, I guess I have no idea why you would not have tar installed on your system. :)
Comment by Fredrik (vEX) - Friday, 04 January 2008, 23:13 GMT
Yeah, same here, have an AUR package witch has a zip-file in the source array and I thought makepkg would handle zipfiles without me having to makedepend=('unzip') but it didn't.. led me to test what happens if tar is removed. I say close this since it will be fixed in 3.1.

Loading...