auristor / keyutils Goto Github PK
View Code? Open in Web Editor NEWfork of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git
License: GNU General Public License v2.0
fork of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git
License: GNU General Public License v2.0
These tools are used to control the key management system built into the Linux kernel. To build and install the tools and manual pages, run: make make install If your glibc does not contain definitions for the new error codes and system calls, then try: make NO_GLIBC_KEYERR=1 The tools are licensed under the GPL and the utility library under the LGPL. Copies of these are included in this tarball.
Hi,
I am using this repository in a project of mine. I am using the commit 4723f0185d11b13df243ad3cd41fbddfed53b5b1
. One of the aims of the project is to showcase reproducibility.
I have noticed that this repository gets marked as non-reproducible because of two reasons:
makefile
buildid
that gets generatedAt the moment, I have the following patch file:
diff --git a/Makefile b/Makefile
index 33a451e..c426bab 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver
###############################################################################
#RPATH = -Wl,-rpath,$(LIBDIR)
-VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\""
+VCPPFLAGS := -DPKGBUILD="\"2023-01-01\""
VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\""
VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
@@ -131,7 +131,7 @@ $(DEVELLIB): $(SONAME)
$(SONAME): $(LIBNAME)
$(LNS) $< $@
-LIBVERS := -shared -Wl,-soname,$(SONAME) -Wl,--version-script,version.lds
+LIBVERS := -shared -Wl,-soname,$(SONAME) -Wl,--build-id=your_build_id
$(LIBNAME): keyutils.os version.lds Makefile
$(CC) $(CFLAGS) -fPIC $(LDFLAGS) $(LIBVERS) -o $@ keyutils.os $(LIBLIBS)
This technically solves both problems. However, the concern and purpose of this question is: how do I fix the buildid
that gets generated. I understand I haven't done it optimally, but this does get the job done and the functionality of the program is unaffected.
However, I would like advice on an optimal solution for the date-stamp
and unique buildid
.
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.