diff options
Diffstat (limited to 'sys-apps/utempter/files')
3 files changed, 71 insertions, 0 deletions
diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-build.patch b/sys-apps/utempter/files/utempter-0.5.5.6-build.patch new file mode 100644 index 000000000000..8fbfb111196f --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.6-build.patch @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -37,7 +37,7 @@ + ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR) + + $(SHAREDLIB): utmpintf.os +- $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc ++ $(CC) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc + + utmpintf.o: utmpintf.c utempter.h + diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch b/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch new file mode 100644 index 000000000000..8644db837f4a --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.6-no_utmpx.patch @@ -0,0 +1,38 @@ +--- utempter-0.5.5/utempter.c.mps 2004-12-11 14:54:06.000000000 +0100 ++++ utempter-0.5.5/utempter.c 2004-12-11 14:57:46.000000000 +0100 +@@ -11,7 +11,9 @@ + #include <sys/stat.h> + #include <sys/sysmacros.h> + #include <utmp.h> ++#ifndef __UCLIBC__ + #include <utmpx.h> ++#endif + #include <unistd.h> + + static void usage(void) { +@@ -82,7 +84,11 @@ + } + + int main(int argc, const char ** argv) { ++#ifndef __UCLIBC__ + struct utmpx utx; ++#else ++ struct utmp utx; ++#endif + int add; + const char * device, * host; + struct passwd * pw; +@@ -154,8 +160,13 @@ + + gettimeofday(&utx.ut_tv, NULL); + ++#ifndef __UCLIBC__ + pututxline(&utx); + updwtmpx(_PATH_WTMP, &utx); ++#else ++ pututline(&utx); ++ updwtmp(_PATH_WTMP, &utx); ++#endif + + return 0; + } diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch new file mode 100644 index 000000000000..123c77eb357c --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.6-soname-makefile-fix.patch @@ -0,0 +1,22 @@ +--- Makefile.orig 2005-04-15 08:54:32.000000000 -0400 ++++ Makefile 2005-04-15 08:56:17.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 ++# micro number of the .so lib ++SOMICRO = 5 + + 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 |