All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection
@ 2019-10-19  7:48 Bernd Kuhls
  2019-10-19 18:46 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2019-10-19  7:48 UTC (permalink / raw)
  To: buildroot

Previous patch defined HAVE_LIBBSD even if strlcat function was present
in libc leading to build errors due to inclusion of bsd/string.h:
https://gitlab.freedesktop.org/xorg/lib/libxfont/blob/master/src/util/replace.h#L50

AC_SEARCH_LIBS is defined as
"Search for a library defining function if it's not already available."
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 ...ne-HAVE_LIBBSD-when-libbsd-was-found.patch | 25 ++++++++-----------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/package/x11r7/xlib_libXfont2/0001-configure-define-HAVE_LIBBSD-when-libbsd-was-found.patch b/package/x11r7/xlib_libXfont2/0001-configure-define-HAVE_LIBBSD-when-libbsd-was-found.patch
index ae2462e55d..51e7225be6 100644
--- a/package/x11r7/xlib_libXfont2/0001-configure-define-HAVE_LIBBSD-when-libbsd-was-found.patch
+++ b/package/x11r7/xlib_libXfont2/0001-configure-define-HAVE_LIBBSD-when-libbsd-was-found.patch
@@ -1,30 +1,27 @@
-From 10202b813f86e3f4d477fd82ee7fceac3bc2ebd0 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-Date: Sun, 13 Oct 2019 21:21:28 +0200
+From 5fceeeb0d1cdccdb2870f65444f2965344f3b8b9 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sat, 19 Oct 2019 09:32:41 +0200
 Subject: [PATCH] configure: define HAVE_LIBBSD when libbsd was found
 
-Source of the patch:
-http://lists.busybox.net/pipermail/buildroot/2019-October/261510.html
-
 Patch sent upstream:
 https://gitlab.freedesktop.org/xorg/lib/libxfont/merge_requests/6
 
 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
 ---
- configure.ac | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
 
 diff --git a/configure.ac b/configure.ac
-index f507c28..131713d 100644
+index f507c28..cc7ca91 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -52,7 +52,8 @@ AC_CHECK_HEADERS([endian.h poll.h sys/poll.h])
- 
+@@ -53,6 +53,9 @@ AC_CHECK_HEADERS([endian.h poll.h sys/poll.h])
  # Checks for library functions.
  AC_CHECK_FUNCS([poll readlink])
--AC_SEARCH_LIBS([strlcat], [bsd])
-+AC_SEARCH_LIBS([strlcat], [bsd],
-+  [AC_DEFINE(HAVE_LIBBSD,1,[Has libbsd])])
+ AC_SEARCH_LIBS([strlcat], [bsd])
++if test "$ac_cv_search_strlcat" = "-lbsd"; then
++  AC_DEFINE(HAVE_LIBBSD,1,[Has libbsd])
++fi
  AC_CONFIG_LIBOBJ_DIR([src/util])
  AC_REPLACE_FUNCS([reallocarray strlcat strlcpy])
  
-- 
2.20.1

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

* [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection
  2019-10-19  7:48 [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection Bernd Kuhls
@ 2019-10-19 18:46 ` Arnout Vandecappelle
  2019-10-19 20:32   ` Bernd Kuhls
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2019-10-19 18:46 UTC (permalink / raw)
  To: buildroot



On 19/10/2019 09:48, Bernd Kuhls wrote:
> Previous patch defined HAVE_LIBBSD even if strlcat function was present
> in libc leading to build errors due to inclusion of bsd/string.h:
> https://gitlab.freedesktop.org/xorg/lib/libxfont/blob/master/src/util/replace.h#L50
> 
> AC_SEARCH_LIBS is defined as
> "Search for a library defining function if it's not already available."
> https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

 Applied to master, thanks.

 Why didn't you have a Fixes: tag?

 Regards,
 Arnout

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

* [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection
  2019-10-19 18:46 ` Arnout Vandecappelle
@ 2019-10-19 20:32   ` Bernd Kuhls
  2019-10-19 22:25     ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2019-10-19 20:32 UTC (permalink / raw)
  To: buildroot

Arnout Vandecappelle <arnout@mind.be> wrote in 
news:ef53b723-6522-1803-e5a3-163a581abb91 at mind.be:

>  Why didn't you have a Fixes: tag?

Hi Arnout,

due to the meson-lzma problem the autobuilders did not catch the error.

Regards, Bernd

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

* [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection
  2019-10-19 20:32   ` Bernd Kuhls
@ 2019-10-19 22:25     ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2019-10-19 22:25 UTC (permalink / raw)
  To: buildroot



On 19/10/2019 22:32, Bernd Kuhls wrote:
> Arnout Vandecappelle <arnout@mind.be> wrote in 
> news:ef53b723-6522-1803-e5a3-163a581abb91 at mind.be:
> 
>>  Why didn't you have a Fixes: tag?
> 
> Hi Arnout,
> 
> due to the meson-lzma problem the autobuilders did not catch the error.

 Even so, it's better to add a Fixes: tag followed by the failing compile
output, for two reasons:

- the failing compile output is something that may show up in web search results
and help people debug their problems;

- the Fixes: tag (even if not followed by anything) is marked in patchwork, and
those patches get higher priority (at least from me).

 Regards,
 Arnout

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

end of thread, other threads:[~2019-10-19 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-19  7:48 [Buildroot] [PATCH 1/1] package/x11r7/xlib_libXfont2: fix libbsd detection Bernd Kuhls
2019-10-19 18:46 ` Arnout Vandecappelle
2019-10-19 20:32   ` Bernd Kuhls
2019-10-19 22:25     ` Arnout Vandecappelle

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.