[Reproducible-commits] [dpkg] 21/40: build: Move PACKAGE_RELEASE definition from dpkg.h to configure.ac

Jérémy Bobbio lunar at moszumanska.debian.org
Sat May 30 09:52:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 07655bd782222b94b84dce2a4200a3a2c04c4d69
Author: Guillem Jover <guillem at debian.org>
Date:   Sat Mar 14 23:58:19 2015 +0100

    build: Move PACKAGE_RELEASE definition from dpkg.h to configure.ac
    
    There's no need to expose this macro in the API header. More so when the
    PACKAGE_VERSION macro is only defined in config.h which is not installed
    by default on the system.
---
 configure.ac    | 2 ++
 lib/dpkg/dpkg.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4b32bbf..6905074 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,6 +123,8 @@ DPKG_COMPILER_WARNINGS
 DPKG_COMPILER_OPTIMISATIONS
 DPKG_LINKER_OPTIMISATIONS
 DPKG_ARCHITECTURE
+AC_DEFINE([PACKAGE_RELEASE], [PACKAGE_VERSION " (" ARCHITECTURE ")"],
+          [Define the project release information, version and architecture])
 
 AC_CONFIG_FILES([ Makefile
 		  dpkg-deb/Makefile
diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h
index 1868e95..23b3dd3 100644
--- a/lib/dpkg/dpkg.h
+++ b/lib/dpkg/dpkg.h
@@ -56,8 +56,6 @@ DPKG_BEGIN_DECLS
 #define REMOVECONFFEXTS    "~", ".bak", "%", \
                            DPKGTEMPEXT, DPKGNEWEXT, DPKGOLDEXT, DPKGDISTEXT
 
-#define PACKAGE_RELEASE    PACKAGE_VERSION " (" ARCHITECTURE ")"
-
 #define NEWCONFFILEFLAG    "newconffile"
 #define NONEXISTENTFLAG    "nonexistent"
 #define EMPTYHASHFLAG      "-"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list