summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-February/002561.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-February/002561.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-February/002561.html289
1 files changed, 289 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-February/002561.html b/zarb-ml/mageia-sysadm/2011-February/002561.html
new file mode 100644
index 000000000..641fd8fb6
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2011-February/002561.html
@@ -0,0 +1,289 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [425] merge under/overlinking scripts from rpm-manbo-setup
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B425%5D%20merge%20under/overlinking%20scripts%20from%0A%09rpm-manbo-setup&In-Reply-To=%3C20110205193624.19EF440148%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="002560.html">
+ <LINK REL="Next" HREF="002562.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [425] merge under/overlinking scripts from rpm-manbo-setup</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B425%5D%20merge%20under/overlinking%20scripts%20from%0A%09rpm-manbo-setup&In-Reply-To=%3C20110205193624.19EF440148%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [425] merge under/overlinking scripts from rpm-manbo-setup">root at mageia.org
+ </A><BR>
+ <I>Sat Feb 5 20:36:24 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="002560.html">[Mageia-sysadm] [424] fix NEWS
+</A></li>
+ <LI>Next message: <A HREF="002562.html">[Mageia-sysadm] [426] merge rpm -b deprecated warning scripts from rpm-manbo-setup
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2561">[ date ]</a>
+ <a href="thread.html#2561">[ thread ]</a>
+ <a href="subject.html#2561">[ subject ]</a>
+ <a href="author.html#2561">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 425
+Author: tmb
+Date: 2011-02-05 20:36:23 +0100 (Sat, 05 Feb 2011)
+Log Message:
+-----------
+merge under/overlinking scripts from rpm-manbo-setup
+
+Modified Paths:
+--------------
+ rpm/rpm-setup/trunk/Makefile.am
+ rpm/rpm-setup/trunk/NEWS
+
+Added Paths:
+-----------
+ rpm/rpm-setup/trunk/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
+ rpm/rpm-setup/trunk/fix-dlsearch-path-in-libtool-for-multilib
+ rpm/rpm-setup/trunk/fix-libtool-from-moving-options-after-libs
+ rpm/rpm-setup/trunk/fix-libtool-ltmain-from-overlinking
+ rpm/rpm-setup/trunk/force-as-needed-for-shared-lib-in-libtool
+
+Modified: rpm/rpm-setup/trunk/Makefile.am
+===================================================================
+--- rpm/rpm-setup/trunk/Makefile.am 2011-02-05 18:59:31 UTC (rev 424)
++++ rpm/rpm-setup/trunk/Makefile.am 2011-02-05 19:36:23 UTC (rev 425)
+@@ -22,15 +22,20 @@
+
+ pkg_scripts = \
+ brp-compress \
+- brp-strip \
+- brp-strip-comment-note \
++ brp-strip \
++ brp-strip-comment-note \
+ brp-strip-static-archive \
+- filter.sh \
+- find-lang.pl \
+- find-debuginfo.sh \
+- gem_helper.rb \
+- git-repository--after-tarball \
+- git-repository--apply-patch \
++ drop-ld-no-undefined-for-shared-lib-modules-in-libtool \
++ filter.sh \
++ find-lang.pl \
++ find-debuginfo.sh \
++ fix-dlsearch-path-in-libtool-for-multilib \
++ fix-libtool-from-moving-options-after-libs \
++ fix-libtool-ltmain-from-overlinking \
++ force-as-needed-for-shared-lib-in-libtool \
++ gem_helper.rb \
++ git-repository--after-tarball \
++ git-repository--apply-patch \
+ http.req \
+ magic.prov \
+ magic.req \
+
+Modified: rpm/rpm-setup/trunk/NEWS
+===================================================================
+--- rpm/rpm-setup/trunk/NEWS 2011-02-05 18:59:31 UTC (rev 424)
++++ rpm/rpm-setup/trunk/NEWS 2011-02-05 19:36:23 UTC (rev 425)
+@@ -2,6 +2,7 @@
+ - merge rpmrc from rpm-manbo-setup
+ - merge manbo.macros from rpm-manbo-setup
+ - merge manbo-build.macros from rpm-manbo-setup
++- merge under/overlinking scripts from rpm-manbo-setup
+
+ Version 1.115 - 9 January 2011, by Oliver Blin
+ - initial Mageia import
+
+Added: rpm/rpm-setup/trunk/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
+===================================================================
+--- rpm/rpm-setup/trunk/drop-ld-no-undefined-for-shared-lib-modules-in-libtool (rev 0)
++++ rpm/rpm-setup/trunk/drop-ld-no-undefined-for-shared-lib-modules-in-libtool 2011-02-05 19:36:23 UTC (rev 425)
+@@ -0,0 +1,47 @@
++#!/usr/bin/perl
++
++# applies patch:
++# --- ltmain.sh.pix 2008-05-23 13:51:52.000000000 +0200
++# +++ ltmain.sh 2008-05-23 13:52:16.000000000 +0200
++# @@ -1948,6 +1948,11 @@
++# fi
++# done # argument parsing loop
++#
++# + if test &quot;$module&quot; = yes ; then
++# + # [Manbo-labs] dropping ld option &quot;--no-undefined&quot; which is wrong for plugins
++# + linker_flags=`echo &quot;X $linker_flags&quot; | $Xsed -e 's/ --no-undefined//'`
++# + compiler_flags=`echo &quot;X $compiler_flags&quot; | $Xsed -e 's/ -Wl,--no-undefined//'`
++# + fi
++# +
++# if test -n &quot;$prev&quot;; then
++# $echo &quot;$modename: the \`$prevarg' option requires an argument&quot; 1&gt;&amp;2
++# $echo &quot;$help&quot; 1&gt;&amp;2
++
++# a similar patch has been applied in ltmain.sh in libtool package
++# but this works even if autoreconf is not called
++
++foreach my $ltmain ('ltmain.sh', glob(&quot;*/ltmain.sh&quot;)) {
++ open(my $F, '&lt;', $ltmain) or next;
++
++ print &quot;Modifying $ltmain underlinking for plugins (cf <A HREF="http://wiki.mandriva.com/en/Underlinking">http://wiki.mandriva.com/en/Underlinking</A>)\n&quot;;
++
++ open(my $G, '&gt;', &quot;$ltmain.new&quot;) or exit;
++ while (&lt;$F&gt;) {
++ print $G $_;
++
++ if ($_ eq &quot; done # argument parsing loop\n&quot;) {
++ $modified = 1;
++ print $G &lt;&lt;'EOF';
++
++ if test &quot;$module&quot; = yes ; then
++ linker_flags=`echo &quot;X $linker_flags&quot; | $Xsed -e 's/ --no-undefined//'`
++ compiler_flags=`echo &quot;X $compiler_flags&quot; | $Xsed -e 's/ -Wl,--no-undefined//'`
++ fi
++EOF
++ }
++ }
++
++ rename $ltmain, &quot;$ltmain.drop&quot;
++ and rename &quot;$ltmain.new&quot;, $ltmain or print STDERR &quot;modifying $ltmain failed: $!\n&quot;;
++}
++
+
+
+Property changes on: rpm/rpm-setup/trunk/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
+___________________________________________________________________
+Added: svn:executable
+ + *
+
+Added: rpm/rpm-setup/trunk/fix-dlsearch-path-in-libtool-for-multilib
+===================================================================
+--- rpm/rpm-setup/trunk/fix-dlsearch-path-in-libtool-for-multilib (rev 0)
++++ rpm/rpm-setup/trunk/fix-dlsearch-path-in-libtool-for-multilib 2011-02-05 19:36:23 UTC (rev 425)
+@@ -0,0 +1,23 @@
++#!/bin/sh
++
++# If configure was generated with libtool that did not have support for
++# run-time library search path (sys_lib_dlsearch_path_spec) autodetection,
++# we replace the hardcoded search path with &quot;/usr/%{_lib} /%{_lib}&quot;.
++
++# Our libtool has autodetection in form of lib64.patch, though it does not
++# handle cases (e.g. Debian) where /usr/lib is valid for multilib archs.
++
++# Without the correct search path defined, binaries would wrongly get rpath even
++# when the libraries are located in a standard directory.
++
++CONFIGURE_TOP=&quot;${1:-.}&quot;
++LIB=&quot;${2:-lib}&quot;
++if [ -e $CONFIGURE_TOP/configure ] &amp;&amp; grep -q 'sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;' $CONFIGURE_TOP/configure; then
++ echo &quot;Forcing run-time library search path definition in configure to prevent libtool from adding rpath for standard directories (configure was generated with libtool without support for autodetection)&quot;
++
++ sed -i \
++ -e &quot;s,^[ \t]*# Append ld.so.conf contents to the search path, sys_lib_dlsearch_path_spec=\&quot;/usr/${LIB} /${LIB}\&quot;\n\0,&quot; \
++ -e 's,sys_lib_dlsearch_path_spec=&quot;/lib /usr/lib $lt_ld_extra&quot;,sys_lib_dlsearch_path_spec=&quot;$sys_lib_dlsearch_path_spec $lt_ld_extra&quot;,' \
++ $CONFIGURE_TOP/configure
++fi
++
+
+Added: rpm/rpm-setup/trunk/fix-libtool-from-moving-options-after-libs
+===================================================================
+--- rpm/rpm-setup/trunk/fix-libtool-from-moving-options-after-libs (rev 0)
++++ rpm/rpm-setup/trunk/fix-libtool-from-moving-options-after-libs 2011-02-05 19:36:23 UTC (rev 425)
+@@ -0,0 +1,15 @@
++#!/bin/sh
++
++CONFIGURE_TOP=&quot;${1:-.}&quot;
++if [ -e $CONFIGURE_TOP/configure ] &amp;&amp; grep -q -F '$deplibs $compiler_flags' $CONFIGURE_TOP/configure; then
++ echo &quot;Fixing libtool inside configure to pass -Wl,xxx options before libraries&quot;
++
++ # a similar patch has been applied in libtool in libtool package (#47273)
++ # but this works even if autoreconf is not called
++
++ sed -i \
++ -e 's,$deplibs $compiler_flags,$compiler_flags $deplibs,' \
++ -e 's,$deplibs $postdep_objects $compiler_flags,$compiler_flags $deplibs $postdep_objects,' \
++ $CONFIGURE_TOP/configure
++fi
++
+
+
+Property changes on: rpm/rpm-setup/trunk/fix-libtool-from-moving-options-after-libs
+___________________________________________________________________
+Added: svn:executable
+ + *
+
+Added: rpm/rpm-setup/trunk/fix-libtool-ltmain-from-overlinking
+===================================================================
+--- rpm/rpm-setup/trunk/fix-libtool-ltmain-from-overlinking (rev 0)
++++ rpm/rpm-setup/trunk/fix-libtool-ltmain-from-overlinking 2011-02-05 19:36:23 UTC (rev 425)
+@@ -0,0 +1,14 @@
++#!/bin/sh
++
++if [ -e ltmain.sh ]; then
++ echo &quot;Fixing libtool's ltmain.sh to prevent overlinking (cf <A HREF="http://wiki.mandriva.com/en/Overlinking">http://wiki.mandriva.com/en/Overlinking</A>)&quot;
++
++ # a similar patch has been applied in ltmain.sh in libtool package
++ # but this works even if autoreconf is not called
++
++ mv ltmain.sh ltmain.sh.orig
++ echo link_all_deplibs=no &gt; ltmain.sh
++ cat ltmain.sh.orig &gt;&gt; ltmain.sh
++
++ sed -i -s 's/link) libs=&quot;$deplibs %DEPLIBS% $dependency_libs&quot;/link) libs=&quot;$deplibs %DEPLIBS%&quot;/' ltmain.sh
++fi
+
+Added: rpm/rpm-setup/trunk/force-as-needed-for-shared-lib-in-libtool
+===================================================================
+--- rpm/rpm-setup/trunk/force-as-needed-for-shared-lib-in-libtool (rev 0)
++++ rpm/rpm-setup/trunk/force-as-needed-for-shared-lib-in-libtool 2011-02-05 19:36:23 UTC (rev 425)
+@@ -0,0 +1,14 @@
++#!/bin/sh
++
++# replaces
++# tmp_sharedflag='-shared' ;;
++# with
++# tmp_sharedflag='-shared -Wl,--as-needed' ;;
++#
++# since passing -Wl,--as-needed is not enough because libtool moves it
++# after *.o and libs
++
++if [ -e configure ]; then
++ echo &quot;Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf <A HREF="http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html">http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html</A>)&quot;
++ sed -i &quot;s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/&quot; configure
++fi
+
+
+Property changes on: rpm/rpm-setup/trunk/force-as-needed-for-shared-lib-in-libtool
+___________________________________________________________________
+Added: svn:executable
+ + *
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20110205/19174269/attachment.html&gt;
+</PRE>
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="002560.html">[Mageia-sysadm] [424] fix NEWS
+</A></li>
+ <LI>Next message: <A HREF="002562.html">[Mageia-sysadm] [426] merge rpm -b deprecated warning scripts from rpm-manbo-setup
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2561">[ date ]</a>
+ <a href="thread.html#2561">[ thread ]</a>
+ <a href="subject.html#2561">[ subject ]</a>
+ <a href="author.html#2561">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>