+++ /dev/null
---- rpm-4.3/build.c.orig 2005-04-10 02:35:15.000000000 +0200
-+++ rpm-4.3/build.c 2005-04-10 02:35:43.000000000 +0200
-@@ -206,7 +206,7 @@
- directory for this run */
-
- if (*arg != '/') {
-- (void)getcwd(buf, BUFSIZ);
-+ if (getcwd(buf, BUFSIZ) == NULL) strcpy(buf, ".");
- strcat(buf, "/");
- strcat(buf, arg);
- } else
-@@ -225,7 +225,7 @@
- specut = urlPath(specURL, &specFile);
- if (*specFile != '/') {
- char *s = alloca(BUFSIZ);
-- (void)getcwd(s, BUFSIZ);
-+ if (getcwd(s, BUFSIZ) == NULL) strcpy(s, ".");
- strcat(s, "/");
- strcat(s, arg);
- specURL = s;
+++ /dev/null
---- rpm-4.4.5/Makefile.am.orig 2006-02-28 21:32:49.949269000 +0100
-+++ rpm-4.4.5/Makefile.am 2006-02-28 21:44:44.885949750 +0100
-@@ -131,14 +131,14 @@
-
- install-data-local:
- @$(mkinstalldirs) $(DESTDIR)$(varprefix)/lib/rpm
-- @rm -f $(DESTDIR)$(libdir)/rpm/rpmt
-- @@LN_S@ rpmb $(DESTDIR)$(libdir)/rpm/rpmt
-- @rm -f $(DESTDIR)$(libdir)/rpm/rpme
-- @@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpme
-- @rm -f $(DESTDIR)$(libdir)/rpm/rpmu
-- @@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpmu
-- @rm -f $(DESTDIR)$(libdir)/rpm/rpmv
-- @@LN_S@ rpmq $(DESTDIR)$(libdir)/rpm/rpmv
-+ @rm -f $(DESTDIR)$(pkglibdir)/rpmt
-+ @@LN_S@ rpmb $(DESTDIR)$(pkglibdir)/rpmt
-+ @rm -f $(DESTDIR)$(pkglibdir)/rpme
-+ @@LN_S@ rpmi $(DESTDIR)$(pkglibdir)/rpme
-+ @rm -f $(DESTDIR)$(pkglibdir)/rpmu
-+ @@LN_S@ rpmi $(DESTDIR)$(pkglibdir)/rpmu
-+ @rm -f $(DESTDIR)$(pkglibdir)/rpmv
-+ @@LN_S@ rpmq $(DESTDIR)$(pkglibdir)/rpmv
- rm -f $(DESTDIR)$(bindir)/rpmbuild
- @LN_S@ ../lib/rpm/rpmb $(DESTDIR)$(bindir)/rpmbuild
- rm -f $(DESTDIR)$(bindir)/rpmquery
+++ /dev/null
-diff -x '*~' -durN rpm-4.3.orig/configure.ac rpm-4.3/configure.ac
---- rpm-4.3.orig/configure.ac 2004-12-19 08:52:05.000000000 +0100
-+++ rpm-4.3/configure.ac 2004-12-19 09:24:03.466542416 +0100
-@@ -1178,9 +1178,6 @@
-
- dnl XXX Choose /usr/lib or /usr/lib64 for library installs.
- MARK64=
--case "${target_cpu}" in
--x86_64*|ppc64*|powerpc64*|sparc64*|s390x*) MARK64=64 ;;
--esac
- AC_SUBST(MARK64)
-
- dnl Determine the canonical arch-vendor-os for the build machine