Help to make bsh reproducible
jathan
jathanblackred at openmailbox.org
Mon Sep 18 00:08:15 UTC 2017
Hi everyone. I am trying to ask bsh to be reproducible related to
timestamps and I following the steps that I did with apg, but in the
part which I do a grep -r php.tar.gz ( I don't remember how I knew that)
and find this in the debian/rules of apg, I don't know what to do since
here for bsh. I share the commands that I have executed during apg:
$ cd Desktop/
$ mkdir timestamps_in_tarball
$ cd timestamps_in_tarball/
$ apt source apg
$ ls
$ cd apg-2.2.3.dfsg.1/
$ ls
$ grep -r php.tar.gz
$ vi debian/rules
In debian/rules file I have added:
SOURCE_DATE := $(shell dpkg-parsechangelog --show-field=Date)
and
--clamp-mtime --mtime="$(SOURCE_DATE)" \
Being this all the content:
#!/usr/bin/make -f
SOURCE_DATE := $(shell dpkg-parsechangelog --show-field=Date)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CC="$(DEB_HOST_GNU_TYPE)-gcc"
else
CC=gcc
endif
%:
dh $@
override_dh_auto_build:
make standalone CC=$(CC)
override_dh_auto_install:
make install INSTALL_PREFIX=$(CURDIR)/debian/apg/usr
mv $(CURDIR)/debian/apg/usr/bin/apg
$(CURDIR)/debian/apg/usr/lib/apg/apg
tar --create --file - --directory $(CURDIR)/php/apgonline/ . \
--clamp-mtime --mtime="$(SOURCE_DATE)" \
--mode=u=rwX,go=rX --sort=name | gzip --no-name > php.tar.gz
install -D --mode=0644 php.tar.gz
$(CURDIR)/debian/apg/usr/share/doc/apg/php.tar.gz
rm php.tar.gz
install -D --mode=0755 $(CURDIR)/debian/apg.wrapper
$(CURDIR)/debian/apg/usr/bin/apg
install -D --mode=0644 $(CURDIR)/debian/apg.conf
$(CURDIR)/debian/apg/etc/apg.conf
$ dch
$ su
# dch
$ less debian/changelog
$ debuild -S
$ ls
$ cd ../
$ ls
$ debdiff apg_2.2.3.dfsg.1-4.dsc apg_2.2.3.dfsg.1-4.1.dsc
$ cd apg-2.2.3.dfsg.1/
$ ls
$ . ~/.bashrc
$ cd ../
And in some point I sent the bug report with the
apg_2.2.3.dfsg.1-4_2.2.3.dfsg.1-4.1.debdiff file attached like this
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870890 Can someone
help me to give me some direction to do the same with bsh please?
Jathan
--
Por favor evita enviarme adjuntos en formato de word o powerpoint, si
quieres saber porque lee esto:
http://www.gnu.org/philosophy/no-word-attachments.es.html
¡Cámbiate a GNU/Linux! http://getgnulinux.org/es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 878 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170917/bd7186ad/attachment.sig>
More information about the Reproducible-builds
mailing list