summaryrefslogtreecommitdiffstats
path: root/package/gpm/0002-Install-unversioned-solibrary.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-20 18:09:00 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 15:00:55 +0100
commit2b1bbbb7cce458aefdf4c4b7779e7dcddbda5bb8 (patch)
tree900b92992b7b8b298259cd322cd79e9f8516b84c /package/gpm/0002-Install-unversioned-solibrary.patch
parent5c9490459e7138f1bc4ec2d3668cc7374ea4763e (diff)
downloadbuildroot-2b1bbbb7cce458aefdf4c4b7779e7dcddbda5bb8.tar.gz
buildroot-2b1bbbb7cce458aefdf4c4b7779e7dcddbda5bb8.zip
package/gpm: Install libgpm.so to fix gpm detection in package links
The unversioned library was missing in the build system, part of the fix was backported from upstream, the final patch was sent upstream. Fixes linking against gpm by the links package which fails to detect gpm support when libgpm.so is not present. Configure log from links without this patch: checking for gpm.h... yes checking for Gpm_Open in -lgpm... no checking for Gpm_GetLibVersion... no Configure log from links with this patch: checking for gpm.h... yes checking for Gpm_Open in -lgpm... yes checking for Gpm_GetLibVersion... yes checking for Gpm_Event wdx and wdy... yes Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gpm/0002-Install-unversioned-solibrary.patch')
-rw-r--r--package/gpm/0002-Install-unversioned-solibrary.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/gpm/0002-Install-unversioned-solibrary.patch b/package/gpm/0002-Install-unversioned-solibrary.patch
new file mode 100644
index 0000000000..27e97acb32
--- /dev/null
+++ b/package/gpm/0002-Install-unversioned-solibrary.patch
@@ -0,0 +1,41 @@
+From 06b00d53d8bd513ad5d262dc94a016c6fbf2d3aa Mon Sep 17 00:00:00 2001
+From: Kamil Rytarowski <n54@gmx.com>
+Date: Sat, 4 May 2013 01:30:17 +0200
+Subject: [PATCH] Install unversioned solibrary
+
+Unversioned solibraries are shipped with -devel packages in Linux
+distros. Generate and install it for the consistency.
+
+[Upstream patch backported from the github repository,
+https://github.com/telmich/gpm/commit/06b00d53d8bd513ad5d262dc94a016c6fbf2d3aa]
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ src/Makefile.in | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/src/Makefile.in b/src/Makefile.in
+index 6b60ad3..7e9e2ef 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -79,7 +79,7 @@ prog/%: prog/%.o
+ # | $(SED) '\''s/\($*\)\.o\([ :]*\)/\1.o \1.lo\2/g'\'' > $(DEPDIR)/$@'
+
+ # Do it all!
+-all: gpm lib/libgpm.so.@abi_lev@ @LIBGPM_A@ $(PROG)
++all: gpm lib/libgpm.so.@abi_lev@ lib/libgpm.so @LIBGPM_A@ $(PROG)
+
+ gpm: $(GOBJ)
+ $(CC) @LDFLAGS@ $(LDFLAGS) -o $@ $(GOBJ) @LIBS@ $(LIBS) -lm
+@@ -168,9 +168,8 @@ lib/libgpm.so.@abi_full@: $(PICS)
+ @LDFLAGS@ $(LDFLAGS) -o lib/libgpm.so.@abi_full@ $^ @LIBS@ @SHARED_LIBS@ $(LIBS)
+ lib/libgpm.so.@abi_lev@: lib/libgpm.so.@abi_full@
+ $(LN_S) -f libgpm.so.@abi_full@ lib/libgpm.so.@abi_lev@
+-# unneeded, isn't it?
+-#lib/libgpm.so: lib/libgpm.so.@abi_full@
+-# $(LN_S) -f libgpm.so.@abi_full@ lib/libgpm.so
++lib/libgpm.so: lib/libgpm.so.@abi_full@
++ $(LN_S) -f libgpm.so.@abi_full@ lib/libgpm.so
+
+ include $(DEPFILE)
+
OpenPOWER on IntegriCloud