This happens because in debian/rules, there is:
export CFLAGS += ...
instead of
export DEB_CFLAGS_MAINT_APPEND = ...
After making that change, there is FTBFS due to warnings as errors:
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gcc -O2 -fsigned-char -g -O2 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/cdparanoia-3.10.2+debian-14ubuntu1
-fPIC -g -c main.c
main.c: In function ‘callback’:
main.c:597:24: error: format not a string literal and no format arguments
[-Werror=format-security]
597 | fprintf(stderr,buffer);
| ^~~~~~
main.c:600:27: error: format not a string literal and no format arguments
[-Werror=format-security]
600 | fprintf(logfile,buffer+1);
| ^~~~~~
main.c: In function ‘main’:
main.c:1207:7: warning: ignoring return value of ‘seteuid’ declared with
attribute ‘warn_unused_result’ [-Wunused-result]
1207 | seteuid(getuid());
| ^~~~~~~~~~~~~~~~~
main.c:1208:7: warning: ignoring return value of ‘setegid’ declared with
attribute ‘warn_unused_result’ [-Wunused-result]
1208 | setegid(getgid());
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
These need to be fixed as well.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2073149
Title:
cdparanoia does not build with distro build flags
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cdparanoia/+bug/2073149/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs