RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 24-Jan-2008 09:35:20
Branch: HEAD Handle: 2008012408351801
Modified files:
rpm CHANGES system.h
rpm/lib cpio.c tar.c
Log:
Add support for QNX by adjusting to its 3-parameter based makedev(2)
Submitted by: Peter Kalbus <peter.kalbus@gmx.de>
Summary:
Revision Changes Path
1.2088 +1 -0 rpm/CHANGES
2.138 +2 -2 rpm/lib/cpio.c
1.8 +1 -1 rpm/lib/tar.c
2.105 +12 -0 rpm/system.h
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.2087 -r1.2088 CHANGES
--- rpm/CHANGES 22 Jan 2008 21:52:44 -0000 1.2087
+++ rpm/CHANGES 24 Jan 2008 08:35:18 -0000 1.2088
@@ -1,4 +1,5 @@
5.0.0 -> 5.1a1:
+ - rse: add support for QNX by adjusting to its 3-parameter based makedev(2)
- jbj: resurrect rpm.spec.in.
- jbj: fix: permit %{lua:...} to recurse.
- rse: allow to compile without <langinfo.h> and its nl_langinfo(3)
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/cpio.c
============================================================================
$ cvs diff -u -r2.137 -r2.138 cpio.c
--- rpm/lib/cpio.c 18 Jan 2008 17:00:52 -0000 2.137
+++ rpm/lib/cpio.c 24 Jan 2008 08:35:19 -0000 2.138
@@ -168,13 +168,13 @@
GET_NUM_FIELD(hdr.devMajor, major);
GET_NUM_FIELD(hdr.devMinor, minor);
/*@-shiftimplementation@*/
- st->st_dev = makedev(major, minor);
+ st->st_dev = Makedev(major, minor);
/*@=shiftimplementation@*/
GET_NUM_FIELD(hdr.rdevMajor, major);
GET_NUM_FIELD(hdr.rdevMinor, minor);
/*@-shiftimplementation@*/
- st->st_rdev = makedev(major, minor);
+ st->st_rdev = Makedev(major, minor);
/*@=shiftimplementation@*/
GET_NUM_FIELD(hdr.namesize, nameSize);
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/tar.c
============================================================================
$ cvs diff -u -r1.7 -r1.8 tar.c
--- rpm/lib/tar.c 3 Dec 2007 21:11:53 -0000 1.7
+++ rpm/lib/tar.c 24 Jan 2008 08:35:19 -0000 1.8
@@ -221,7 +221,7 @@
major = strntoul(hdr->devMajor, NULL, 8, sizeof(hdr->devMajor));
minor = strntoul(hdr->devMinor, NULL, 8, sizeof(hdr->devMinor));
/*@-shiftimplementation@*/
- st->st_dev = makedev(major, minor);
+ st->st_dev = Makedev(major, minor);
/*@=shiftimplementation@*/
st->st_rdev = st->st_dev; /* XXX compat? */
@@ .
patch -p0 <<'@@ .'
Index: rpm/system.h
============================================================================
$ cvs diff -u -r2.104 -r2.105 system.h
--- rpm/system.h 16 Dec 2007 17:39:19 -0000 2.104
+++ rpm/system.h 24 Jan 2008 08:35:18 -0000 2.105
@@ -726,6 +726,18 @@
#endif
/**
+ * makedev() on QNX takes three parameters
+ * the additional one (first place) specifies the node for QNET
+ * as this applic is not QNET aware, we can set it to 'local node'
+ */
+#if defined(__QNXNTO__)
+#include <sys/netmgr.h>
+#define Makedev(x,y) makedev(ND_LOCAL_NODE,(x),(y))
+#else
+#define Makedev(x,y) makedev((x),(y))
+#endif
+
+/**
* Mark --initdb and --verifydb for destruction.
*/
#define SUPPORT_INITDB 1
@@ .
Received on Thu Jan 24 09:35:20 2008