Skip to contentSkip to conversation

netsnmp: Remove ldconfig calls

PATCH Superseded Bernd Kuhls 5 participants 5 messages May 13, 2014 – May 19, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netsnmp: Remove ldconfig calls

ldconfig breaks links created by gpu-viv-bin-mx6q.

fixes
http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/

---
 package/netsnmp/netsnmp-002-no_ldconfig.patch |   50 +++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 package/netsnmp/netsnmp-002-no_ldconfig.patch
package/netsnmp/netsnmp-002-no_ldconfig.patch new file +50 -0
new file mode 100644
index 0000000..10f33d8
@@ -0,0 +1,50 @@
+Running ldconfig breaks links created by gpu-viv-bin-mx6q
+
+patch inspired by
+https://dev.openwrt.org/browser/packages/libs/net-snmp/patches/160-no_ldconfig.patch?rev=17091
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+diff -uNr net-snmp-5.7.2.1.org/configure net-snmp-5.7.2.1/configure
+--- net-snmp-5.7.2.1.org/configure	2014-02-20 01:36:50.000000000 +0100
++++ net-snmp-5.7.2.1/configure	2014-05-13 22:26:31.239549325 +0200
+@@ -13873,7 +13873,6 @@
+   need_version=no
+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+   soname_spec='${libname}${release}${shared_ext}$major'
+-  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+@@ -14196,7 +14195,6 @@
+   need_version=no
+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+   soname_spec='${libname}${release}${shared_ext}$major'
+-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   shlibpath_overrides_runpath=no
+ 
+@@ -14260,7 +14258,6 @@
+   need_version=no
+   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+-    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+     dynamic_linker='NetBSD (a.out) ld.so'
+   else
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+@@ -14301,7 +14298,6 @@
+     *)				need_version=no  ;;
+   esac
+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+     case $host_os in
+@@ -14357,7 +14353,6 @@
+ sunos4*)
+   version_type=sunos
+   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+-  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+   shlibpath_var=LD_LIBRARY_PATH
+   shlibpath_overrides_runpath=yes
+   if test "$with_gnu_ld" = yes; then
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 netsnmp: Remove ldconfig calls

Dear Bernd Kuhls,

Thanks a lot for looking into this issue!

Quoted 17 lines · Bernd Kuhls

ldconfig breaks links created by gpu-viv-bin-mx6q.

fixes
http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/

---
 package/netsnmp/netsnmp-002-no_ldconfig.patch |   50 +++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 package/netsnmp/netsnmp-002-no_ldconfig.patch
package/netsnmp/netsnmp-002-no_ldconfig.patch new file +0 -0
new file mode 100644
index 0000000..10f33d8

package/netsnmp/netsnmp-002-no_ldconfig.patch line 6

Quoted 6 lines
package/netsnmp/netsnmp-002-no_ldconfig.patch new file +6 -0
@@ -0,0 +1,50 @@
+Running ldconfig breaks links created by gpu-viv-bin-mx6q
+
+patch inspired by
+https://dev.openwrt.org/browser/packages/libs/net-snmp/patches/160-no_ldconfig.patch?rev=17091
+
+Signed-off-by: Bernd Kuhls <[email protected]>

Do you think and upstreamable version of this patch is possible?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 netsnmp: Remove ldconfig calls

Thomas Petazzoni <[email protected]> wrote in news:20140513233817.3fed1500 at free-electrons.com:

Quoted 1 line

Do you think and upstreamable version of this patch is possible?

Hi,

as this is a libtool issue I think not. But I reworked the patch in a way a separate patch file is not needed anymore:

http://patchwork.ozlabs.org/patch/348586/

Similar patches can be found all over the tree, for example in zlib, luajit, wireless_tools.

Regards, Bernd

#3 lore raw

PATCH 1/1 netsnmp: Remove ldconfig calls

In reply to Bernd Kuhls
Quoted 1 line · Bernd Kuhls

ldconfig breaks links created by gpu-viv-bin-mx6q.

As far as I can tell, there is never any reason to call ldconfig during the
build. So, maybe a more fundamental solution would be to symlink $(HOST_DIR)/usr/bin/ldconfig to /bin/true...

Regards,
Arnout

Quoted 5 lines

fixes
http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#4 lore raw

PATCH 1/1 netsnmp: Remove ldconfig calls

Arnout, All,

On 2014-05-19 08:18 +0200, Arnout Vandecappelle spake thusly:

Quoted 6 lines · Bernd Kuhls
Quoted 1 line

ldconfig breaks links created by gpu-viv-bin-mx6q.

As far as I can tell, there is never any reason to call ldconfig during the
build. So, maybe a more fundamental solution would be to symlink $(HOST_DIR)/usr/bin/ldconfig to /bin/true...

Exactly what I was thinking...

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'