FS#50439 - makepkg and "./pkg: Permission denied"
Attached to Project:
Pacman
Opened by Johannes Ernst (jernst) - Thursday, 18 August 2016, 20:57 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 29 May 2018, 06:31 GMT
Opened by Johannes Ernst (jernst) - Thursday, 18 August 2016, 20:57 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 29 May 2018, 06:31 GMT
|
Details
Every now and then, when my makepkg fails, it leaves behind
a ./pkg/ with these permissions:
d--x--x--x When makepkg succeeds, they are more reasonable: dwrxr-xr-x All sorts of things tend to fail afterwards, like find, or grep, even subsequent invocations of makepkg. Not a big thing but annoying ... Discussion here: https://bbs.archlinux.org/viewtopic.php?pid=1648019 |
This task depends upon
pkgname=foobar
pkgver=0.1
pkgrel=1
pkgdesc='testing makepkg'
arch=('i686' 'x86_64')
license=('Apache')
build() {
touch ${srcdir}/was-in-build
false
}
package() {
install -Dm644 "${srcdir}/was-in-build" "${pkgdir}/"
}
Origin of the issue is here:
https://git.archlinux.org/pacman.git/tree/scripts/makepkg.sh.in?id=839417e8c65e73e632c77d3ecd68539494850de1#n1699