summaryrefslogtreecommitdiffstats
path: root/package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-07-29 18:44:17 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-30 23:26:02 +0200
commitdc2a13a2aa30b0fd9006c2a7c2103f5af2bf00a7 (patch)
treef1baa133a7ad989ab5a0e22f980d4ab15cb5f925 /package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch
parent2b0b5859b782e7a17fe1d86d77e33783156d70f0 (diff)
downloadbuildroot-dc2a13a2aa30b0fd9006c2a7c2103f5af2bf00a7.tar.gz
buildroot-dc2a13a2aa30b0fd9006c2a7c2103f5af2bf00a7.zip
package/libedit: switch to alternate URL for proper packaging
Upstream libedit does not have a proper homepage, and does not provide any sort of packaging whatsoever. So far, we used Debian's wayback machine to get a tarball of a rather oldish libedit. As Thomas pointed out, someone has been maintaining a proper autotools based, up-to-date package for a while. While Debian is stuck to 2.11 (5 years old now), we bump to 3.1 as a bonus. Remove our libedit.pc, it's now bundled with the package. Reported-by: Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch')
-rw-r--r--package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch b/package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch
new file mode 100644
index 0000000000..21c57f8f11
--- /dev/null
+++ b/package/libedit/libedit-000-check-bsd-functions-in-libbsd.patch
@@ -0,0 +1,18 @@
+configure: on Linux, the BSD functions require linking against libbsd
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN libedit-20130712-3.1.orig/configure.ac libedit-20130712-3.1/configure.ac
+--- libedit-20130712-3.1.orig/configure.ac 2013-07-12 20:39:22.000000000 +0200
++++ libedit-20130712-3.1/configure.ac 2013-07-28 23:35:35.012676469 +0200
+@@ -108,6 +108,10 @@
+ #AC_FUNC_REALLOC
+ AC_TYPE_SIGNAL
+ AC_FUNC_STAT
++
++# Search for libbsd for *vis functions
++AC_CHECK_LIB([bsd], [vis])
++
+ AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat fgetln vis strvis strunvis __secure_getenv secure_getenv])
+
+ # strlcpy
OpenPOWER on IntegriCloud