diff -Nru afnix-3.8.0/debian/changelog afnix-3.8.0/debian/changelog --- afnix-3.8.0/debian/changelog 2023-02-15 22:00:53.000000000 +0100 +++ afnix-3.8.0/debian/changelog 2023-09-16 15:57:23.000000000 +0200 @@ -1,3 +1,9 @@ +afnix (3.8.0-2) unstable; urgency=medium + + * Fix FTBFS with upgrade to gcc-13 (Closes: #1037570) + + -- Jonathan Bergh Sat, 16 Sep 2023 15:57:23 +0200 + afnix (3.8.0-1) unstable; urgency=medium * New upstream release. diff -Nru afnix-3.8.0/debian/patches/0015-Update-for-gcc-13.patch afnix-3.8.0/debian/patches/0015-Update-for-gcc-13.patch --- afnix-3.8.0/debian/patches/0015-Update-for-gcc-13.patch 1970-01-01 01:00:00.000000000 +0100 +++ afnix-3.8.0/debian/patches/0015-Update-for-gcc-13.patch 2023-09-16 15:57:23.000000000 +0200 @@ -0,0 +1,202 @@ +Index: afnix-3.8.0/cnf/bin/afnix-vcomp +=================================================================== +--- afnix-3.8.0.orig/cnf/bin/afnix-vcomp 2023-01-13 23:44:45.000000000 +0100 ++++ afnix-3.8.0/cnf/bin/afnix-vcomp 2023-09-16 16:13:13.948425006 +0200 +@@ -118,6 +118,7 @@ + 10*) ccvers=10 ;; + 11*) ccvers=11 ;; + 12*) ccvers=12 ;; ++ 13*) ccvers=13 ;; + esac + fi + # check for g++ version +@@ -132,6 +133,7 @@ + 10*) ccvers=10 ;; + 11*) ccvers=11 ;; + 12*) ccvers=12 ;; ++ 13*) ccvers=13 ;; + esac + fi + # check for clang version +Index: afnix-3.8.0/cnf/mak/afnix-gc13.mak +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ afnix-3.8.0/cnf/mak/afnix-gc13.mak 2023-09-16 16:35:05.660732036 +0200 +@@ -0,0 +1,177 @@ ++# ---------------------------------------------------------------------------- ++# - afnix-gcc13 - ++# - afnix compiler configuration - gcc configuration - ++# ---------------------------------------------------------------------------- ++# - This program is free software; you can redistribute it and/or modify - ++# - it provided that this copyright notice is kept intact. - ++# - - ++# - This program is distributed in the hope that it will be useful, but - ++# - without any warranty; without even the implied warranty of - ++# - merchantability or fitness for a particular purpose. In not event shall - ++# - the copyright holder be liable for any direct, indirect, incidental or - ++# - special damages arising in any way out of the use of this software. - ++# ---------------------------------------------------------------------------- ++# - author (c) 1999-2023 amaury darsch - ++# - author (c) 2011-2013 pino toscano hurd platform - ++# - author (c) 2016-2016 martin michlmayr GCC 05 - ++# - author (c) 2016-2017 amaury darsch GCC 06 - ++# - author (c) 2017-2017 nobuhiro iwamatsu GCC 07 - ++# - author (c) 2018-2018 nobuhiro iwamatsu GCC 08 - ++# - author (c) 2022-2022 nobuhiro iwamatsu GCC 12 - ++# - author (c) 2019-2023 amaury darsch GCC 09/10/11/12 - ++# ---------------------------------------------------------------------------- ++ ++# ---------------------------------------------------------------------------- ++# - compiler and linker section - ++# ---------------------------------------------------------------------------- ++ ++C = gcc ++CN = g++ ++CC = g++ ++LD = g++ ++LK = g++ ++AR = ar ++RANLIB = ranlib ++STDEVFLAGS = ++STDCCFLAGS = -Wall -Werror -fno-builtin -Wno-error=overloaded-virtual ++STACCFLAGS = ++DYNCCFLAGS = -fPIC ++PLTCCFLAGS = ++DEBUGFLAGS = -g ++OPTCCFLAGS = ++PFLCCFLAGS = -g -pg ++COVCCFLAGS = -g -fprofile-arcs -ftest-coverage ++CPPCCFLAGS = -nostdinc -nostdinc++ ++CXXCCFLAGS = ++STDDEFINES = ++DBGDEFINES = -DAFNIX_DEBUG ++OPTDEFINES = ++PFLDEFINES = -DAFNIX_DEBUG -DAFNIX_PROFILED ++STDINCLUDE = ++AFXCPPTYPE = GNU ++AFXCPPVERS = 12 ++ ++# ---------------------------------------------------------------------------- ++# - compiler dependant libraries - ++# ---------------------------------------------------------------------------- ++ ++# adjust for linux platform ++ifeq ($(PLATNAME),linux) ++PLTCCFLAGS = -MMD -pthread ++ifeq ($(OPENMP),yes) ++PLTCCFLAGS += -fopenmp ++endif ++endif ++ ++# adjust for freebsd platform ++ifeq ($(PLATNAME),freebsd) ++PLTDEFINES = -MMD -D_REENTRANT ++endif ++ ++# adjust for gnu/freebsd platform ++ifeq ($(PLATNAME),gnukbsd) ++PLTDEFINES = -MMD -D_REENTRANT ++ifeq ($(OPENMP),yes) ++PLTCCFLAGS += -fopenmp ++endif ++endif ++ ++# adjust for gnu platform ++ifeq ($(PLATNAME),gnu) ++PLTDEFINES = -MMD -D_REENTRANT ++ifeq ($(OPENMP),yes) ++PLTCCFLAGS += -fopenmp ++endif ++endif ++ ++# ---------------------------------------------------------------------------- ++# - platform dependant linking flags - ++# ---------------------------------------------------------------------------- ++ ++# adjust for linux platform ++ifeq ($(PLATNAME),linux) ++ARFLAGS = rc ++LDFLAGS += -shared -pthread ++ifeq ($(LKMODE),soname) ++LDFLAGS += -Wl,-soname,$(SOMAJ) ++endif ++ifeq ($(OPENMP),yes) ++LDFLAGS += -fopenmp ++endif ++AFXCPPLIBS = ++endif ++ ++# adjust for freebsd platform ++ifeq ($(PLATNAME),freebsd) ++ARFLAGS = rc ++LDFLAGS += -shared ++ifeq ($(LKMODE),soname) ++LDFLAGS += -Wl,-soname,$(SOMAJ) ++endif ++AFXCPPLIBS = ++endif ++ ++# adjust for gnu/freebsd platform ++ifeq ($(PLATNAME),gnukbsd) ++ARFLAGS = rc ++LDFLAGS += -shared ++ifeq ($(LKMODE),soname) ++LDFLAGS += -Wl,-soname,$(SOMAJ) ++endif ++AFXCPPLIBS = ++endif ++ ++# adjust for gnu platform ++ifeq ($(PLATNAME),gnu) ++ARFLAGS = rc ++LDFLAGS += -shared ++ifeq ($(LKMODE),soname) ++LDFLAGS += -Wl,-soname,$(SOMAJ) ++endif ++AFXCPPLIBS = ++endif ++ ++# ---------------------------------------------------------------------------- ++# - platform dependant final executable flags - ++# ---------------------------------------------------------------------------- ++ ++LKFLAGS = $(shell dpkg-buildflags --get LDFLAGS) ++ ++# adjust linker flags for linux ++ifeq ($(PLATNAME),linux) ++LKFLAGS += -pthread ++endif ++ ++# adjust linker flags for freebsd ++ifeq ($(PLATNAME),freebsd) ++LKFLAGS += -pthread ++endif ++ ++# ---------------------------------------------------------------------------- ++# - target dependant final executable flags - ++# ---------------------------------------------------------------------------- ++ ++# adjust extra flag for profiled code ++ifeq ($(CCMODE),profiled) ++LKFLAGS += -pg ++endif ++ ++# adjust platform flag for static or dynamic ++ifeq ($(LKTYPE),dynamic) ++PLTCCFLAGS += $(DYNCCFLAGS) ++endif ++ifeq ($(LKTYPE),static) ++PLTCCFLAGS += $(STACCFLAGS) ++endif ++ ++# ---------------------------------------------------------------------------- ++# - package dependant flags - ++# ---------------------------------------------------------------------------- ++ ++ifeq ($(PKGNAM),deb) ++OPTCCFLAGS += -g ++endif ++ ++ifeq ($(PKGNAM),rpm) ++OPTCCFLAGS += -g ++endif diff -Nru afnix-3.8.0/debian/patches/series afnix-3.8.0/debian/patches/series --- afnix-3.8.0/debian/patches/series 2023-02-15 22:00:53.000000000 +0100 +++ afnix-3.8.0/debian/patches/series 2023-09-16 15:57:23.000000000 +0200 @@ -11,3 +11,4 @@ 0014-Reproducible-build.patch Use-dpkg-buildflags-for-gcc-12.patch Add-header-to-afnix-legal-manpage.patch +0015-Update-for-gcc-13.patch