sbcl 2.1.11 rebuild
[arch-packages.git] / nss_ldap / trunk / reproducible-build.patch
blobf2e8af622b21428841b217392cff63f521b1277f
1 Author: Reiner Herrmann <reiner@reiner-h.de>
2 Description: Remove build user and date from version string to make build reproducible
4 --- libnss-ldap-265.orig/vers_string
5 +++ libnss-ldap-265/vers_string
6 @@ -32,17 +32,17 @@ if ($ARGV[0] eq "-f") {
7 print $PROJECT, $SEP, $VERSION, "\n";
8 } elsif ($ARGV[0] eq "-l") {
9 print "static const char SGS_VERS[160] = \"";
10 - print '@(#)LIBRARY:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION, ' DEVELOPER:', $AUTHOR, ' BUILT:', $DATE;
11 + print '@(#)LIBRARY:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION;
12 print "\";\n";
13 } elsif ($ARGV[0] eq "-c") {
14 print "const char SGS_VERS[160] = \"";
15 - print '@(#)PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION, ' DEVELOPER:', $AUTHOR, ' BUILT:', $DATE;
16 + print '@(#)PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION;
17 print "\";\n";
18 print "const char VERS_NUM[10] = \"$VERSION\";\n";
19 } elsif ($ARGV[0] eq "-n") {
20 print "$VERSION\n";
21 } elsif ($ARGV[0] eq "-B") {
22 - print 'PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION, ' DEVELOPER:', $AUTHOR, ' BUILT:NO DATE SET (-B used)',"\n";
23 + print 'PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION,"\n";
24 } elsif ($ARGV[0] eq "-v") {
25 unlink($OUTFILE);
26 open(OUTFILE,">$OUTFILE");
27 @@ -52,7 +52,7 @@ if ($ARGV[0] eq "-f") {
28 print OUTFILE "#define USE_SGS_VERS\n\n";
30 print OUTFILE "const char SGS_VERS[160] = \"";
31 - print OUTFILE '@(#)PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION, ' DEVELOPER:', $AUTHOR, ' BUILT:', $DATE;
32 + print OUTFILE '@(#)PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION;
33 print OUTFILE "\";\n\n";
34 print OUTFILE "const char VERS_NUM[10] = \"$VERSION\";\n\n";
35 close(OUTFILE);
36 @@ -78,6 +78,6 @@ if ($ARGV[0] eq "-f") {
37 print STDERR "\tTo create a project distribution, type tarup\n";
38 print STDERR "\tTo commit a project, type commit [message]\n";
39 } else {
40 - print 'PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION, ' DEVELOPER:', $AUTHOR, ' BUILT:', $DATE;
41 + print 'PROGRAM:', $PROGRAM, ' PROJECT:', $PROJECT, $SEP, $VERSION;
42 print "\n";