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#34488 - [makepkg] fails downloading source

Attached to Project: Pacman
Opened by Christian Hesse (eworm) - Wednesday, 27 March 2013, 07:15 GMT
Last edited by Allan McRae (Allan) - Friday, 29 March 2013, 23:38 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Having these sources in a PKGBUILD:

source=('git://git.xfce.org/panel-plugins/xfce4-clipman-plugin'
'http://www.eworm.de/download/linux/xfce4-clipman-plugin-qrcode.patch')

makepkg fails downloading the patch:

mv: cannot stat ‘$SRCDEST/xfce4-clipman-plugin-qrcode.patch.part’: No such file or directory

Actually it does download the file to $SRCDEST/xfce4-clipman-plugin/xfce4-clipman-plugin-qrcode.patch.part (into the bare git repository) but forgets about this path. My proposed fix is to give an absolute path to dlcmd. Note that mv uses an absolute path later on.
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 29 March 2013, 23:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit a6291858
Comment by Allan McRae (Allan) - Wednesday, 27 March 2013, 07:35 GMT
Works for me... Please provide the PKGBUILD so we can try to replicate.
Comment by Christian Hesse (eworm) - Wednesday, 27 March 2013, 07:46 GMT
Here you are.

For me this happened for a lot of packages until I noticed I had a lot of *.part files in my git repositories.
   PKGBUILD (1.5 KiB)
Comment by Allan McRae (Allan) - Wednesday, 27 March 2013, 08:00 GMT
Hrm... another works for me...

Can you post the git version you are using (makepkg -V) and the build output?
Comment by Christian Hesse (eworm) - Wednesday, 27 March 2013, 08:15 GMT
# makepkg -V
makepkg (pacman) 4.1.0rc1-35-g38f0
Copyright (c) 2006-2013 Pacman Development Team <pacman-dev@archlinux.org>.
Copyright (C) 2002-2006 Judd Vinet <jvinet@zeroflux.org>.

This is free software; see the source for copying conditions.
There is NO WARRANTY, to the extent permitted by law.

# makepkg
==> Making package: xfce4-clipman-plugin-git 2012.11.23-1 (Wed Mar 27 09:13:03 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating xfce4-clipman-plugin git repo...
Fetching origin
-> Downloading xfce4-clipman-plugin-qrcode.patch...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13075 100 13075 0 0 4254 0 0:00:03 0:00:03 --:--:-- 4256
mv: cannot stat ‘/var/repo/src/xfce4-clipman-plugin-qrcode.patch.part’: No such file or directory
==> Validating source files with sha256sums...
xfce4-clipman-plugin ... Skipped
xfce4-clipman-plugin-qrcode.patch ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
Comment by Christian Hesse (eworm) - Wednesday, 27 March 2013, 08:19 GMT
Ok, works for me if I comment my settings in /etc/makepkg.conf or export SRCDEST=".".

I have

SRCDEST="/var/repo/src"

in make config.
Comment by Allan McRae (Allan) - Wednesday, 27 March 2013, 08:59 GMT
Ah - nothing to do with SRCDEST at all.

To expose this bug - build package, delete the patch file and the rebuild the package. It seems that after updating the git repo, we do not go back to the right directory.
Comment by Allan McRae (Allan) - Wednesday, 27 March 2013, 10:14 GMT
Fix.

Loading...