summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2004-04-08 03:07:32 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2004-04-08 03:07:32 +0000
commitd2806c90995b5795ba4dde02b186fb8b939bcc7d (patch)
tree86ed803bb0492fd192fb6cb718bfe8d6262b8759 /sys-apps/utempter
parent~amd64 (Manifest recommit) (diff)
downloadgentoo-2-d2806c90995b5795ba4dde02b186fb8b939bcc7d.tar.gz
gentoo-2-d2806c90995b5795ba4dde02b186fb8b939bcc7d.tar.bz2
gentoo-2-d2806c90995b5795ba4dde02b186fb8b939bcc7d.zip
Add patch to ensure all versioned shared library symlinks are created.
Diffstat (limited to 'sys-apps/utempter')
-rw-r--r--sys-apps/utempter/ChangeLog7
-rw-r--r--sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch23
-rw-r--r--sys-apps/utempter/utempter-0.5.3.2-r1.ebuild8
3 files changed, 36 insertions, 2 deletions
diff --git a/sys-apps/utempter/ChangeLog b/sys-apps/utempter/ChangeLog
index a8c74ef1f344..7252259346a8 100644
--- a/sys-apps/utempter/ChangeLog
+++ b/sys-apps/utempter/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/utempter
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.7 2004/03/13 08:05:13 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.8 2004/04/08 03:07:32 spyderous Exp $
+
+ 07 Apr 2004; Donnie Berkholz <spyderous@gentoo.org>;
+ utempter-0.5.3.2-r1.ebuild,
+ files/utempter-0.5.3.2-soname-makefile-fix.patch:
+ Add patch to ensure all versioned shared library symlinks are created.
*utempter-0.5.3.2-r1 (13 Mar 2004)
diff --git a/sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch
new file mode 100644
index 000000000000..ae50456a987f
--- /dev/null
+++ b/sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch
@@ -0,0 +1,23 @@
+diff -urN utempter-0.5.3.orig/Makefile utempter-0.5.3/Makefile
+--- utempter-0.5.3.orig/Makefile 2004-04-07 23:02:39.000000000 -0400
++++ utempter-0.5.3/Makefile 2004-04-07 23:04:33.000000000 -0400
+@@ -5,6 +5,10 @@
+ CVSROOT=$(shell cat CVS/Root)
+ # major number of the .so lib
+ SOMAJOR = 0
++# minor number of the .so lib
++SOMINOR = 5
++# major number of the .so lib
++SOMICRO = 3
+
+ SHAREDLIB = lib$(NAME).so
+ SONAME = $(SHAREDLIB).$(SOMAJOR)
+@@ -29,6 +33,8 @@
+ install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include
+ install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION)
+ ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB)
++ ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR).$(SOMINOR)
++ ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR)
+
+ $(SHAREDLIB): utmpintf.os
+ $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
diff --git a/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild b/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild
index 294209de82c0..9793c250817f 100644
--- a/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild
+++ b/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild,v 1.1 2004/03/13 08:05:13 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.3.2-r1.ebuild,v 1.2 2004/04/08 03:07:32 spyderous Exp $
inherit rpm eutils
@@ -21,6 +21,12 @@ pkg_setup() {
enewgroup utmp 406
}
+src_unpack() {
+ rpm_src_unpack
+# cd ${S}
+ epatch ${FILESDIR}/${P}-soname-makefile-fix.patch
+}
+
src_compile() {
make RPM_OPT_FLAGS="${CFLAGS}" || die
}