cdparanoia does not build with distro build flags
Bug #2073149 reported by
Nick Rosbrook
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cdparanoia (Debian) |
New
|
Unknown
|
|||
cdparanoia (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As seen in this build log[1], the distro build flags are not used. This should be fixed so that e.g. -fno-omit-
Changed in cdparanoia (Ubuntu): | |
status: | New → Fix Committed |
Changed in cdparanoia (Debian): | |
status: | Unknown → New |
To post a comment you must log in.
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>>' frame-pointer -mno-omit- leaf-frame- pointer -ffile- prefix- map=/<< PKGBUILDDIR> >=. -flto=auto -ffat-lto-objects -fstack- protector- strong -fstack- clash-protectio n -Wformat -Werror= format- security -fcf-protection -fdebug- prefix- map=/<< PKGBUILDDIR> >=/usr/ src/cdparanoia- 3.10.2+ debian- 14ubuntu1 -fPIC -g -c main.c format- security] stderr, buffer) ; format- security] logfile, buffer+ 1); result’ [-Wunused-result] result’ [-Wunused-result]
gcc -O2 -fsigned-char -g -O2 -fno-omit-
main.c: In function ‘callback’:
main.c:597:24: error: format not a string literal and no format arguments [-Werror=
597 | fprintf(
| ^~~~~~
main.c:600:27: error: format not a string literal and no format arguments [-Werror=
600 | fprintf(
| ^~~~~~
main.c: In function ‘main’:
main.c:1207:7: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_
1207 | seteuid(getuid());
| ^~~~~~~~~~~~~~~~~
main.c:1208:7: warning: ignoring return value of ‘setegid’ declared with attribute ‘warn_unused_
1208 | setegid(getgid());
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
These need to be fixed as well.