From 19b8298ce88564e38683279664400572ce285f2e Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 18 Sep 2012 01:29:08 +1000 Subject: pactest: allow running with valgrind from any directory When using the --valgrind flag with the pactest.py script, the path to the suppression file relies on the script being called from the source root directory. Construct the path from the scripts location to allow it to be called from directory. Dan: style cleanup. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- test/pacman/pmtest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index 4e1ecd0b..5f0692f8 100644 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -203,9 +203,12 @@ def run(self, pacman): if pacman["gdb"]: cmd.extend(["libtool", "execute", "gdb", "--args"]) if pacman["valgrind"]: + suppfile = os.path.join(os.path.dirname(__file__), + '..', '..', 'valgrind.supp') cmd.extend(["libtool", "execute", "valgrind", "-q", "--tool=memcheck", "--leak-check=full", - "--show-reachable=yes", "--suppressions=%s/valgrind.supp" % os.getcwd()]) + "--show-reachable=yes", + "--suppressions=%s" % suppfile]) cmd.extend([pacman["bin"], "--config", os.path.join(self.root, util.PACCONF), "--root", self.root, -- cgit v1.2.3-54-g00ecf From 89319b5bfd6a592ce99cb07729f66bbc2cbfed5c Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 17 Sep 2012 16:07:24 +1000 Subject: Document system and user specific makepkg.conf Add details of the system wide and user specific versions of makepkg.conf to the man page. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- doc/makepkg.conf.5.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/makepkg.conf.5.txt b/doc/makepkg.conf.5.txt index db1e6d53..ada5e750 100644 --- a/doc/makepkg.conf.5.txt +++ b/doc/makepkg.conf.5.txt @@ -25,6 +25,10 @@ build environment. NOTE: This does not guarantee that all package Makefiles will use your exported variables. Some of them are non-standard. +The system-wide configuration file is found in {sysconfdir}/makepkg.conf. +Individual options can be overridden (or added to) on a per user basis in +~/.makepkg.conf. + The default file is fairly well commented, so it may be easiest to simply follow directions given there for customization. -- cgit v1.2.3-54-g00ecf From f7558856b174ea8a7fab099a05c2e7c6397851a2 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Jul 2012 10:28:03 +0200 Subject: signing.c: warn if time went backwards GPG signatures have a timestamp which is checked and if it's in the future, verification will fail. Dan: slight wording change. Signed-off-by: Florian Pritz --- lib/libalpm/signing.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 7177d655..82d7292a 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -515,6 +515,11 @@ int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path, string_validity(gpgsig->validity), gpgme_strerror(gpgsig->validity_reason)); + if((time_t)gpgsig->timestamp > time(NULL)) { + _alpm_log(handle, ALPM_LOG_WARNING, + _("System time is greater than signature timestamp.\n")); + } + result = siglist->results + sigcount; err = gpgme_get_key(ctx, gpgsig->fpr, &key, 0); if(gpg_err_code(err) == GPG_ERR_EOF) { -- cgit v1.2.3-54-g00ecf From c4ab50584fc70f9cbf94fdb1153e2eb08c4052df Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 5 Sep 2012 17:50:30 +1000 Subject: pacman.8: remove redundant section Signed-off-by: Allan McRae --- doc/pacman.8.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/doc/pacman.8.txt b/doc/pacman.8.txt index 62335991..32d64d70 100644 --- a/doc/pacman.8.txt +++ b/doc/pacman.8.txt @@ -401,9 +401,6 @@ system upgrade and install/upgrade the foo package in the same operation. will force a refresh of all package lists even if they appear to be up to date. -*\--needed*:: - Do not reinstall the targets that are already up to date. - Handling Config Files[[HCF]] ---------------------------- -- cgit v1.2.3-54-g00ecf