The environment LDFLAGS is leaked to final pkg-config file due to broken m4/ax_create_pkgconfig_info.m4

146 weergaven
Naar het eerste ongelezen bericht

Samuli Suominen

ongelezen,
20 nov 2011, 00:35:1620-11-2011
aan isl Development
To reproduce:

# export LDFLAGS="-Wl,-O1 -Wl,--as-needed"
# ./configure
# make
# make install

Now the "-Wl,-O1 -Wl,--as-needed" is in the Libs: line of the pkg-
config file (isl.pc)

This should not happen

Libs and Libs.private lines are really only for libs and libpaths, as
in -l and -L flags

The responsible .m4 macro should be patch to get rid of this LDFLAGS
reference to avoid polluting the system

Samuli Suominen

ongelezen,
20 nov 2011, 00:37:3220-11-2011
aan isl Development
Also reported here, http://bugs.gentoo.org/382737

On Nov 20, 7:35 am, Samuli Suominen <ssuominen.priv...@gmail.com>
wrote:

Sven Verdoolaege

ongelezen,
20 nov 2011, 09:21:5420-11-2011
aan Samuli Suominen, isl Development
On Sat, Nov 19, 2011 at 09:35:16PM -0800, Samuli Suominen wrote:
> The responsible .m4 macro should be patch to get rid of this LDFLAGS
> reference to avoid polluting the system

Do you have such a patch?

skimo

Samuli Suominen

ongelezen,
12 dec 2011, 15:14:0712-12-2011
aan isl Development

--- m4/ax_create_pkgconfig_info.m4
+++ m4/ax_create_pkgconfig_info.m4
@@ -214,7 +214,7 @@
Description: @PACKAGE_DESCRIPTION@
Version: @PACKAGE_VERSION@
Requires: @PACKAGE_REQUIRES@
-Libs: -L\${libdir} @LDFLAGS@ @LIBS@
+Libs: -L\${libdir} @LIBS@
Cflags: -I\${includedir} @CPPFLAGS@
AXEOF
fi # DONE generate $pkgconfig_generate.in

Sven Verdoolaege

ongelezen,
12 dec 2011, 16:36:5812-12-2011
aan Samuli Suominen, isl Development
On Mon, Dec 12, 2011 at 12:14:07PM -0800, Samuli Suominen wrote:
> --- m4/ax_create_pkgconfig_info.m4
> +++ m4/ax_create_pkgconfig_info.m4

I'd rather not touch this file, unless you can get it changed
upstream (http://savannah.gnu.org/projects/autoconf-archive/).

Btw, please read doc/SubmittingPatches for guidelines on how
to submit patches.

skimo

dirtye...@gmail.com

ongelezen,
6 jan 2013, 19:12:2206-01-2013
aan isl-dev...@googlegroups.com, Samuli Suominen, sk...@kotnet.org
On Monday, 12 December 2011 15:36:58 UTC-6, skimo wrote:
On Mon, Dec 12, 2011 at 12:14:07PM -0800, Samuli Suominen wrote:
> --- m4/ax_create_pkgconfig_info.m4
> +++ m4/ax_create_pkgconfig_info.m4

I'd rather not touch this file, unless you can get it changed
upstream (http://savannah.gnu.org/projects/autoconf-archive/).

Sven Verdoolaege

ongelezen,
8 jan 2013, 12:24:5808-01-2013
aan dirtye...@gmail.com, isl-dev...@googlegroups.com, Samuli Suominen
Would you care to send a proper patch
to update ax_create_pkgconfig_info.m4 in isl?

skimo

dirtye...@gmail.com

ongelezen,
15 jan 2013, 20:41:2515-01-2013
aan isl-dev...@googlegroups.com, Samuli Suominen, sk...@kotnet.org
On Tuesday, 8 January 2013 11:24:58 UTC-6, skimo wrote:

Would you care to send a proper patch
to update ax_create_pkgconfig_info.m4 in isl?

Attached patch syncs the file with upstream.  Note the license changed to GPL-3.
isl-0.11.1-ax_create_pkgconfig_info.patch

Sven Verdoolaege

ongelezen,
16 jan 2013, 14:49:5116-01-2013
aan dirtye...@gmail.com, isl-dev...@googlegroups.com, Samuli Suominen
> https://groups.google.com/forum/?fromgroups=#!topic/isl-development/N62HZVflDyw
>
> 2013-01-13 Ryan Hill <dirt...@gentoo.org>
>
> * m4/ax_create_pkgconfig_info.m4: Sync with upstream.

I'm sorry, but especially for a small patch like this,
I'm going to have to insist on a _proper_ patch
(according to the guidelines in doc/SubmittingPatches).

In particular, the commit message does not have a one-line summary,
there is no explanation of why this change is useful and there
is no sign-off.

skimo

ssuomine...@gmail.com

ongelezen,
6 apr 2013, 02:56:1506-04-2013
aan isl-dev...@googlegroups.com, dirtye...@gmail.com, Samuli Suominen, sk...@kotnet.org
So, for 2 years ISL has been adding the build host's LDFLAGS to the resulting .pc file which ends up in all generated packages causing all builds fail... The file you are using is fixed in upstream... And now you have to read a handbook to get
it synced?

That's insane. I don't know about others but I'll rather keep patching this locally than go through reading handbook for this.
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten