You are not logged in.
What can I do when the source archive yeilds:
% bsdtar -xf magnifier-3.4.zip
# Omitting all lines but the last 2. The problem is the same: Path contains '..'
../magnifier-3.4/top.bmp: Path contains '..'
bsdtar: Error exit delayed from previous errors.
?
It seems to be only a matter of a missing --strip-components 1:
bsdtar --strip-components 1 -xf magnifier-3.4.zip
Succeeds to extract the archive.
I think the relevant makepkg code is:
% cat -n /usr/share/makepkg/source/file.sh | sed -n 120,132p
120 *)
121 # See if bsdtar can recognize the file
122 if bsdtar -tf "$file" -q '*' &>/dev/null; then
123 cmd="bsdtar"
124 else
125 return 0
126 fi ;;
127 esac
128
129 local ret=0
130 msg2 "$(gettext "Extracting %s with %s")" "$file" "$cmd"
131 if [[ $cmd = "bsdtar" ]]; then
132 $cmd -xf "$file" || ret=$?
Last edited by regid (2018-10-22 18:11:09)
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline
This is somehow related to a PKGBUILD and makepkg? The contents of the former and the output of the latter you have not included.
Offline
makepkg cannot handle source archives created by crazy people. makepkg has a feature called "noextract" to go with "source", which does what it sounds like, after which you should handle this yourself in prepare().
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Message deleted by writer because it conveyed wrong information.
Last edited by regid (2018-10-22 22:32:58)
powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.
Offline
--noextract implies --noprepare. If you use the existing source tree, then makepkg assumes it is already prepared and does not run prepare(). If you use --noprepare, then the source is extracted, but prepare() is not run.
Edit: Related post was removed.
Last edited by progandy (2018-10-22 22:37:43)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline