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#14715 - makepkg fails when CDPATH set

Attached to Project: Pacman
Opened by Caleb Cushing (xenoterracide) - Thursday, 14 May 2009, 04:54 GMT
Last edited by Allan McRae (Allan) - Thursday, 14 May 2009, 06:25 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

makepkg fails when CDPATH set.

actual error

(cd blt && tar cf - .) | \
(cd '/home/xenoterracide/abs/git/pkg/usr/share/git-core/templates' && umask 022 && tar xfo -)
/bin/sh: line 0: cd: blt: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous error

Additional info:
* package version(s)
* config and/or log files etc.

Steps to reproduce:

basically try to build any package with CDPATH set.

I fixed it by putting

unset CDPATH in /etc/makepkg.conf but there may be a better place for that. it's probably the best fix since inside the script you don't need CDPATH anyways, it's more of a convenience for me on the cli.

This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 14 May 2009, 06:25 GMT
Reason for closing:  Not a bug
Comment by Allan McRae (Allan) - Thursday, 14 May 2009, 05:10 GMT
I can not replicate... Can you post your CDPATH and the PKGBUILD that is failing?
Comment by Caleb Cushing (xenoterracide) - Thursday, 14 May 2009, 05:13 GMT
export CDPATH="${HOME}"

tried building git 1.6.3 (and a bumped 1.6.3.1) with my build dir being $HOME/abs/git basically.
Comment by Allan McRae (Allan) - Thursday, 14 May 2009, 05:59 GMT
You want...

export CDPATH=".:${HOME}"
Comment by Allan McRae (Allan) - Thursday, 14 May 2009, 06:02 GMT
Note that it is the "make" in the PKGBUILD failing, not makepkg itself. So, this is definitely not a makepkg bug.

Loading...