Browse Source

Don't build the compilation date and time into the binary. This made the build unreproducible.

tags/1.130
Colin Watson 6 years ago
parent
commit
a0bcedac78
4 changed files with 10 additions and 4 deletions
  1. +1
    -2
      Makefile
  2. +7
    -0
      debian/changelog
  3. +1
    -1
      netcfg-static.c
  4. +1
    -1
      netcfg.c

+ 1
- 2
Makefile View File

@@ -1,5 +1,4 @@
NETCFG_VERSION := $(shell dpkg-parsechangelog | grep ^Version: |sed 's/Version: //')
NETCFG_BUILD_DATE := $(shell date '+%Y%m%d-%H%M')
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

@@ -7,7 +6,7 @@ CC ?= gcc
TARGETS ?= netcfg-static netcfg

LDOPTS = -ldebconfclient -ldebian-installer
CFLAGS = -W -Wall -Werror -DNDEBUG -DNETCFG_VERSION="\"$(NETCFG_VERSION)\"" -DNETCFG_BUILD_DATE="\"$(NETCFG_BUILD_DATE)\"" -I.
CFLAGS = -W -Wall -Werror -DNDEBUG -DNETCFG_VERSION="\"$(NETCFG_VERSION)\"" -I.
COMMON_OBJS = netcfg-common.o wireless.o write_interface.o ipv6.o
NETCFG_O = netcfg.o dhcp.o static.o ethtool-lite.o wpa.o wpa_ctrl.o rdnssd.o autoconfig.o
NETCFG_STATIC_O = netcfg-static.o static.o ethtool-lite.o


+ 7
- 0
debian/changelog View File

@@ -1,3 +1,10 @@
netcfg (1.130) UNRELEASED; urgency=medium

* Don't build the compilation date and time into the binary. This made
the build unreproducible.

-- Colin Watson <cjwatson@debian.org> Sat, 14 Mar 2015 00:27:47 +0000

netcfg (1.129) unstable; urgency=medium

[ Colin Watson ]


+ 1
- 1
netcfg-static.c View File

@@ -40,7 +40,7 @@ int main(int argc, char** argv)
di_system_init("netcfg-static");
netcfg_interface_init(&interface);
if (strcmp(basename(argv[0]), "ptom") != 0)
di_info("Starting netcfg v.%s (built %s)", NETCFG_VERSION, NETCFG_BUILD_DATE);
di_info("Starting netcfg v.%s", NETCFG_VERSION);

parse_args(argc, argv);
reap_old_files();


+ 1
- 1
netcfg.c View File

@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
netcfg_interface_init(&interface);

if (strcmp(basename(argv[0]), "ptom") != 0)
di_info("Starting netcfg v.%s (built %s)", NETCFG_VERSION, NETCFG_BUILD_DATE);
di_info("Starting netcfg v.%s", NETCFG_VERSION);

parse_args (argc, argv);
reap_old_files ();


Loading…
Cancel
Save