From fef02237f9f7aef649db16ba4162355f9a4deb2f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Jun 2017 22:43:07 +0200 Subject: reproducible Debian: WIP for s#testing#stretch#g - see TODO4stretch_rename.txt for status Signed-off-by: Holger Levsen --- bin/reproducible_html_repository_comparison.sh | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'bin/reproducible_html_repository_comparison.sh') diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh index 1ecc71e8..0c3e6b27 100755 --- a/bin/reproducible_html_repository_comparison.sh +++ b/bin/reproducible_html_repository_comparison.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2015-2016 Holger Levsen +# Copyright 2015-2017 Holger Levsen # released under the GPLv=2 DEBUG=false @@ -58,7 +58,7 @@ for PKG in $SOURCEPKGS ; do CRUFT="" BET="" OBSOLETE_IN_SID=false - OBSOLETE_IN_TESTING=false + OBSOLETE_IN_STRETCH=false OBSOLETE_IN_EXP=false # # gather versions of a package @@ -77,23 +77,23 @@ for PKG in $SOURCEPKGS ; do CRUFT="$CRUFT ${VERSION}" fi done - TESTING=$(rmadison -s testing $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) + STRETCH=$(rmadison -s stretch $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) EXPERIMENTAL=$(rmadison -s experimental $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo) # # format output # CSID="" - CTEST="" + CSTRETCH="" CEXP="" - if [ ! -z "$TESTING" ] ; then - for i in $TESTING ; do + if [ ! -z "$STRETCH" ] ; then + for i in $STRETCH ; do if dpkg --compare-versions "$i" gt "$BET" ; then - CTEST="$CTEST$i
" - OBSOLETE_IN_TESTING=true + CSTRETCH="$CSTRETCH$i
" + OBSOLETE_IN_STRETCH=true OBSOLETE_IN_SID=true OBSOLETE_IN_EXP=true else - CTEST="$CTEST$i
" + CSTRETCH="$CSTRETCH$i
" fi done fi @@ -179,8 +179,8 @@ for PKG in $SOURCEPKGS ; do else write_row "$GIT" MERGEINFO="" - if $OBSOLETE_IN_TESTING ; then - MERGEINFO=" and available in testing and unstable" + if $OBSOLETE_IN_STRETCH ; then + MERGEINFO=" and available in stretch and unstable" elif $OBSOLETE_IN_SID ; then MERGEINFO=" and available in unstable" elif $OBSOLETE_IN_EXP ; then @@ -191,14 +191,14 @@ for PKG in $SOURCEPKGS ; do else write_row "$GIT" if [ "$PKG" != "strip-nondeterminism" ] && [ "$PKG" != "diffoscope" ] && [ "$PKG" != "debbindiff" ] && [ "$PKG" != "disorderfs" ] ; then - if $OBSOLETE_IN_TESTING && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then + if $OBSOLETE_IN_STRETCH && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then write_row "
(unused?" write_row "
Then the branch should probably renamed.)" elif $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then - write_row "
(only used in testing, fixed in sid," + write_row "
(only used in stretch, fixed in sid," write_row "
branch probably either should be renamed to merged/reproducible_builds or a new upload to our repo is needed?)" elif $OBSOLETE_IN_EXP ; then - write_row "
(only used in testing and unstable, fixed in experimental)" + write_row "
(only used in stretch and unstable, fixed in experimental)" fi elif [ "$PKG" = "disorderfs" ] ; then write_row "
(only used to modify the build environment in the 2nd build)" @@ -221,7 +221,7 @@ for PKG in $SOURCEPKGS ; do write_row " bugs" write_row " $CRUFT" write_row " $BET $CBINARIES" - write_row " $CTEST" + write_row " $CSTRETCH" write_row " $CSID" write_row " $CEXP" write_row "" @@ -229,14 +229,14 @@ for PKG in $SOURCEPKGS ; do echo done if [ -s $TABLE_TODO ] ; then - write_page "

" + write_page "

packagegit repoPTS linkusertagged bug(s)old versions in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'testing'version in 'unstable'version in 'experimental'
" cat $TABLE_TODO >> $PAGE write_page "
packagegit repoPTS linkusertagged bug(s)old versions in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'stretch'version in 'unstable'version in 'experimental'

" else write_page "

Congratulations! There are no modified packages in our repository compared to unstable. (Yes, that means our repository is obsolete now.)" fi if [ -s $TABLE_DONE ] ; then - write_page "

" + write_page "

obsoleted package,
version in sid higher than in our repo
git repoPTS linkusertagged bug(s)old version(s) in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'testing'version in 'unstable'version in 'experimental'
" cat $TABLE_DONE >> $PAGE write_page "
obsoleted package,
version in sid higher than in our repo
git repoPTS linkusertagged bug(s)old version(s) in our repo
(needed for reproducing old builds)
version in our repo
(available binary packages per architecture)
version in 'stretch'version in 'unstable'version in 'experimental'

" fi -- cgit v1.2.3-54-g00ecf