tag 687208 wontfix thanks Hello Julian,
Julian Taylor [2012-09-10 22:34 +0200]: > Package: postgresql-9.1 > Version: 9.1.5-2 > Severity: serious > Justification: breaks packages in wheezy > > pg_config --cflags in in 9.1.5-2 includes the -pie flag. Yes, quite deliberately -- PIE was accidentally dropped in 9.1.3-2, but now re-enabled. > This flag causes issues in packages using pg_config to build libraries > and due to performance issues it may also be unwanted in non-library builds. Err, that's wrong I'm afraid. pg_config is not pkg-config, you are not supposed to use pg_config --cflags for building libraries. It's ok to use it to build server-side extensions. For a library linking to libpq, I recommend to use "pg_config --includedir" for CFLAGS. For formality's sake you can use "pg_config --libdir" for LDFLAGS, but as it's just a standard library it's in /usr/lib that won't actually do anything. > pg_config --cflags > -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Werror=format-security -fPIC -pie -Wall -Wmissing-prototypes > -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels > -Wformat-security -fno-strict-aliasing -fwrapv > -fexcess-precision=standard -g > > the version in wheezy does not include the flag. "man pg_config" says --cflags Print the value of the CFLAGS variable that was used for building PostgreSQL. This shows C compiler switches. As psql is again built with -pie, as it was in the past, it ought to be there. The version in wheezy is accidentally not built with hardening (including PIE), which is a bug which needs to be fixed in Wheezy. Can we fix uwsgi to drop "pg_config --cflags"? This is really not what you want for a third-party build system, it's just information about postgresql itself. Thanks! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: Digital signature