SHA256
1
0
forked from pool/gpm
gpm/gpm-do_create_symlink.patch
Philipp Thomas e34d9fc588 - Update to 1.20.7:
- Adapt patches to changed sources.
- Add patch to pass the directory for gpm.h when generating
  dependencies: gpm-dependencies.patch
- Add patch that enables the creation of the libgpm.so symlink
  again and installs it: gpm-do_create_symlink.patch
- Removed patches not needed anymore:
  gpm-gcc4.3.patch
  gpm-libtool.patch
  config-guess-sub-update.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=25
2013-04-16 11:33:36 +00:00

47 lines
1.8 KiB
Diff

From: Philipp Thomas <pth@suse.de>
Date: 2013-04-16 13:20:48+02:00
Subject: Do create the symlink libgpm.so
---
src/Makefile.in | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
signed-off-by: Philipp Thomas <pth@suse.de>
Index: src/Makefile.in
===================================================================
--- src/Makefile.in.orig 2013-04-16 13:16:45.723219315 +0200
+++ src/Makefile.in 2013-04-16 13:29:52.385720884 +0200
@@ -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
@@ -114,7 +114,8 @@ install: check
# headache in cases like this
if test "x@SHLIB@" != "x" ; then \
$(INSTALL_DATA) -m 644 lib/libgpm.so.@abi_full@ $(DESTDIR)$(libdir)/libgpm.so.@abi_full@ ; \
- cd $(DESTDIR)$(libdir) && $(LN_S) -f libgpm.so.@abi_full@ libgpm.so.@abi_lev@ ; \
+ cd $(DESTDIR)$(libdir) && $(LN_S) -f libgpm.so.@abi_full@ libgpm.so.@abi_lev@ && \
+ $(LN_S) -f libgpm.so.@abi_lev@ libgpm.so ; \
echo "WARNING: We installed a lib, you should now call ldconfig" ; \
echo "f.i.: ldconfig -n -l $(libdir)/libgpm.so.@abi_full@" ; \
echo "Or to update everything just type ldconfig" ; \
@@ -170,9 +171,9 @@ lib/libgpm.so.@abi_full@: $(PICS)
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)