Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls
@ 2014-05-13 20:35 Bernd Kuhls
  2014-05-13 21:38 ` Thomas Petazzoni
  2014-05-19  6:18 ` Arnout Vandecappelle
  0 siblings, 2 replies; 5+ messages in thread
From: Bernd Kuhls @ 2014-05-13 20:35 UTC (permalink / raw)
  To: buildroot

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

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

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/netsnmp/netsnmp-002-no_ldconfig.patch |   50 +++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 package/netsnmp/netsnmp-002-no_ldconfig.patch

diff --git a/package/netsnmp/netsnmp-002-no_ldconfig.patch b/package/netsnmp/netsnmp-002-no_ldconfig.patch
new file mode 100644
index 0000000..10f33d8
--- /dev/null
+++ b/package/netsnmp/netsnmp-002-no_ldconfig.patch
@@ -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 <bernd.kuhls@t-online.de>
+
+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
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls
  2014-05-13 20:35 [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls Bernd Kuhls
@ 2014-05-13 21:38 ` Thomas Petazzoni
  2014-05-14  4:53   ` Bernd Kuhls
  2014-05-19  6:18 ` Arnout Vandecappelle
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-05-13 21:38 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

Thanks a lot for looking into this issue!

On Tue, 13 May 2014 22:35:13 +0200, Bernd Kuhls wrote:
> ldconfig breaks links created by gpu-viv-bin-mx6q.
> 
> fixes
> http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/netsnmp/netsnmp-002-no_ldconfig.patch |   50 +++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
>  create mode 100644 package/netsnmp/netsnmp-002-no_ldconfig.patch
> 
> diff --git a/package/netsnmp/netsnmp-002-no_ldconfig.patch b/package/netsnmp/netsnmp-002-no_ldconfig.patch
> new file mode 100644
> index 0000000..10f33d8
> --- /dev/null
> +++ b/package/netsnmp/netsnmp-002-no_ldconfig.patch
> @@ -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 <bernd.kuhls@t-online.de>

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

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls
  2014-05-13 21:38 ` Thomas Petazzoni
@ 2014-05-14  4:53   ` Bernd Kuhls
  0 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2014-05-14  4:53 UTC (permalink / raw)
  To: buildroot

Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote
in news:20140513233817.3fed1500 at free-electrons.com: 

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls
  2014-05-13 20:35 [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls Bernd Kuhls
  2014-05-13 21:38 ` Thomas Petazzoni
@ 2014-05-19  6:18 ` Arnout Vandecappelle
  2014-05-19 16:37   ` Yann E. MORIN
  1 sibling, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2014-05-19  6:18 UTC (permalink / raw)
  To: buildroot

On 13/05/14 22:35, Bernd Kuhls wrote:
> 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

> 
> fixes
> http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[snip]


-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls
  2014-05-19  6:18 ` Arnout Vandecappelle
@ 2014-05-19 16:37   ` Yann E. MORIN
  0 siblings, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2014-05-19 16:37 UTC (permalink / raw)
  To: buildroot

Arnout, All,

On 2014-05-19 08:18 +0200, Arnout Vandecappelle spake thusly:
> On 13/05/14 22:35, Bernd Kuhls wrote:
> > 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.

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-19 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 20:35 [Buildroot] [PATCH 1/1] netsnmp: Remove ldconfig calls Bernd Kuhls
2014-05-13 21:38 ` Thomas Petazzoni
2014-05-14  4:53   ` Bernd Kuhls
2014-05-19  6:18 ` Arnout Vandecappelle
2014-05-19 16:37   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox