summaryrefslogtreecommitdiff
diff options
-rwxr-xr-xdebian/alltools.sh6
-rw-r--r--debian/changelog6
-rw-r--r--debian/control2
3 files changed, 11 insertions, 3 deletions
diff --git a/debian/alltools.sh b/debian/alltools.sh
index f1661bd..8e7b68a 100755
--- a/debian/alltools.sh
+++ b/debian/alltools.sh
@@ -1,10 +1,12 @@
#!/bin/sh
-suffixes="-14"
+packages=$(apt-get indextargets --format '$(FILENAME)' 'Identifier: packages' 'Component: main')
+suffixes=$(grep-dctrl -nsSource -FSource -e '^gcc-[0-9]+$' $packages | sort -u | cut -d- -f2)
+
tools="gcc cpp g++"
for tool in $tools; do
for suffix in $suffixes; do
- echo -n "$DEB_HOST_GNU_TYPE-$tool$suffix "
+ echo -n "$DEB_HOST_GNU_TYPE-$tool-$suffix "
done
done
diff --git a/debian/changelog b/debian/changelog
index 68f328f..9da62f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+clang-as-default (2~ppa1) plucky; urgency=medium
+
+ * Compute the list of gccs to override (those in main) automatically.
+
+ -- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Fri, 29 Nov 2024 09:17:07 +1300
+
clang-as-default (1~ppa4) plucky; urgency=medium
* Initial release.
diff --git a/debian/control b/debian/control
index a225d6c..82977b6 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: clang-as-default
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Section: misc
Priority: optional
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), dctrl-tools
Standards-Version: 4.6.1
Rules-Requires-Root: no