openldap: Reproducibility: Remove user, hostname, pwd from version string
PATCH 1/1 openldap: Reproducibility: Remove user, hostname, pwd from version string
Upstream-Status: Pending
--- .../openldap/remove-user-host-pwd-from-version.patch | 12 ++++++++++++ meta-oe/recipes-support/openldap/openldap_2.4.46.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644 meta-oe/recipes-support/openldap/openldap/remove-user-host-pwd-from-version.patch
meta-oe/recipes-support/openldap/openldap/remove-user-host-pwd-from-version.patch new file +12 -0
@@ -0,0 +1,12 @@ +diff -ru openldap-2.4.46.original/build/mkversion openldap-2.4.46/build/mkversion +--- openldap-2.4.46.original/build/mkversion 2018-03-23 04:44:27.000000000 +1300 ++++ openldap-2.4.46/build/mkversion 2018-10-09 14:34:51.152684040 +1300 +@@ -50,7 +50,7 @@ + fi + + APPLICATION=$1 +-WHOWHERE="$USER@`uname -n`:`pwd`" ++WHOWHERE="${SOURCE_DATE_EPOCH:-$USER@`uname -n`:`pwd`}" + + cat << __EOF__ + /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
meta-oe/recipes-support/openldap/openldap_2.4.46.bb +1 -0
@@ -23,6 +23,7 @@ SRC_URI = "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/${BP}.tgz \ file://slapd.service \ file://thread_stub.patch \ file://openldap-CVE-2015-3276.patch \ + file://remove-user-host-pwd-from-version.patch \ " SRC_URI[md5sum] = "829016c5a9f45c51adc50073ac6f9fd7"
Signature · 1 line
2.17.1
Is this a good idea? We need to replace the WHOWHERE value with something fixed, so I've opted for the SOURCE_DATE_EPOCH. If you're not trying to do a reproducible build, it won't be set, so the existing WHOWHERE string will apply.
I'll wait for other opinions before submitting this upstream.
Quoted 4 lines · Douglas Royds
Upstream-Status: Pending
...
+-WHOWHERE="$USER@uname -n:pwd" ++WHOWHERE="${SOURCE_DATE_EPOCH:-$USER@uname -n:pwd}"
Debian have set this string to their own Debian-specific value:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833179
WHOWHERE="$(dpkg-vendor --query vendor) package version $(dpkg-parsechangelog -SVersion)"
Quoted 8 lines · Douglas Royds
Is this a good idea? We need to replace the WHOWHERE value with something fixed, so I've opted for the
SOURCE_DATE_EPOCH. If you're not trying to do a reproducible build, it won't be set, so the existing WHOWHERE string will apply.I'll wait for other opinions before submitting this upstream.
this is fine.
Quoted 14 lines · Douglas Royds
Quoted 5 lines
Upstream-Status: Pending
...
+-WHOWHERE="$USER@uname -n:pwd" ++WHOWHERE="${SOURCE_DATE_EPOCH:-$USER@uname -n:pwd}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
This patch is already on meta-openembedded master:
http://git.openembedded.org/meta-openembedded/commit/?id=ed5c1c19963546f09201747b11b94b71729b0bcd
For the record, I have just submitted it upstream:
http://www.openldap.org/its/index.cgi/Incoming?id=8928
Should I submit a new patch, changing the upstream-status to "Submitted"?
Quoted 9 lines · Douglas Royds
Upstream-Status: Pending
Signed-off-by Douglas Royds <[email protected]>---
...meta-oe/recipes-support/openldap/openldap/remove-user-host-pwd-from-version.patch +2
-0+-WHOWHERE="$USER@`uname -n`:`pwd`" ++WHOWHERE="${SOURCE_DATE_EPOCH:-$USER@`uname -n`:`pwd`}"
Quoted 10 lines · Douglas Royds
This patch is already on meta-openembedded master:
http://git.openembedded.org/meta-openembedded/commit/?id=ed5c1c19963546f09201747b11b94b71729b0bcdFor the record, I have just submitted it upstream:
http://www.openldap.org/its/index.cgi/Incoming?id=8928Should I submit a new patch, changing the upstream-status to "Submitted"?
you can, also add a appropriate link to mailing list post that lists the submission
Quoted 20 lines · Douglas Royds
meta-oe/recipes-support/openldap/openldap/remove-user-host-pwd-from-version.patch line 9
Quoted 10 lines
Upstream-Status: Pending
Signed-off-by Douglas Royds <[email protected]>---
...meta-oe/recipes-support/openldap/openldap/remove-user-host-pwd-from-version.patch +2
-0+-WHOWHERE="$USER@`uname -n`:`pwd`" ++WHOWHERE="${SOURCE_DATE_EPOCH:-$USER@`uname -n`:`pwd`}"--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel