FS#43537 - makepkg is misleading on inability to write inside folders

Attached to Project: Pacman
Opened by Joshua Reno (jralpur) - Thursday, 22 January 2015, 03:25 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 01 May 2018, 05:13 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Eli Schwartz (eschwartz)
Architecture All
Severity Very Low
Priority Normal
Reported Version 4.2.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
if you set *DEST variables in makepkg.conf and do not create the folders, makepkg will say that you do not have write access

Steps to Reproduce:
set PKGDEST, SRCDEST etc. /etc/makepkg.conf
do not create the folders you specified

run makepkg where you usually would
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 01 May 2018, 05:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://git.archlinux.org/pacman.git/com mit/?id=d8717a6a9666ec80c8645d190d6f9c7a b73084ac
Comment by Joshua Reno (jralpur) - Thursday, 22 January 2015, 03:27 GMT
alternatively this can be a feature request to create folders you wanted if it doesn't exist
Comment by Allan McRae (Allan) - Thursday, 22 January 2015, 03:38 GMT
if [[ ! -d $BUILDDIR ]]; then
if ! mkdir -p "$BUILDDIR"; then
error "$(gettext "You do not have write permission to create packages in %s.")" "$BUILDDIR"

So makepkg tries to create the directories and fails because you do not have write permission to do so.
Comment by Joshua Reno (jralpur) - Thursday, 22 January 2015, 10:31 GMT
just reproduced:

/etc/makepkg.conf
PKGDEST=/home/jr/test

$ cd ~
$ cp -r /var/abs/community/dwm .
$ cd dwm
$ makepkg
==> ERROR: You do not have write permission to store packages in /home/jr/test.
Aborting...
$ mkdir ~/test
$ ls -ld ~/test
drwxr-xr-x 2 jr jr 6 Jan 22 02:29 /home/jr/test
$ makepkg
(succeeds here)

Comment by Allan McRae (Allan) - Thursday, 22 January 2015, 10:59 GMT
Oops - I thought your were talking about BUILDDIR. I agree that could be clarified.
Comment by Eli Schwartz (eschwartz) - Monday, 30 October 2017, 17:57 GMT

Loading...