Bug#886688: packages.debian.org: Add ia64 from debian-ports

James Clarke <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <20180108224002.GA40247__2385.34463937885$1515451425$gmane$org@Jamess-MacBook.local>
Package: www.debian.org
Tags: patch
User: [email protected]
Usertag: packages
User: [email protected]
Usertag: ia64
X-Debbugs-Cc: [email protected]

Hi,
Within debian-ports we have readded ia64 for sid/experimental and have
started bootstrapping, with automated builds hopefully starting within a
few days once we have uploaded the few remaining packages for the base
chroot. The attached untested patch should hopefully make
packages.debian.org aware of its existence; the extra code is because
ia64 still exists on ftp-master for wheezy.

Thanks,
James
0001-Add-ia64-from-debian-ports.patch (text/plain, 1.9 KB)
>From e3e077a71660ed8029d525109999361485ade7cf Mon Sep 17 00:00:00 2001
From: James Clarke <[email protected]>
Date: Mon, 8 Jan 2018 15:21:33 +0000
Subject: [PATCH] Add ia64 from debian-ports

---
 bin/parse-contents | 8 +++++---
 config.sh.sed.in   | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/parse-contents b/bin/parse-contents
index f228e0d..19b405d 100755
--- a/bin/parse-contents
+++ b/bin/parse-contents
@@ -51,9 +51,11 @@ my @sections = @SECTIONS;
 # Add empty section, need to search Contents directly at dist root, for debports compat
 push(@sections, "");
 
-my %debports_hash;
+my %debports_arch_hash;
 # copy from config.sh ${arch_debports}
-@debports_hash{qw( alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 )} = ();
+@debports_arch_hash{qw( alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32 )} = ();
+my %debports_suite_hash;
+@debports_suite_hash{qw( sid unstable experimental rc-buggy )} = ();
 
 $DBDIR .= "/contents";
 mkdirp( $DBDIR );
@@ -173,7 +175,7 @@ for my $suite (@suites) {
 
 	    activate($filelist_db);
 	    #FIXME: hardcoded archs. (debports has no contrib/non-free)
-	    if (not exists $debports_hash{$arch}) {
+	    if (not exists $debports_arch_hash{$arch} or not exists $debports_suite_hash{$suite}) {
 		system("ln", "-sf", basename($filelist_db),
 		       "$DBDIR/filelists_${suite}_all.db") == 0
 			   or die "Oops";
diff --git a/config.sh.sed.in b/config.sh.sed.in
index c88bbb6..45b4f4f 100644
--- a/config.sh.sed.in
+++ b/config.sh.sed.in
@@ -67,7 +67,7 @@ ext_stretch=gz
 # Refresh this architecture list using this command:
 # wget -qO - http://ftp.ports.debian.org/debian-ports/dists/{sid,experimental}/Release | sed -n 's/Architectures: //p' | tr ' ' '\n' | sort -u
 # Please remember to also update the architecture list in bin/parse-contents
-arch_debports="alpha hppa m68k powerpcspe ppc64 sh4 sparc64 x32"
+arch_debports="alpha hppa ia64 m68k powerpcspe ppc64 sh4 sparc64 x32"
 
 # Miscellaneous
 #
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.