Accepting request 952890 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/952890 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnet?expand=0&rev=33factory
commit
2ec4c1f403
@ -0,0 +1,35 @@
|
||||
https://github.com/libnet/libnet/pull/112
|
||||
commit e65c6d042be83c8a0feacadd15f1bb027d020745
|
||||
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||
Date: Wed Sep 30 07:30:58 2020 +0200
|
||||
|
||||
Make man-page generation reproducible
|
||||
|
||||
For this we behave similar to pod2man and use the input file mtime.
|
||||
|
||||
Also adapt date format to what doxygen-1.8.20 produces
|
||||
to make the comment above true again.
|
||||
|
||||
LC_ALL=C is used so that %B is independent of language.
|
||||
|
||||
Also use UTC to be independent of timezone.
|
||||
|
||||
This patch was done while working on reproducible builds for openSUSE.
|
||||
|
||||
Index: libnet-1.2/doc/fixmanpages.in
|
||||
===================================================================
|
||||
--- libnet-1.2.orig/doc/fixmanpages.in
|
||||
+++ libnet-1.2/doc/fixmanpages.in
|
||||
@@ -32,10 +32,10 @@ test -d $MANDIR/man3 || die "Could not l
|
||||
find $MANDIR/man3/ -name "libnet.h.3" -exec sh -c 'rm -f "$1"' _ {} \;
|
||||
|
||||
# Let's create libnet.3 before dealing with the rest.
|
||||
-# BTW: We're using this hideous date format because Doxygen generated man
|
||||
+# BTW: We're using this date format because Doxygen generated man
|
||||
# pages have them set like this and our date format shouldn't look different.
|
||||
|
||||
-pod2man -d "$(date +%a\ %b\ %d\ %C%y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3."
|
||||
+pod2man -d "$(LC_ALL=C date -u -r @top_srcdir@/doc/libnet.Pod +%d\ %B\ %Y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3."
|
||||
|
||||
# pod2html --title="libnet Programmers Guide" --noindex --infile=libnet.Pod --outfile=libnet.html
|
||||
|
Loading…
Reference in New Issue