added a small patch to fix build from tarball (rpm -t[a|b|s]) [release 5.2.1-25mamba;Thu Apr 24 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 17:29:03 +01:00
parent 5f2c61e902
commit ec1fe85b85
54 changed files with 2430 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# rpm # rpm
RPM is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information about the package like its version, a description, etc.

11
rpm-4.4.4-bashort.patch Normal file
View File

@ -0,0 +1,11 @@
diff -ru rpm-4.4.4/rpmqv.c rpm-4.4.4-qilinux/rpmqv.c
--- rpm-4.4.4/rpmqv.c 2005-11-27 17:06:24.000000000 +0100
+++ rpm-4.4.4-qilinux/rpmqv.c 2006-01-04 15:53:44.000000000 +0100
@@ -693,6 +693,7 @@
case 'b':
ba->buildAmount |= RPMBUILD_PACKAGEBINARY;
ba->buildAmount |= RPMBUILD_CLEAN;
+ if (ba->shortCircuit) break;
/*@fallthrough@*/
case 'i':
ba->buildAmount |= RPMBUILD_INSTALL;

View File

@ -0,0 +1,12 @@
--- rpm-4.4.4/config.sub 2005-09-29 23:51:10.000000000 +0200
+++ rpm-4.4.4-qilinux/config.sub 2006-01-17 11:01:54.000000000 +0100
@@ -798,7 +798,8 @@
;;
ppc) basic_machine=powerpc-unknown
;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ppc-* | powerpc-*)
+ basic_machine=ppc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
basic_machine=powerpcle-unknown

25
rpm-4.4.4-depsdb.patch Normal file
View File

@ -0,0 +1,25 @@
Index: rpmdb/sqlite.c
===================================================================
RCS file: /cvs/devel/rpm/rpmdb/sqlite.c,v
retrieving revision 1.3.2.33
diff -u -b -B -w -p -r1.3.2.33 sqlite.c
--- rpmdb/sqlite.c 9 Nov 2005 18:08:31 -0000 1.3.2.33
+++ rpmdb/sqlite.c 17 Jan 2006 17:53:18 -0000
@@ -726,13 +726,15 @@ static int sql_initDB(dbiIndex dbi)
}
if (_debug)
fprintf(stderr, "\t%s(%d) type(%d) keytype %s\n", tagName(dbi->dbi_rpmtag), dbi->dbi_rpmtag, tagType(dbi->dbi_rpmtag), keytype);
- sprintf(cmd, "CREATE TABLE '%s' (key %s, value %s)",
+ sprintf(cmd, "CREATE %sTABLE '%s' (key %s, value %s)",
+ dbi->dbi_rpmtag == RPMDBI_DEPENDS ? "TEMPORARY " : " ",
dbi->dbi_subfile, keytype, valtype);
rc = sqlite3_exec(sqldb->db, cmd, NULL, NULL, (char **)&scp->pzErrmsg);
if (rc)
goto exit;
- sprintf(cmd, "CREATE TABLE 'db_info' (endian TEXT)");
+ sprintf(cmd, "CREATE %sTABLE 'db_info' (endian TEXT)",
+ dbi->dbi_rpmtag == RPMDBI_DEPENDS ? "TEMPORARY " : " ");
rc = sqlite3_exec(sqldb->db, cmd, NULL, NULL, (char **)&scp->pzErrmsg);
if (rc)
goto exit;

View File

@ -0,0 +1,21 @@
diff -ru rpm-4.4.4/autodeps/linux.req rpm-4.4.4-qilinux/autodeps/linux.req
--- rpm-4.4.4/autodeps/linux.req 2002-11-14 13:53:11.000000000 +0100
+++ rpm-4.4.4-qilinux/autodeps/linux.req 2006-01-05 11:46:03.000000000 +0100
@@ -47,7 +47,7 @@
lib64=`if file -L $f 2>/dev/null | \
grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
ldd $f | awk '/=>/ {
- if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /libredhat-kernel.so/) {
+ if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /linux-gate.so/) {
gsub(/'\''"/,"\\&",$1);
printf "%s'$lib64'\n", $1
}
@@ -61,7 +61,7 @@
lib64=`if file -L $f 2>/dev/null | \
grep "ELF 64-bit" >/dev/null; then echo "$mark64"; fi`
ldd $f | awk '/=>/ {
- if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /libredhat-kernel.so/) {
+ if ($1 !~ /libNoVersion.so/ && $1 !~ /4[um]lib.so/ && $1 !~ /linux-gate.so/) {
gsub(/'\''"/,"\\&",$1);
printf "%s'$lib64'\n", $1
}

18
rpm-4.4.4-rpmvercmp.patch Normal file
View File

@ -0,0 +1,18 @@
diff -pur rpm-4.4.4/lib/rpmvercmp.c rpm-4.4.4-qilinux/lib/rpmvercmp.c
--- rpm-4.4.4/lib/rpmvercmp.c 2005-07-04 04:32:22.000000000 +0200
+++ rpm-4.4.4-qilinux/lib/rpmvercmp.c 2006-01-04 16:04:28.000000000 +0100
@@ -108,6 +108,14 @@ int rpmvercmp(const char * a, const char
/*@-boundsread@*/
if ((!*one) && (!*two)) return 0;
+ /* take care of rc, alpha, and beta version numbers */
+ while (*one && *one == '-') one++;
+ if (!strncmp(one, "rc", 2) || !strncmp(one, "alpha", 5) || !strncmp(one, "beta", 4))
+ return -1;
+ while (*two && *two == '-') two++;
+ if (!strncmp(two, "rc", 2) || !strncmp(two, "alpha", 5) || !strncmp(two, "beta", 4))
+ return +1;
+
/* whichever version still has characters left over wins */
if (!*one) return -1; else return 1;
/*@=boundsread@*/

View File

@ -0,0 +1,12 @@
diff -ru rpm-4.4.4/platform.in rpm-4.4.4-qilinux/platform.in
--- rpm-4.4.4/platform.in 2006-01-05 11:52:20.000000000 +0100
+++ rpm-4.4.4-qilinux/platform.in 2006-01-05 11:54:35.000000000 +0100
@@ -7,7 +7,7 @@
%_vendor @RPMCANONVENDOR@
%_os @RPMCANONOS@
%_gnu @RPMRC_GNU@
-%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
+%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
%optflags @RPMRC_OPTFLAGS@
#==============================================================================

View File

@ -0,0 +1,11 @@
--- rpm-4.4.5/macros.in 2006-03-23 15:19:25.000000000 +0100
+++ rpm-4.4.5/macros.in.norepackage 2006-04-05 11:59:43.000000000 +0200
@@ -709,7 +709,7 @@
%_repackage_root %{nil}
# If non-zero, all erasures will be automagically repackaged.
-%_repackage_all_erasures 1
+%_repackage_all_erasures 0
# Prevent pure erasure transactions with --rollback. Pure
# erasure rollback transactions will undo an anaconda install,

View File

@ -0,0 +1,18 @@
diff -ur rpm-4.4.4/installplatform rpm-4.4.4-qilinux/installplatform
--- rpm-4.4.4/installplatform 2005-10-25 23:19:24.000000000 +0200
+++ rpm-4.4.4-qilinux/installplatform 2006-01-04 16:11:55.000000000 +0100
@@ -96,6 +96,14 @@
apple)
VENDORSED='-e s,^@apple@,,'
;;
+ qilinux)
+ VENDORSED='-e s,^@qilinux@,,'
+ RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e "s/ -g/ /"`"
+ ;;
+ openmamba)
+ VENDORSED='-e s,^@openmamba@,,'
+ RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e "s/ -g/ /"`"
+ ;;
esac
cat $PLATFORM \

View File

@ -0,0 +1,8 @@
--- rpm-4.4.5/scripts/brp-nobuildrootpath.orig 2006-04-13 08:48:45.000000000 +0200
+++ rpm-4.4.5/scripts/brp-nobuildrootpath 2006-04-13 08:49:00.000000000 +0200
@@ -15,3 +15,5 @@
;;
esac
done
+
+exit 0

View File

@ -0,0 +1,11 @@
--- rpm-4.4.5/macros.in.orig 2006-10-24 11:28:06.000000000 +0200
+++ rpm-4.4.5/macros.in 2006-10-24 11:28:53.000000000 +0200
@@ -1354,7 +1354,7 @@
%py_requires(d) \
%define maxver %(%{__python} -c "import sys; a,b=sys.version_info[:2]; print '%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND) \
-BuildRequires: python %{-d:python-devel} \
+BuildRequires: python, libpython-devel \
PreReq: python >= %{python_version}, python < %{maxver}
#------------------------------------------------------------------------

View File

@ -0,0 +1,49 @@
--- ./lib/depends.c.no-dirname-dep 2007-02-28 23:19:55.821603774 +0100
+++ ./lib/depends.c 2007-02-28 23:21:23.838251442 +0100
@@ -53,6 +53,9 @@ const char *rpmEVR = VERSION;
/*@unchecked@*/
int rpmFLAGS = RPMSENSE_EQUAL;
+int no_dirname_deps = 1;
+int no_symlink_deps = 1;
+
/**
* Compare removed package instances (qsort/bsearch).
* @param a 1st instance address
@@ -951,6 +954,8 @@ static int checkPackageDeps(rpmts ts, co
}
}
+ if (!no_dirname_deps) {
+
dirnames = rpmdsInit(dirnames);
if (dirnames != NULL)
while (!ourrc && rpmdsNext(dirnames) >= 0) {
@@ -992,7 +997,9 @@ static int checkPackageDeps(rpmts ts, co
/*@switchbreak@*/ break;
}
}
+ }
+ if (!no_symlink_deps) {
linktos = rpmdsInit(linktos);
if (linktos != NULL)
while (!ourrc && rpmdsNext(linktos) >= 0) {
@@ -1010,6 +1017,7 @@ static int checkPackageDeps(rpmts ts, co
dscolor = rpmdsColor(linktos);
if (tscolor && dscolor && !(tscolor & dscolor))
continue;
+ }
rc = unsatisfiedDepend(ts, linktos, adding);
@@ -2058,6 +2066,9 @@ int rpmtsCheck(rpmts ts)
int xx;
int rc;
+ no_dirname_deps = rpmExpandNumeric("%{?_check_dirnames_deps:0}%{?!_check_dirnames_deps:1}");
+ no_symlink_deps = rpmExpandNumeric("%{?_check_symlink_deps:0}%{?!_check_symlink_deps:1}");
+
(void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_CHECK), 0);
/* Do lazy, readonly, open of rpm database. */

View File

@ -0,0 +1,11 @@
--- rpm-4.4.7/macros.in 2007-12-25 11:44:50.000000000 +0100
+++ rpm-4.4.7/macros.in.makeoldinstall 2007-12-25 11:45:36.000000000 +0100
@@ -1148,7 +1148,7 @@
#------------------------------------------------------------------------------
# The make install analogue of %configure:
-%makeinstall \
+%makeoldinstall \
make \\\
prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\

61
rpm-4.4.7-neon-0.28.patch Normal file
View File

@ -0,0 +1,61 @@
diff -Naur tmp-old/rpmio/rpmdav.c tmp-new/rpmio/rpmdav.c
--- rpmio/rpmdav.c 2008-03-28 04:40:52.000000000 +0000
+++ rpmio/rpmdav.c 2008-03-28 05:19:50.000000000 +0000
@@ -103,7 +103,7 @@
}
static void davNotify(void * userdata,
- ne_conn_status connstatus, const char * info)
+ ne_session_status sessionstatus, const char * info)
/*@*/
{
urlinfo u = userdata;
@@ -124,18 +124,20 @@
#ifdef REFERENCE
typedef enum {
- ne_conn_namelookup, /* lookup up hostname (info = hostname) */
- ne_conn_connecting, /* connecting to host (info = hostname) */
- ne_conn_connected, /* connected to host (info = hostname) */
- ne_conn_secure /* connection now secure (info = crypto level) */
-} ne_conn_status;
+ ne_status_lookup = 0, /* looking up hostname */
+ ne_status_connecting, /* connecting to host */
+ ne_status_connected, /* connected to host */
+ ne_status_sending, /* sending a request body */
+ ne_status_recving, /* receiving a response body */
+ ne_status_disconnected /* disconnected from host */
+} ne_session_status;
#endif
- u->connstatus = connstatus;
+ u->sessionstatus = sessionstatus;
/*@-boundsread@*/
if (_dav_debug < 0)
-fprintf(stderr, "*** davNotify(%p,%d,%p) sess %p u %p %s\n", userdata, connstatus, info, sess, u, connstates[ (connstatus < 4 ? connstatus : 4)]);
+fprintf(stderr, "*** davNotify(%p,%d,%p) sess %p u %p %s\n", userdata, sessionstatus, info, sess, u, connstates[ (sessionstatus < 5 ? sessionstatus : 5)]);
/*@=boundsread@*/
}
@@ -350,7 +352,7 @@
#endif
ne_set_progress(u->sess, davProgress, u);
- ne_set_status(u->sess, davNotify, u);
+ ne_set_notifier(u->sess, davNotify, u);
ne_set_persist(u->sess, 1);
ne_set_read_timeout(u->sess, httpTimeoutSecs);
diff -Naur tmp-old/rpmio/rpmurl.h tmp-new/rpmio/rpmurl.h
--- rpmio/rpmurl.h 2008-03-28 04:55:02.000000000 +0000
+++ rpmio/rpmurl.h 2008-03-28 04:56:09.000000000 +0000
@@ -60,7 +60,7 @@
void * sess; /*!< neon: ne_session ptr */
off_t current; /*!< neon: current body offset. */
off_t total; /*!< neon: total body length. */
- int connstatus; /*!< neon: connection status. */
+ int sessionstatus; /*!< neon: session status. */
#ifdef REFERENCE
typedef enum {
ne_conn_namelookup, /* lookup up hostname (info = hostname) */

View File

@ -0,0 +1,22 @@
Only in rpm-4.4.8/scripts: brp-infodir.brp_infodir
diff -ru rpm-4.4.8.orig/scripts/brp-redhat.in rpm-4.4.8/scripts/brp-redhat.in
--- rpm-4.4.8.orig/scripts/brp-redhat.in 2007-02-03 19:43:28.000000000 +0100
+++ rpm-4.4.8/scripts/brp-redhat.in 2008-01-16 12:46:12.000000000 +0100
@@ -3,11 +3,17 @@
# These are the build root policies that rpm invokes at the end
# of the %install scriptlet.
+# Delete the /usr/share/info/dir files
+@USRLIBRPM@/brp-infodir
+
# Compress man pages (usually with gzip)
@USRLIBRPM@/brp-compress
# Strip ELF binaries (ussually with binutils).
@USRLIBRPM@/brp-strip
+# Strip static libraries
+@USRLIBRPM@/brp-strip-static-archive
+
# Strip even more sections (usually with binutils).
@USRLIBRPM@/brp-strip-comment-note

View File

@ -0,0 +1,14 @@
diff -Nru rpm-4.4.8.orig/macros.in rpm-4.4.8/macros.in
--- rpm-4.4.8.orig/macros.in 2008-01-16 12:53:55.000000000 +0100
+++ rpm-4.4.8/macros.in 2008-01-16 12:55:59.000000000 +0100
@@ -704,8 +704,8 @@
# Horowitz Key Protocol server configuration
#
-%_hkp_keyserver hkp://subkeys.pgp.net
-%_hkp_keyserver_query %{_hkp_keyserver}/pks/lookup?op=get&search=0x
+#%_hkp_keyserver hkp://subkeys.pgp.net
+#%_hkp_keyserver_query %{_hkp_keyserver}/pks/lookup?op=get&search=0x
#==============================================================================
# ---- Transaction macros.

View File

@ -0,0 +1,14 @@
diff -Nru rpm-4.4.8.orig/macros.in rpm-4.4.8/macros.in
--- rpm-4.4.8.orig/macros.in 2008-01-16 12:51:29.000000000 +0100
+++ rpm-4.4.8/macros.in 2008-01-16 12:53:00.000000000 +0100
@@ -1398,8 +1398,8 @@
#
# Note: Used iff _use_internal_dependency_generator is non-zero. The
# helpers are also used by %{_usrlibrpm}/rpmdeps {--provides|--requires}.
-%__libtool_provides %{_usrlibrpm}/libtooldeps.sh --provides %{buildroot} %{name}
-%__libtool_requires %{_usrlibrpm}/libtooldeps.sh --requires %{buildroot} %{name}
+#%__libtool_provides %{_usrlibrpm}/libtooldeps.sh --provides %{buildroot} %{name}
+#%__libtool_requires %{_usrlibrpm}/libtooldeps.sh --requires %{buildroot} %{name}
#------------------------------------------------------------------------
# pkgconfig(...) configuration.

View File

@ -0,0 +1,12 @@
--- rpm-4.4.8.orig/lib/rpmrc.c 2008-01-16 13:01:11.000000000 +0100
+++ rpm-4.4.8/lib/rpmrc.c 2008-01-16 13:09:31.000000000 +0100
@@ -1891,6 +1891,9 @@
defaultsInitialized = 1;
}
+ if (rcfiles == NULL)
+ rcfiles = rpmRcfiles;
+
/* Read each file in rcfiles. */
rc = 0;
if (rcfiles != NULL)

48
rpm-4.4.8-rpmtopdir.patch Normal file
View File

@ -0,0 +1,48 @@
diff -Nru rpm-4.4.8.orig/doc/manual/builddependencies rpm-4.4.8/doc/manual/builddependencies
--- rpm-4.4.8.orig/doc/manual/builddependencies 2005-10-25 23:03:33.000000000 +0200
+++ rpm-4.4.8/doc/manual/builddependencies 2008-01-16 12:32:49.000000000 +0100
@@ -29,7 +29,7 @@
\verbatim
rpm -U /mnt/rpm/comps/powertools/6.2/i386/InDependence-1.0-3.i386.rpm
rpm -i /mnt/rpm/comps/dist/6.2/SRPMS/gnorpm-0.9-11.src.rpm
- cd /usr/src/rpm/SPECS
+ cd /usr/src/RPM/SPECS
dep -detail rpmbuild -ba gnorpm.spec >& xxx
...
(the build will take longer since both dep and strace are pigs)
diff -Nru rpm-4.4.8.orig/lib/rpmrc.c rpm-4.4.8/lib/rpmrc.c
--- rpm-4.4.8.orig/lib/rpmrc.c 2007-02-04 07:14:56.000000000 +0100
+++ rpm-4.4.8/lib/rpmrc.c 2008-01-16 12:33:36.000000000 +0100
@@ -585,7 +585,7 @@
addMacro(NULL, "___build_pre", NULL, ___build_pre, RMIL_DEFAULT);
setVarDefault(-1, "_topdir",
- "/usr/src/rpm", "%{_usr}/src/rpm");
+ "/usr/src/RPM", "%{_usr}/src/RPM");
setVarDefault(-1, "_tmppath",
"/var/tmp", "%{_var}/tmp");
setVarDefault(-1, "_dbpath",
diff -Nru rpm-4.4.8.orig/macros.in rpm-4.4.8/macros.in
--- rpm-4.4.8.orig/macros.in 2007-02-13 15:39:55.000000000 +0100
+++ rpm-4.4.8/macros.in 2008-01-16 12:34:18.000000000 +0100
@@ -233,7 +233,7 @@
%tmpdir %{_tmppath}
# Path to top of build area.
-%_topdir %{_usrsrc}/rpm
+%_topdir %{_usrsrc}/RPM
#==============================================================================
# ---- Optional rpmrc macros.
diff -Nru rpm-4.4.8.orig/Makefile.in rpm-4.4.8/Makefile.in
--- rpm-4.4.8.orig/Makefile.in 2007-02-11 03:34:33.000000000 +0100
+++ rpm-4.4.8/Makefile.in 2008-01-16 12:34:31.000000000 +0100
@@ -501,7 +501,7 @@
rpm2cpio_LDFLAGS = $(myLDFLAGS) $(staticLDFLAGS)
rpm2cpio_LDADD = $(myLDADD) @LIBMISC@
CVSTAG = r$(subst .,-,$(VERSION))
-pkgsrcdir = $(prefix)/src/rpm
+pkgsrcdir = $(prefix)/src/RPM
ACLOCAL_AMFLAGS = -I m4
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive

View File

@ -0,0 +1,10 @@
Only in rpm-4.4.9/scripts: brp-infodir.brp_infodir
Only in rpm-4.4.9/scripts: brp-strip-builddirs.brp_strip_builddirs
diff -ru rpm-4.4.9.orig/scripts/brp-strip-static-archive rpm-4.4.9/scripts/brp-strip-static-archive
--- rpm-4.4.9.orig/scripts/brp-strip-static-archive 2005-05-30 08:42:19.000000000 +0200
+++ rpm-4.4.9/scripts/brp-strip-static-archive 2009-11-19 13:20:21.000000000 +0100
@@ -16,3 +16,4 @@
sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p'`; do
strip -g "$f"
done
+exit 0

View File

@ -0,0 +1,12 @@
diff -Nru rpm-4.4.9.orig//autodeps/linux.req rpm-4.4.9/autodeps/linux.req
--- rpm-4.4.9.orig//autodeps/linux.req 2010-03-24 21:31:02.094926887 +0100
+++ rpm-4.4.9/autodeps/linux.req 2010-03-24 21:31:53.858177160 +0100
@@ -113,7 +113,7 @@
sub(/:/, "", $3);
LIBNAME=$3;
}
- (START==2) && (LIBNAME!="") && ($4!="") {
+ (START==2) && (LIBNAME!="") && ($4!="") && (($4~/^GLIBC_*/) || ($4~/^GCC_*/)) {
print LIBNAME "(" $4 ")'$lib64'";
}
'

45
rpm-4.4.9-rpmevr.patch Normal file
View File

@ -0,0 +1,45 @@
--- lib/rpmevr.h.orig 2007-05-16 12:55:05.000000000 +0200
+++ lib/rpmevr.h 2007-08-09 18:36:13.000000000 +0200
@@ -6,6 +6,10 @@
* Structure(s) and routine(s) used for EVR parsing and comparison.
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
*/
/*@-exportlocal@*/
@@ -117,10 +121,6 @@
#define isErasePreReq(_x) ((_x) & _ERASE_ONLY_MASK)
#endif /* _RPMEVR_INTERNAL */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/** \ingroup rpmds
* Segmented string compare.
* @param a 1st string
--- ./lib/rpmevr.h.orig 2007-05-16 12:55:05.000000000 +0200
+++ ./lib/rpmevr.h 2007-06-20 10:13:14.000000000 +0200
@@ -18,8 +18,6 @@
/**
* Dependency Attributes.
*/
-typedef enum evrFlags_e rpmsenseFlags;
-typedef enum evrFlags_e evrFlags;
/*@-matchfields@*/
enum evrFlags_e {
@@ -67,6 +65,9 @@
};
/*@=matchfields@*/
+typedef enum evrFlags_e rpmsenseFlags;
+typedef enum evrFlags_e evrFlags;
+
#define RPMSENSE_SENSEMASK 0x0e /* Mask to get senses, ie serial, */
/* less, greater, equal. */
#define RPMSENSE_NOTEQUAL (RPMSENSE_EQUAL ^ RPMSENSE_SENSEMASK)

40
rpm-4.4.9-rpmrc.patch Normal file
View File

@ -0,0 +1,40 @@
--- rpm-4.4.7.orig/rpmrc.in 2006-08-06 15:13:38.000000000 +0000
+++ rpm-4.4.7/rpmrc.in 2007-12-14 02:59:17.000000000 +0000
@@ -15,13 +15,13 @@
# "fat" binary with both archs, for Darwin
optflags: fat -O2 -g -arch i386 -arch ppc
-optflags: i386 -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
-optflags: i486 -O2 -g -m32 -march=i486 -fasynchronous-unwind-tables
-optflags: i586 -O2 -g -m32 -march=i586 -fasynchronous-unwind-tables
-optflags: i686 -O2 -g -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables
-optflags: pentium3 -O2 -g -m32 -march=pentium3 -fasynchronous-unwind-tables
-optflags: pentium4 -O2 -g -m32 -march=pentium4 -fasynchronous-unwind-tables
-optflags: athlon -O2 -g -m32 -march=athlon -fasynchronous-unwind-tables
+optflags: i386 -O2 -g -fomit-frame-pointer -pipe -march=i386
+optflags: i486 -O2 -g -fomit-frame-pointer -pipe -march=i486
+optflags: i586 -O2 -g -fomit-frame-pointer -pipe -march=i586 -mtune=generic
+optflags: i686 -O2 -g -fomit-frame-pointer -pipe -march=i686 -mtune=generic
+optflags: pentium3 -O2 -g -fomit-frame-pointer -pipe -march=i686 -mtune=pentium3
+optflags: pentium4 -O2 -g -fomit-frame-pointer -pipe -march=i686 -mtune=pentium4
+optflags: athlon -O2 -g -fomit-frame-pointer -pipe -march=i686 -mtune=athlon
optflags: ia64 -O2 -g
optflags: x86_64 -O2 -g -m64 -mtune=generic
optflags: amd64 -O2 -g -m64 -mtune=generic
@@ -192,11 +192,11 @@
buildarchtranslate: osfmach3_i486: i386
buildarchtranslate: osfmach3_i386: i386
-buildarchtranslate: athlon: i386
-buildarchtranslate: pentium4: i386
-buildarchtranslate: pentium3: i386
-buildarchtranslate: i686: i386
-buildarchtranslate: i586: i386
+buildarchtranslate: athlon: i586
+buildarchtranslate: pentium4: i586
+buildarchtranslate: pentium3: i586
+buildarchtranslate: i686: i586
+buildarchtranslate: i586: i586
buildarchtranslate: i486: i386
buildarchtranslate: i386: i386

32
rpm-5.1.6-macrodirs.patch Normal file
View File

@ -0,0 +1,32 @@
diff -Nru rpm-5.1.6.orig/macros.in rpm-5.1.6/macros.in
--- rpm-5.1.6.orig/macros.in 2008-10-16 13:43:54.000000000 +0200
+++ rpm-5.1.6/macros.in 2009-01-01 18:02:46.000000000 +0100
@@ -895,7 +895,7 @@
# The "transactional rollback" directory in which erased packages will
# be saved when using the --repackage option.
-%_repackage_dir %{_var}/spool/repackage
+%_repackage_dir %{_var}/tmp
# A path (i.e. URL) prefix that is pre-pended to %{_repackage_dir}.
%_repackage_root %{nil}
@@ -1296,15 +1296,15 @@
%_sbindir %{_exec_prefix}/sbin
%_libexecdir %{_exec_prefix}/libexec
%_datadir %{_prefix}/share
-%_sysconfdir %{_prefix}/etc
+%_sysconfdir /etc
%_sharedstatedir %{_prefix}/com
-%_localstatedir %{_prefix}/var
+%_localstatedir /var
%_lib lib
%_libdir %{_exec_prefix}/%{_lib}
%_includedir %{_prefix}/include
%_oldincludedir /usr/include
-%_infodir %{_prefix}/info
-%_mandir %{_prefix}/man
+%_infodir %{_datadir}/info
+%_mandir %{_datadir}/man
%_localedir %{_datadir}/locale
#==============================================================================

View File

@ -0,0 +1,15 @@
diff -Nru rpm-5.1.6.orig/build/files.c rpm-5.1.6/build/files.c
--- rpm-5.1.6.orig/build/files.c 2009-01-01 18:19:43.000000000 +0100
+++ rpm-5.1.6/build/files.c 2009-01-01 18:27:24.000000000 +0100
@@ -2759,8 +2759,9 @@
flp->uname = fl.def_ar.ar_user ? getUnameS(fl.def_ar.ar_user) : getUname(flp->fl_uid);
flp->gname = fl.def_ar.ar_group ? getGnameS(fl.def_ar.ar_group) : getGname(flp->fl_gid);
#else
- flp->uname = getUname(flp->fl_uid);
- flp->gname = getGname(flp->fl_gid);
+ /* set a standard owner and group */
+ flp->uname = "packager";
+ flp->gname = "packager";
#endif
flp->langs = xstrdup("");

5
rpm-5.2-update.upd Normal file
View File

@ -0,0 +1,5 @@
# make a backup of old rpm
cp -a /var/lib/rpm /var/lib/rpm4backup.`date +%s`
rpm --rebuilddb
exit 0
_EOF

View File

@ -0,0 +1,38 @@
diff -Nru rpm-5.2.1.orig/scripts/brp-infodir rpm-5.2.1/scripts/brp-infodir
--- rpm-5.1.6.orig/scripts/brp-infodir 1970-01-01 01:00:00.000000000 +0100
+++ rpm-5.1.6/scripts/brp-infodir 2009-01-01 18:09:52.000000000 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# If using normal root, avoid changing anything.
+if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
+ exit 0
+fi
+
+# Delete /usr/share/info/dir file
+if [ -f $RPM_BUILD_ROOT/usr/share/info/dir ]; then
+ rm -f $RPM_BUILD_ROOT/usr/share/info/dir
+fi
+
diff -ru rpm-5.2.1.orig//scripts/Makefile.in rpm-5.2.1/scripts/Makefile.in
--- rpm-5.2.1.orig//scripts/Makefile.in 2010-05-01 18:57:12.000000000 +0200
+++ rpm-5.2.1/scripts/Makefile.in 2010-07-28 19:37:45.796740786 +0200
@@ -429,7 +429,7 @@
EXTRA_DIST = \
brp-compress brp-python-bytecompile brp-java-gcjcompile \
- brp-strip brp-strip-comment-note brp-nobuildrootpath \
+ brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
brp-implant-ident-static brp-java-repack-jars \
check-files cross-build \
@@ -460,7 +460,7 @@
bin_SCRIPTS = gendiff
pkglib_SCRIPTS = \
brp-compress brp-python-bytecompile brp-java-gcjcompile \
- brp-strip brp-strip-comment-note brp-nobuildrootpath \
+ brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
check-files cross-build executabledeps.sh \
find-debuginfo.sh find-lang.sh find-prov.pl find-req.pl \
Solo in rpm-5.2.1/scripts: Makefile.in.orig

View File

@ -0,0 +1,41 @@
diff -Nru rpm-5.1.6.orig1/scripts/brp-strip-builddirs rpm-5.1.6/scripts/brp-strip-builddirs
--- rpm-5.1.6.orig1/scripts/brp-strip-builddirs 1970-01-01 01:00:00.000000000 +0100
+++ rpm-5.1.6/scripts/brp-strip-builddirs 2009-01-01 18:15:45.000000000 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# If using normal root, avoid changing anything.
+if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
+ exit 0
+fi
+
+# Remove the rpm builddir paths in *.la files
+find $RPM_BUILD_ROOT -type f -name *.la | \
+ xargs -r sed -i '/dependency_libs=/{
+ s,-L/usr/src/RPM/BUILD/[^ ]*,,g}'
+
diff -Nru rpm-5.1.6.orig1/scripts/Makefile.in rpm-5.1.6/scripts/Makefile.in
--- rpm-5.2.1.orig/scripts/Makefile.in 2010-05-01 18:57:12.000000000 +0200
+++ rpm-5.2.1/scripts/Makefile.in 2010-07-28 20:01:05.795740791 +0200
@@ -429,8 +429,8 @@
EXTRA_DIST = \
brp-compress brp-python-bytecompile brp-java-gcjcompile \
- brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
- brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
+ brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
+ brp-strip-builddirs brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
brp-implant-ident-static brp-java-repack-jars \
check-files cross-build \
deb_Packages deb_Sources \
@@ -460,8 +460,8 @@
bin_SCRIPTS = gendiff
pkglib_SCRIPTS = \
brp-compress brp-python-bytecompile brp-java-gcjcompile \
- brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
- brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
+ brp-infodir brp-strip brp-strip-comment-note brp-nobuildrootpath \
+ brp-strip-builddirs brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
check-files cross-build executabledeps.sh \
find-debuginfo.sh find-lang.sh find-prov.pl find-req.pl \
find-provides.perl \

View File

@ -0,0 +1,18 @@
diff -Nru rpm-5.2.1.orig/scripts/brp-strip-shared rpm-5.2.1/scripts/brp-strip-shared
--- rpm-5.2.1.orig/scripts/brp-strip-shared 2007-06-20 18:56:47.000000000 +0200
+++ rpm-5.2.1/scripts/brp-strip-shared 2010-07-26 15:40:38.510732998 +0200
@@ -22,5 +22,5 @@
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep ' shared object,' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
- $STRIP --strip-unneeded "$f"
+ $STRIP -g "$f"
done
diff -Nru rpm-5.2.1.orig//scripts/brp-strip-shared rpm-5.2.1/scripts/brp-strip-shared
--- rpm-5.2.1.orig//scripts/brp-strip-shared 2010-08-23 14:14:37.334358282 +0200
+++ rpm-5.2.1/scripts/brp-strip-shared 2010-08-23 14:17:14.416357981 +0200
@@ -24,3 +24,4 @@
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
$STRIP -g "$f"
done
+exit 0

View File

@ -0,0 +1,11 @@
--- rpm-5.2.1.orig/build.c 2008-08-01 14:33:30.000000000 +0200
+++ rpm-5.2.1/build.c 2014-04-24 13:47:18.185073519 +0200
@@ -128,7 +128,7 @@
for (i = 0; sfpats[i]; i++) {
se = rpmExpand("%{uncompress: %{u2p:", arg, "}}",
- " | %{__tar} -xOvf - %{?__tar_wildcards} ", sfpats[i],
+ " | LANG=C %{__tar} -xOvf - --wildcards ", sfpats[i],
" 2>&1 > '", tmpSpecFile, "'", NULL);
fp = popen(se, "r");
se = _free(se);

View File

@ -0,0 +1,11 @@
--- rpm-5.2.1.orig/rpmdb/tagtbl.c 2010-05-01 19:13:04.000000000 +0200
+++ rpm-5.2.1/rpmdb/tagtbl.c 2010-07-26 16:00:14.498483841 +0200
@@ -26,6 +26,8 @@
{ "RPMTAG_BUILDINSTALLPROG", 0x70d4ab6f, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
{ "RPMTAG_BUILDMACROS", 1111, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
{ "RPMTAG_BUILDPLATFORMS", 1183, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
+ { "RPMTAG_BUILDPREREQ", 1108, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
+ { "RPMTAG_BUILDREQUIRES", 1109, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
{ "RPMTAG_BUILDPREP", 0x799c0b4d, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
{ "RPMTAG_BUILDPREPPROG", 0x4ba37c9e, RPM_STRING_ARRAY_TYPE + RPM_ARRAY_RETURN_TYPE },
{ "RPMTAG_BUILDTIME", 1006, RPM_UINT32_TYPE + RPM_SCALAR_RETURN_TYPE },

View File

@ -0,0 +1,14 @@
diff -Nru rpm-5.2.1.orig//configure.ac rpm-5.2.1/configure.ac
--- rpm-5.2.1.orig//configure.ac 2010-08-08 15:33:22.395183431 +0200
+++ rpm-5.2.1/configure.ac 2010-08-08 15:34:39.238308596 +0200
@@ -1543,6 +1543,10 @@
target_os=`echo "${target_os}" | sed 's/-gnu$//'`
target_os_gnu="-gnu"
fi
+if echo "$target_os" | grep '.*-gnueabi' > /dev/null ; then
+ target_os=`echo "${target_os}" | sed 's/-gnueabi$//'`
+ target_os_gnu="-gnueabi"
+fi
changequote(<, >)
target_os_exact="${target_os}"
target_os_major=`echo "${target_os}" | sed 's/\..*$//'`

View File

@ -0,0 +1,39 @@
--- rpm-5.2.1/macros.in 2010-07-26 15:52:38.766483139 +0200
+++ rpm-5.2.1.orig/macros.in 2010-07-26 15:42:00.998483655 +0200
@@ -707,28 +707,28 @@
# database configuration: Berkeley-DB [dbapi 3 hooks]
%_dbi_config_3 %{_dbi_btconfig}
-%_dbi_config_3_Basenames %{_dbi_btconfig}
-%_dbi_config_3_Conflictname %{_dbi_btconfig}
+%_dbi_config_3_Basenames %{_dbi_htconfig}
+%_dbi_config_3_Conflictname %{_dbi_htconfig}
%_dbi_config_3_Dirnames %{_dbi_btconfig}
%_dbi_config_3_Filedigests %{_dbi_htconfig}
%_dbi_config_3_Filepaths %{_dbi_btconfig}
-%_dbi_config_3_Group %{_dbi_btconfig}
+%_dbi_config_3_Group %{_dbi_htconfig}
%_dbi_config_3_Installtid %{_dbi_btconfig}
-%_dbi_config_3_Name %{_dbi_btconfig}
+%_dbi_config_3_Name %{_dbi_htconfig}
%_dbi_config_3_Nvra %{_dbi_btconfig} noload
%_dbi_config_3_Obsoletename %{_dbi_btconfig}
%_dbi_config_3_Packagecolor %{_dbi_htconfig}
-%_dbi_config_3_Providename %{_dbi_btconfig}
+%_dbi_config_3_Providename %{_dbi_htconfig}
%_dbi_config_3_Provideversion %{_dbi_btconfig}
%_dbi_config_3_Pubkeys %{_dbi_htconfig}
%_dbi_config_3_Removetid %{_dbi_btconfig}
-%_dbi_config_3_Requirename %{_dbi_btconfig}
+%_dbi_config_3_Requirename %{_dbi_htconfig}
%_dbi_config_3_Requireversion %{_dbi_btconfig}
%_dbi_config_3_Sha1header %{_dbi_htconfig}
%_dbi_config_3_Sigmd5 %{_dbi_htconfig}
%_dbi_config_3_Sourcepkgid %{_dbi_btconfig}
-%_dbi_config_3_Triggername %{_dbi_btconfig}
-%_dbi_config_3_Packages %{_dbi_btconfig} lockdbfd
+%_dbi_config_3_Triggername %{_dbi_htconfig}
+%_dbi_config_3_Packages %{_dbi_htconfig} lockdbfd
%_dbi_config_3_Depends %{_dbi_btconfig} temporary private
# database configuration: SQLite [dbapi 4 hooks]

View File

@ -0,0 +1,158 @@
diff -Nru rpm-5.2.1.orig/tools/debugedit.c rpm-5.2.1/tools/debugedit.c
--- rpm-5.2.1.orig/tools/debugedit.c 2008-12-25 18:21:43.000000000 +0100
+++ rpm-5.2.1/tools/debugedit.c 2012-04-13 17:59:32.854064354 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2005, 2007 Red Hat, Inc.
+/* Copyright (C) 2001, 2002, 2003, 2005, 2007, 2009 Red Hat, Inc.
Written by Alexander Larsson <alexl@redhat.com>, 2002
Based on code by Jakub Jelinek <jakub@redhat.com>, 2001.
@@ -114,6 +114,7 @@
static void (*write_32) (unsigned char *ptr, GElf_Addr val);
static int ptr_size;
+static int cu_version;
static inline rpmuint16_t
buf_read_ule16 (unsigned char *data)
@@ -239,16 +240,18 @@
#define DEBUG_LINE 2
#define DEBUG_ARANGES 3
#define DEBUG_PUBNAMES 4
-#define DEBUG_MACINFO 5
-#define DEBUG_LOC 6
-#define DEBUG_STR 7
-#define DEBUG_FRAME 8
-#define DEBUG_RANGES 9
+#define DEBUG_PUBTYPES 5
+#define DEBUG_MACINFO 6
+#define DEBUG_LOC 7
+#define DEBUG_STR 8
+#define DEBUG_FRAME 9
+#define DEBUG_RANGES 10
{ ".debug_info", NULL, NULL, 0, 0, 0 },
{ ".debug_abbrev", NULL, NULL, 0, 0, 0 },
{ ".debug_line", NULL, NULL, 0, 0, 0 },
{ ".debug_aranges", NULL, NULL, 0, 0, 0 },
{ ".debug_pubnames", NULL, NULL, 0, 0, 0 },
+ { ".debug_pubtypes", NULL, NULL, 0, 0, 0 },
{ ".debug_macinfo", NULL, NULL, 0, 0, 0 },
{ ".debug_loc", NULL, NULL, 0, 0, 0 },
{ ".debug_str", NULL, NULL, 0, 0, 0 },
@@ -328,7 +331,7 @@
}
if (*slot != NULL)
{
- error (0, 0, "%s: Duplicate DWARF-2 abbreviation %d", dso->filename,
+ error (0, 0, "%s: Duplicate DWARF abbreviation %d", dso->filename,
t->entry);
free (t);
htab_delete (h);
@@ -348,7 +351,7 @@
form = read_uleb128 (ptr);
if (form == 2 || form > DW_FORM_indirect)
{
- error (0, 0, "%s: Unknown DWARF-2 DW_FORM_%d", dso->filename, form);
+ error (0, 0, "%s: Unknown DWARF DW_FORM_%d", dso->filename, form);
htab_delete (h);
return NULL;
}
@@ -358,7 +361,7 @@
}
if (read_uleb128 (ptr) != 0)
{
- error (0, 0, "%s: DWARF-2 abbreviation does not end with 2 zeros",
+ error (0, 0, "%s: DWARF abbreviation does not end with 2 zeros",
dso->filename);
htab_delete (h);
return NULL;
@@ -510,7 +513,7 @@
}
value = read_16 (ptr);
- if (value != 2)
+ if (value != 2 && value != 3)
{
error (0, 0, "%s: DWARF version %d unhandled", dso->filename,
value);
@@ -855,7 +858,12 @@
switch (form)
{
- case DW_FORM_ref_addr: /* ptr_size in DWARF 2, offset in DWARF 3 */
+ case DW_FORM_ref_addr:
+ if (cu_version == 2)
+ ptr += ptr_size;
+ else
+ ptr += 4;
+ break;
case DW_FORM_addr:
ptr += ptr_size;
break;
@@ -907,7 +915,7 @@
assert (len < UINT_MAX);
break;
default:
- error (0, 0, "%s: Unknown DWARF-2 DW_FORM_%d", dso->filename,
+ error (0, 0, "%s: Unknown DWARF DW_FORM_%d", dso->filename,
form);
return NULL;
}
@@ -1204,11 +1212,11 @@
return 1;
}
- value = read_16 (ptr);
- if (value != 2)
+ cu_version = read_16 (ptr);
+ if (cu_version != 2 && cu_version != 3)
{
error (0, 0, "%s: DWARF version %d unhandled", dso->filename,
- value);
+ cu_version);
return 1;
}
@@ -1218,7 +1226,7 @@
if (debug_sections[DEBUG_ABBREV].data == NULL)
error (0, 0, "%s: .debug_abbrev not present", dso->filename);
else
- error (0, 0, "%s: DWARF-2 CU abbrev offset too large",
+ error (0, 0, "%s: DWARF CU abbrev offset too large",
dso->filename);
return 1;
}
@@ -1228,14 +1236,14 @@
ptr_size = read_1 (ptr);
if (ptr_size != 4 && ptr_size != 8)
{
- error (0, 0, "%s: Invalid DWARF-2 pointer size %d",
+ error (0, 0, "%s: Invalid DWARF pointer size %d",
dso->filename, ptr_size);
return 1;
}
}
else if (read_1 (ptr) != ptr_size)
{
- error (0, 0, "%s: DWARF-2 pointer size differs between CUs",
+ error (0, 0, "%s: DWARF pointer size differs between CUs",
dso->filename);
return 1;
}
@@ -1253,7 +1261,7 @@
t = htab_find_with_hash (abbrev, &tag, tag.entry);
if (t == NULL)
{
- error (0, 0, "%s: Could not find DWARF-2 abbreviation %d",
+ error (0, 0, "%s: Could not find DWARF abbreviation %d",
dso->filename, tag.entry);
htab_delete (abbrev);
return 1;
@@ -1587,6 +1595,7 @@
switch (dso->shdr[i].sh_type)
{
case SHT_PROGBITS:
+ case SHT_MIPS_DWARF:
name = strptr (dso, dso->ehdr.e_shstrndx, dso->shdr[i].sh_name);
/* TODO: Handle stabs */
#if 0

View File

@ -0,0 +1,12 @@
diff -Nru rpm-5.2.1.orig//rpmdb/rpmdb.c rpm-5.2.1/rpmdb/rpmdb.c
--- rpm-5.2.1.orig//rpmdb/rpmdb.c 2009-05-23 17:50:03.000000000 +0200
+++ rpm-5.2.1/rpmdb/rpmdb.c 2010-12-27 16:20:57.740221701 +0100
@@ -2449,7 +2449,7 @@
return rc;
}
-static int _rpmmi_usermem = 1;
+static int _rpmmi_usermem = 0;
static int rpmmiGet(dbiIndex dbi, DBC * dbcursor, DBT * kp, DBT * vp,
unsigned int flags)

View File

@ -0,0 +1,12 @@
diff -Nru rpm-5.2.1.orig//macros.in rpm-5.2.1/macros.in
--- rpm-5.2.1.orig//macros.in 2010-07-26 16:02:40.330483089 +0200
+++ rpm-5.2.1/macros.in 2010-07-26 16:07:14.845732684 +0200
@@ -1746,7 +1746,7 @@
# helpers are also used by %{_rpmhome}/rpmdeps {--provides|--requires}.
#%__executable_provides %{_rpmhome}/executabledeps.sh --provides
#%__executable_requires %{_rpmhome}/executabledeps.sh --requires
-%__scriptlet_requires %{__bash} --rpm-requires
+#%__scriptlet_requires %{__bash} --rpm-requires
# \endverbatim
#*/

View File

@ -0,0 +1,12 @@
diff -ru rpm-5.2.1.orig/lib//poptI.c rpm-5.2.1/lib/poptI.c
--- rpm-5.2.1.orig/lib//poptI.c 2009-04-11 16:47:13.000000000 +0200
+++ rpm-5.2.1/lib/poptI.c 2010-07-26 15:35:13.285484268 +0200
@@ -21,7 +21,7 @@
/*@-fullinitblock@*/
/*@unchecked@*/
struct rpmQVKArguments_s rpmIArgs = {
-#if defined(RPM_VENDOR_MANDRIVA) /* dont-filter-install-file-conflicts */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_OPENMAMBA) /* dont-filter-install-file-conflicts */
.probFilter = RPMPROB_FILTER_NONE,
#else
.probFilter = (RPMPROB_FILTER_REPLACEOLDFILES | RPMPROB_FILTER_REPLACENEWFILES),

View File

@ -0,0 +1,37 @@
diff -ru rpm-5.2.1/rpmdb/header_internal.c rpm-5.2.1.orig/rpmdb/header_internal.c
--- rpm-5.2.1/rpmdb/header_internal.c 2010-07-27 19:27:58.316530178 +0200
+++ rpm-5.2.1.orig/rpmdb/header_internal.c 2008-07-31 04:40:08.000000000 +0200
@@ -44,11 +44,13 @@
for (i = 0; i < il; i++) {
info->tag = (rpmuint32_t) ntohl(pe[i].tag);
info->type = (rpmuint32_t) ntohl(pe[i].type);
+#ifdef DYING
/* XXX Convert RPMTAG_FILESTATE to RPM_UINT8_TYPE. */
if (info->tag == 1029 && info->type == 1) {
info->type = RPM_UINT8_TYPE;
pe[i].type = (rpmuint32_t) htonl(info->type);
}
+#endif
info->offset = (rpmint32_t) ntohl(pe[i].offset);
assert(negate || info->offset >= 0); /* XXX insurance */
if (negate)
diff -ru rpm-5.2.1/rpmdb/rpmtag.h rpm-5.2.1.orig/rpmdb/rpmtag.h
--- rpm-5.2.1/rpmdb/rpmtag.h 2010-07-27 19:28:33.943469247 +0200
+++ rpm-5.2.1.orig/rpmdb/rpmtag.h 2009-07-25 02:56:51.000000000 +0200
@@ -25,7 +25,7 @@
*/
enum rpmTagType_e {
/* RPM_NULL_TYPE = 0 - never been used. */
- /* RPM_CHAR_TYPE = 1 - never been used, same as RPM_UINT8_TYPE. */
+ RPM_CHAR_TYPE = 1,
RPM_UINT8_TYPE = 2,
RPM_UINT16_TYPE = 3,
RPM_UINT32_TYPE = 4,
@@ -37,7 +37,7 @@
/* RPM_ASN1_TYPE = 10 - never been used. */
/* RPM_OPENPGP_TYPE= 11 - never been used. */
};
-#define RPM_MIN_TYPE 2
+#define RPM_MIN_TYPE 1
#define RPM_MAX_TYPE 9
#define RPM_MASK_TYPE 0x0000ffff

View File

@ -0,0 +1,28 @@
diff -Nru rpm-4.4.9.orig//macros.in rpm-4.4.9/macros.in
--- rpm-4.4.9.orig//macros.in 2010-03-19 18:48:13.759362076 +0100
+++ rpm-4.4.9/macros.in 2010-03-19 18:58:18.256361807 +0100
@@ -1156,17 +1156,17 @@
# ---- config.guess platform macros.
# Macro(s) similar to the tokens used by configure.
#
-%_build %{_host}
-%_build_alias %{_host_alias}
-%_build_cpu %{_host_cpu}
-%_build_vendor %{_host_vendor}
-%_build_os %{_host_os}
-%_host @host@
+%_build %{_build_cpu}-%{_build_vendor}-%{_build_os}
+%_build_alias @host_alias@%{nil}
+%_build_cpu @host_cpu@
+%_build_vendor @host_vendor@
+%_build_os @host_os@
+%_host %{_host_cpu}-%{_host_vendor}-%{_host_os}
%_host_alias @host_alias@%{nil}
%_host_cpu @host_cpu@
%_host_vendor @host_vendor@
%_host_os @host_os@
-%_target %{_host}
+%_target %{_target_cpu}-%{_target_vendor}-%{_target_os}
%_target_alias %{_host_alias}
%_target_cpu %{_host_cpu}
%_target_vendor %{_host_vendor}

View File

@ -0,0 +1,9 @@
diff -Nru rpm-5.2.1.orig//scripts/mono-find-requires rpm-5.2.1/scripts/mono-find-requires
--- rpm-5.2.1.orig//scripts/mono-find-requires 2007-07-13 00:25:31.000000000 +0200
+++ rpm-5.2.1/scripts/mono-find-requires 2011-01-11 17:52:40.320032775 +0100
@@ -83,4 +83,4 @@
# Of those, only chose the ones that are in REQUIRES
#
echo "$UNIQ
-$REQUIRES" | sort | uniq -d
+$REQUIRES" | sort | uniq -d | grep -v "^$"

View File

@ -0,0 +1,12 @@
diff -Nru rpm-5.2.1.orig//rpmqv.c rpm-5.2.1/rpmqv.c
--- rpm-5.2.1.orig//rpmqv.c 2010-04-26 10:50:03.000000000 +0200
+++ rpm-5.2.1/rpmqv.c 2010-07-29 11:58:46.606751851 +0200
@@ -869,7 +869,7 @@
/*@innerbreak@*/ break;
case 's':
ba->buildAmount |= RPMBUILD_PACKAGESOURCE;
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-deps-on-building-srpms */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-deps-on-building-srpms */
/* enforce no dependency checking when rolling a source RPM */
ba->noDeps = 1;
#endif

View File

@ -0,0 +1,12 @@
--- rpm-5.2.1.orig/lib/depends.c 2010-07-29 14:34:07.426001897 +0200
+++ rpm-5.2.1/lib/depends.c 2010-07-29 17:05:43.227002449 +0200
@@ -2832,6 +2832,9 @@
? rpmteDS(p, RPMTAG_CONFLICTNAME) : NULL);
/* XXX srpm's don't have directory paths. */
if (p->isSource) {
+#if defined(RPM_VENDOR_OPENMAMBA) /* no-deps-check-on-installing-srpms */
+ break;
+#endif
dirnames = NULL;
linktos = NULL;
} else {

View File

@ -0,0 +1,92 @@
diff -Nru rpm-5.2.1.orig//lib/fsm.c rpm-5.2.1/lib/fsm.c
--- rpm-5.2.1.orig//lib/fsm.c 2009-03-27 22:17:42.000000000 +0100
+++ rpm-5.2.1/lib/fsm.c 2010-07-29 12:04:47.242751965 +0200
@@ -901,7 +901,7 @@
uid_t uid = fi->uid;
gid_t gid = fi->gid;
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
/* Make sure OpenPKG/Mandriva RPM does not try to set file owner/group on files during
installation of _source_ RPMs. Instead, let it use the current
run-time owner/group, because most of the time the owner/group in
@@ -910,7 +910,7 @@
course. */
#endif
if (fi->fuser && unameToUid(fi->fuser[i], &uid)) {
-#if defined(RPM_VENDOR_OPENPKG) ||defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) ||defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
if (!fi->isSource) {
#endif
if (fsm->goal == IOSM_PKGINSTALL)
@@ -918,13 +918,13 @@
_("user %s does not exist - using root\n"), fi->fuser[i]);
uid = 0;
finalMode &= ~S_ISUID; /* turn off suid bit */
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
}
#endif
}
if (fi->fgroup && gnameToGid(fi->fgroup[i], &gid)) {
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
if (!fi->isSource) {
#endif
if (fsm->goal == IOSM_PKGINSTALL)
@@ -932,7 +932,7 @@
_("group %s does not exist - using root\n"), fi->fgroup[i]);
gid = 0;
finalMode &= ~S_ISGID; /* turn off sgid bit */
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
}
#endif
}
diff -Nru rpm-5.2.1.orig//rpmio/iosm.c rpm-5.2.1/rpmio/iosm.c
--- rpm-5.2.1.orig//rpmio/iosm.c 2009-05-22 19:57:28.000000000 +0200
+++ rpm-5.2.1/rpmio/iosm.c 2010-07-29 12:04:02.032752064 +0200
@@ -957,7 +957,7 @@
uid_t uid = fi->uid;
gid_t gid = fi->gid;
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
/* Make sure OpenPKG/Mandriva RPM does not try to set file owner/group on files during
installation of _source_ RPMs. Instead, let it use the current
run-time owner/group, because most of the time the owner/group in
@@ -966,7 +966,7 @@
course. */
#endif
if (fi->fuser && unameToUid(fi->fuser[i], &uid)) {
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
if (!fi->isSource) {
#endif
if (iosm->goal == IOSM_PKGINSTALL)
@@ -974,13 +974,13 @@
_("user %s does not exist - using root\n"), fi->fuser[i]);
uid = 0;
finalMode &= ~S_ISUID; /* turn off suid bit */
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
}
#endif
}
if (fi->fgroup && gnameToGid(fi->fgroup[i], &gid)) {
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
if (!fi->isSource) {
#endif
if (iosm->goal == IOSM_PKGINSTALL)
@@ -988,7 +988,7 @@
_("group %s does not exist - using root\n"), fi->fgroup[i]);
gid = 0;
finalMode &= ~S_ISGID; /* turn off sgid bit */
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* no-owner-group-on-srpm-install */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* no-owner-group-on-srpm-install */
}
#endif
}

View File

@ -0,0 +1,39 @@
diff -Nru rpm-5.2.1.orig//lib/depends.c rpm-5.2.1/lib/depends.c
--- rpm-5.2.1.orig//lib/depends.c 2009-05-22 17:09:18.000000000 +0200
+++ rpm-5.2.1/lib/depends.c 2010-07-28 12:12:26.699740202 +0200
@@ -1552,7 +1552,7 @@
int terminate = 2; /* XXX terminate if rc >= terminate */
int rc;
int ourrc = 0;
-#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* optional-dirname-and-symlink-deps */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* optional-dirname-and-symlink-deps */
int dirname_deps;
int symlink_deps;
#endif
@@ -1631,7 +1631,7 @@
}
}
-#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* optional-dirname-and-symlink-deps */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* optional-dirname-and-symlink-deps */
dirname_deps = rpmExpandNumeric("%{?_check_dirname_deps}%{?!_check_dirname_deps:1}");
if (dirname_deps) {
#endif
@@ -1675,7 +1675,7 @@
/*@switchbreak@*/ break;
}
}
-#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* optional-dirname-and-symlink-deps */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* optional-dirname-and-symlink-deps */
}
symlink_deps = rpmExpandNumeric("%{?_check_symlink_deps}%{?!_check_symlink_deps:1}");
@@ -1723,7 +1723,7 @@
/*@switchbreak@*/ break;
}
}
-#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* optional-dirname-and-symlink-deps */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* optional-dirname-and-symlink-deps */
}
#endif

View File

@ -0,0 +1,12 @@
diff -Nru rpm-5.2.1/build/files.c rpm-5.2.1.patched//build/files.c
--- rpm-5.2.1/build/files.c 2011-03-03 23:22:38.911216245 +0100
+++ rpm-5.2.1.patched//build/files.c 2011-03-03 23:22:01.034562736 +0100
@@ -3024,6 +3024,8 @@
fi = rpmfiInit(fi, 0);
while ((i = rpmfiNext(fi)) >= 0) {
+ if (!S_ISDIR(rpmfiFMode(fi)))
+ continue;
int found = 0;
/* make local copy of file name */
char *p = fn;

View File

@ -0,0 +1,29 @@
--- rpm-5.2.1.orig/configure.ac 2013-03-06 14:32:08.278105752 +0100
+++ rpm-5.2.1/configure.ac 2013-03-06 14:40:34.757178027 +0100
@@ -994,14 +994,14 @@
AC_ARG_WITH(python, AS_HELP_STRING([--with-python], [build with RPM Python language bindings]), [
if test ".$withval" != .no; then
case "$withval" in
- 2.x|2.3|2.4|2.5|2.6)
+ 2.x|2.3|2.4|2.5|2.6|2.7)
python_version=$withval
;;
yes)
- python_version="2.6 2.5 2.4 2.3 2.x"
+ python_version="2.7 2.6 2.5 2.4 2.3 2.x"
;;
*)
- AC_MSG_WARN([--with-python only supports values "2.x", "2.3", "2.4", "2.5", or "2.6" ignoring...])
+ AC_MSG_WARN([--with-python only supports values "2.x", "2.3", "2.4", "2.5", "2.6" or "2.7" ignoring...])
python_version=""
;;
esac
@@ -1289,7 +1289,7 @@
dnl # Python embedding
RPM_CHECK_LIB(
[Python embedding], [pythonembed],
- [python2.6 python2.5], [Py_Initialize], [Python.h],
+ [python2.7 python2.6 python2.5], [Py_Initialize], [Python.h],
[no,external:none], [],
[
], [])

View File

@ -0,0 +1,11 @@
--- rpm-5.2.1.orig/macros.in 2010-07-26 15:05:23.067732938 +0200
+++ rpm-5.2.1/macros.in 2010-07-26 15:22:34.289734825 +0200
@@ -1007,7 +1007,7 @@
# XXX Note: the suggested file name is __db.000 to expedite
# support issues, because users typically do "rm -f /var/lib/rpm/__db*",
# which will clean up the fcntl lock at the same time.
-#%_rpmlock_path %{_dbpath}/__db.000
+%_rpmlock_path %{_dbpath}/__db.000
#==============================================================================
# ---- Query macros.

View File

@ -0,0 +1,12 @@
diff -Nru rpm-5.2.1.orig//macros.in rpm-5.2.1/macros.in
--- rpm-5.2.1.orig//macros.in 2010-08-06 11:52:35.420230019 +0200
+++ rpm-5.2.1/macros.in 2010-08-06 11:54:16.136229205 +0200
@@ -885,7 +885,7 @@
# Open all indices before doing chroot(2).
#
-#%_openall_before_chroot 0
+%_openall_before_chroot 1
# The path to the dependency universe database. The default value
# is the rpmdb-vendor location. The macro is usually defined in

View File

@ -0,0 +1,20 @@
--- rpm-5.2.1.orig/lib/depends.c 2011-03-03 14:35:01.926488612 +0100
+++ rpm-5.2.1/lib/depends.c 2011-03-08 03:17:33.663032216 +0100
@@ -2308,7 +2308,7 @@
int numOrderList;
int npeer = 128; /* XXX more than deep enough for now. */
int * peer = memset(alloca(npeer*sizeof(*peer)), 0, (npeer*sizeof(*peer)));
- int nrescans = 10;
+ int nrescans = 20;
int _printed = 0;
char deptypechar;
size_t tsbytes;
@@ -2667,7 +2667,7 @@
const char * dp;
rpmlogLvl msglvl = (anaconda || (rpmtsDFlags(ts) & RPMDEPS_FLAG_DEPLOOPS))
? RPMLOG_WARNING : RPMLOG_ERR;
-#if defined(RPM_VENDOR_MANDRIVA) /* loop-detection-optional-loglevel */
+#if defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_OPENMAMBA) /* loop-detection-optional-loglevel */
// Report loops as debug-level message by default (7 = RPMLOG_DEBUG), overridable
msglvl = rpmExpandNumeric("%{?_loop_detection_loglevel}%{?!_loop_detection_loglevel:7}");
#endif

View File

@ -0,0 +1,20 @@
diff -Nru rpm-5.2.1.orig/build/pack.c rpm-5.2.1/build/pack.c
--- rpm-5.2.1.orig/build/pack.c 2009-11-19 16:52:08.000000000 +0100
+++ rpm-5.2.1/build/pack.c 2013-11-15 11:29:56.699947557 +0100
@@ -1185,14 +1185,14 @@
CSA_t csa = &csabuf;
rpmRC rc;
int xx;
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* backward-compat-rpmtag-sourcepackage */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* backward-compat-rpmtag-sourcepackage */
rpmuint32_t val;
#endif
/* Add rpmlib markers for tracking. */
(void) rpmlibMarkers(spec->sourceHeader);
-#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) /* backward-compat-rpmtag-sourcepackage */
+#if defined(RPM_VENDOR_OPENPKG) || defined(RPM_VENDOR_FEDORA) || defined(RPM_VENDOR_MANDRIVA) || defined(RPM_VENDOR_ARK) || defined(RPM_VENDOR_OPENMAMBA) /* backward-compat-rpmtag-sourcepackage */
/* Mark package as a SRPM for backward compatibility with RPM < 4.4.6 */
he->tag = RPMTAG_SOURCEPACKAGE;
he->t = RPM_UINT32_TYPE;

View File

@ -0,0 +1,38 @@
diff -ru rpm-4.4.9.orig//build/parseSpec.c rpm-4.4.9/build/parseSpec.c
--- rpm-4.4.9.orig//build/parseSpec.c 2010-08-03 15:57:18.740342061 +0200
+++ rpm-4.4.9/build/parseSpec.c 2010-08-03 15:58:02.071216551 +0200
@@ -402,6 +402,12 @@
if (! spec->readStack->reading) {
spec->line[0] = '\0';
+ } else {
+ if (specedit) {
+ printf("%s",spec->line);
+ if (strchr(spec->line, '\n') == NULL && spec->line[strlen(spec->line)-1] != '\n')
+ printf("\n");
+ }
}
/*@-compmempass@*/ /* FIX: spec->readStack->next should be dependent */
--- rpm-4.4.9.orig//build/spec.c 2010-08-03 15:57:20.203092007 +0200
+++ rpm-4.4.9/build/spec.c 2010-08-03 15:56:45.128341759 +0200
@@ -724,7 +724,7 @@
res = 0;
if (specedit) {
- printNewSpecfile(spec);
+// printNewSpecfile(spec);
goto exit;
}
--- rpm-4.4.9.orig/build/parsePreamble.c 2007-05-15 02:39:25.000000000 +0200
+++ rpm-4.4.9/build/parsePreamble.c 2010-08-03 18:24:43.614092066 +0200
@@ -951,7 +951,7 @@
}
if (handlePreambleTag(spec, pkg, tag, macro, lang))
return RPMRC_FAIL;
- if (spec->BANames && !spec->recursing && spec->toplevel)
+ if (spec->BANames && !spec->recursing && spec->toplevel && !specedit)
return PART_BUILDARCHITECTURES;
}
if ((rc =

View File

@ -0,0 +1,51 @@
diff -ru rpm-5.2.1.orig//configure.ac rpm-5.2.1/configure.ac
--- rpm-5.2.1.orig//configure.ac 2010-07-28 13:19:12.295008236 +0200
+++ rpm-5.2.1/configure.ac 2010-07-28 13:18:25.877741081 +0200
@@ -1606,7 +1606,7 @@
esac
RPMCANONVENDOR="$target_vendor"
case "${target_vendor}" in
-unknown|pc|ibm|redhat|pld|mandriva|conectiva|lvr|yellowdog|caos|crux|ark)
+unknown|pc|ibm|redhat|pld|mandriva|conectiva|lvr|yellowdog|caos|crux|ark|openmamba)
test -f /etc/redhat-release && RPMCANONVENDOR=redhat
test -f /etc/pld-release && RPMCANONVENDOR=pld
test -f /etc/mandriva-release && RPMCANONVENDOR=mandriva
@@ -1616,6 +1616,7 @@
test -f /etc/caos-release && RPMCANONVENDOR=caos
test -f /usr/bin/crux && RPMCANONVENDOR=crux
test -f /etc/ark-release && RPMCANONVENDOR=ark
+ test -f /etc/openmamba-release && RPMCANONVENDOR=openmamba
;;
esac
RPMCANONOS="$target_os_noversion"
@@ -1913,7 +1914,7 @@
AC_MSG_CHECKING([if building for a specfic vendor])
AC_ARG_WITH(
[vendor],
- AS_HELP_STRING([--with-vendor=VENDOR], [build with a supported vendor's specific set of changes: mandriva, ark, fedora]),
+ AS_HELP_STRING([--with-vendor=VENDOR], [build with a supported vendor's specific set of changes: mandriva, ark, fedora, openmamba]),
[if test ".$withval" != .no; then
case "$withval" in
"mandriva")
@@ -1925,6 +1926,9 @@
"fedora")
AC_DEFINE([RPM_VENDOR_FEDORA], 1, Vendor is Fedora)
;;
+ "openmamba")
+ AC_DEFINE([RPM_VENDOR_OPENMAMBA], 1, Vendor is openmamba)
+ ;;
esac
AC_MSG_RESULT([$withval])
else
--- rpm-5.2.1.orig/config.h.in 2010-05-01 19:03:00.000000000 +0200
+++ rpm-5.2.1/config.h.in 2010-07-28 14:17:07.456750377 +0200
@@ -798,6 +798,9 @@
/* Vendor is Mandriva */
#undef RPM_VENDOR_MANDRIVA
+/* Vendor is openmamba */
+#undef RPM_VENDOR_OPENMAMBA
+
/* The size of `char', as computed by sizeof. */
#undef SIZEOF_CHAR

118
rpm-macros_openmamba Normal file
View File

@ -0,0 +1,118 @@
%_dist mamba
%_docdir %_defaultdocdir
%_check_dirname_deps 0
%_check_symlink_deps 0
%majorminor %(echo %version | cut -d. -f 1-2)
# obsoleted macro (for compatibility with QiLinux packages)
# do not use it; use %python_version instead
%pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".")
#------------------------------------------------------------------------
# Macros for building and installing
%make_jobs %{__make} %{?_smp_mflags}
%make \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
%{make_jobs}
%makeinstall \
make DESTDIR=%{buildroot} install
%makeoldinstall \
make \\\
prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\
bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\
datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\
libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\
localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\
sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\
mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
install
%makeinstall_perl make pure_install DESTDIR=%{buildroot}
#------------------------------------------------------------------------
# Macros for installing and uninstalling info pages
%__install_info /sbin/install-info
%install_info() \
%{__install_info} %{_infodir}/%{1}.gz %{_infodir}/dir ||:\;
%uninstall_info() \
if [ "$1" = "0" ]; then \
%{__install_info} --delete %{_infodir}/%{1}.gz %{_infodir}/dir \
fi \
%{nil}
#==============================================================================
# ---- configure macros.
#
#%_prefix /usr
#%_exec_prefix %{_prefix}
#%_bindir %{_exec_prefix}/bin
#%_sbindir %{_exec_prefix}/sbin
#%_libexecdir %{_exec_prefix}/libexec
#%_datadir %{_prefix}/share
#%_sysconfdir /etc
#%_sharedstatedir %{_prefix}/com
#%_localstatedir /var
#%_lib lib
#%_libdir %{_exec_prefix}/%{_lib}
#%_includedir %{_prefix}/include
#%_oldincludedir /usr/include
#%_infodir %{_prefix}/share/info
#%_mandir %{_prefix}/share/man
#%_initrddir %{_sysconfdir}/rc.d/init.d
#
#%_defaultdocdir %{_usr}/share/doc
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
#---------------------------------------------------------------------
# Multilibs
%_multilibno 1
%_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
#==============================================================================
# ---- Build policy macros.
#
#---------------------------------------------------------------------
# Expanded at end of %install scriptlet.
#
%__arch_install_post %{nil}
%__os_install_post \
/usr/lib/rpm/brp-infodir \
/usr/lib/rpm/brp-strip-builddirs \
/usr/lib/rpm/brp-compress \
/usr/lib/rpm/brp-strip \
/usr/lib/rpm/brp-strip-shared \
/usr/lib/rpm/brp-strip-static-archive \
/usr/lib/rpm/brp-strip-comment-note \
/usr/lib/rpm/brp-nobuildrootpath \
%{nil}
%__spec_install_post\
%{?__debug_package:%{__debug_install_post}}\
%{__arch_install_post}\
%{__os_install_post}\
%{nil}
# Executed after copying %doc to DOCDIR, with $DOCDIR set
#%__compress_doc /usr/lib/rpm/compress-doc%{?_noautocompressdoc: --noautocompressdoc='%{_noautocompressdoc}'}

984
rpm.spec Normal file
View File

@ -0,0 +1,984 @@
#% define program_suffix 5
%define with_perl_subpackage 1
%define with_python_subpackage 1
%define with_apidocs 1
%define with_selinux 0
# Bootstrap build (no first stage deps)
# rpm -ba --define='bootstrap 1' rpm.spec
%if "%{bootstrap}" == "1"
%define with_perl_subpackage 0
%define with_python_subpackage 1
%define with_apidocs 0
%define with_selinux 0
%endif
%define packager_groupid 65028
%define packager_userid 65028
%define majversion %(echo %version | cut -d. -f 1-2)
%define __prefix %{?_prefix}%{!?_prefix:/usr}
%{?!_lib: %define _lib lib}
%define __bindir %{__prefix}/bin
%define __includedir %{__prefix}/include
%define __libdir %{__prefix}/%{_lib}
%define __mandir %{__prefix}/share/man
%{expand:%%define gnu_libpthread %(getconf GNU_LIBPTHREAD_VERSION | cut -d" " -f1)}
%if "%{gnu_libpthread}" != "NPTL"
%{error:%(echo -e "NPTL support required!\n")}
%endif
Name: rpm
Version: 5.2.1
Release: 25mamba
Summary: The RPM package management system
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://rpm5.org
Source0: http://rpm5.org/files/rpm/rpm-%{majversion}/rpm-%{version}.tar.gz
Source1: rpm-cpu-os-macros-openmamba.tar.gz
##Source1: rpm-4.0.4-cross-config.cache
Source2: rpm-macros_openmamba
Source3: rpm-5.2-update.upd
##Patch0: %{name}-4.0.4-configure.patch
Patch0: rpm-5.2.1-vendor_openmamba.patch
Patch1: rpm-4.4.8-rpmtopdir.patch
Patch2: rpm-5.1.6-macrodirs.patch
Patch7: rpm-4.4.4-bashort.patch
# let rpm undestand alpha, beta, and rc version numbers
Patch9: rpm-4.4.4-rpmvercmp.patch
Patch10: rpm-4.4.5-installplatform.patch
Patch14: rpm-5.2.1-brp_infodir.patch
Patch15: rpm-4.4.8-brp_generic.patch
Patch16: rpm-4.4.9-rpmrc.patch
Patch17: rpm-4.4.7-makeoldinstall.patch
Patch20: rpm-5.2.1-brp_strip_builddirs.patch
Patch21: rpm-4.4.4-kernel26-autoreq.patch
Patch24: rpm-4.4.4-target_platform.patch
Patch25: rpm-4.4.8-disable_libtool_helper.patch
Patch26: rpm-5.2.1-rpmlock_path.patch
#???#Patch27: %{name}-4.4.4-configure_db3.patch
Patch28: rpm-4.4.4-configsub_ppc.patch
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=151609
Patch29: rpm-5.2.1-fileconflicts.patch
# use temporary table for Depends DB (mandrake patch)
Patch30: rpm-4.4.4-depsdb.patch
Patch31: rpm-4.4.5-disable_repackaging.patch
Patch32: rpm-4.4.5-nobuildrootpath_exitcode.patch
Patch33: rpm-4.4.5-py_requires_macro.patch
Patch35: rpm-4.4.8-disable_keyserver.patch
Patch36: rpm-5.1.6-source_set_packager_owner.patch
Patch38: rpm-5.2.1-brp_strip_shared.patch
Patch39: rpm-4.4.6-no-dirnames-dep.patch
Patch40: rpm-4.4.8-keep_default_rpmrc.patch
Patch41: rpm-5.2.1-db_legacy_config.patch
Patch42: rpm-4.4.9-rpmevr.patch
Patch43: rpm-5.2.1-buildrequires_external.patch
Patch44: rpm-4.4.7-neon-0.28.patch
Patch45: rpm-5.2.1-disable_scriptlet_requires.patch
Patch46: rpm-4.4.9-brp_strip_static_archive.patch
Patch47: rpm-4.4.9-fix_glibc_autoreq.patch
Patch48: rpm-5.2.1-macros_cross_vars.patch
Patch49: rpm-5.2.1-spec_preprocessed_output.patch
Patch50: rpm-5.2.1-fix_db_upgrade_from_449.patch
Patch51: rpm-5.2.1-openmamba_optional_dirname_and_symlink_deps.patch
Patch52: rpm-5.2.1-openmamba_no_deps_on_building_srpms.patch
Patch53: rpm-5.2.1-openmamba_no_owner_group_on_srpm_install.patch
Patch54: rpm-5.2.1-openmamba_no_deps_on_installing_srpms.patch
Patch55: rpm-5.2.1-set_openall_before_chroot.patch
Patch56: rpm-5.2.1-configure_fix_gnueabi_support.patch
Patch57: rpm-5.2.1-disable_rpmmi_usermem.patch
Patch58: rpm-5.2.1-mono-avoid-empty-requires.patch
Patch59: rpm-5.2.1-pkgUnpackagedSubdirs_fix_slowness.patch
Patch60: rpm-5.2.1-silent-loop-detection_and_more_rescans.patch
Patch61: rpm-5.2.1-debugedit-cvs-update.patch
Patch62: rpm-5.2.1-python-2.7.patch
Patch63: rpm-5.2.1-sourcepackage-rpm4.patch
Patch64: rpm-5.2.1-build-from-tarball.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbeecrypt-devel
BuildRequires: libbzip2-devel
%ifnarch arm
BuildRequires: libcpuinfo-devel
%endif
BuildRequires: libe2fs-devel
BuildRequires: libelf-devel
BuildRequires: libexpat-devel
BuildRequires: libkeyutils-devel
%if "%{bootstrap}" != "1"
BuildRequires: libkrb5-devel
%endif
BuildRequires: libneon-devel
BuildRequires: libopenssl-devel
BuildRequires: libpopt-devel
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: libsyck-devel
%if "%{bootstrap}" != "1"
BuildRequires: libproxy-devel
%endif
BuildRequires: libpython27-devel
BuildRequires: gcc-c++
BuildRequires: binutils
BuildRequires: bison >= 2.1
BuildRequires: bzip2
BuildRequires: coreutils
BuildRequires: cpio
BuildRequires: file
BuildRequires: gawk
BuildRequires: gnupg
BuildRequires: grep
BuildRequires: gzip
BuildRequires: libtool
BuildRequires: make
BuildRequires: openssh-client
BuildRequires: patch >= 2.2
BuildRequires: perl >= 5.8.0
BuildRequires: sed
BuildRequires: unzip
BuildRequires: tar
BuildRequires: elfutils-devel
BuildRequires: libreadline-devel
BuildRequires: gettext-devel
BuildRequires: bash
BuildRequires: cpio
BuildRequires: ldconfig
BuildRequires: libsqlite-devel
BuildRequires: perl-Archive-Tar
BuildRequires: perl-devel
BuildRequires: pwdutils
BuildRequires: libmagic-devel
BuildRequires: libelf-devel
%if %{with_apidocs}
BuildRequires: doxygen >= 1.4.5
%endif
BuildRequires: libopenssl-devel >= 1.0.1c-2mamba
Requires(post):/sbin/ldconfig
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
#Requires(post):openmamba-release
Requires(post):gnupg
##Requires: libdb3 >= 3.1.17
Requires: perl >= 5.8.0
Requires: perl-Archive-Tar >= 1.05
Requires: /bin/cpio
Requires: patch
Requires: elfutils
# This is to upgrade from rpm 4.4.5; don't upgrade the version (4.4.6-1)
Provides: rpmlib(FileDigestParameterized) = 4.4.6-1
Provides: rpmlib(CompressedFileNames) = 3.0.4
Provides: rpmlib(PayloadFilesHavePrefix) = 4.0
Provides: rpmlib(VersionedDependencies) = 3.0.3
Provides: rpmlib(PartialHardlinkSets) = 4.0.4
Provides: rpm5
Obsoletes: rpm5
Provides: rpm5-build
Obsoletes: rpm5-build
Provides: rpm%{?program_suffix}-build
Obsoletes: rpm%{?program_suffix}-build
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME (?):
# checking for ne_send_request_chunk in -lneon... no
%description
RPM is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information about the package like its version, a description, etc.
%package devel
Summary: The RPM package management system
Group: Development/Libraries
Requires: elfutils
Requires: %{name} = %{version}-%{release}
Provides: rpm5-devel
Obsoletes: rpm5-devel
%description devel
RPM is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages.
Each software package consists of an archive of files along with information about the package like its version, a description, etc.
%if %{with_perl_subpackage}
%package -n perl-RPM%{?program_suffix}
Summary: Native bindings to the RPM API for Perl
Group: Development/Libraries/Perl
Requires: perl >= 5.8.0
Requires: %{name} = %{version}-%{release}
Requires: libpopt
Provides: rpm-perl
Obsoletes: rpm-perl
Provides: perl-RPM5
Obsoletes: perl-RPM5
%description -n perl-RPM%{?program_suffix}
The Perl-RPM module is an attempt to provide Perl-level access to the complete application programming interface that is a part of the Red Hat Package Manager (RPM). Rather than have scripts rely on executing RPM commands and parse the resulting output, this module aims to give Perl programmers the ability to do anything that would otherwise have been done in C or C++.
The interface is being designed and laid out as a collection of classes, at least some of which are also available as tied-hash implementations.
At this time, the interface only provides access to the database of installed packages, and header data retrieval for RPM and SRPM files is not yet installed. Error management and the export of most defined constants, through RPM::Error and RPM::Constants, respectively, are also available.
%endif
%if %{with_python_subpackage}
%package -n python-rpm%{?program_suffix}
Summary: Python bindings for apps which will manipulate RPM packages
Group: Development/Libraries/Python
Requires: %{name}-build = %{version}-%{release}
Requires: libpopt
Requires: python27
Requires: zlib >= 1.1.4
Requires: libbzip2 >= 1.0.2
Provides: rpm-python
Obsoletes: rpm-python
Provides: python-rpm5
Obsoletes: python-rpm5
%description -n python-rpm%{?program_suffix}
The rpm-python package contains a module which permits applications written in the Python programming language to use the interface supplied by RPM (RPM Package Manager) libraries.
This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases.
%endif
%debug_package
%prep
%setup -q -n rpm-%{version}
# -D -T
#:<< _EOF
%patch0 -p1 -b .configure_openmamba
%patch2 -p1 -b .macrodirs
#% patch7 -p1 -b .bashort # applied upstream
#% patch9 -p1 -b .rpmvercmp
#% patch10 -p1 -b .installplatform # maybe applied upstream
%patch14 -p1 -b .brp_infodir
#% patch15 -p1 -b .brp_generic # check brp-infodir and brp-strip-static-archive in /usr/lib/rpm/brp-openmamba
#% patch16 -p1 -b .rpmrc # non appliable, check compile optflags in rpmrc
%patch17 -p1 -b .makeoldinstall
%patch20 -p1 -b .brp_strip_builddirs
%patch21 -p1 -b .kernel26_autoreq
#% patch24 -p1 -b .target_platform.patch # check _target_platform:%{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
#% patch25 -p1 -b .disable_libtool_helper # disabled for now, check libtool deps with build
%patch26 -p1 -b .rpmlock_path
#FIMXE: % patch27 -p1 -b .configure_db3
%patch28 -p1 -b .configsub_ppc
%patch29 -p1 -b .fileconflicts
#% patch30 -p0 -b .depsdb
%patch31 -p1 -b .disable_repackaging
%patch32 -p1 -b .nobuildrootpath_exitcode
%patch33 -p1 -b .py_requires_macro
%patch35 -p1 -b .disable_keyserver
%patch36 -p1 -b .source_set_packager_owner
%patch38 -p1 -b .brp_strip_shared
#% patch39 -p1 -b .no-dirnames-dep # seems disabiled upstream by default (enabled for Mandriva and Ark)
#% patch40 -p1 -b .keep_default_rpmrc # does not apply anymore; check for rpmrc use in different situations
%patch41 -p1 -b .db_legacy_config
#% patch42 -p0 -b .rpmevr # seems applied, but not sure
%patch43 -p1 -b .buildrequires_external
#% patch44 -p0 -b .neon-0.28 # compile patch
%patch45 -p1 -b .disable_scriptlet_requires
%patch46 -p1 -b .brp_strip_static_archive
%patch47 -p1 -b .fix_glibc_autoreq
%patch48 -p1 -b .macros_cross_vars
%patch49 -p1 -b .spec_preprocessed_output
#% patch50 -p1 -b .fix_db_upgrade_from_449
%patch51 -p1 -b .openmamba_optional_dirname_and_symlink_deps
#% patch52 -p1 -b .openmamba_no_deps_on_building_srpms
%patch53 -p1 -b .openmamba_no_owner_group_on_srpm_install
%patch55 -p1 -b .set_openall_before_chroot
%patch56 -p1 -b .configure_fix_gnueabi
%patch57 -p1 -b .disable_rpmmi_usermem.patch
%patch58 -p1 -b .mono-avoid-empty-requires.patch
%patch59 -p1 -b .pkgUnpackagedSubdirs_fix_slowness.patch
%patch60 -p1 -b .silent-loop-detection_and_more_rescans.patch
%patch61 -p1 -b .debugedit_cvs_update
%patch62 -p1
%patch63 -p1
%patch64 -p1
mkdir platform-macros
cd platform-macros
tar xf %{SOURCE1}
cd ..
autoconf
#_EOF
%build
#:<< _EOF
unset LD_ASSUME_KERNEL || :
%if %{with_perl_subpackage}
WITH_PERL="--with-perl=vendor"
%else
WITH_PERL="--without-perl"
%endif
%if %{with_python_subpackage}
WITH_PYTHON="--with-python=2.7 ac_cv_path___PYTHON=python2.7"
%else
WITH_PYTHON="--without-python"
%endif
%if "%{_host}" != "%{_build}"
sed -i 's|"-lbeecrypt"|"-lbeecrypt -lgomp"|' configure
cat > config.cache << _EOF
ac_cv_va_copy=C99
_EOF
%endif
CC=%{_target_platform}-gcc \
./configure \
%{?program_suffix:--program-suffix=%{program_suffix}} \
--prefix=%{__prefix} \
--libdir=%{__libdir} \
--mandir=%{__prefix}/share/man \
--infodir=%{__prefix}/share/info \
--localstatedir=/var \
--sysconfdir=/etc \
--with-path-sources=%{__prefix}/src/RPM \
--with-path-lib=%{_prefix}/lib/rpm%{?program_suffix} \
--with-path-cfg=%{_sysconfdir}/rpm%{?program_suffix} \
--with-pic \
--disable-rpath \
--enable-nls \
$WITH_PYTHON \
$WITH_PERL \
--with-lua \
--with-sqlite3 \
--with-libelf \
--with-file \
--with-bzip2 \
--with-vendor=openmamba \
%if %{with_apidocs}
--with-apidocs \
%endif
%if %{with_selinux}
--with-selinux \
%endif
--enable-posixmutexes \
--without-javaglue \
--with-glob \
%ifnarch arm
--with-cpuinfo \
%endif
--with-syck=external \
--build=%{_build} \
--host=%{_target_platform} \
%if "%{_host}" != "%{_build}"
--config-cache
# LIBS="-lgomp" \
%endif
## --cache-file=config.cache
# --with-pcre=%{_prefix} \
## internal zlib hs been modified to make *.rpm packages rsync friendly
## see https://svn.uhulinux.hu/packages/dev/zlib/patches/02-rsync.patch
#% make -j1 -C zlib
%if "%{_host}" == "%{_build}"
%make
%else
%make \
includedir=%{_prefix}/%{_host}/include \
INCLUDES="-I%{_prefix}/%{_host}/include/python%{python27_version}/" \
pkgpyexecdir="%{python27_sitearch}/rpm"
# LDFLAGS="-L%{_prefix}/%{_host}/lib" \
%endif
#_EOF
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
unset LD_ASSUME_KERNEL || :
make install DESTDIR=%{buildroot} %{?program_suffix:DOMAIN=%{name}} \
%if "%{_host}" != "%{_build}"
pkgpyexecdir="%{python27_sitearch}/rpm"
%endif
#mv %{buildroot}%{__libdir}/rpm/brp-redhat \
# %{buildroot}%{__libdir}/rpm/brp-%{distribution}
install -d %{buildroot}/etc/rpm
#cat << EOF > %{buildroot}/etc/rpm/macros.cdb
#%%__dbi_cdb %%{nil}
#%%__dbi_other %%{?_tmppath:tmpdir=%%{_tmppath}} usedbenv create \
# joinenv mpool mp_mmapsize=8Mb mp_size=512kb verify
#EOF
for dbi in \
Basenames Conflictname Dirnames Filemd5s Group Installtid Name Packages \
Providename Provideversion Requirename Requireversion Sha1header Sigmd5 \
Triggername Pubkeys \
__db.001 __db.002 __db.003 __db.004
do
touch %{buildroot}/var/lib/rpm/$dbi
done
#> apimanpages
#%if %{with_apidocs}
# dinamically build the list of the rpm API manpages
#( cd apidocs/man/
# find man? -type f \
# -printf "%{__mandir}/%h/%f.gz\n" >> ../../apimanpages \
# -exec install -D {} %{buildroot}%{__mandir}/{} \; )
#%endif
# get rid of unpackaged files
#rm -f %{buildroot}%{__bindir}/rpm{e,i,u}
rm -f %{buildroot}%{_prefix}/lib/rpm{popt,rc}
rm -f %{buildroot}%{_prefix}/lib/rpm/{rpm.daily,rpm.log,rpm.xinetd}
rm -f %{buildroot}%{_prefix}/lib/rpm/{\
Specfile.pm,config.site,cpanflute,cpanflute2,\
rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req}
%if %{with_perl_subpackage}
find %{buildroot}%{_prefix}/lib/perl5 -type f \
-a \( -name perllocal.pod -o -name .packlist \
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
find %{buildroot}%{_prefix}/lib/perl5 -type d -depth \
-exec rmdir {} 2>/dev/null ';'
%endif
# Install find-requires and find-provides scripts
# these are only used when _use_internal_dependency_generator is set to 0 (default is 2)
install -m0755 find-requires %{buildroot}%{_prefix}/lib/rpm/find-requires
install -m0755 find-provides %{buildroot}%{_prefix}/lib/rpm/find-provides
# install platform configuration file
mkdir -p %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}
echo "%{_host}" > %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/platform
# install rpm macros
install -D -m 644 %{S:2} %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/macros.openmamba
#%if "%{_host_cpu}" == "x86_64"
#sed -i "s|\(%%_lib[[:space:]]*\).*|\1lib64|" %{buildroot}%{_sysconfdir}/rpm%{?program_suffix}/macros.openmamba
#%endif
# install postplug update.d file for db rebuild
mkdir -p %{buildroot}%{_sysconfdir}/postplug/updates.d
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/postplug/updates.d/rpm-5.2.upd
# rpm4 devel compatibility
ln -s rpm4compat.h %{buildroot}%{_includedir}/rpm/rpmlib.h
%{buildroot}%{_prefix}/lib/rpm%{?program_suffix}/find-lang.sh%{?program_suffix} %{buildroot} %{name}
# install per-plaftorm macro files
case %{_host_cpu} in
*86|athlon|pentium3|pentium4) PLATFORM_MACROS="athlon-linux i386-linux i486-linux i586-linux i686-linux pentium3-linux pentium4-linux" ;;
arm) PLATFORM_MACROS="arm-linux" ;;
ppc) PLATFORM_MACROS="ppc-linux" ;;
x86_64) PLATFORM_MACROS="x86_64-linux" ;;
*) echo "Error: unsupported host cpu %{_host_cpu}"; exit 1 ;;
esac
PLATFORM_MACROS="$PLATFORM_MACROS noarch-linux"
for p in $PLATFORM_MACROS; do
cp -a platform-macros/$p %{buildroot}%{_prefix}/lib/rpm/
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# nuke __db.00? when updating to this rpm
%triggerun -- rpm < %{version}
rm -f /var/lib/rpm/__db.00?
%pre
/usr/sbin/groupadd packager -g %{packager_groupid} 2>/dev/null || :
/usr/sbin/useradd packager -u %{packager_userid} -g packager -d /dev/null -s /bin/false 2>/dev/null || :
exit 0
%post
if [ ! -f /var/lib/rpm/Packages ]; then
/bin/rpm --initdb
fi
#if [ $1 -ge 1 ]; then
## Import Mambasoft gpg key if needed
# gpg --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft 2>/dev/null || true
# rpm -q gpg-pubkey-87468781-4bb78410 >/dev/null 2>&1 || \
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Mambasoft
#fi
:
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%define rpmdbattr %attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/postplug/updates.d/rpm-5.2.upd
%{_sysconfdir}/rpm%{?program_suffix}/macros.*
%{_sysconfdir}/rpm%{?program_suffix}/platform
%{__bindir}/rpm%{?program_suffix}
%{__bindir}/gendiff%{?program_suffix}
%{__bindir}/rpm2cpio%{?program_suffix}
%{__bindir}/rpmbuild%{?program_suffix}
%{__bindir}/rpmconstant%{?program_suffix}
%{__libdir}/librpm-%{majversion}.so
%{__libdir}/librpmbuild-%{majversion}.so
%{__libdir}/librpmconstant-%{majversion}.so
%{__libdir}/librpmdb-%{majversion}.so
%{__libdir}/librpmio-%{majversion}.so
%{__libdir}/librpmmisc-%{majversion}.so
%{_prefix}/lib/rpm%{?program_suffix}/*
%{__mandir}/man1/rpmgrep%{?program_suffix}.*
%{__mandir}/man8/rpmcache%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpmcache%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmcache%{?program_suffix}.*
%{__mandir}/man8/rpmdeps%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmdeps%{?program_suffix}.*
#%{__libdir}/rpmpopt
#%{__libdir}/rpmrc
%{__mandir}/man1/gendiff%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man1/gendiff%{?program_suffix}.*
%{__mandir}/man8/rpm%{?program_suffix}.*
%{__mandir}/man8/rpmconstant%{?program_suffix}.*
%{__mandir}/man8/rpmmtree%{?program_suffix}.*
%lang(fr) %{__mandir}/fr/man8/rpm%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpm%{?program_suffix}.*
%lang(ko) %{__mandir}/ko/man8/rpm%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpm%{?program_suffix}.*
%lang(ru) %{__mandir}/ru/man8/rpm%{?program_suffix}.*
%lang(sk) %{__mandir}/sk/man8/rpm%{?program_suffix}.*
%{__mandir}/man8/rpm2cpio%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpm2cpio%{?program_suffix}.*
%lang(jo) %{__mandir}/ko/man8/rpm2cpio%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpm2cpio%{?program_suffix}.*
%lang(ru) %{__mandir}/ru/man8/rpm2cpio%{?program_suffix}.*
%dir /usr/src/RPM
%attr(775,root,packager) %dir /usr/src/RPM/BUILD
%attr(775,root,packager) %dir /usr/src/RPM/SOURCES
%attr(775,root,packager) %dir /usr/src/RPM/SRPMS
%attr(775,root,packager) %dir /usr/src/RPM/RPMS
%attr(775,root,packager) %dir /usr/src/RPM/SPECS
%attr(775,root,packager) /usr/src/RPM/RPMS/*
%dir /var/lib/rpm
%rpmdbattr /var/lib/rpm/Basenames
%rpmdbattr /var/lib/rpm/Conflictname
%rpmdbattr /var/lib/rpm/Dirnames
%rpmdbattr /var/lib/rpm/Filemd5s
%rpmdbattr /var/lib/rpm/Group
%rpmdbattr /var/lib/rpm/Installtid
%rpmdbattr /var/lib/rpm/Name
%rpmdbattr /var/lib/rpm/Packages
%rpmdbattr /var/lib/rpm/Providename
%rpmdbattr /var/lib/rpm/Provideversion
%rpmdbattr /var/lib/rpm/Pubkeys
%rpmdbattr /var/lib/rpm/Requirename
%rpmdbattr /var/lib/rpm/Requireversion
%rpmdbattr /var/lib/rpm/Sha1header
%rpmdbattr /var/lib/rpm/Sigmd5
%rpmdbattr /var/lib/rpm/Triggername
%rpmdbattr /var/lib/rpm/__db.0*
%{__mandir}/man8/rpmbuild%{?program_suffix}.*
%lang(ja) %{__mandir}/ja/man8/rpmbuild%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmbuild%{?program_suffix}.*
%doc CHANGES COPYING.LIB CREDITS README NEWS
%doc doc/manual/[a-m,n-z]*
%files devel
%defattr(-,root,root)
%dir %{__includedir}/rpm/
%{__includedir}/rpm/*
%{__libdir}/librpm.*
%{__libdir}/librpmbuild.*
%{__libdir}/librpmdb.*
%{__libdir}/librpmio.*
%{__libdir}/librpmconstant.*
%{__libdir}/librpmmisc.*
%{__libdir}/pkgconfig/rpm.pc
%lang(ja) %{__mandir}/ja/man8/rpmgraph%{?program_suffix}.*
%lang(pl) %{__mandir}/pl/man8/rpmgraph%{?program_suffix}.*
#%if %{with_apidocs}
#%doc apidocs/html/*
#%endif
%if %{with_perl_subpackage}
%files -n perl-RPM%{?program_suffix}
%defattr(-,root,root)
%dir %{perl_vendorarch}/RPM
%{perl_vendorarch}/RPM.pm
%{perl_vendorarch}/RPM/*
%{perl_vendorarch}/auto/*
%{__mandir}/man3/RPM*
%endif
%if %{with_python_subpackage}
%files -n python-rpm%{?program_suffix}
%defattr(-,root,root)
%dir %{python27_sitearch}/rpm
%{python27_sitearch}/rpm/*
%endif
%changelog
* Thu Apr 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-25mamba
- added a small patch to fix build from tarball (rpm -t[a|b|s])
* Mon Apr 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-24mamba
- rebuilt with libcpuinfo and libsyck support to enable archscore used by smart
(but eventually archscore is not enabled in smart)
* Fri Nov 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-23mamba
- hot fix for previous patch
* Wed Nov 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-22mamba
- patch to add RPMTAG_SOURCEPACKAGE for rpm4 backward sources compatibility
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-21mamba
- python-rpm: rebuild with python 2.7
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-20mamba
- perl 5.16 mass rebuild
* Mon Aug 20 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-19mamba
- rebuilt with --with-bzip2 to provide rpmlib(PayloadIsBzip2) for RedHat/Suse compatibility (google-earth rpm)
* Thu Jul 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-18mamba
- arm: rebuild with libopenssl-1.0.1c-2mamba to fix __gnu_ldivmod_helper missing symbol error
* Sat Apr 28 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-17mamba
- added requirement for elfutils
* Fri Apr 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-16mamba
- apply patch to update debugedit to current cvs to fix error 'Unknown debugging section .debug_pubtypes'
* Tue Jul 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-15mamba
- rebuilt against libproxy 0.46
* Tue Mar 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-14mamba
- added silent-loop-detection_and_more_rescans patch to make loop silent and raise rescans from 10 to 20 to fix makedist installations
* Thu Mar 03 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-13mamba
- added pkgUnpackagedSubdirs_fix_slowness patch as an attempt to reduce slowness when checking for unpackaged directories
* Fri Feb 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-12mamba
- cpu-os-macros: fix definitions for arm
- added requirement for patch
- removed gpg key installation to avoid db corruption and post requirement for openmamba-release
* Mon Feb 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-11mamba
- install per-platform macros files from cpu-os-macros file in CVS
* Tue Jan 11 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-10mamba
- fixed empty requires in mono package(s) by adding patch mono-avoid-empty-requires
* Sun Jan 09 2011 Davide Madrisan <davide.madrisan@gmail.com> 5.2.1-9mamba
- install the perl modules in the vendor directory tree
* Tue Dec 28 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-8mamba
- updated macros_cross_vars patch to fix %{_build*} definitions when cross-compiling rpm
- remove rpm-build package, to remove dependency loop (rpm executable needs librpmbuild)
- added disable_rpmmi_usermem patch for compatibility with 4.4.9 db
- added postplug update.d script for db rebuild on reboot
- obsolete rpm5
* Sat Aug 07 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-7mamba
- move code for key installation from openmamba-release; added Requires(post) for openmamba-release and gnupg
- macros.openmamba: added configure and build policy macros
* Thu Aug 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-6mamba
- PreReq: entries replaced with Requires(pre) and Requires(post)
- added patch set_openall_before_chroot
* Tue Aug 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-5mamba
- fix rpm -q --specfile --specedit duplicated output lines when BuildArch is set in the specfile
* Mon Aug 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-4mamba
- install find-requires and find-provides scripts
- create /etc/rpm/platform file with %{_host}
- macros.openmamba: added %define _check_symlink_deps 0
- added --with-libelf to build with libelf support (fixes rpmdeps)
* Thu Jul 29 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-3mamba
- added no-owner-group-on-srpm-install patches
* Tue Jul 27 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-2mamba
- rebuild with internal libpcre
- added patch to disable dirname deps and added '%define _check_dirname_deps 0' in /etc/rpm/macros.openmamba
* Mon Jul 26 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.1-1mamba
- update to 5.2.1
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-15mamba
- added spec_preprocessed_output patch
* Thu Mar 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-14mamba
- build with external libpopt
* Wed Mar 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-13mamba
- added patch to fix glibc automatic requirement with private section (arm)
- added patch to make cross platform host and build macros more flexible
* Thu Nov 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-12mamba
- brp-strip-static-archive: add exit 0 patch to this script as well
* Wed Nov 18 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-11mamba
- brp-strip-shared: add exit 0 to avoid build failure and stripping when installed libraries do not have write permissions
* Thu Oct 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-10mamba
- rpm-build: added requirement for elfutils needed by find-debuginfo.sh script
* Wed Jul 08 2009 Davide Madrisan <davide.madrisan@gmail.com> 4.4.9-9mamba
- rebuilt --with-python="%%python_version"
* Thu May 07 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-8mamba
- added a patch that disabled detection of executable requires
* Sat Jan 24 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-7mamba
- added patch against neon 0.28
* Thu Nov 13 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-6mamba
- marcos: set march=i686 and proper mtune for athlon, pentium4 and pentium3 build archs
- rpm-perl renamed to perl-RPM
- rpm-python renamed to python-rpm
* Sun Nov 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-5mamba
- rebuilt with python 2.6
* Wed Jan 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-4mamba
- provide rpmlib(CompressedFileNames) and rpmlib(PayloadFilesHavePrefix)
* Wed Jan 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-3mamba
- added patch that defines evrFlags
* Thu Jan 17 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-2mamba
- added legacy db configuration patch to support existing databases
* Wed Jan 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.9-1mamba
- update to 4.4.9
* Wed Jan 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.8-1mamba
- update to 4.4.8
- removed cve_006_5466 patch. code fixed upstream
- removed fix_MD5_digest patch applied upstream
* Tue Dec 25 2007 Aleph0 <aleph0@openmamba.org> 4.4.7-5mamba
- add macros.openmamba macros
- own %{_sysconfdir}/rpm
- removed macros for kde3 (moved to kdelibs-devel)
* Tue Dec 18 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-4mamba
- macrodirs patch: fixed sysconfdir definition in macros file
* Sun Dec 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-3mamba
- added patch to remove rpmlib(FileDigestParameterized) requirement for
MD5 digests
* Fri Dec 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-2mamba
- added no-dirnames-dep patch from Mandriva
- added keep_default_rpmrc patch
* Fri Dec 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7-2mamba
- update to 4.4.7
- changes url and source pointers to rpm5.org
* Thu Dec 13 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.6-1mamba
- update to 4.4.6
* Thu Mar 24 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-11qilnx
- configure for the openmamba platform
- popt and popt-devel renamed to libpopt and libpopt-devel
* Thu Mar 15 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-10qilnx
- security update against cve-2006-5466
- strip debug symbols from shared libraries ('brp-strip' script)
* Fri Mar 02 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-9qilnx
- added cpio requirement
- create packager user on install/upgrade
- added patch to set packager as owner and group in source files
* Thu Feb 08 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.5-8qilnx
- disable keyserver macros
* Tue Feb 06 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-7qilnx
- updated the %%configure_kde macro
* Wed Jan 31 2007 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-6qilnx
- added the %%configure_kde macro
* Tue Oct 24 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-5qilnx
- fixed rpm macro %%py_requires
* Thu Apr 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-4qilnx
- patched nobuildrootpath script to exit with error code 0 even if no
files has been modified
* Wed Apr 05 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-3qilnx
- do not repackage erased packages by default
* Thu Mar 23 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-2qilnx
- rebuilt with lua support
* Wed Feb 22 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.5-1qilnx
- update to version 4.4.5 by autospec
* Wed Jan 18 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-7qilnx
- devel package: added apidoc pages in html format
* Wed Jan 18 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-6qilnx
- remove temporary db files when upgrading from a different version
- own files in /var/lib/rpm
- use temporary table for Depends DB
* Tue Jan 17 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-5qilnx
- added compatibility for ppc architecture
- disabled "libtoool requires extractor" (libtooldeps.sh) for compatibility
with the previous version
- rpmlock_path set
* Fri Jan 13 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-3qilnx
- fixed %%install_info macro
* Tue Jan 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 4.4.4-1qilnx
- update to version 4.4.4
- osbolete macros %%configure33 and %%make33 removed
* Mon Nov 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-39qilnx
- fixed package groups
- enabled python package building again
* Wed Nov 16 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.0.4-38qilnx
- added boostrap build support
- conditional python bindings building
- removed java requirement
- added doxygen requirement
* Mon Sep 12 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-37qilnx
- cross platform build support
- use external db3 libraries
- patched for gcc4
* Wed Aug 17 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-36qilnx
- python bindings moved to site-python dir
* Tue Aug 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-35qilnx
- added patch for platform naming (add -gnu)
* Mon Aug 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-34qilnx
- p22 applied again
* Fri Jul 29 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-33qilnx
- brp-strip-static-archiv: do not exit with error when strip is not found
- new qilinux macro %%makeinstall_perl (p23)
* Fri Jul 15 2005 Silvan Calarco <silvan.calrco@qilinux.it> 4.0.4-32qilnx
- rebuilt with host i586-qilinux-linux
* Thu Jun 09 2005 Silvan Calarco <silvan.calrco@qilinux.it> 4.0.4-31qilnx
- correctly handle %config directive (got RedHat patched rpm 4.0.4 sources)
* Wed Apr 06 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-30qilnx
- fixed warnings printed by the new tool `head' when executed with the now
obsolete option `-1'
* Wed Mar 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-29qilnx
- changed PreReq from /usr/sbin/groupadd to pwdutils
* Wed Mar 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-28qilnx
- fixed packager group creation
* Fri Mar 04 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-27qilnx
- removed requirement for shadow
* Thu Mar 03 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-26qilnx
- patch: terminate the building process if unpackaged symlynks are detected
* Mon Feb 07 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-25qilnx
- script fix for Kernel 2.6: ignore requirement for virtual lib linux-gate.so.*
* Tue Jan 25 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-24qilnx
- fixed `%%arch' in platform macros
* Tue Jan 25 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-23qilnx
- new script `/usr/lib/rpm/brp-strip-builddirs'
* Fri Jan 21 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-22qilnx
- added platform macros `%%configure33' and `%%make33' for software that
requires gcc33
* Sat Jan 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-21qilnx
- fixed warnings generated by `configure' when a configure script created
by a recent autoconf tool is executed
- patched `rpmrc' to avoid gcc 3.4.x warnings (`-mtune' versus `-mcpu')
- fixed `%%_mandir', `%%_infodir', and `%%_localstatedir' variables
- added `strip_static_archive' script
- fixed `installplatform' script and added code to support QiLinux macros
- removed platform symlinks
- platform macros file: modified `%%makeinstall', added `%%makeoldinstall'
and two macros to install and remove info files
- added some macros in the global macro file (`%%make', python macros)
- added missing post and postpun scripts
- added API documentation (doxygen HTML and manpages) in the devel package
- updated `find_lang' patch
- removed zlib, libbzip2 from the `requires' list in the specfile preamble
- popt locales moved to popt package
- backported code from rpm 3.4.2 to permit the usage of the useful rpm
variable `unpackaged_files_terminate_build' (enabled in macro files)
* Mon Nov 15 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-20qilnx
- fixed brp-compress (generated symlinks to compressed manpages were broken)
* Mon Aug 02 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-19qilnx
- added require for shadow
* Mon Feb 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-18qilnx
- add `requires python' in rpm-python
* Thu Jan 08 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-17qilnx
- rebuilt with perl 5.8.2
* Wed Jan 07 2004 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.4-16qilnx
- minor specfile changes
- added native bindings to the RPM API for Perl (currently broken :(
- added some missing requirements
- fixed broken `perl(Specfile)' requirement
* Wed Dec 24 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-15qilnx
- rebuilt with python plugins
* Thu Sep 05 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-14qilnx
- rebuilt with dinamically linked system libraries
- added libbzip2-devel requirement
* Thu Jul 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-13qilnx
- added *.so in devel packages
* Wed May 14 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-12qilnx
- added check-files patch
* Tue Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-11qilnx
- added hardcoded configure dirs
* Tue Apr 27 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-10qilnx
- created platform symlinks
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-9qilnx
- fixed a infodir script problem
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-8qilnx
- moved group packager creation from %%post to %%pre
- added forgotten SPEC dir
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-7qilnx
- added creation of group packager and RPM directory permissions
* Tue Apr 24 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-5qilnx
- remade QiLinux customization
* Tue Apr 18 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-3qilnx
- added QiLinux customization
* Tue Apr 17 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-2qilnx
- made separate packages for popt
* Tue Apr 15 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.0.4-1qilnx
- first build for 4.0.4