Help with cdebootstrap_0.7.7
jathan
jathanblackred at openmailbox.org
Wed Nov 29 19:44:38 UTC 2017
On 21/11/17 23:41, Chris Lamb wrote:
> Hi Jathan,
>
>> Since I found the SOURCE_DATE_EPOCH variable in line 41 already. Can
>> someone help to explain me what I need to do please?
>
> I think your mistake is thinking that the difference between the two
> builds is related to timestamps.
>
> Have another look at the diffoscope output; you'll see that the remaining
> diff between the first and second builds is nothing to do with times (and
> thus SOURCE_DATE_EPOCH is not relevant here).
>
> Hope that helps nudge you in the right direction... :)
>
>
> Best wishes,
>
Hello Lamby,
Thanks a lot for your response. Thinking about you have told me, I have
read about "Permissions in data.tar depends on umask" and "Other umask
related variations" in our HowTo
https://wiki.debian.org/ReproducibleBuilds/Howto#Permissions_in_data.tar_depends_on_umask,
considering myself this is the direction I need to follow to patch
cdebootstrap. Based on this, I am thinking about modify the
cdebootstrap's debian/rules file adding the dh_fixperms and
--mode=go=rX,u+rw,a-s values in the next way:
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
%:
dh_fixperms $@ --parallel --with autoreconf
override_dh_auto_configure:
dh_auto_configure --builddir build-deb -- \
--with-dpkg-arch=$(DEB_HOST_ARCH) \
--with-frontend=standalone
dh_auto_configure --builddir build-static -- \
--with-dpkg-arch=$(DEB_HOST_ARCH) \
--enable-static \
--with-configdir=\$${datadir}/cdebootstrap-static \
--with-frontend=standalone
dh_auto_configure --builddir build-tar -- \
--with-dpkg-arch=$(DEB_HOST_ARCH) \
--enable-static \
--with-configdir=BINARY/cdebootstrap-support \
--with-frontend=standalone
override_dh_auto_build:
dh_auto_build --builddir build-deb
dh_auto_build --builddir build-static
dh_auto_build --builddir build-tar
override_dh_auto_install:
dh_auto_install --builddir build-deb --destdir debian/cdebootstrap
dh_auto_install --builddir build-static --destdir
debian/cdebootstrap-static
mv debian/cdebootstrap-static/usr/bin/cdebootstrap
debian/cdebootstrap-static/usr/bin/cdebootstrap-static
mv debian/cdebootstrap-static/usr/share/man/man1/cdebootstrap.1
debian/cdebootstrap-static/usr/share/man/man1/cdebootstrap-static.1
dh_auto_install --builddir build-tar --destdir debian/tmp
strip --remove-section=.comment --remove-section=.note
debian/tmp/usr/bin/cdebootstrap
tar -C --mode=go=rX,u+rw,a-s debian/tmp/usr/bin
--mtime=@$(SOURCE_DATE_EPOCH) -cf debian/tmp/
cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar .
mkdir -p debian/cdebootstrap-static/usr/lib/cdebootstrap
cp debian/tmp/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar
debian/cdebootstrap-static/usr/lib/cdebootstrap
( echo -n "misc:Built-Using="; dpkg-query -f='$${source:Package}
(= $${source:Version}), ' -W libc6-dev libdebian-installer4-dev
libdebconfclient0-dev libbz2-dev liblzma-dev zlib1g-dev; echo ) >>
debian/cdebootstrap-static.substvars
override_dh_auto_clean:
-rm -rf build-*
Am I right? Thanks and regards.
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/20171129/25e391d2/attachment.sig>
More information about the Reproducible-builds
mailing list