Browse Source

socat: set BUILD_DATE to SOURCE_DATE_EPOCH

Build timestamp prevents reproducible builds [0].
SOURCE_DATE_EPOCH allows to use a timestamp which depends
on deterministic behaviour [1].
Fixes reproducible builds.

[0] https://reproducible-builds.org/docs/timestamps/
[1] https://reproducible-builds.org/specs/source-date-epoch/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
lilik-openwrt-22.03
Alexander Couzens 7 years ago
parent
commit
379afb45ef
No known key found for this signature in database GPG Key ID: C29E9DA6A0DF8604
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      net/socat/Makefile

+ 3
- 2
net/socat/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=socat PKG_NAME:=socat
PKG_VERSION:=1.7.3.2 PKG_VERSION:=1.7.3.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download
@ -67,7 +67,8 @@ CONFIGURE_VARS += \
sc_cv_termios_ispeed="no" \ sc_cv_termios_ispeed="no" \
sc_cv_sys_crdly_shift=9 \ sc_cv_sys_crdly_shift=9 \
sc_cv_sys_tabdly_shift=11 \ sc_cv_sys_tabdly_shift=11 \
sc_cv_sys_csize_shift=4
sc_cv_sys_csize_shift=4 \
BUILD_DATE=$(SOURCE_DATE_EPOCH)
define Package/socat/install define Package/socat/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin


Loading…
Cancel
Save