Source: lsof Version: 4.86+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps username hostname uname X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the “reproducible builds” effort [1], we have noticed that lsof could not be built reproducibly. The attached patch removes extra informations from the build system.. Once applied, lsof can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, Valentin
--- lsof-4.86+dfsg/usage.c 2011-09-07 21:14:16.000000000 +0200 +++ chroot/root/lsof-4.86+dfsg/usage.c 2015-07-29 11:53:23.000000000 +0200 @@ -916,25 +916,6 @@ (void) fprintf(stderr, " configuration info: %s\n", cp); #endif /* defined(LSOF_CINFO) */ - if ((cp = isnullstr(LSOF_CCDATE))) - (void) fprintf(stderr, " constructed: %s\n", cp); - cp = isnullstr(LSOF_HOST); - if (!(cp1 = isnullstr(LSOF_LOGNAME))) - cp1 = isnullstr(LSOF_USER); - if (cp || cp1) { - if (cp && cp1) - cp2 = "by and on"; - else if (cp) - cp2 = "on"; - else - cp2 = "by"; - (void) fprintf(stderr, " constructed %s: %s%s%s\n", - cp2, - cp1 ? cp1 : "", - (cp && cp1) ? "@" : "", - cp ? cp : "" - ); - } #if defined(LSOF_BLDCMT) if ((cp = isnullstr(LSOF_BLDCMT))) @@ -949,8 +930,6 @@ (void) fprintf(stderr, " compiler flags: %s\n", cp); if ((cp = isnullstr(LSOF_LDFLAGS))) (void) fprintf(stderr, " loader flags: %s\n", cp); - if ((cp = isnullstr(LSOF_SYSINFO))) - (void) fprintf(stderr, " system info: %s\n", cp); (void) report_SECURITY(" ", ".\n"); (void) report_WARNDEVACCESS(" ", "are", ".\n"); (void) report_HASKERNIDCK(" K", "is");