Bug#1133484: gcc-avr: ftbfs with GCC-16

Bastian Germann <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <anb3DYEwlyCsRr_8__20209.6150651172$1786181476$gmane$org@duagon-BXN3S64.localdomain>
Control: tags -1 patch

Building with gcc-16-source works. Patch attached.
gcc-avr_16.diff (text/x-diff, 1.2 KB)
diff --git a/debian/control b/debian/control
index 7cfffc05c..fa82aaab8 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Build-Depends:
  gawk,
  bzip2,
  binutils-avr,
- gcc-14-source (>=14.2.0),
+ gcc-16-source,
  bison,
  flex,
  gettext,
diff --git a/debian/rules b/debian/rules
index f2b0aea3d..53f4c4101 100755
--- a/debian/rules
+++ b/debian/rules
@@ -49,10 +49,9 @@ BUILD_TREE=objdir
 override_dh_auto_configure: configure-stamp
 
 unpack-stamp:
-	tar xf /usr/src/gcc-14/gcc-*.tar.xz
+	tar xf /usr/src/gcc-16/gcc-*.tar.xz
 	mv gcc* src
 	patch -p1 src/gcc/Makefile.in debian/disable_docs.patch
-	patch -d src -p1 < debian/revert-codesize.patch
 	mkdir build
 	touch unpack-stamp
 
@@ -103,7 +102,7 @@ override_dh_auto_install:
 	#rm debian/$(PACKAGE)/usr/share/man/man1/avr-g++.1
 	#ln -s avr-gcc.1.gz debian/$(PACKAGE)/usr/share/man/man1/avr-g++.1.gz
 	ln -s avr-g++.1.gz debian/$(PACKAGE)/usr/share/man/man1/avr-c++.1.gz
-	ln -s avr-gcc.1.gz debian/$(PACKAGE)/usr/share/man/man1/avr-gcc-14.2.0.gz
+	ln -s avr-gcc.1.gz debian/$(PACKAGE)/usr/share/man/man1/avr-gcc-16.gz
 	install -m644 debian/avr-gccbug.1 debian/$(PACKAGE)/usr/share/man/man1/avr-gccbug.1
 	gzip -9 debian/$(PACKAGE)/usr/share/man/man1/avr-gccbug.1
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.