Package: gramophone2
Version: 0.8.13a-3.1
Followup-For: Bug #966862
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu impish ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

GCC >= v10 uses -fno-common by default, which leads to "multiple
definitions of ..." errors during the build.

By defining the -fcommon flag via DEB_CFLAGS_MAINT_APPEND (before the
cdbs includes) the build can be fixed. The attached patch does exactly
this.

Thanks for considering the patch.

  Lukas


-- System Information:
Debian Release: bullseye/sid
  APT prefers hirsute-updates
  APT policy: (500, 'hirsute-updates'), (500, 'hirsute-security'), (500, 
'hirsute')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.11.0-16-generic (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE:en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru gramophone2-0.8.13a/debian/rules gramophone2-0.8.13a/debian/rules
--- gramophone2-0.8.13a/debian/rules    2020-03-28 01:24:28.000000000 +0100
+++ gramophone2-0.8.13a/debian/rules    2021-04-23 16:49:39.000000000 +0200
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+export DEB_CFLAGS_MAINT_APPEND = -fcommon
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/makefile.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk

Reply via email to