All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] mtools: do not link to libbsd
       [not found] <0171128125226.32n343bxgzhcrfvp@tarshish>
@ 2017-11-28 16:06 ` Carlos Santos
  2017-11-29 16:48   ` Peter Korsgaard
  2017-12-20 20:49   ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Carlos Santos @ 2017-11-28 16:06 UTC (permalink / raw)
  To: buildroot

If libbsd is found by the configuration process, mtools unnecessarily
adds a NEEDED field with libbsd to its dynamic section, but it does not
actually use anything from libbsd under Linux. The same may happen to
host-mtools if some libbsd package is installed on the host machine.

Prevent this by forcing configure to bypass the checking for the
existence of a gethostbyname function in libbsd.

I stumbled on this problem when I built host-mtools and later removed
libbsd to upgrade to Fedora 27, due to Bug 1504831[1]. The previously
built host/bin/mtools started to fail due to the missing libbsd.so.0.

1. https://bugzilla.redhat.com/show_bug.cgi?id=1504831

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
Changes v1->v2
  - Improved the commit message, as requested by Baruch Siach.
---
 package/mtools/mtools.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mtools/mtools.mk b/package/mtools/mtools.mk
index 5db548fad9..1a6218831e 100644
--- a/package/mtools/mtools.mk
+++ b/package/mtools/mtools.mk
@@ -13,9 +13,13 @@ MTOOLS_CONF_OPTS = --without-x
 # info documentation not needed
 MTOOLS_CONF_ENV = \
 	ac_cv_func_setpgrp_void=yes \
+	ac_cv_lib_bsd_gethostbyname=no \
+	ac_cv_lib_bsd_main=no \
 	ac_cv_path_INSTALL_INFO=
 
 HOST_MTOOLS_CONF_ENV = \
+	ac_cv_lib_bsd_gethostbyname=no \
+	ac_cv_lib_bsd_main=no \
 	ac_cv_path_INSTALL_INFO=
 
 # link with iconv if enabled
-- 
2.14.3

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

* [Buildroot] [PATCH v2] mtools: do not link to libbsd
  2017-11-28 16:06 ` [Buildroot] [PATCH v2] mtools: do not link to libbsd Carlos Santos
@ 2017-11-29 16:48   ` Peter Korsgaard
  2017-12-20 20:49   ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-11-29 16:48 UTC (permalink / raw)
  To: buildroot

>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:

 > If libbsd is found by the configuration process, mtools unnecessarily
 > adds a NEEDED field with libbsd to its dynamic section, but it does not
 > actually use anything from libbsd under Linux. The same may happen to
 > host-mtools if some libbsd package is installed on the host machine.

 > Prevent this by forcing configure to bypass the checking for the
 > existence of a gethostbyname function in libbsd.

 > I stumbled on this problem when I built host-mtools and later removed
 > libbsd to upgrade to Fedora 27, due to Bug 1504831[1]. The previously
 > built host/bin/mtools started to fail due to the missing libbsd.so.0.

 > 1. https://bugzilla.redhat.com/show_bug.cgi?id=1504831

 > Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
 > ---
 > Changes v1->v2
 >   - Improved the commit message, as requested by Baruch Siach.

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH v2] mtools: do not link to libbsd
  2017-11-28 16:06 ` [Buildroot] [PATCH v2] mtools: do not link to libbsd Carlos Santos
  2017-11-29 16:48   ` Peter Korsgaard
@ 2017-12-20 20:49   ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-12-20 20:49 UTC (permalink / raw)
  To: buildroot

>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:

 > If libbsd is found by the configuration process, mtools unnecessarily
 > adds a NEEDED field with libbsd to its dynamic section, but it does not
 > actually use anything from libbsd under Linux. The same may happen to
 > host-mtools if some libbsd package is installed on the host machine.

 > Prevent this by forcing configure to bypass the checking for the
 > existence of a gethostbyname function in libbsd.

 > I stumbled on this problem when I built host-mtools and later removed
 > libbsd to upgrade to Fedora 27, due to Bug 1504831[1]. The previously
 > built host/bin/mtools started to fail due to the missing libbsd.so.0.

 > 1. https://bugzilla.redhat.com/show_bug.cgi?id=1504831

 > Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
 > ---
 > Changes v1->v2
 >   - Improved the commit message, as requested by Baruch Siach.

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-12-20 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0171128125226.32n343bxgzhcrfvp@tarshish>
2017-11-28 16:06 ` [Buildroot] [PATCH v2] mtools: do not link to libbsd Carlos Santos
2017-11-29 16:48   ` Peter Korsgaard
2017-12-20 20:49   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.