Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33857 - [gnupg] Missing option --sysconfdir in the PKGBUILD.

Attached to Project: Arch Linux
Opened by Piotr Rogoża (dracorp) - Thursday, 14 February 2013, 09:18 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 14 February 2013, 23:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Missing option --sysconfdir in the PKGBUILD. Default is PREFIX/etc i.e.: /usr/etc

Additional info:
* package version: 2.0.19-5

Steps to reproduce:

diff --git a/PKGBUILD b/PKGBUILD
index efbc00d..545c9ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,7 +34,8 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ../protect-tool-env.patch #  FS#31900 
patch -p1 -i ../valid-keyblock-packet.patch
- ./configure --prefix=/usr --libexecdir=/usr/lib/gnupg
+ ./configure --prefix=/usr --libexecdir=/usr/lib/gnupg \
+ --sysconfdir=/etc
make
}

This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 14 February 2013, 23:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  gnupg-2.0.19-6 in [testing]
Comment by Gaetan Bisson (vesath) - Thursday, 14 February 2013, 21:31 GMT
Is sysconfdir used by anything?
Comment by Piotr Rogoża (dracorp) - Thursday, 14 February 2013, 22:00 GMT
Probably not but could be correct.
Comment by Eric Belanger (Snowman) - Thursday, 14 February 2013, 22:34 GMT
yes it's used:
$ strings /usr/lib/gnupg/* |grep etc
_IO_getc
gpgkeys: %s fetch error %d: %s
gpgkeys: HTTP fetch error %d: %s
gpgkeys: LDAP fetch for: %s
_IO_getc
/usr/etc/gnupg
_IO_getc
/usr/etc/gnupg
_IO_getc
/usr/etc/gnupg
Comment by Gaetan Bisson (vesath) - Thursday, 14 February 2013, 23:14 GMT
From looking at the source code, sysconfdir is only ever used by gpg-agent when it looks for "$sysconfdir/trustlist.txt". I'll add a bunch of options to our current ./configure and include sysconfdir=/etc.

Loading...