Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
262045c5
Commit
262045c5
authored
Aug 29, 2022
by
Holger Levsen
Browse files
reproducible Debian bootstrap jobs: use reproducible value for SOURCE_DATE_EPOCH
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
36fc2f22
Changes
2
Show whitespace changes
Inline
Side-by-side
bin/reproducible_debstrap.sh
View file @
262045c5
...
@@ -43,8 +43,16 @@ cleanup_unreproducible_file(){
...
@@ -43,8 +43,16 @@ cleanup_unreproducible_file(){
export
TOOL
=
"
$1
"
export
TOOL
=
"
$1
"
export
SUITE
=
"
$2
"
export
SUITE
=
"
$2
"
output_echo
"About to bootstrap
$SUITE
using
$TOOL
version
$(
dpkg-query
--showformat
=
'${Version}'
--show
$TOOL
)
."
output_echo
"About to bootstrap
$SUITE
using
$TOOL
version
$(
dpkg-query
--showformat
=
'${Version}'
--show
$TOOL
)
."
export
SOURCE_DATE_EPOCH
=
"
$(
date
+%s
)
"
output_echo
"SOURCE_DATE_EPOCH=
$SOURCE_DATE_EPOCH
"
if
[
"
$SUITE
"
!=
"unstable"
]
;
then
CODENAME
=
$SUITE
else
CODENAME
=
sid
fi
S_D_E_DATE
=
"
$(
grep
$CODENAME
/usr/share/distro-info/debian.csv |
awk
-F
','
'{print $4}'
)
"
export
SOURCE_DATE_EPOCH
=
"
$(
date
+%s
-d
$S_D_E_DATE
)
"
output_echo
"SOURCE_DATE_EPOCH=
$SOURCE_DATE_EPOCH
that is
$S_D_E_DATE
which is when
$SUITE
was created."
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
export
BUILDDIR
=
$(
mktemp
--tmpdir
=
/srv/workspace/
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
export
RESULTSDIR
=
$(
mktemp
--tmpdir
=
/srv/reproducible-results
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
# accessible in schroots, used to compare results
export
RESULTSDIR
=
$(
mktemp
--tmpdir
=
/srv/reproducible-results
-d
-t
${
TOOL
}
-
${
SUITE
}
.XXXXXXXX
)
# accessible in schroots, used to compare results
...
...
update_jdn.sh
View file @
262045c5
...
@@ -382,7 +382,8 @@ if [ -f /etc/debian_version ] ; then
...
@@ -382,7 +382,8 @@ if [ -f /etc/debian_version ] ; then
# needed for rebuilding Debian (using .buildinfo files)
# needed for rebuilding Debian (using .buildinfo files)
osuosl173-amd64
)
DEBS
=
"
$DEBS
libdpkg-perl libwww-mechanize-perl sbuild"
osuosl173-amd64
)
DEBS
=
"
$DEBS
libdpkg-perl libwww-mechanize-perl sbuild"
DEBS
=
"
$DEBS
live-build"
# needed for live-build
DEBS
=
"
$DEBS
live-build"
# needed for live-build
DEBS
=
"
$DEBS
cdebootstrap"
;;
# needed for testing just that
DEBS
=
"
$DEBS
cdebootstrap"
# needed for testing just that
DEBS
=
"
$DEBS
distro-info"
;;
# needed for setting S_D_E to a 'good' value
# needed for opensuse openbuildservice
# needed for opensuse openbuildservice
osuosl174-amd64
)
DEBS
=
"
$DEBS
osc obs-build qemu-kvm libarchive-tools libjson-perl libxml-simple-perl"
;;
osuosl174-amd64
)
DEBS
=
"
$DEBS
osc obs-build qemu-kvm libarchive-tools libjson-perl libxml-simple-perl"
;;
*
)
;;
*
)
;;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment