On 12 January 2015 at 15:23, Jérémy Bobbio wrote:
| Dirk Eddelbuettel:
| > You need both my patches, and while I only tried them against r-devel they
| > should work as is on r-release.
| >
| > There is one thing I need to stick into debian/rules to set the env var for
| > make (patch 2), and we need to modify the r-cran.mk snippet to get timestamp
| > from debian/changelog and pass it on.
| >
| > I can prepare both of these this evening. Ok?
|
| Sure, no hurry! :)
r-base_3.1.2-3 was just uploaded to experimental. It has the two patches of
mine
which are already in r-devel thanks to Martin. It also has (commented-out)
hooks to to use them
First, in debian/rules:
## Support for #774031 uncomment the two assignment to pass a non-empty
string for this to hold
#builttime := $(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog
| awk -F': ' '/Date/ {print $$2}')
#builttimestamp := "$(builttime)"
buildtimestamp := ""
Comment out the last one and active the two before, and you should get
buildtimestamp which is use below as
PKG_BUILT_STAMP="$(buildtimestamp)" \
in the call to $(MAKE). That is part one.
Second, in debian/r-cran.mk, very similarly
## set built-time in DESCRIPTION time of created binary package based on
stamp in changelog
## cf discussion in http://bugs.debian.org/774031 --- and uncomment two
assignments here
##
## extract built-timestamp from entry changelog and use as argument
#builttime := $(shell dpkg-parsechangelog -l$(CURDIR)/debian/changelog
| awk -F': ' '/Date/ {print $$2}')
##
#builttimeStamp := "--built-timestamp=\"$(builttime)\""
##
## else
builttimeStamp := ""
which is used via
$(builttimeStamp) \
So you would have to make a minimal change, build and see how it is
deployed.
I can quite make up my mind if I want these 'always on'. But we should in
any event see where you get with this for reproducibility.
Let me know how it goes.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | [email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]