Re: [pacman-dev] [PATCH 2/2] libalpm: Add accessors for the base field

2014-12-22 Thread Johannes Löthberg
On 22/12, Allan McRae wrote: On 21/12/14 02:25, Johannes Löthberg wrote: This commit adds the necessary accessor functions to get the PKGBASE of a package, forcing the desc file to be parsed. Signed-off-by: Johannes Löthberg johan...@kyriasis.com --- lib/libalpm/alpm.h | 6 ++

Re: [pacman-dev] [PATCH 1/2] libalpm: Parse and write PKGBASEs

2014-12-22 Thread Johannes Löthberg
On 22/12, Allan McRae wrote: On 21/12/14 02:25, Johannes Löthberg wrote: This commit adds support to libalpm to parse the pkgbase present in packages .PKGINFO files, writing the PKGBASE to the %BASE% section of the local DBs desc files and for parsing it again when loading the local DB

Re: [pacman-dev] [PATCH 2/2] libalpm: Add accessors for the base field

2014-12-22 Thread Johannes Löthberg
On 22/12, Johannes Löthberg wrote: On 22/12, Allan McRae wrote: On 21/12/14 02:25, Johannes Löthberg wrote: This commit adds the necessary accessor functions to get the PKGBASE of a package, forcing the desc file to be parsed. Signed-off-by: Johannes Löthberg johan...@kyriasis.com ---

[pacman-dev] [PATCH v2 1/2] libalpm: Parse and write PKGBASEs

2014-12-22 Thread Johannes Löthberg
This commit adds support to libalpm to parse the pkgbase present in packages .PKGINFO files, writing the PKGBASE to the %BASE% section of the local DBs desc files and for parsing it again when loading the local DB Signed-off-by: Johannes Löthberg johan...@kyriasis.com --- lib/libalpm/be_local.c

[pacman-dev] [PATCH v2 2/2] libalpm: Add accessors for the base field

2014-12-22 Thread Johannes Löthberg
This commit adds the necessary accessor functions to get the PKGBASE of a package, forcing the desc file to be parsed. Signed-off-by: Johannes Löthberg johan...@kyriasis.com --- lib/libalpm/alpm.h | 6 ++ lib/libalpm/be_local.c | 7 +++ lib/libalpm/package.c | 9 +

[pacman-dev] [PATCH] Use correct mode bits for the log file (0000 - 0644)

2014-12-22 Thread Evangelos Foutras
Following commit 086bbc5 (Use O_CLOEXEC as much as possible when opening files), the log file would be created by pacman with blank permissions. --- lib/libalpm/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c index d232bcc..9af5e84

Re: [pacman-dev] [PATCH] Use correct mode bits for the log file (0000 - 0644)

2014-12-22 Thread Allan McRae
On 23/12/14 03:19, Evangelos Foutras wrote: Following commit 086bbc5 (Use O_CLOEXEC as much as possible when opening files), the log file would be created by pacman with blank permissions. --- Ack.

Re: [pacman-dev] [PATCH] pacman-db-upgrade: set umask 022

2014-12-22 Thread Allan McRae
On 20/12/14 20:58, Peter Wu wrote: This prevents the database from becoming inaccessible for non-root users when the script was executed with a umask of 027. Signed-off-by: Peter Wu pe...@lekensteyn.nl --- Applied. Hi, It would probably be a good idea to set umask 022 for

Re: [pacman-dev] [PATCH] makepkg: download sources for all architectures when making source package

2014-12-22 Thread Dave Reisner
On Mon, Dec 22, 2014 at 04:20:09PM +1000, Allan McRae wrote: We validated all sources when making a source package, whether or not they are included in the tarball. Signed-off-by: Allan McRae al...@archlinux.org --- makepkg --source was broken when source_i686 and source_x86_64 were