Merging RPM support from Poky
As some of you know Poky has RPM support written. It consists few parts:
- creating RPM packages
- creating rootfs from RPM packages
- using RPM/YUM on device to managing packages (installing from local and remote packages
I had one attempt to get it merged before but it had some bugs so I started from scratch. Extracting required patches from pile of 1800 Poky changsets took me some time.
With this patchset I managed to build 'minimal-image' for AT91SAM9263-EK machine. As distribution I used 'minimal' to get something other then Angstrom.
So please review it (patch 67 is already merged in .dev tree).
It is also visible on Web: http://cgit.openembedded.net/cgit.cgi?url=openembedded/log/&h=hrw/poky-merge/add-rpm-packages-support
Fetch via: git pull hrw/poky-merge/add-rpm-packages-support
classes/base.bbclass | 13 + classes/package.bbclass | 6 + classes/package_rpm.bbclass | 140 +++++++-- classes/packaged-staging.bbclass | 14 + classes/rootfs_rpm.bbclass | 220 ++++++++++++++ classes/rpm_core.bbclass | 16 - packages/beecrypt/beecrypt_3.1.0.bb | 16 +- packages/beecrypt/files/x64fix.patch | 20 ++ packages/fakechroot/fakechroot-native_2.5.bb | 2 +- packages/fakechroot/fakechroot_2.5.bb | 3 +- packages/fakechroot/files/fix-readlink.patch | 32 ++ packages/libxml/libxml2-native.inc | 5 +- packages/libxml/libxml2-native_2.7.2.bb | 2 +- packages/openssl/openssl-native_0.9.7g.bb | 1 + packages/openssl/openssl-native_0.9.7m.bb | 1 + packages/openssl/openssl-native_0.9.8g.bb | 1 + packages/python/python-iniparse-native_0.2.3.bb | 10 + packages/python/python-iniparse_0.2.3.bb | 11 + packages/python/python-urlgrabber-native_3.1.0.bb | 10 + packages/python/python-urlgrabber_3.1.0.bb | 11 + .../python/yum-metadata-parser-native_1.1.2.bb | 12 + packages/python/yum-metadata-parser_1.1.2.bb | 13 + packages/rpm/files/cross_libpaths.patch | 239 +++++++++++++++- packages/rpm/files/extcond.patch | 78 +++++ packages/rpm/files/external-tools.patch | 108 +++++++ packages/rpm/files/fix_mypath.patch | 13 - packages/rpm/files/missingok.patch | 44 +++ packages/rpm/files/tagsbackport.patch | 37 +++ packages/rpm/files/weakdeps.patch | 312 ++++++++++++++++++++ packages/rpm/rpm-native_4.4.2.3.bb | 7 + packages/rpm/rpm_4.4.2.3.bb | 108 +++++++ packages/rpm/rpm_4.4.bb | 44 --- packages/yum/createrepo-native/fix.patch | 17 + packages/yum/createrepo-native/pathfix.patch | 81 +++++ packages/yum/createrepo-native_0.9.bb | 17 + packages/yum/files/extract-postinst.awk | 11 + packages/yum/files/fix | 18 ++ packages/yum/files/hacks.patch | 81 +++++ packages/yum/files/paths.patch | 96 ++++++ packages/yum/files/paths2.patch | 33 ++ packages/yum/files/yum-install-recommends.py | 39 +++ packages/yum/yum-native_3.2.18.bb | 25 ++ packages/yum/yum_3.2.18.bb | 32 ++ 43 files changed, 1872 insertions(+), 127 deletions(-)
PATCH 1/70 rpm: drop 4.4
From: Marcin Juszkiewicz <[email protected]>
--- packages/rpm/files/cross_libpaths.patch | 24 ----------------- packages/rpm/files/fix_mypath.patch | 13 --------- packages/rpm/rpm_4.4.bb | 44 ------------------------------- 3 files changed, 0 insertions(+), 81 deletions(-) delete mode 100644 packages/rpm/files/cross_libpaths.patch delete mode 100644 packages/rpm/files/fix_mypath.patch delete mode 100644 packages/rpm/rpm_4.4.bb
packages/rpm/files/cross_libpaths.patch deleted +0 -24
@@ -1,24 +0,0 @@ -Index: rpm-4.4/configure.ac -=================================================================== ---- rpm-4.4.orig/configure.ac 2005-01-29 10:54:37.698359056 -0500 -+++ rpm-4.4/configure.ac 2005-01-29 10:55:16.492461456 -0500 -@@ -321,10 +321,8 @@ - - localdone= - --dirs=$prefix - if test "$cross_compiling" != "yes"; then -- dirs="$dirs /usr/local" --fi -+dirs="$prefix /usr/local" - for dir in $dirs - do - case $dir in -@@ -366,6 +364,7 @@ - else - AC_MSG_RESULT(no) - fi -+fi - - dnl - dnl Check for features
packages/rpm/files/fix_mypath.patch deleted +0 -13
@@ -1,13 +0,0 @@ -Index: rpm-4.4/configure.ac -=================================================================== ---- rpm-4.4.orig/configure.ac 2005-01-29 10:54:13.599022712 -0500 -+++ rpm-4.4/configure.ac 2005-01-29 10:54:37.698359056 -0500 -@@ -230,7 +230,7 @@ - dnl use defaults if cross-compiling, otherwise use the default path. - dnl - if test "$cross_compiling" = "yes"; then -- MYPATH="" -+ MYPATH=":" - else - # MYPATH="/bin:/usr/bin:/usr/local/bin:$PATH:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnu/bin" - MYPATH=$PATH
packages/rpm/rpm_4.4.bb deleted +0 -44
44 lines not on this page · raw message
Signature · 1 line
1.6.1.3
PATCH 2/70 rpm/rpm-native: Add recipe for 4.4.2.3 (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5069 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/cross_libpaths.patch | 145 +++++++++++++++++++++++++++++++ packages/rpm/files/external-tools.patch | 108 +++++++++++++++++++++++ packages/rpm/rpm-native_4.4.2.3.bb | 10 ++ packages/rpm/rpm_4.4.2.3.bb | 84 ++++++++++++++++++ 4 files changed, 347 insertions(+), 0 deletions(-) create mode 100644 packages/rpm/files/cross_libpaths.patch create mode 100644 packages/rpm/files/external-tools.patch create mode 100644 packages/rpm/rpm-native_4.4.2.3.bb create mode 100644 packages/rpm/rpm_4.4.2.3.bb
packages/rpm/files/cross_libpaths.patch new file +145 -0
@@ -0,0 +1,145 @@ +Index: rpm-4.4.2.3/configure.ac +=================================================================== +--- rpm-4.4.2.3.orig/configure.ac 2008-08-17 11:40:29.000000000 +0100 ++++ rpm-4.4.2.3/configure.ac 2008-08-17 11:40:29.000000000 +0100 +@@ -326,10 +326,8 @@ + + localdone= + +-dirs=$prefix + if test "$cross_compiling" != "yes"; then +- dirs="$dirs /usr/local" +-fi ++dirs="$prefix /usr/local" + for dir in $dirs + do + case $dir in +@@ -371,6 +369,7 @@ + else + AC_MSG_RESULT(no) + fi ++fi + + dnl + dnl Check for features +@@ -473,7 +472,7 @@ + AC_CHECK_HEADER([beecrypt/api.h], [ + AC_DEFINE(HAVE_BEECRYPT_API_H, 1, [Define to 1 if you have the <beecrypt/api.h> header file.]) + ]) +- WITH_BEECRYPT_INCLUDE="-I${includedir}/beecrypt" ++ WITH_BEECRYPT_INCLUDE="" + WITH_BEECRYPT_LIB="-lbeecrypt" + ]) + ],[ +@@ -506,7 +505,7 @@ + AC_CHECK_LIB(neon, ne_send_request_chunk, [ + AC_DEFINE(HAVE_NEON_NE_SEND_REQUEST_CHUNK, 1, [Define to 1 if you have ne_send_request_chunk() in libneon.]) + ]) +- WITH_NEON_INCLUDE="-I${includedir}/neon" ++ WITH_NEON_INCLUDE="" + WITH_NEON_LIB="-lneon" + ]) + ],[ +Index: rpm-4.4.2.3/rpmio/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/rpmio/Makefile.am 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/rpmio/Makefile.am 2008-08-17 11:40:29.000000000 +0100 +@@ -26,8 +26,6 @@ + + BEECRYPTLOBJS = $(shell test X"@WITH_BEECRYPT_SUBDIR@" != X && cat $(top_builddir)/@WITH_BEECTYPT_SUBDIR@/listobjs) + +-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) +- + usrlibdir = $(libdir)@MARK64@ + usrlib_LTLIBRARIES = librpmio.la + librpmio_la_SOURCES = \ +Index: rpm-4.4.2.3/rpmio/rpmio_internal.h +=================================================================== +--- rpm-4.4.2.3.orig/rpmio/rpmio_internal.h 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/rpmio/rpmio_internal.h 2008-08-17 11:40:29.000000000 +0100 +@@ -12,22 +12,22 @@ + #if HAVE_BEECRYPT_API_H + #include <api.h> + #else +-#include <beecrypt.api.h> ++#include <beecrypt/beecrypt.api.h> + #endif + + #include <rpmpgp.h> + #include <rpmsw.h> + + /* Drag in the beecrypt includes. */ +-#include <beecrypt.h> +-#include <base64.h> +-#include <dsa.h> +-#include <endianness.h> +-#include <md5.h> +-#include <mp.h> +-#include <rsa.h> +-#include <rsapk.h> +-#include <sha1.h> ++#include <beecrypt/beecrypt.h> ++#include <beecrypt/base64.h> ++#include <beecrypt/dsa.h> ++#include <beecrypt/endianness.h> ++#include <beecrypt/md5.h> ++#include <beecrypt/mp.h> ++#include <beecrypt/rsa.h> ++#include <beecrypt/rsapk.h> ++#include <beecrypt/sha1.h> + #if HAVE_BEECRYPT_API_H + #include <sha256.h> + #include <sha384.h> +Index: rpm-4.4.2.3/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/Makefile.am 2008-08-17 11:42:36.000000000 +0100 ++++ rpm-4.4.2.3/Makefile.am 2008-08-17 11:42:50.000000000 +0100 +@@ -10,7 +10,7 @@ + po/*.in po/*.po po/rpm.pot \ + rpm.magic rpmpopt-$(VERSION) rpmqv.c + +-SUBDIRS = po misc @WITH_ZLIB_SUBDIR@ @WITH_ELFUTILS_SUBDIR@ @WITH_MAGIC_SUBDIR@ @WITH_DB_SUBDIR@ @WITH_SQLITE3_SUBDIR@ @WITH_POPT_SUBDIR@ @WITH_BEECRYPT_SUBDIR@ @WITH_NEON_SUBDIR@ lua rpmio rpmdb lib build @WITH_PYTHON_SUBDIR@ tools scripts doc . ++SUBDIRS = po misc @WITH_ZLIB_SUBDIR@ @WITH_ELFUTILS_SUBDIR@ @WITH_MAGIC_SUBDIR@ @WITH_DB_SUBDIR@ @WITH_SQLITE3_SUBDIR@ @WITH_POPT_SUBDIR@ @WITH_BEECRYPT_SUBDIR@ @WITH_NEON_SUBDIR@ rpmio rpmdb lib build @WITH_PYTHON_SUBDIR@ tools scripts doc . + + INCLUDES = \ + -I$(top_srcdir)/build \ +Index: rpm-4.4.2.3/rpmdb/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/rpmdb/Makefile.am 2008-08-17 11:43:36.000000000 +0100 ++++ rpm-4.4.2.3/rpmdb/Makefile.am 2008-08-17 11:43:57.000000000 +0100 +@@ -41,9 +41,6 @@ + # XXX watchout, ../db3/libdb.la created by this Makefile may surprise + libdb_la = $(top_builddir)/$(WITH_DB_SUBDIR)/libdb.la + +-# XXX grrr, RPM_BUILD_ROOT prevents build pollution if/when -lrpm different +-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) +- + usrlibdir = $(libdir)@MARK64@ + usrlib_LTLIBRARIES = librpmdb.la + librpmdb_la_SOURCES = \ +Index: rpm-4.4.2.3/lib/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/lib/Makefile.am 2008-08-17 11:46:43.000000000 +0100 ++++ rpm-4.4.2.3/lib/Makefile.am 2008-08-17 11:46:51.000000000 +0100 +@@ -29,8 +29,6 @@ + mylibs = librpm.la + LIBS = + +-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) +- + usrlibdir = $(libdir)@MARK64@ + usrlib_LTLIBRARIES = librpm.la + librpm_la_SOURCES = \ +Index: rpm-4.4.2.3/build/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/build/Makefile.am 2008-08-17 11:47:37.000000000 +0100 ++++ rpm-4.4.2.3/build/Makefile.am 2008-08-17 11:47:43.000000000 +0100 +@@ -22,8 +22,6 @@ + pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h + noinst_HEADERS = buildio.h + +-LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) +- + usrlibdir = $(libdir)@MARK64@ + usrlib_LTLIBRARIES = librpmbuild.la + librpmbuild_la_SOURCES = \
packages/rpm/files/external-tools.patch new file +108 -0
108 lines not on this page · raw message
packages/rpm/rpm-native_4.4.2.3.bb new file +10 -0
@@ -0,0 +1,10 @@ +require rpm_${PV}.bb +inherit native + +DEPENDS = "beecrypt-native zlib-native file-native popt-native" + +PR = "r2" + +export sharedstatedir = "${layout_sharedstatedir}" +export localstatedir = "${layout_localstatedir}" +
packages/rpm/rpm_4.4.2.3.bb new file +84 -0
84 lines not on this page · raw message
Signature · 1 line
1.6.1.3
Re: [PATCH 02/70] rpm/rpm-native: Add recipe for 4.4.2.3 (from Poky)
Quoted 8 lines · Marcin Juszkiewicz
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5069 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/cross_libpaths.patch | 145 +++++++++++++++++++++++++++++++ packages/rpm/files/external-tools.patch | 108 +++++++++++++++++++++++ packages/rpm/rpm-native_4.4.2.3.bb | 10 ++ packages/rpm/rpm_4.4.2.3.bb | 84 ++++++++++++++++++
rpm-native's configure depends on 'ed' being on the host. We don't currently check for this in sanity.bbclass nor have an ed-native package which can be added to DEPENDS.
See http://pastebin.com/m1ea52c95, MACHINE=nokia800 (but I also see it for db1200 and beagleboard and mx31ads) DISTRO=minimal.
Signature · 1 line
Tom Rini
Re: [PATCH 02/70] rpm/rpm-native: Add recipe for 4.4.2.3 (from Poky)
Quoted 3 lines · On Wednesday 04 of March 2009 20:17:51 Tom Rini wrote:
rpm-native's configure depends on 'ed' being on the host. We don't currently check for this in sanity.bbclass nor have an ed-native package which can be added to DEPENDS.
fixed
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
PATCH 3/70 rpm: Patch out some Makefile strangeness causing build failures (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5085 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/cross_libpaths.patch | 33 +++++++++++++++++++----------- packages/rpm/rpm_4.4.2.3.bb | 2 +- 2 files changed, 22 insertions(+), 13 deletions(-)
packages/rpm/files/cross_libpaths.patch +21 -12
@@ -1,7 +1,7 @@ Index: rpm-4.4.2.3/configure.ac =================================================================== ---- rpm-4.4.2.3.orig/configure.ac 2008-08-17 11:40:29.000000000 +0100 -+++ rpm-4.4.2.3/configure.ac 2008-08-17 11:40:29.000000000 +0100 +--- rpm-4.4.2.3.orig/configure.ac 2008-08-18 10:25:14.000000000 +0100 ++++ rpm-4.4.2.3/configure.ac 2008-08-18 10:25:14.000000000 +0100 @@ -326,10 +326,8 @@ localdone=
@@ -43,7 +43,7 @@ Index: rpm-4.4.2.3/configure.ac Index: rpm-4.4.2.3/rpmio/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/rpmio/Makefile.am 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/rpmio/Makefile.am 2008-08-17 11:40:29.000000000 +0100 ++++ rpm-4.4.2.3/rpmio/Makefile.am 2008-08-18 10:25:14.000000000 +0100 @@ -26,8 +26,6 @@ BEECRYPTLOBJS = $(shell test X"@WITH_BEECRYPT_SUBDIR@" != X && cat $(top_builddir)/@WITH_BEECTYPT_SUBDIR@/listobjs)
@@ -56,7 +56,7 @@ Index: rpm-4.4.2.3/rpmio/Makefile.am Index: rpm-4.4.2.3/rpmio/rpmio_internal.h =================================================================== --- rpm-4.4.2.3.orig/rpmio/rpmio_internal.h 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/rpmio/rpmio_internal.h 2008-08-17 11:40:29.000000000 +0100 ++++ rpm-4.4.2.3/rpmio/rpmio_internal.h 2008-08-18 10:25:14.000000000 +0100 @@ -12,22 +12,22 @@ #if HAVE_BEECRYPT_API_H #include <api.h>
@@ -92,8 +92,8 @@ Index: rpm-4.4.2.3/rpmio/rpmio_internal.h #include <sha384.h> Index: rpm-4.4.2.3/Makefile.am =================================================================== ---- rpm-4.4.2.3.orig/Makefile.am 2008-08-17 11:42:36.000000000 +0100 -+++ rpm-4.4.2.3/Makefile.am 2008-08-17 11:42:50.000000000 +0100 +--- rpm-4.4.2.3.orig/Makefile.am 2008-04-01 08:28:21.000000000 +0100 ++++ rpm-4.4.2.3/Makefile.am 2008-08-20 08:26:44.000000000 +0100 @@ -10,7 +10,7 @@ po/*.in po/*.po po/rpm.pot \ rpm.magic rpmpopt-$(VERSION) rpmqv.c
@@ -103,10 +103,19 @@ Index: rpm-4.4.2.3/Makefile.am INCLUDES = \ -I$(top_srcdir)/build \ +@@ -93,7 +93,7 @@ + rpm2cpio_LDFLAGS = $(myLDFLAGS) + rpm2cpio_LDADD = $(myLDADD) @LIBMISC@ + +-$(PROGRAMS): $(myLDADD) @WITH_APIDOCS_TARGET@ ++$(PROGRAMS): @WITH_APIDOCS_TARGET@ + + .PHONY: splint + splint: Index: rpm-4.4.2.3/rpmdb/Makefile.am =================================================================== ---- rpm-4.4.2.3.orig/rpmdb/Makefile.am 2008-08-17 11:43:36.000000000 +0100 -+++ rpm-4.4.2.3/rpmdb/Makefile.am 2008-08-17 11:43:57.000000000 +0100 +--- rpm-4.4.2.3.orig/rpmdb/Makefile.am 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/rpmdb/Makefile.am 2008-08-18 10:25:14.000000000 +0100 @@ -41,9 +41,6 @@ # XXX watchout, ../db3/libdb.la created by this Makefile may surprise libdb_la = $(top_builddir)/$(WITH_DB_SUBDIR)/libdb.la
@@ -119,8 +128,8 @@ Index: rpm-4.4.2.3/rpmdb/Makefile.am librpmdb_la_SOURCES = \ Index: rpm-4.4.2.3/lib/Makefile.am =================================================================== ---- rpm-4.4.2.3.orig/lib/Makefile.am 2008-08-17 11:46:43.000000000 +0100 -+++ rpm-4.4.2.3/lib/Makefile.am 2008-08-17 11:46:51.000000000 +0100 +--- rpm-4.4.2.3.orig/lib/Makefile.am 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/lib/Makefile.am 2008-08-18 10:25:14.000000000 +0100 @@ -29,8 +29,6 @@ mylibs = librpm.la LIBS =
@@ -132,8 +141,8 @@ Index: rpm-4.4.2.3/lib/Makefile.am librpm_la_SOURCES = \ Index: rpm-4.4.2.3/build/Makefile.am =================================================================== ---- rpm-4.4.2.3.orig/build/Makefile.am 2008-08-17 11:47:37.000000000 +0100 -+++ rpm-4.4.2.3/build/Makefile.am 2008-08-17 11:47:43.000000000 +0100 +--- rpm-4.4.2.3.orig/build/Makefile.am 2008-04-01 08:28:21.000000000 +0100 ++++ rpm-4.4.2.3/build/Makefile.am 2008-08-18 10:25:14.000000000 +0100 @@ -22,8 +22,6 @@ pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h noinst_HEADERS = buildio.h
packages/rpm/rpm_4.4.2.3.bb +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt" -PR = "r1" +PR = "r2" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \
Signature · 1 line
1.6.1.3
PATCH 4/70 rpm: Enable python extensions and improve cross compiling patches (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5093 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/cross_libpaths.patch | 140 +++++++++++++++++++++++++------ packages/rpm/files/external-tools.patch | 4 +- packages/rpm/rpm-native_4.4.2.3.bb | 3 +- packages/rpm/rpm_4.4.2.3.bb | 18 ++++- 4 files changed, 133 insertions(+), 32 deletions(-)
packages/rpm/files/cross_libpaths.patch +115 -25
@@ -1,7 +1,7 @@ Index: rpm-4.4.2.3/configure.ac =================================================================== ---- rpm-4.4.2.3.orig/configure.ac 2008-08-18 10:25:14.000000000 +0100 -+++ rpm-4.4.2.3/configure.ac 2008-08-18 10:25:14.000000000 +0100 +--- rpm-4.4.2.3.orig/configure.ac 2008-08-23 16:03:51.000000000 +0100 ++++ rpm-4.4.2.3/configure.ac 2008-08-25 16:26:11.000000000 +0100 @@ -326,10 +326,8 @@ localdone=
@@ -40,23 +40,47 @@ Index: rpm-4.4.2.3/configure.ac WITH_NEON_LIB="-lneon" ]) ],[ +@@ -857,6 +856,12 @@ + dnl + dnl Auto-detect which python bindings should be built. + dnl ++ ++AC_ARG_WITH(python-incdir, [ --with-python-incdir python include directory ]) ++PYTHON_INCDIR=$withval ++AC_ARG_WITH(python-libdir, [ --with-python-libdir python library directory ]) ++PYTHON_LIBDIR=$withval ++ + withval=auto + AC_ARG_WITH(python, [ --with-python build rpm python bindings ]) + +@@ -934,6 +939,8 @@ + AC_SUBST(WITH_PYTHON_SUBDIR) + AC_SUBST(WITH_PYTHON_SUBPACKAGE) + AC_SUBST(WITH_PYTHON_VERSION) ++AC_SUBST(PYTHON_LIBDIR) ++AC_SUBST(PYTHON_INCDIR) + + AC_PATH_PROG(__DOXYGEN, doxygen, no, $PATH) + dnl Index: rpm-4.4.2.3/rpmio/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/rpmio/Makefile.am 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/rpmio/Makefile.am 2008-08-18 10:25:14.000000000 +0100 -@@ -26,8 +26,6 @@ ++++ rpm-4.4.2.3/rpmio/Makefile.am 2008-08-23 12:14:12.000000000 +0100 +@@ -26,9 +26,7 @@ BEECRYPTLOBJS = $(shell test X"@WITH_BEECRYPT_SUBDIR@" != X && cat $(top_builddir)/@WITH_BEECTYPT_SUBDIR@/listobjs) -LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) - - usrlibdir = $(libdir)@MARK64@ +-usrlibdir = $(libdir)@MARK64@ ++usrlibdir = $(libdir) usrlib_LTLIBRARIES = librpmio.la librpmio_la_SOURCES = \ + argv.c digest.c fts.c macro.c rpmdav.c \ Index: rpm-4.4.2.3/rpmio/rpmio_internal.h =================================================================== --- rpm-4.4.2.3.orig/rpmio/rpmio_internal.h 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/rpmio/rpmio_internal.h 2008-08-18 10:25:14.000000000 +0100 ++++ rpm-4.4.2.3/rpmio/rpmio_internal.h 2008-08-23 12:07:29.000000000 +0100 @@ -12,22 +12,22 @@ #if HAVE_BEECRYPT_API_H #include <api.h>
@@ -93,7 +117,7 @@ Index: rpm-4.4.2.3/rpmio/rpmio_internal.h Index: rpm-4.4.2.3/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/Makefile.am 2008-04-01 08:28:21.000000000 +0100 -+++ rpm-4.4.2.3/Makefile.am 2008-08-20 08:26:44.000000000 +0100 ++++ rpm-4.4.2.3/Makefile.am 2008-08-23 12:07:29.000000000 +0100 @@ -10,7 +10,7 @@ po/*.in po/*.po po/rpm.pot \ rpm.magic rpmpopt-$(VERSION) rpmqv.c
@@ -103,52 +127,118 @@ Index: rpm-4.4.2.3/Makefile.am INCLUDES = \ -I$(top_srcdir)/build \ -@@ -93,7 +93,7 @@ - rpm2cpio_LDFLAGS = $(myLDFLAGS) - rpm2cpio_LDADD = $(myLDADD) @LIBMISC@ - --$(PROGRAMS): $(myLDADD) @WITH_APIDOCS_TARGET@ -+$(PROGRAMS): @WITH_APIDOCS_TARGET@ - - .PHONY: splint - splint: Index: rpm-4.4.2.3/rpmdb/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/rpmdb/Makefile.am 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/rpmdb/Makefile.am 2008-08-18 10:25:14.000000000 +0100 -@@ -41,9 +41,6 @@ ++++ rpm-4.4.2.3/rpmdb/Makefile.am 2008-08-23 12:13:18.000000000 +0100 +@@ -41,10 +41,7 @@ # XXX watchout, ../db3/libdb.la created by this Makefile may surprise libdb_la = $(top_builddir)/$(WITH_DB_SUBDIR)/libdb.la -# XXX grrr, RPM_BUILD_ROOT prevents build pollution if/when -lrpm different -LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) - - usrlibdir = $(libdir)@MARK64@ +-usrlibdir = $(libdir)@MARK64@ ++usrlibdir = $(libdir) usrlib_LTLIBRARIES = librpmdb.la librpmdb_la_SOURCES = \ + dbconfig.c fprint.c \ Index: rpm-4.4.2.3/lib/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/lib/Makefile.am 2008-04-01 08:28:22.000000000 +0100 -+++ rpm-4.4.2.3/lib/Makefile.am 2008-08-18 10:25:14.000000000 +0100 -@@ -29,8 +29,6 @@ ++++ rpm-4.4.2.3/lib/Makefile.am 2008-08-23 16:03:51.000000000 +0100 +@@ -29,9 +29,7 @@ mylibs = librpm.la LIBS = -LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) - - usrlibdir = $(libdir)@MARK64@ +-usrlibdir = $(libdir)@MARK64@ ++usrlibdir = $(libdir) usrlib_LTLIBRARIES = librpm.la librpm_la_SOURCES = \ + cpio.c depends.c formats.c fs.c fsm.c getdate.c \ Index: rpm-4.4.2.3/build/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/build/Makefile.am 2008-04-01 08:28:21.000000000 +0100 -+++ rpm-4.4.2.3/build/Makefile.am 2008-08-18 10:25:14.000000000 +0100 -@@ -22,8 +22,6 @@ ++++ rpm-4.4.2.3/build/Makefile.am 2008-08-23 16:03:51.000000000 +0100 +@@ -22,9 +22,7 @@ pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h noinst_HEADERS = buildio.h -LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir) - - usrlibdir = $(libdir)@MARK64@ +-usrlibdir = $(libdir)@MARK64@ ++usrlibdir = $(libdir) usrlib_LTLIBRARIES = librpmbuild.la librpmbuild_la_SOURCES = \ + build.c expression.c files.c misc.c names.c pack.c \ +Index: rpm-4.4.2.3/python/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/python/Makefile.am 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/python/Makefile.am 2008-08-25 16:26:56.000000000 +0100 +@@ -4,8 +4,8 @@ + + LINT = splint + +-pylibdir = ${prefix}/lib@MARK64@/python@WITH_PYTHON_VERSION@ +-pyincdir = $(prefix)/include/python@WITH_PYTHON_VERSION@ ++pylibdir = @PYTHON_LIBDIR@ ++pyincdir = @PYTHON_INCDIR@ + + SUBDIRS = rpm + +Index: rpm-4.4.2.3/python/rpm/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/python/rpm/Makefile.am 2008-04-01 08:28:22.000000000 +0100 ++++ rpm-4.4.2.3/python/rpm/Makefile.am 2008-08-25 16:27:29.000000000 +0100 +@@ -4,8 +4,8 @@ + + PYVER = @WITH_PYTHON_VERSION@ + +-pylibdir = ${prefix}/lib@MARK64@/python@WITH_PYTHON_VERSION@ +-pyincdir = $(prefix)/include/python@WITH_PYTHON_VERSION@ ++pylibdir = @PYTHON_LIBDIR@ ++pyincdir = @PYTHON_INCDIR@ + + EXTRA_DIST = \ + __init__.py +Index: rpm-4.4.2.3/file/src/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/file/src/Makefile.am 2008-08-23 16:06:25.000000000 +0100 ++++ rpm-4.4.2.3/file/src/Makefile.am 2008-08-23 16:06:39.000000000 +0100 +@@ -4,7 +4,7 @@ + EXTRA_DIST = test.c + + # XXX Make sure compress.c links internal zlib +-INCLUDES = -I. -I ../../zlib ++INCLUDES = -I. + + pkglibdir = @prefix@/lib/rpm + MAGIC = $(pkglibdir)/magic +@@ -26,7 +26,7 @@ + + noinst_PROGRAMS = file + file_SOURCES = file.c +-file_LDFLAGS = -L../../zlib # -all-static ++#file_LDFLAGS = -L../../zlib # -all-static + file_LDADD = libmagic.la + + listobjs: +Index: rpm-4.4.2.3/file/magic/Makefile.am +=================================================================== +--- rpm-4.4.2.3.orig/file/magic/Makefile.am 2008-08-25 16:14:47.000000000 +0100 ++++ rpm-4.4.2.3/file/magic/Makefile.am 2008-08-25 16:15:02.000000000 +0100 +@@ -18,10 +18,10 @@ + done >> $@ + + magic.mgc: magic +- $(top_builddir)/src/file -C -m magic ++ file -C -m magic + + magic.mime.mgc: magic.mime +- $(top_builddir)/src/file -C -m $(srcdir)/magic.mime ++ file -C -m $(srcdir)/magic.mime + + magic_FRAGMENTS = \ + Magdir/acorn \
packages/rpm/files/external-tools.patch +2 -2
@@ -7,7 +7,7 @@ Index: rpm-4.4.2.3/configure.ac WITH_MAGIC_LIB= -if test -d file ; then -+if test -d file_disabled ; then ++if test -d file ; then WITH_RPMFILE=rpmfile WITH_MAGIC_SUBDIR=file WITH_MAGIC_INCLUDE="-I\${top_srcdir}/${WITH_MAGIC_SUBDIR}/src"
@@ -16,7 +16,7 @@ Index: rpm-4.4.2.3/configure.ac dnl export LIBS INCPATH CONFIG_SITE -AC_CONFIG_SUBDIRS(popt file db3) -+AC_CONFIG_SUBDIRS(db/dist) ++AC_CONFIG_SUBDIRS(db/dist file) AC_CONFIG_FILES([ Doxyfile Makefile rpmrc macros platform rpmpopt rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile
packages/rpm/rpm-native_4.4.2.3.bb +1 -2
@@ -1,10 +1,9 @@ require rpm_${PV}.bb inherit native -DEPENDS = "beecrypt-native zlib-native file-native popt-native" +DEPENDS = "beecrypt-native zlib-native file-native popt-native python-native" PR = "r2" export sharedstatedir = "${layout_sharedstatedir}" export localstatedir = "${layout_localstatedir}" -
packages/rpm/rpm_4.4.2.3.bb +15 -3
@@ -1,8 +1,8 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" -DEPENDS = "zlib beecrypt file popt" -PR = "r2" +DEPENDS = "zlib beecrypt file popt python" +PR = "r3" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \
@@ -14,7 +14,9 @@ S = "${WORKDIR}/rpm-${PV}" acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" -EXTRA_OECONF = "--without-python \ +EXTRA_OECONF = "--with-python=${PYTHONVER} \ + --with-python-incdir=${STAGING_INCDIR}/python${PYTHONVER} \ + --with-python-libdir=${STAGING_LIBDIR}/python${PYTHONVER} \ --without-apidocs \ --without-selinux \ --without-lua \
@@ -82,3 +84,13 @@ do_configure () { --with-pic } + +def rpm_python_version(d): + import os, bb + staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 ) + if os.path.exists( "%s/python2.5" % staging_incdir ): return "2.5" + if os.path.exists( "%s/python2.4" % staging_incdir ): return "2.4" + if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3" + raise "No Python in STAGING_INCDIR. Forgot to build python/python-native?" + +PYTHONVER = "${@rpm_python_version(d)}"
Signature · 1 line
1.6.1.3
PATCH 5/70 rpm: Tweak patches to remove popt problem (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5103 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/cross_libpaths.patch | 11 ++++++++++- packages/rpm/rpm-native_4.4.2.3.bb | 2 -- packages/rpm/rpm_4.4.2.3.bb | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-)
packages/rpm/files/cross_libpaths.patch +10 -1
@@ -117,7 +117,7 @@ Index: rpm-4.4.2.3/rpmio/rpmio_internal.h Index: rpm-4.4.2.3/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/Makefile.am 2008-04-01 08:28:21.000000000 +0100 -+++ rpm-4.4.2.3/Makefile.am 2008-08-23 12:07:29.000000000 +0100 ++++ rpm-4.4.2.3/Makefile.am 2008-08-25 23:09:40.000000000 +0100 @@ -10,7 +10,7 @@ po/*.in po/*.po po/rpm.pot \ rpm.magic rpmpopt-$(VERSION) rpmqv.c
@@ -127,6 +127,15 @@ Index: rpm-4.4.2.3/Makefile.am INCLUDES = \ -I$(top_srcdir)/build \ +@@ -93,7 +93,7 @@ + rpm2cpio_LDFLAGS = $(myLDFLAGS) + rpm2cpio_LDADD = $(myLDADD) @LIBMISC@ + +-$(PROGRAMS): $(myLDADD) @WITH_APIDOCS_TARGET@ ++$(PROGRAMS): @WITH_APIDOCS_TARGET@ + + .PHONY: splint + splint: Index: rpm-4.4.2.3/rpmdb/Makefile.am =================================================================== --- rpm-4.4.2.3.orig/rpmdb/Makefile.am 2008-04-01 08:28:22.000000000 +0100
packages/rpm/rpm-native_4.4.2.3.bb +0 -2
@@ -3,7 +3,5 @@ inherit native DEPENDS = "beecrypt-native zlib-native file-native popt-native python-native" -PR = "r2" - export sharedstatedir = "${layout_sharedstatedir}" export localstatedir = "${layout_localstatedir}"
packages/rpm/rpm_4.4.2.3.bb +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r3" +PR = "r4" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \
Signature · 1 line
1.6.1.3
PATCH 6/70 rpm: Add recommends support from suse rpm patches (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5113 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/tagsbackport.patch | 37 ++++ packages/rpm/files/weakdeps.patch | 312 +++++++++++++++++++++++++++++++++ packages/rpm/rpm_4.4.2.3.bb | 6 +- 3 files changed, 353 insertions(+), 2 deletions(-) create mode 100644 packages/rpm/files/tagsbackport.patch create mode 100644 packages/rpm/files/weakdeps.patch
packages/rpm/files/tagsbackport.patch new file +37 -0
@@ -0,0 +1,37 @@ +Backported some new tags and sense values. + +Index: lib/rpmlib.h +=================================================================== +--- lib/rpmlib.h.orig 2008-08-26 17:07:12.000000000 +0100 ++++ lib/rpmlib.h 2008-08-26 17:22:21.000000000 +0100 +@@ -447,7 +447,19 @@ + RPMTAG_PRIORITY = 1162, /* i extension placeholder */ + RPMTAG_CVSID = 1163, /* s */ + #define RPMTAG_SVNID RPMTAG_CVSID /* s */ ++ RPMTAG_BLINKPKGID = 1164, /* s[] */ ++ RPMTAG_BLINKHDRID = 1165, /* s[] */ ++ RPMTAG_BLINKNEVRA = 1166, /* s[] */ ++ RPMTAG_FLINKPKGID = 1167, /* s[] */ ++ RPMTAG_FLINKHDRID = 1168, /* s[] */ ++ RPMTAG_FLINKNEVRA = 1169, /* s[] */ ++ RPMTAG_PACKAGEORIGIN = 1170, /* s */ + RPMTAG_TRIGGERPREIN = 1171, /*!< internal */ ++ RPMTAG_BUILDSUGGESTS = 1172, /*!< internal */ ++ RPMTAG_BUILDENHANCES = 1173, /*!< internal */ ++ RPMTAG_SCRIPTSTATES = 1174, /*!< i scriptlet exit codes */ ++ RPMTAG_SCRIPTMETRICS = 1175, /*!< i scriptlet execution times */ ++ RPMTAG_BUILDCPUCLOCK = 1176, /*!< i */ + + /*@-enummemuse@*/ + RPMTAG_FIRSTFREE_TAG /*!< internal */ +@@ -531,7 +543,9 @@ + /*@=enummemuse@*/ + RPMSENSE_KEYRING = (1 << 26), + RPMSENSE_STRONG = (1 << 27), +- RPMSENSE_CONFIG = (1 << 28) ++ RPMSENSE_CONFIG = (1 << 28), ++ RPMSENSE_PROBE = (1 << 29), ++ RPMSENSE_PACKAGE = (1 << 30) + } rpmsenseFlags; + + #define RPMSENSE_SENSEMASK 15 /* Mask to get senses, ie serial, */
packages/rpm/files/weakdeps.patch new file +312 -0
312 lines not on this page · raw message
packages/rpm/rpm_4.4.2.3.bb +4 -2
@@ -2,11 +2,13 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r4" +PR = "r6" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \ - file://cross_libpaths.patch;patch=1" + file://cross_libpaths.patch;patch=1 \ + file://weakdeps.patch;patch=1;pnum=0 \ + file://tagsbackport.patch;patch=1;pnum=0" inherit autotools gettext
Signature · 1 line
1.6.1.3
PATCH 7/70 rpm-native: Set varprefix to get the rpm database in a sane location (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5132 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/rpm-native_4.4.2.3.bb | 2 +- packages/rpm/rpm_4.4.2.3.bb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)
packages/rpm/rpm-native_4.4.2.3.bb +1 -1
@@ -3,5 +3,5 @@ inherit native DEPENDS = "beecrypt-native zlib-native file-native popt-native python-native" -export sharedstatedir = "${layout_sharedstatedir}" export localstatedir = "${layout_localstatedir}" +export varprefix = "${layout_localstatedir}"
packages/rpm/rpm_4.4.2.3.bb +3 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r6" +PR = "r7" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \
@@ -36,6 +36,8 @@ MUTEX_arm = "${ARM_MUTEX}" MUTEX_armeb = "${ARM_MUTEX}" EXTRA_OECONF += "${MUTEX}" +export varprefix = "${localstatedir}" + do_configure () { rm ${S}/popt/ -Rf rm ${S}/db/dist/configure.in -f
Signature · 1 line
1.6.1.3
PATCH 8/70 rpm: Handle PYTHONVER differently in EXTRA_OECONF to stop gettext/uclibc failures during parsing (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5152 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/rpm_4.4.2.3.bb | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-)
packages/rpm/rpm_4.4.2.3.bb +10 -6
@@ -2,13 +2,15 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r7" +PR = "r9" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \ file://cross_libpaths.patch;patch=1 \ file://weakdeps.patch;patch=1;pnum=0 \ - file://tagsbackport.patch;patch=1;pnum=0" + file://tagsbackport.patch;patch=1;pnum=0 \ + file://missingok.patch;patch=1;pnum=0 \ + file://extcond.patch;patch=1;pnum=0" inherit autotools gettext
@@ -16,9 +18,9 @@ S = "${WORKDIR}/rpm-${PV}" acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" -EXTRA_OECONF = "--with-python=${PYTHONVER} \ - --with-python-incdir=${STAGING_INCDIR}/python${PYTHONVER} \ - --with-python-libdir=${STAGING_LIBDIR}/python${PYTHONVER} \ +EXTRA_OECONF = "--with-python=$PYTHONVER \ + --with-python-incdir=${STAGING_INCDIR}/python$PYTHONVER \ + --with-python-libdir=${STAGING_LIBDIR}/python$PYTHONVER \ --without-apidocs \ --without-selinux \ --without-lua \
@@ -97,4 +99,6 @@ def rpm_python_version(d): if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3" raise "No Python in STAGING_INCDIR. Forgot to build python/python-native?" -PYTHONVER = "${@rpm_python_version(d)}" +# Use a shell variable here since otherwise gettext trys to expand this at +# parse time when it manipulates EXTRA_OECONF which fails +export PYTHONVER = "${@rpm_python_version(d)}"
Signature · 1 line
1.6.1.3
Re: [PATCH 08/70] rpm: Handle PYTHONVER differently in EXTRA_OECONF to stop gettext/uclibc failures during parsing (from Poky)
Am Mittwoch, den 04.03.2009, 16:52 +0100 schrieb Marcin Juszkiewicz:
Quoted 43 lines
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5152 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/rpm_4.4.2.3.bb | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-)packages/rpm/rpm_4.4.2.3.bb +7
-5@@ -2,13 +2,15 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r7" +PR = "r9" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \ file://cross_libpaths.patch;patch=1 \ file://weakdeps.patch;patch=1;pnum=0 \ - file://tagsbackport.patch;patch=1;pnum=0" + file://tagsbackport.patch;patch=1;pnum=0 \ + file://missingok.patch;patch=1;pnum=0 \ + file://extcond.patch;patch=1;pnum=0" inherit autotools gettext@@ -16,9 +18,9 @@ S = "${WORKDIR}/rpm-${PV}" acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" -EXTRA_OECONF = "--with-python=${PYTHONVER} \ - --with-python-incdir=${STAGING_INCDIR}/python${PYTHONVER} \ - --with-python-libdir=${STAGING_LIBDIR}/python${PYTHONVER} \ +EXTRA_OECONF = "--with-python=$PYTHONVER \ + --with-python-incdir=${STAGING_INCDIR}/python$PYTHONVER \ + --with-python-libdir=${STAGING_LIBDIR}/python$PYTHONVER \ --without-apidocs \ --without-selinux \ --without-lua \
packages/rpm/rpm_4.4.2.3.bb def rpm_python_version(d): · line 104
Quoted 7 lines
packages/rpm/rpm_4.4.2.3.bb +3
-1@@ -97,4 +99,6 @@ def rpm_python_version(d): if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3" raise "No Python in STAGING_INCDIR. Forgot to build python/python-native?" -PYTHONVER = "${@rpm_python_version(d)}" +# Use a shell variable here since otherwise gettext trys to expand this at +# parse time when it manipulates EXTRA_OECONF which fails +export PYTHONVER = "${@rpm_python_version(d)}"
No. Better inherit distutils_base and use its PYTHON_DIR here.
Signature · 1 line
:M:
Re: [PATCH 08/70] rpm: Handle PYTHONVER differently in EXTRA_OECONF to stop gettext/uclibc failures during parsing (from Poky)
Quoted 3 lines · On Wednesday 04 of March 2009 18:11:46 Michael 'Mickey' Lauer wrote:
Quoted 1 line
packages/rpm/rpm_4.4.2.3.bb | 16 ++++++++++------No. Better inherit
distutils_baseand use itsPYTHON_DIRhere.
done
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
PATCH 9/70 rpm: Add missing patches (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5154 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/files/extcond.patch | 78 ++++++++++++++++++++++++++++++++++++ packages/rpm/files/missingok.patch | 44 ++++++++++++++++++++ 2 files changed, 122 insertions(+), 0 deletions(-) create mode 100644 packages/rpm/files/extcond.patch create mode 100644 packages/rpm/files/missingok.patch
packages/rpm/files/extcond.patch new file +78 -0
@@ -0,0 +1,78 @@ +This patch supports an extension in the condition evaluation. +If the condition is a format and returns an nonempty string, it is +assumed to be true. +This mechanism is used by the weakdeps patch to filter the +"RPMSENSE_STRONG" flag. + +--- ./rpmdb/header.c.orig 2005-06-06 23:33:54.000000000 +0000 ++++ ./rpmdb/header.c 2006-03-17 18:08:02.000000000 +0000 +@@ -2980,8 +2980,12 @@ static int parseExpression(headerSprintf + + *endPtr = chptr; + ++ token->u.cond.tag.type = NULL; ++ token->u.cond.tag.format = ""; + token->type = PTOK_COND; + ++ if ((token->u.cond.tag.type = strchr(str, ':')) != 0) ++ *token->u.cond.tag.type++ = 0; + (void) findTag(hsa, token, str); + + return 0; +@@ -3239,6 +3243,7 @@ static char * singleSprintf(headerSprint + int_32 type; + int_32 count; + sprintfToken spft; ++ sprintfTag stag; + int condNumFormats; + size_t need; + +@@ -3270,6 +3275,18 @@ static char * singleSprintf(headerSprint + if (token->u.cond.tag.ext || headerIsEntry(hsa->h, token->u.cond.tag.tag)) { + spft = token->u.cond.ifFormat; + condNumFormats = token->u.cond.numIfTokens; ++ if (token->u.cond.tag.fmt) { ++ /* check if format creates output */ ++ size_t vallen = hsa->vallen; ++ formatValue(hsa, &token->u.cond.tag, element); ++ if (hsa->vallen == vallen) { ++ spft = token->u.cond.elseFormat; ++ condNumFormats = token->u.cond.numElseTokens; ++ } else { ++ hsa->vallen = vallen; ++ hsa->val[hsa->vallen] = 0; ++ } ++ } + } else { + spft = token->u.cond.elseFormat; + condNumFormats = token->u.cond.numElseTokens; +@@ -3291,19 +3308,22 @@ static char * singleSprintf(headerSprint + spft = token->u.array.format; + for (i = 0; i < token->u.array.numTokens; i++, spft++) + { +- if (spft->type != PTOK_TAG || +- spft->u.tag.arrayCount || +- spft->u.tag.justOne) continue; ++ if (spft->type != PTOK_TAG && spft->type != PTOK_COND) ++ continue; ++ ++ stag = (spft->type == PTOK_COND ? &spft->u.cond.tag : &spft->u.tag); ++ if (stag->arrayCount || stag->justOne) ++ continue; + +- if (spft->u.tag.ext) { ++ if (stag->ext) { + /*@-boundswrite@*/ +- if (getExtension(hsa, spft->u.tag.ext, &type, NULL, &count, +- hsa->ec + spft->u.tag.extNum)) ++ if (getExtension(hsa, stag->ext, &type, NULL, &count, ++ hsa->ec + stag->extNum)) + continue; + /*@=boundswrite@*/ + } else { + /*@-boundswrite@*/ +- if (!headerGetEntry(hsa->h, spft->u.tag.tag, &type, NULL, &count)) ++ if (!headerGetEntry(hsa->h, stag->tag, &type, NULL, &count)) + continue; + /*@=boundswrite@*/ + }
packages/rpm/files/missingok.patch new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.6.1.3
PATCH 10/70 rpm: Add python module packaging (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5423 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/rpm/rpm_4.4.2.3.bb | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
packages/rpm/rpm_4.4.2.3.bb +5 -2
@@ -2,7 +2,7 @@ DESCRIPTION = "The RPM Package Manager." HOMEPAGE = "http://rpm.org/" LICENSE = "LGPL GPL" DEPENDS = "zlib beecrypt file popt python" -PR = "r9" +PR = "r10" SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ file://external-tools.patch;patch=1 \
@@ -20,13 +20,16 @@ acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" EXTRA_OECONF = "--with-python=$PYTHONVER \ --with-python-incdir=${STAGING_INCDIR}/python$PYTHONVER \ - --with-python-libdir=${STAGING_LIBDIR}/python$PYTHONVER \ + --with-python-libdir=${libdir}/python$PYTHONVER \ --without-apidocs \ --without-selinux \ --without-lua \ --without-dmalloc \ --without-efence" +PACKAGES += "python-rpm" +FILES_python-rpm = "${libdir}/python*/site-packages/rpm/_*" + # Handle the db MUTEX settings here, the POSIX library is # the default - "POSIX/pthreads/library". # Don't ignore the nice SWP instruction on the ARM:
Signature · 1 line
1.6.1.3
PATCH 11/70 beecrypt: get patch from Poky to fix building on 64bit machines
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5068 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/beecrypt/beecrypt_3.1.0.bb | 16 ++++------------ packages/beecrypt/files/x64fix.patch | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 packages/beecrypt/files/x64fix.patch
packages/beecrypt/beecrypt_3.1.0.bb +4 -12
@@ -4,9 +4,10 @@ DESCRIPTION="Beecrypt is a general-purpose cryptography library." HOMEPAGE="http://sourceforge.net/projects/beecrypt" -SRC_URI="${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz" +SRC_URI="${SOURCEFORGE_MIRROR}/beecrypt/beecrypt-${PV}.tar.gz \ + file://x64fix.patch;patch=1" -PR = "r2" +PR = "r3" inherit autotools acpaths=""
@@ -14,15 +15,6 @@ acpaths="" EXTRA_OECONF="--with-arch=${TARGET_ARCH} --enable-shared --enable-static" do_stage() { - -# oe_libinstall -a -C .libs libbeecrypt ${STAGING_LIBDIR} - cp .libs/libbeecrypt.a ${STAGING_LIBDIR}/ - install -d ${STAGING_INCDIR}/ - install -d ${STAGING_INCDIR}/beecrypt - for X in beecrypt.h beecrypt.api.h memchunk.h mpnumber.h beecrypt.gnu.h mp.h mpopt.h blockmode.h endianness.h - do - install -m 0644 ${X} ${STAGING_INCDIR}/beecrypt/${X} - done - + autotools_stage_all }
packages/beecrypt/files/x64fix.patch new file +20 -0
@@ -0,0 +1,20 @@ +Index: beecrypt-3.1.0/configure.ac +=================================================================== +--- beecrypt-3.1.0.orig/configure.ac 2008-08-16 12:08:02.000000000 +0100 ++++ beecrypt-3.1.0/configure.ac 2008-08-16 12:08:26.000000000 +0100 +@@ -754,15 +754,6 @@ + + # Check where to install the libraries + bc_libalt= +-case $target_os in +-linux*) +- case $bc_target_arch in +- alpha* | powerpc64 | s390x | x86_64) +- bc_libalt="64" +- ;; +- esac +- ;; +-esac + AC_SUBST(LIBALT,$bc_libalt) + + # Generate output files.
Signature · 1 line
1.6.1.3
PATCH 12/70 Drop pointless rpm_core class. (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
--- classes/rpm_core.bbclass | 16 ---------------- 1 files changed, 0 insertions(+), 16 deletions(-) delete mode 100644 classes/rpm_core.bbclass
classes/rpm_core.bbclass deleted +0 -16
@@ -1,16 +0,0 @@ -RPMBUILDPATH="${WORKDIR}/rpm" - -RPMOPTS="--rcfile=${WORKDIR}/rpmrc" -RPMOPTS="--rcfile=${WORKDIR}/rpmrc --target ${TARGET_SYS}" -RPM="rpm ${RPMOPTS}" -RPMBUILD="rpmbuild --buildroot ${D} --short-circuit ${RPMOPTS}" - -rpm_core_do_preprpm() { - mkdir -p ${RPMBUILDPATH}/{SPECS,RPMS/{i386,i586,i686,noarch,ppc,mips,mipsel,arm},SRPMS,SOURCES,BUILD} - echo 'macrofiles:/usr/lib/rpm/macros:${WORKDIR}/macros' > ${WORKDIR}/rpmrc - echo '%_topdir ${RPMBUILDPATH}' > ${WORKDIR}/macros - echo '%_repackage_dir ${WORKDIR}' >> ${WORKDIR}/macros -} - -EXPORT_FUNCTIONS do_preprpm -addtask preprpm before do_fetch
Signature · 1 line
1.6.1.3
PATCH 13/70 Add python-urlgrabber, python-iniparser, yum-metadata-parser and native varients (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5097 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/python/python-iniparse-native_0.2.3.bb | 9 +++++++++ packages/python/python-iniparse_0.2.3.bb | 11 +++++++++++ packages/python/python-urlgrabber-native_3.1.0.bb | 9 +++++++++ packages/python/python-urlgrabber_3.1.0.bb | 11 +++++++++++ .../python/yum-metadata-parser-native_1.1.2.bb | 11 +++++++++++ packages/python/yum-metadata-parser_1.1.2.bb | 13 +++++++++++++ 6 files changed, 64 insertions(+), 0 deletions(-) create mode 100644 packages/python/python-iniparse-native_0.2.3.bb create mode 100644 packages/python/python-iniparse_0.2.3.bb create mode 100644 packages/python/python-urlgrabber-native_3.1.0.bb create mode 100644 packages/python/python-urlgrabber_3.1.0.bb create mode 100644 packages/python/yum-metadata-parser-native_1.1.2.bb create mode 100644 packages/python/yum-metadata-parser_1.1.2.bb
packages/python/python-iniparse-native_0.2.3.bb new file +9 -0
@@ -0,0 +1,9 @@ +require python-iniparse_${PV}.bb +inherit native +DEPENDS = "python-native" +RDEPENDS = "" + +do_stage() { + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} +}
packages/python/python-iniparse_0.2.3.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION = "iniparse is a INI parser for Python" +HOMEPAGE = "http://code.google.com/p/iniparse/" +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://iniparse.googlecode.com/files/iniparse-${PV}.tar.gz" +S = "${WORKDIR}/iniparse-${PV}" + +inherit distutils
packages/python/python-urlgrabber-native_3.1.0.bb new file +9 -0
@@ -0,0 +1,9 @@ +require python-urlgrabber_${PV}.bb +inherit native +DEPENDS = "python-native" +RDEPENDS = "" + +do_stage() { + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} +}
packages/python/python-urlgrabber_3.1.0.bb new file +11 -0
@@ -0,0 +1,11 @@ +DESCRIPTION = "urlgrabber is a pure python package that drastically simplifies the fetching of files." +HOMEPAGE = "http://linux.duke.edu/projects/urlgrabber/" +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://linux.duke.edu/projects/urlgrabber/download/urlgrabber-${PV}.tar.gz" +S = "${WORKDIR}/urlgrabber-${PV}" + +inherit distutils
packages/python/yum-metadata-parser-native_1.1.2.bb new file +11 -0
@@ -0,0 +1,11 @@ +require yum-metadata-parser_${PV}.bb +inherit native +DEPENDS = "python-native sqlite3-native" +RDEPENDS = "" + +#BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0" + +do_stage() { + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} +}
packages/python/yum-metadata-parser_1.1.2.bb new file +13 -0
@@ -0,0 +1,13 @@ +DESCRIPTION = "C-based metadata parser to quickly parse xml metadata into sqlite databases." +HOMEPAGE = "http://linux.duke.edu/projects/yum/download.ptml" +SECTION = "devel/python" +PRIORITY = "optional" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://linux.duke.edu/projects/yum/download/yum-metadata-parser/yum-metadata-parser-${PV}.tar.gz" +S = "${WORKDIR}/yum-metadata-parser-${PV}" + +TARGET_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0" + +inherit distutils
Signature · 1 line
1.6.1.3
Re: [PATCH 13/70] Add python-urlgrabber, python-iniparser, yum-metadata-parser and native varients (from Poky)
Better use distutils_stage_headers or distutils_stage_all here, if they do the job.
Signature · 1 line
:M:
Re: [PATCH 13/70] Add python-urlgrabber, python-iniparser, yum-metadata-parser and native varients (from Poky)
Quoted 2 lines · On Wednesday 04 of March 2009 18:14:07 Michael 'Mickey' Lauer wrote:
Better use
distutils_stage_headersordistutils_stage_allhere, if they do the job.
This would need to wait then as I am not so Python expert to check it properly.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
PATCH 14/70 Add yum-native and createrepo (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5098 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/createrepo-native/pathfix.patch | 81 ++++++++++++++++++++++++++ packages/yum/createrepo-native_0.9.bb | 13 ++++ packages/yum/yum-native_3.2.18.bb | 14 +++++ 3 files changed, 108 insertions(+), 0 deletions(-) create mode 100644 packages/yum/createrepo-native/pathfix.patch create mode 100644 packages/yum/createrepo-native_0.9.bb create mode 100644 packages/yum/yum-native_3.2.18.bb
packages/yum/createrepo-native/pathfix.patch new file +81 -0
@@ -0,0 +1,81 @@ +Index: createrepo-0.9/Makefile +=================================================================== +--- createrepo-0.9.orig/Makefile 2008-08-23 17:49:24.000000000 +0100 ++++ createrepo-0.9/Makefile 2008-08-23 17:52:01.000000000 +0100 +@@ -10,22 +10,6 @@ + SHELL = /bin/sh + top_srcdir = . + srcdir = . +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${prefix}/share/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME) +Index: createrepo-0.9/bin/Makefile +=================================================================== +--- createrepo-0.9.orig/bin/Makefile 2008-08-23 17:50:13.000000000 +0100 ++++ createrepo-0.9/bin/Makefile 2008-08-23 17:50:23.000000000 +0100 +@@ -1,22 +1,6 @@ + SHELL = /bin/sh + top_srcdir = .. + srcdir = ../bin +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${prefix}/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME) +Index: createrepo-0.9/docs/Makefile +=================================================================== +--- createrepo-0.9.orig/docs/Makefile 2008-08-23 17:52:42.000000000 +0100 ++++ createrepo-0.9/docs/Makefile 2008-08-23 17:52:50.000000000 +0100 +@@ -1,22 +1,6 @@ + SHELL = /bin/sh + top_srcdir = .. + srcdir = ../docs +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${datadir}/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME)
packages/yum/createrepo-native_0.9.bb new file +13 -0
@@ -0,0 +1,13 @@ +SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \ + file://pathfix.patch;patch=1 " + +inherit autotools native + +S = "${WORKDIR}/createrepo-${PV}" + +do_compile_append () { + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/createrepo + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/modifyrepo + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/genpkgmetadata.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/modifyrepo.py +}
packages/yum/yum-native_3.2.18.bb new file +14 -0
@@ -0,0 +1,14 @@ +HOMEPAGE = "http://linux.duke.edu/projects/yum/" + +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz" + +DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native" + +S = "${WORKDIR}/yum-${PV}" + +inherit autotools native + +do_compile_append () { + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py +}
Signature · 1 line
1.6.1.3
Re: [PATCH 14/70] Add yum-native and createrepo (from Poky)
Quoted 3 lines · Marcin Juszkiewicz
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5098 311d38ba-8fff-0310-9ca6-ca027cbcb966
[snip]
packages/yum/createrepo-native_0.9.bb line 1
Quoted 4 lines
packages/yum/createrepo-native_0.9.bb new file +1
-0@@ -0,0 +1,13 @@ +SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \
404. This is now:
http://createrepo.baseurl.org/download/createrepo-${PV}.tar.gz
Also, 0.9.6 is current. Didn't poke any further than looking in the new download dir, however.
Signature · 1 line
Tom Rini
Re: [PATCH 14/70] Add yum-native and createrepo (from Poky)
In reply to Marcin JuszkiewiczQuoted 3 lines · Marcin Juszkiewicz
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5098 311d38ba-8fff-0310-9ca6-ca027cbcb966
[snip]
packages/yum/yum-native_3.2.18.bb
Quoted 2 lines
packages/yum/yum-native_3.2.18.bb new file +0
-0
Fails to compile, MACHINE=nokia800 DISTRO=minimal, BB_NUMBER_THREADS=4 PARALLE_MAKE="-j 6". See http://pastebin.com/m36a992fb
Signature · 1 line
Tom Rini
Re: [PATCH 14/70] Add yum-native and createrepo (from Poky)
Quoted 11 lines · Tom Rini
Quoted 3 lines · Marcin Juszkiewicz
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5098 311d38ba-8fff-0310-9ca6-ca027cbcb966
[snip]
packages/yum/yum-native_3.2.18.bb
Quoted 2 lines
packages/yum/yum-native_3.2.18.bb new file +0
-0Fails to compile, MACHINE=nokia800 DISTRO=minimal, BB_NUMBER_THREADS=4 PARALLE_MAKE="-j 6". See http://pastebin.com/m36a992fb
After talking with Marcin on IRC, we've found that intltool-native needs to be added to the DEPENDS.
Signature · 1 line
Tom Rini
Re: [PATCH 14/70] Add yum-native and createrepo (from Poky)
In reply to Tom RiniQuoted 5 lines · On Wednesday 04 of March 2009 20:53:33 Tom Rini wrote:
Quoted 1 line
+++ b/packages/yum/yum-native_3.2.18.bb
Fails to compile, MACHINE=nokia800 DISTRO=minimal, BB_NUMBER_THREADS=4 PARALLE_MAKE="-j 6". See
http://pastebin.com/m36a992fb
fixed
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
PATCH 15/70 createrepo-native: Add fix for empty data fields when creating repositories (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5108 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/createrepo-native/fix.patch | 17 +++++++++++++++++ packages/yum/createrepo-native_0.9.bb | 2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 packages/yum/createrepo-native/fix.patch
packages/yum/createrepo-native/fix.patch new file +17 -0
@@ -0,0 +1,17 @@ +--- + createrepo/yumbased.py | 2 ++ + 1 file changed, 2 insertions(+) + +Index: createrepo-0.9/createrepo/yumbased.py +=================================================================== +--- createrepo-0.9.orig/createrepo/yumbased.py 2008-08-26 11:41:13.000000000 +0100 ++++ createrepo-0.9/createrepo/yumbased.py 2008-08-26 11:37:01.000000000 +0100 +@@ -37,6 +37,8 @@ class CreateRepoPackage(YumLocalPackage) + self._hdrend = None + + def _xml(self, item): ++ if item == []: ++ return [] + return xml.sax.saxutils.escape(item) + + def _do_checksum(self):
packages/yum/createrepo-native_0.9.bb +2 -0
@@ -1,5 +1,7 @@ SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \ + file://fix.patch;patch=1 \ file://pathfix.patch;patch=1 " +PR = "r1" inherit autotools native
Signature · 1 line
1.6.1.3
PATCH 16/70 createrepo-native: added dependency on Python (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5142 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/createrepo-native_0.9.bb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
packages/yum/createrepo-native_0.9.bb +2 -0
@@ -1,3 +1,5 @@ +DEPENDS = "python-native" + SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \ file://fix.patch;patch=1 \ file://pathfix.patch;patch=1 "
Signature · 1 line
1.6.1.3
PATCH 17/70 yum-native: Add patch to fix install paths (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5109 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native/paths.patch | 88 +++++++++++++++++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 4 +- 2 files changed, 91 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/paths.patch
packages/yum/yum-native/paths.patch new file +88 -0
@@ -0,0 +1,88 @@ +Index: yum-3.2.18/Makefile +=================================================================== +--- yum-3.2.18.orig/Makefile 2008-08-23 09:13:56.000000000 +0100 ++++ yum-3.2.18/Makefile 2008-08-23 09:18:09.000000000 +0100 +@@ -18,19 +18,19 @@ + for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done + + install: +- mkdir -p $(DESTDIR)/usr/share/yum-cli ++ mkdir -p $(DESTDIR)$(datadir)/yum-cli + for p in $(PYFILES) ; do \ +- install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \ ++ install -m 644 $$p $(DESTDIR)$(datadir)/yum-cli/$$p; \ + done +- mv $(DESTDIR)/usr/share/yum-cli/yum-updatesd.py $(DESTDIR)/usr/share/yum-cli/yumupd.py +- $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)" ++ mv $(DESTDIR)$(datadir)/yum-cli/yum-updatesd.py $(DESTDIR)$(datadir)/yum-cli/yumupd.py ++ $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)$(datadir)/yum-cli', 1, '$(PYDIR)', 1)" + +- mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin +- install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum +- install -m 755 bin/yum-updatesd.py $(DESTDIR)/usr/sbin/yum-updatesd ++ mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) ++ install -m 755 bin/yum.py $(DESTDIR)$(bindir)/yum ++ install -m 755 bin/yum-updatesd.py $(DESTDIR)$(sbindir)/yum-updatesd + +- mkdir -p $(DESTDIR)/var/cache/yum +- mkdir -p $(DESTDIR)/var/lib/yum ++ mkdir -p $(DESTDIR)$(localstatedir)/cache/yum ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/yum + + for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done + +Index: yum-3.2.18/docs/Makefile +=================================================================== +--- yum-3.2.18.orig/docs/Makefile 2008-08-23 09:19:07.000000000 +0100 ++++ yum-3.2.18/docs/Makefile 2008-08-23 09:19:37.000000000 +0100 +@@ -6,9 +6,9 @@ + rm -fr epydoc + + install: +- mkdir -p $(DESTDIR)/usr/share/man/man{5,8} +- install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8 +- install -m 644 yum-shell.8 $(DESTDIR)/usr/share/man/man8/yum-shell.8 +- install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5 +- install -m 644 yum-updatesd.8 $(DESTDIR)/usr/share/man/man8/yum-updatesd.8 +- install -m 644 yum-updatesd.conf.5 $(DESTDIR)/usr/share/man/man5/yum-updatesd.conf.5 ++ mkdir -p $(DESTDIR)$(mandir)/man{5,8} ++ install -m 644 yum.8 $(DESTDIR)$(mandir)/man8/yum.8 ++ install -m 644 yum-shell.8 $(DESTDIR)$(mandir)/man8/yum-shell.8 ++ install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5 ++ install -m 644 yum-updatesd.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8 ++ install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5 +Index: yum-3.2.18/etc/Makefile +=================================================================== +--- yum-3.2.18.orig/etc/Makefile 2008-08-23 09:19:51.000000000 +0100 ++++ yum-3.2.18/etc/Makefile 2008-08-23 09:20:28.000000000 +0100 +@@ -5,20 +5,20 @@ + rm -f *.pyc *.pyo *~ + + install: +- mkdir -p $(DESTDIR)/etc/yum/ +- mkdir -p $(DESTDIR)/etc/yum/repos.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/yum/ ++ mkdir -p $(DESTDIR)$(sysconfdir)/yum/repos.d + +- install -m 644 yum.conf $(DESTDIR)/etc/yum/yum.conf ++ install -m 644 yum.conf $(DESTDIR)$(sysconfdir)/yum/yum.conf + +- mkdir -p $(DESTDIR)/etc/logrotate.d +- install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum ++ mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d ++ install -m 644 yum.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/yum + +- mkdir -p $(DESTDIR)/etc/rc.d/init.d +- install -m 755 yum-updatesd.init $(DESTDIR)/etc/rc.d/init.d/yum-updatesd ++ mkdir -p $(DESTDIR)$(sysconfdir)/rc.d/init.d ++ install -m 755 yum-updatesd.init $(DESTDIR)$(sysconfdir)/rc.d/init.d/yum-updatesd + +- mkdir -p $(DESTDIR)/etc/dbus-1/system.d/ +- install -m 755 yum-updatesd-dbus.conf $(DESTDIR)/etc/dbus-1/system.d/yum-updatesd.conf ++ mkdir -p $(DESTDIR)$(sysconfdir)/dbus-1/system.d/ ++ install -m 755 yum-updatesd-dbus.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/yum-updatesd.conf + +- install -m 755 yum-updatesd.conf $(DESTDIR)/etc/yum/yum-updatesd.conf ++ install -m 755 yum-updatesd.conf $(DESTDIR)$(sysconfdir)/yum/yum-updatesd.conf + +
packages/yum/yum-native_3.2.18.bb +3 -1
@@ -1,6 +1,8 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" -SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz" +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ + file://paths.patch;patch=1" +PR = "r1" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native"
Signature · 1 line
1.6.1.3
Re: [PATCH 17/70] yum-native: Add patch to fix install paths (from Poky)
Quoted 118 lines · On Wednesday 04 March 2009 07:52:32 Marcin Juszkiewicz wrote:
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5109
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---packages/yum/yum-native/paths.patch | 88 +++++++++++++++++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 4 +- 2 files changed, 91 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/paths.patch(quoted diff) +0
-0
b/packages/yum/yum-native/paths.patchnew file mode 100644 index 0000000..ee5c999packages/yum/yum-native/paths.patch new file +6
-0@@ -0,0 +1,88 @@ +Index: yum-3.2.18/Makefile +=================================================================== +--- yum-3.2.18.orig/Makefile 2008-08-23 09:13:56.000000000 +0100 ++++ yum-3.2.18/Makefile 2008-08-23 09:18:09.000000000 +0100 +@@ -18,19 +18,19 @@ + for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] ||exit 1 ; done +
+ install:
+- mkdir -p $(DESTDIR)/usr/share/yum-cli
++ mkdir -p $(DESTDIR)$(datadir)/yum-clipackages/yum/yum-native/paths.patch new file +5
-0+ for p in $(PYFILES) ; do \ +- install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \ ++ install -m 644 $$p $(DESTDIR)$(datadir)/yum-cli/$$p; \ + done +- mv $(DESTDIR)/usr/share/yum-cli/yum-updatesd.py$(DESTDIR)/usr/share/yum-cli/yumupd.py +- $(PYTHON) -c "import compileall;
compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)"
++ mv $(DESTDIR)$(datadir)/yum-cli/yum-updatesd.py
$(DESTDIR)$(datadir)/yum-cli/yumupd.py ++ $(PYTHON) -c "import compileall;compileall.compile_dir('$(DESTDIR)$(datadir)/yum-cli', 1, '$(PYDIR)', 1)" ++- mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin +- install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum +- install -m 755 bin/yum-updatesd.py $(DESTDIR)/usr/sbin/yum-updatesd++ mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir)
++ install -m 755bin/yum.py$(DESTDIR)$(bindir)/yum
++ install -m 755bin/yum-updatesd.py$(DESTDIR)$(sbindir)/yum-updatesdpackages/yum/yum-native/paths.patch new file +7
-0+ +- mkdir -p $(DESTDIR)/var/cache/yum +- mkdir -p $(DESTDIR)/var/lib/yum ++ mkdir -p $(DESTDIR)$(localstatedir)/cache/yum ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/yum + + for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR);pwd` -C $$d install; [ $$? = 0 ] || exit 1; done +
packages/yum/yum-native/paths.patch new file +13
-0+Index: yum-3.2.18/docs/Makefile +=================================================================== +--- yum-3.2.18.orig/docs/Makefile 2008-08-23 09:19:07.000000000 +0100 ++++ yum-3.2.18/docs/Makefile 2008-08-23 09:19:37.000000000 +0100 +@@ -6,9 +6,9 @@ + rm -fr epydoc + + install: +- mkdir -p $(DESTDIR)/usr/share/man/man{5,8} +- install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8 +- install -m 644 yum-shell.8 $(DESTDIR)/usr/share/man/man8/yum-shell.8 +- install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5 +- install -m 644 yum-updatesd.8$(DESTDIR)/usr/share/man/man8/yum-updatesd.8 +- install -m 644
yum-updatesd.conf.5 $(DESTDIR)/usr/share/man/man5/yum-updatesd.conf.5
++ mkdir -p $(DESTDIR)$(mandir)/man{5,8}
++ install -m 644 yum.8 $(DESTDIR)$(mandir)/man8/yum.8
++ install -m 644 yum-shell.8 $(DESTDIR)$(mandir)/man8/yum-shell.8
++ install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5
++ install -m 644 yum-updatesd.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8
++ install -m 644 yum-updatesd.conf.5
$(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5 +Index:
yum-3.2.18/etc/Makefile+=================================================================== +--- yum-3.2.18.orig/etc/Makefile 2008-08-23 09:19:51.000000000 +0100++++ yum-3.2.18/etc/Makefile 2008-08-23 09:20:28.000000000 +0100
+@@ -5,20 +5,20 @@packages/yum/yum-native/paths.patch new file +20
-0+ rm -f *.pyc *.pyo *~ + + install: +- mkdir -p $(DESTDIR)/etc/yum/ +- mkdir -p $(DESTDIR)/etc/yum/repos.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/yum/ ++ mkdir -p $(DESTDIR)$(sysconfdir)/yum/repos.d + +- install -m 644 yum.conf $(DESTDIR)/etc/yum/yum.conf ++ install -m 644 yum.conf $(DESTDIR)$(sysconfdir)/yum/yum.conf + +- mkdir -p $(DESTDIR)/etc/logrotate.d +- install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum ++ mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d ++ install -m 644 yum.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/yum + +- mkdir -p $(DESTDIR)/etc/rc.d/init.d +- install -m 755 yum-updatesd.init $(DESTDIR)/etc/rc.d/init.d/yum-updatesd ++ mkdir -p $(DESTDIR)$(sysconfdir)/rc.d/init.d ++ install -m 755 yum-updatesd.init$(DESTDIR)$(sysconfdir)/rc.d/init.d/yum-updatesd +
+- mkdir -p $(DESTDIR)/etc/dbus-1/system.d/ +- install -m 755 yum-updatesd-dbus.conf$(DESTDIR)/etc/dbus-1/system.d/yum-updatesd.conf ++ mkdir -p
$(DESTDIR)$(sysconfdir)/dbus-1/system.d/
++ install -m 755 yum-updatesd-dbus.conf
$(DESTDIR)$(sysconfdir)/dbus-1/system.d/yum-updatesd.conf +
+- install -m 755 yum-updatesd.conf $(DESTDIR)/etc/yum/yum-updatesd.conf
++ install -m 755 yum-updatesd.conf
$(DESTDIR)$(sysconfdir)/yum/yum-updatesd.conf +packages/yum/yum-native/paths.patch new file +1
-0+(quoted diff) +0
-0b/packages/yum/yum-native_3.2.18.bb index 6657c52..d3098cc 100644
packages/yum/yum-native_3.2.18.bb +0
-1@@ -1,6 +1,8 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" -SRC_URI ="http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz" +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ +
Quoted 5 lines
file://paths.patch;patch=1"+PR = "r1"
DEPENDS = "rpm-native python-native python-iniparse-native
python-urlgrabber-native yum-metadata-parser-native"
This seems ok to me.
Signature · 1 line
Khem Raj
PATCH 18/70 yum-native: Add some hacks to make yum work better in the cross build case (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5110 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native/hacks.patch | 66 +++++++++++++++++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 3 +- 2 files changed, 68 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/hacks.patch
packages/yum/yum-native/hacks.patch new file +66 -0
@@ -0,0 +1,66 @@ +--- + rpmUtils/arch.py | 3 +++ + rpmUtils/transaction.py | 1 + + yum/constants.py | 2 +- + yum/depsolve.py | 2 ++ + 4 files changed, 7 insertions(+), 1 deletion(-) + +Index: yum-3.2.18/rpmUtils/arch.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/arch.py 2008-08-26 12:43:14.000000000 +0100 ++++ yum-3.2.18/rpmUtils/arch.py 2008-08-26 12:50:11.000000000 +0100 +@@ -275,6 +275,7 @@ def getCanonX86_64Arch(arch): + return arch + + def getCanonArch(skipRpmPlatform = 0): ++ return "arm" + if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): + try: + f = open("/etc/rpm/platform", "r") +@@ -331,6 +332,8 @@ def getBaseArch(myarch=None): + base arch is the arch before noarch in the arches dict if myarch is not + a key in the multilibArches.""" + ++ return "arm" ++ + if not myarch: + myarch = canonArch + +Index: yum-3.2.18/rpmUtils/transaction.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/transaction.py 2008-08-26 13:03:13.000000000 +0100 ++++ yum-3.2.18/rpmUtils/transaction.py 2008-08-26 13:10:52.000000000 +0100 +@@ -43,6 +43,7 @@ class TransactionWrapper: + 'clean'] + self.tsflags = [] + self.open = True ++ self.ts.setProbFilter(rpm.RPMPROB_FILTER_IGNOREOS | rpm.RPMPROB_FILTER_IGNOREARCH) + + def __del__(self): + # Automatically close the rpm transaction when the reference is lost +Index: yum-3.2.18/yum/constants.py +=================================================================== +--- yum-3.2.18.orig/yum/constants.py 2008-08-26 13:12:39.000000000 +0100 ++++ yum-3.2.18/yum/constants.py 2008-08-26 13:12:46.000000000 +0100 +@@ -17,7 +17,7 @@ Yum constants. Usually dealing with rpm + """ + + #Constants +-YUM_PID_FILE = '/var/run/yum.pid' ++YUM_PID_FILE = '/var/run2/yum.pid' + + #transaction set states + TS_UPDATE = 10 +Index: yum-3.2.18/yum/depsolve.py +=================================================================== +--- yum-3.2.18.orig/yum/depsolve.py 2008-08-26 12:44:37.000000000 +0100 ++++ yum-3.2.18/yum/depsolve.py 2008-08-26 13:17:45.000000000 +0100 +@@ -144,6 +144,8 @@ class Depsolve(object): + probfilter = 0 + for flag in self.tsInfo.probFilterFlags: + probfilter |= flag ++ probfilter |= rpm.RPMPROB_FILTER_IGNOREOS ++ probfilter |= rpm.RPMPROB_FILTER_IGNOREARCH + self._ts.setProbFilter(probfilter) + + def whatProvides(self, name, flags, version):
packages/yum/yum-native_3.2.18.bb +2 -1
@@ -1,8 +1,9 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ + file://hacks.patch;patch=1 \ file://paths.patch;patch=1" -PR = "r1" +PR = "r2" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native"
Signature · 1 line
1.6.1.3
Re: [PATCH 18/70] yum-native: Add some hacks to make yum work better in the cross build case (from Poky)
Quoted 22 lines · On Wednesday 04 March 2009 07:52:33 Marcin Juszkiewicz wrote:
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5110
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---packages/yum/yum-native/hacks.patch | 66 +++++++++++++++++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 3 +- 2 files changed, 68 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/hacks.patch(quoted diff) +0
-0
b/packages/yum/yum-native/hacks.patchnew file mode 100644 index 0000000..0486b5fpackages/yum/yum-native/hacks.patch new file +6
-0@@ -0,0 +1,66 @@ +--- + rpmUtils/arch.py | 3 +++ + rpmUtils/transaction.py | 1 + + yum/constants.py | 2 +- + yum/depsolve.py | 2 ++ + 4 files changed, 7 insertions(+), 1 deletion(-)
packages/yum/yum-native/hacks.patch line 16
Quoted 10 lines
packages/yum/yum-native/hacks.patch new file +10
-0+ +Index: yum-3.2.18/rpmUtils/arch.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/arch.py 2008-08-26 12:43:14.000000000 +0100 ++++ yum-3.2.18/rpmUtils/arch.py 2008-08-26 12:50:11.000000000 +0100 +@@ -275,6 +275,7 @@ def getCanonX86_64Arch(arch): + return arch + + def getCanonArch(skipRpmPlatform = 0): ++ return "arm"
Does this mean that it will only work for arm ? It would be nice if it could work for other arches too.
Quoted 9 lines
packages/yum/yum-native/hacks.patch new file +5
-0+ if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): + try: + f = open("/etc/rpm/platform", "r") +@@ -331,6 +332,8 @@ def getBaseArch(myarch=None): + base arch is the arch before noarch in the arches dict if myarchis not + a key in the multilibArches."""
+
++ return "arm"
++
Ditto as above.
Quoted 57 lines
packages/yum/yum-native/hacks.patch new file +12
-0+ if not myarch: + myarch = canonArch + +Index: yum-3.2.18/rpmUtils/transaction.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/transaction.py 2008-08-26 13:03:13.000000000 +0100 ++++ yum-3.2.18/rpmUtils/transaction.py 2008-08-26 13:10:52.000000000 +0100 +@@ -43,6 +43,7 @@ class TransactionWrapper: + 'clean'] + self.tsflags = [] + self.open = True ++ self.ts.setProbFilter(rpm.RPMPROB_FILTER_IGNOREOS |rpm.RPMPROB_FILTER_IGNOREARCH) +
packages/yum/yum-native/hacks.patch new file +2
-0+ def __del__(self): + # Automatically close the rpm transaction when the reference islost +Index:
yum-3.2.18/yum/constants.py+=================================================================== +--- yum-3.2.18.orig/yum/constants.py 2008-08-26 13:12:39.000000000 +0100++++
yum-3.2.18/yum/constants.py2008-08-26 13:12:46.000000000 +0100
+@@ -17,7 +17,7 @@ Yum constants. Usually dealing with rpm
+ """packages/yum/yum-native/hacks.patch new file +20
-0+ + #Constants +-YUM_PID_FILE = '/var/run/yum.pid' ++YUM_PID_FILE = '/var/run2/yum.pid' + + #transaction set states + TS_UPDATE = 10 +Index: yum-3.2.18/yum/depsolve.py +=================================================================== +--- yum-3.2.18.orig/yum/depsolve.py 2008-08-26 12:44:37.000000000 +0100 ++++ yum-3.2.18/yum/depsolve.py 2008-08-26 13:17:45.000000000 +0100 +@@ -144,6 +144,8 @@ class Depsolve(object): + probfilter = 0 + for flag in self.tsInfo.probFilterFlags: + probfilter |= flag ++ probfilter |= rpm.RPMPROB_FILTER_IGNOREOS ++ probfilter |= rpm.RPMPROB_FILTER_IGNOREARCH + self._ts.setProbFilter(probfilter) + + def whatProvides(self, name, flags, version):(quoted diff) +0
-0b/packages/yum/yum-native_3.2.18.bb index d3098cc..03e54d5 100644
packages/yum/yum-native_3.2.18.bb +0
-0@@ -1,8 +1,9 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI ="http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ +
file://hacks.patch;patch=1 \ file://paths.patch;patch=1"packages/yum/yum-native_3.2.18.bb +1
-1-PR = "r1" +PR = "r2" DEPENDS = "rpm-native python-native python-iniparse-nativepython-urlgrabber-native yum-metadata-parser-native"
Signature · 1 line
Khem Raj
Re: [PATCH 18/70] yum-native: Add some hacks to make yum work better in the cross build case (from Poky)
Quoted 28 lines · Khem Raj
Quoted 27 lines · On Wednesday 04 March 2009 07:52:33 Marcin Juszkiewicz wrote:
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5110
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---packages/yum/yum-native/hacks.patch | 66 +++++++++++++++++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 3 +- 2 files changed, 68 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/hacks.patch(quoted diff) +0
-0
b/packages/yum/yum-native/hacks.patchnew file mode 100644 index 0000000..0486b5fpackages/yum/yum-native/hacks.patch new file +11
-0@@ -0,0 +1,66 @@ +--- + rpmUtils/arch.py | 3 +++ + rpmUtils/transaction.py | 1 + + yum/constants.py | 2 +- + yum/depsolve.py | 2 ++ + 4 files changed, 7 insertions(+), 1 deletion(-) + +Index: yum-3.2.18/rpmUtils/arch.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/arch.py 2008-08-26 12:43:14.000000000 +0100 ++++ yum-3.2.18/rpmUtils/arch.py 2008-08-26 12:50:11.000000000 +0100
Quoted 8 lines
packages/yum/yum-native/hacks.patch line 16
Quoted 5 lines
packages/yum/yum-native/hacks.patch new file +5
-0+@@ -275,6 +275,7 @@ def getCanonX86_64Arch(arch): + return arch + + def getCanonArch(skipRpmPlatform = 0): ++ return "arm"Does this mean that it will only work for arm ? It would be nice if it could work for other arches too.
It was tested on arm since I reasoned if I could make that work, everything else should follow too. You're right, these arm references need fixing though. The main point is that we at least now know where the values that need fixing are, making the job much easier!
I developed a strong dislike of rpm and yum when doing this as the amount that is hardcoded is scary :(
Signature · 1 line
RP
PATCH 19/70 yum-native: add depends on libxml2-native (from Poky)
In reply to Marcin JuszkiewiczFrom: Ross Burton <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5118 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native_3.2.18.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
packages/yum/yum-native_3.2.18.bb +2 -2
@@ -3,9 +3,9 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \ file://paths.patch;patch=1" -PR = "r2" +PR = "r3" -DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native" +DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native" S = "${WORKDIR}/yum-${PV}"
Signature · 1 line
1.6.1.3
Re: [PATCH 19/70] yum-native: add depends on libxml2-native (from Poky)
Quoted 24 lines · On Wednesday 04 March 2009 07:52:34 Marcin Juszkiewicz wrote:
From: Ross Burton <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5118
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---packages/yum/yum-native_3.2.18.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0b/packages/yum/yum-native_3.2.18.bb index 03e54d5..fcb5680 100644
packages/yum/yum-native_3.2.18.bb +1
-2@@ -3,9 +3,9 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \ file://paths.patch;patch=1" -PR = "r2" +PR = "r3" -DEPENDS = "rpm-native python-native python-iniparse-nativepython-urlgrabber-native yum-metadata-parser-native" +DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
Quoted 1 line
S = "${WORKDIR}/yum-${PV}"
OK
Signature · 1 line
Khem Raj
PATCH 20/70 yum-native: Add NOPOST and NOTRIGGERS flags when installing packages (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5130 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native/hacks.patch | 32 +++++++++++++++++++------------- packages/yum/yum-native_3.2.18.bb | 2 +- 2 files changed, 20 insertions(+), 14 deletions(-)
packages/yum/yum-native/hacks.patch +19 -13
@@ -7,9 +7,9 @@ Index: yum-3.2.18/rpmUtils/arch.py =================================================================== ---- yum-3.2.18.orig/rpmUtils/arch.py 2008-08-26 12:43:14.000000000 +0100 -+++ yum-3.2.18/rpmUtils/arch.py 2008-08-26 12:50:11.000000000 +0100 -@@ -275,6 +275,7 @@ def getCanonX86_64Arch(arch): +--- yum-3.2.18.orig/rpmUtils/arch.py 2008-06-17 14:05:42.000000000 +0100 ++++ yum-3.2.18/rpmUtils/arch.py 2008-09-01 15:47:11.000000000 +0100 +@@ -275,6 +275,7 @@ return arch def getCanonArch(skipRpmPlatform = 0):
@@ -17,7 +17,7 @@ Index: yum-3.2.18/rpmUtils/arch.py if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): try: f = open("/etc/rpm/platform", "r") -@@ -331,6 +332,8 @@ def getBaseArch(myarch=None): +@@ -331,6 +332,8 @@ base arch is the arch before noarch in the arches dict if myarch is not a key in the multilibArches."""
@@ -28,9 +28,9 @@ Index: yum-3.2.18/rpmUtils/arch.py Index: yum-3.2.18/rpmUtils/transaction.py =================================================================== ---- yum-3.2.18.orig/rpmUtils/transaction.py 2008-08-26 13:03:13.000000000 +0100 -+++ yum-3.2.18/rpmUtils/transaction.py 2008-08-26 13:10:52.000000000 +0100 -@@ -43,6 +43,7 @@ class TransactionWrapper: +--- yum-3.2.18.orig/rpmUtils/transaction.py 2008-06-17 14:05:42.000000000 +0100 ++++ yum-3.2.18/rpmUtils/transaction.py 2008-09-03 17:55:27.000000000 +0100 +@@ -43,6 +43,7 @@ 'clean'] self.tsflags = [] self.open = True
@@ -40,9 +40,9 @@ Index: yum-3.2.18/rpmUtils/transaction.py # Automatically close the rpm transaction when the reference is lost Index: yum-3.2.18/yum/constants.py =================================================================== ---- yum-3.2.18.orig/yum/constants.py 2008-08-26 13:12:39.000000000 +0100 -+++ yum-3.2.18/yum/constants.py 2008-08-26 13:12:46.000000000 +0100 -@@ -17,7 +17,7 @@ Yum constants. Usually dealing with rpm +--- yum-3.2.18.orig/yum/constants.py 2008-07-21 16:56:54.000000000 +0100 ++++ yum-3.2.18/yum/constants.py 2008-09-01 15:47:11.000000000 +0100 +@@ -17,7 +17,7 @@ """ #Constants
@@ -53,9 +53,15 @@ Index: yum-3.2.18/yum/constants.py TS_UPDATE = 10 Index: yum-3.2.18/yum/depsolve.py =================================================================== ---- yum-3.2.18.orig/yum/depsolve.py 2008-08-26 12:44:37.000000000 +0100 -+++ yum-3.2.18/yum/depsolve.py 2008-08-26 13:17:45.000000000 +0100 -@@ -144,6 +144,8 @@ class Depsolve(object): +--- yum-3.2.18.orig/yum/depsolve.py 2008-08-06 17:05:16.000000000 +0100 ++++ yum-3.2.18/yum/depsolve.py 2008-09-03 21:05:52.000000000 +0100 +@@ -141,9 +141,14 @@ + else: + self.logger.critical(_('Invalid tsflag in config file: %s'), flag) + ++ self._ts.addTsFlag(rpm.RPMTRANS_FLAG_NOPOST) ++ self._ts.addTsFlag(rpm.RPMTRANS_FLAG_NOTRIGGERS) ++ probfilter = 0 for flag in self.tsInfo.probFilterFlags: probfilter |= flag
packages/yum/yum-native_3.2.18.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \ file://paths.patch;patch=1" -PR = "r3" +PR = "r4" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
Signature · 1 line
1.6.1.3
PATCH 21/70 yum-native: Add extract-postinst.awk script for use during rootfs generation (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5133 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native/extract-postinst.awk | 11 +++++++++++ packages/yum/yum-native_3.2.18.bb | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletions(-) create mode 100644 packages/yum/yum-native/extract-postinst.awk
packages/yum/yum-native/extract-postinst.awk new file +11 -0
@@ -0,0 +1,11 @@ +/Name:.*/ { + package = substr($0, 7) + next +} +/postinstall.*scriptlet .*/ { + next +} +{ + print $0 >> ENVIRON["D"] "/etc/rpm-postinsts/" package ".sh" +} +
packages/yum/yum-native_3.2.18.bb +7 -1
@@ -2,7 +2,8 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \ - file://paths.patch;patch=1" + file://paths.patch;patch=1 \ + file://extract-postinst.awk" PR = "r4" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
@@ -15,3 +16,8 @@ do_compile_append () { sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py } + +do_install_append () { + install -d ${STAGING_BINDIR}/ + install ${WORKDIR}/extract-postinst.awk ${STAGING_BINDIR}/ +}
Signature · 1 line
1.6.1.3
PATCH 22/70 yum-metadata-parser-native: depend on GLib 2.0 native (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5140 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- .../python/yum-metadata-parser-native_1.1.2.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
packages/python/yum-metadata-parser-native_1.1.2.bb +1 -1
@@ -1,6 +1,6 @@ require yum-metadata-parser_${PV}.bb inherit native -DEPENDS = "python-native sqlite3-native" +DEPENDS = "python-native sqlite3-native glib-2.0-native" RDEPENDS = "" #BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
Signature · 1 line
1.6.1.3
PATCH 23/70 yum: Add yum-install-recommends.py script to handle installing Recommends (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5157 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum-native/yum-install-recommends.py | 39 +++++++++++++++++++++ packages/yum/yum-native_3.2.18.bb | 4 ++- 2 files changed, 42 insertions(+), 1 deletions(-) create mode 100755 packages/yum/yum-native/yum-install-recommends.py
packages/yum/yum-native/yum-install-recommends.py new file +39 -0
@@ -0,0 +1,39 @@ +#!/usr/bin/env python +import os, sys + +root = sys.argv[1] +installcmd = sys.argv[2] + +# +# Take an rpm image and look through for Recommends:. For each recommends +# found, try and install any matching packages including any Recommends for +# packages installed by us. +# + + +def get_recommends(): + deps = [] + output = os.popen("rpm --root %s -aq --recommends" % (root)) + lines = output.readlines() + for line in lines: + line = line.replace("(none)","") + if line: + deps.append(line.split()[0]) + return deps + +processed = [] + +while True: + toinstall = [] + recommends = set(get_recommends()) + for item in recommends: + if item not in processed: + toinstall.append(item) + if len(toinstall) != 0: + print "Installing %s" % " ".join(toinstall) + os.system("%s %s" % (installcmd, " ".join(toinstall))) + else: + break + processed.extend(toinstall) + +
packages/yum/yum-native_3.2.18.bb +3 -1
@@ -3,8 +3,9 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \ file://paths.patch;patch=1 \ + file://yum-install-recommends.py \ file://extract-postinst.awk" -PR = "r4" +PR = "r5" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
@@ -20,4 +21,5 @@ do_compile_append () { do_install_append () { install -d ${STAGING_BINDIR}/ install ${WORKDIR}/extract-postinst.awk ${STAGING_BINDIR}/ + install ${WORKDIR}/yum-install-recommends.py ${STAGING_BINDIR}/ }
Signature · 1 line
1.6.1.3
PATCH 24/70 yum: added 3.2.18 (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5379 311d38ba-8fff-0310-9ca6-ca027cbcb966
---
.../yum/{yum-native => files}/extract-postinst.awk | 0
packages/yum/{yum-native => files}/hacks.patch | 0
packages/yum/{yum-native => files}/paths.patch | 0
.../yum-install-recommends.py | 0
packages/yum/yum_3.2.18.bb | 24 ++++++++++++++++++++
5 files changed, 24 insertions(+), 0 deletions(-)
rename packages/yum/{yum-native => files}/extract-postinst.awk (100%)
rename packages/yum/{yum-native => files}/hacks.patch (100%)
rename packages/yum/{yum-native => files}/paths.patch (100%)
rename packages/yum/{yum-native => files}/yum-install-recommends.py (100%)
create mode 100644 packages/yum/yum_3.2.18.bbpackages/yum/files/extract-postinst.awk renamed from packages/yum/yum-native/extract-postinst.awk +0 -0
packages/yum/files/hacks.patch renamed from packages/yum/yum-native/hacks.patch +0 -0
packages/yum/files/paths.patch renamed from packages/yum/yum-native/paths.patch +0 -0
packages/yum/files/yum-install-recommends.py renamed from packages/yum/yum-native/yum-install-recommends.py +0 -0
packages/yum/yum_3.2.18.bb new file +24 -0
@@ -0,0 +1,24 @@ +HOMEPAGE = "http://linux.duke.edu/projects/yum/" + +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ + file://hacks.patch;patch=1 \ + file://paths.patch;patch=1 \ + file://yum-install-recommends.py \ + file://extract-postinst.awk" + +DEPENDS = "rpm python python-iniparse python-urlgrabber yum-metadata-parser libxml2" + +S = "${WORKDIR}/yum-${PV}" + +inherit autotools + +do_compile_append () { + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py +} + +do_install_append () { + install -d ${D}${bindir}/ + install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ + install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ +}
Signature · 1 line
1.6.1.3
PATCH 25/70 yum-metadata-parser: fixed dependencies (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5385 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- .../python/yum-metadata-parser-native_1.1.2.bb | 2 +- packages/python/yum-metadata-parser_1.1.2.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
packages/python/yum-metadata-parser-native_1.1.2.bb +1 -1
@@ -1,6 +1,6 @@ require yum-metadata-parser_${PV}.bb inherit native -DEPENDS = "python-native sqlite3-native glib-2.0-native" +DEPENDS = "python-native sqlite3-native glib-2.0-native libxml2-native" RDEPENDS = "" #BUILD_CFLAGS += "-I${STAGING_LIBDIR}/glib-2.0"
packages/python/yum-metadata-parser_1.1.2.bb +1 -1
@@ -2,8 +2,8 @@ DESCRIPTION = "C-based metadata parser to quickly parse xml metadata into sqlite HOMEPAGE = "http://linux.duke.edu/projects/yum/download.ptml" SECTION = "devel/python" PRIORITY = "optional" +DEPENDS = "python sqlite3 glib-2.0 libxml2" LICENSE = "GPL" -PR = "r0" SRC_URI = "http://linux.duke.edu/projects/yum/download/yum-metadata-parser/yum-metadata-parser-${PV}.tar.gz" S = "${WORKDIR}/yum-metadata-parser-${PV}"
Signature · 1 line
1.6.1.3
PATCH 26/70 yum: do not hardcode arm architecture - rootfs_rpm provide arch info (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5392 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/files/hacks.patch | 21 --------------------- packages/yum/yum-native_3.2.18.bb | 2 +- packages/yum/yum_3.2.18.bb | 1 + 3 files changed, 2 insertions(+), 22 deletions(-)
packages/yum/files/hacks.patch +0 -21
@@ -5,27 +5,6 @@ yum/depsolve.py | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) -Index: yum-3.2.18/rpmUtils/arch.py -=================================================================== ---- yum-3.2.18.orig/rpmUtils/arch.py 2008-06-17 14:05:42.000000000 +0100 -+++ yum-3.2.18/rpmUtils/arch.py 2008-09-01 15:47:11.000000000 +0100 -@@ -275,6 +275,7 @@ - return arch - - def getCanonArch(skipRpmPlatform = 0): -+ return "arm" - if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): - try: - f = open("/etc/rpm/platform", "r") -@@ -331,6 +332,8 @@ - base arch is the arch before noarch in the arches dict if myarch is not - a key in the multilibArches.""" - -+ return "arm" -+ - if not myarch: - myarch = canonArch - Index: yum-3.2.18/rpmUtils/transaction.py =================================================================== --- yum-3.2.18.orig/rpmUtils/transaction.py 2008-06-17 14:05:42.000000000 +0100
packages/yum/yum-native_3.2.18.bb +1 -1
@@ -5,7 +5,7 @@ SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://paths.patch;patch=1 \ file://yum-install-recommends.py \ file://extract-postinst.awk" -PR = "r5" +PR = "r6" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
packages/yum/yum_3.2.18.bb +1 -0
@@ -1,4 +1,5 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" +PR = "r1" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://hacks.patch;patch=1 \
Signature · 1 line
1.6.1.3
Re: [PATCH 26/70] yum: do not hardcode arm architecture - rootfs_rpm provide arch info (from Poky)
Quoted 66 lines · On Wednesday 04 March 2009 07:52:41 Marcin Juszkiewicz wrote:
From: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5392
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---packages/yum/files/hacks.patch | 21 --------------------- packages/yum/yum-native_3.2.18.bb | 2 +- packages/yum/yum_3.2.18.bb | 1 + 3 files changed, 2 insertions(+), 22 deletions(-)(quoted diff) +0
-0
b/packages/yum/files/hacks.patchindex d0232ec..ac8445f 100644packages/yum/files/hacks.patch +0
-14@@ -5,27 +5,6 @@ yum/depsolve.py | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) -Index: yum-3.2.18/rpmUtils/arch.py -=================================================================== ---- yum-3.2.18.orig/rpmUtils/arch.py 2008-06-17 14:05:42.000000000 +0100 -+++ yum-3.2.18/rpmUtils/arch.py 2008-09-01 15:47:11.000000000 +0100 -@@ -275,6 +275,7 @@ - return arch - - def getCanonArch(skipRpmPlatform = 0): -+ return "arm" - if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): - try: - f = open("/etc/rpm/platform", "r") -@@ -331,6 +332,8 @@ - base arch is the arch before noarch in the arches dict if myarchis not - a key in the multilibArches."""
packages/yum/files/hacks.patch +1
-6- -+ return "arm" -+ - if not myarch: - myarch = canonArch - Index: yum-3.2.18/rpmUtils/transaction.py =================================================================== --- yum-3.2.18.orig/rpmUtils/transaction.py 2008-06-17 14:05:42.000000000 +0100 diff --git a/packages/yum/yum-native_3.2.18.bbb/packages/yum/yum-native_3.2.18.bb index 60dafe3..679f8e9 100644
packages/yum/yum-native_3.2.18.bb +1
-1@@ -5,7 +5,7 @@ SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://paths.patch;patch=1 \ file://yum-install-recommends.py \ file://extract-postinst.awk" -PR = "r5" +PR = "r6" DEPENDS = "rpm-native python-native python-iniparse-nativepython-urlgrabber-native yum-metadata-parser-native libxml2-native"
packages/yum/yum_3.2.18.bb +1
-0@@ -1,4 +1,5 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" +PR = "r1" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
Quoted 1 line
file://hacks.patch;patch=1 \
ah this invalidates my comment to patch 18/70
Signature · 1 line
Khem Raj
PATCH 27/70 yum: Don't apply hacks.patch, its only needed for the native version (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5395 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum_3.2.18.bb | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
packages/yum/yum_3.2.18.bb +1 -2
@@ -1,8 +1,7 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" -PR = "r1" +PR = "r2" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ - file://hacks.patch;patch=1 \ file://paths.patch;patch=1 \ file://yum-install-recommends.py \ file://extract-postinst.awk"
Signature · 1 line
1.6.1.3
PATCH 28/70 yum-native: Fix hacks.patch to handle architecture detection issues (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5396 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/files/hacks.patch | 36 +++++++++++++++++++++++++++++++++--- packages/yum/yum-native_3.2.18.bb | 2 +- 2 files changed, 34 insertions(+), 4 deletions(-)
packages/yum/files/hacks.patch +33 -3
@@ -5,10 +5,40 @@ yum/depsolve.py | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) +Index: yum-3.2.18/rpmUtils/arch.py +=================================================================== +--- yum-3.2.18.orig/rpmUtils/arch.py 2008-06-17 14:05:42.000000000 +0100 ++++ yum-3.2.18/rpmUtils/arch.py 2008-10-02 22:09:19.000000000 +0100 +@@ -275,6 +275,12 @@ + return arch + + def getCanonArch(skipRpmPlatform = 0): ++ import os ++ if 'YUM_ARCH_FORCE' in os.environ: ++ return os.environ['YUM_ARCH_FORCE'] ++ ++ sys.exit(1) ++ + if not skipRpmPlatform and os.access("/etc/rpm/platform", os.R_OK): + try: + f = open("/etc/rpm/platform", "r") +@@ -331,6 +338,12 @@ + base arch is the arch before noarch in the arches dict if myarch is not + a key in the multilibArches.""" + ++ import os ++ if 'YUM_ARCH_FORCE' in os.environ: ++ return os.environ['YUM_ARCH_FORCE'] ++ ++ sys.exit(1) ++ + if not myarch: + myarch = canonArch + Index: yum-3.2.18/rpmUtils/transaction.py =================================================================== --- yum-3.2.18.orig/rpmUtils/transaction.py 2008-06-17 14:05:42.000000000 +0100 -+++ yum-3.2.18/rpmUtils/transaction.py 2008-09-03 17:55:27.000000000 +0100 ++++ yum-3.2.18/rpmUtils/transaction.py 2008-10-02 17:09:57.000000000 +0100 @@ -43,6 +43,7 @@ 'clean'] self.tsflags = []
@@ -20,7 +50,7 @@ Index: yum-3.2.18/rpmUtils/transaction.py Index: yum-3.2.18/yum/constants.py =================================================================== --- yum-3.2.18.orig/yum/constants.py 2008-07-21 16:56:54.000000000 +0100 -+++ yum-3.2.18/yum/constants.py 2008-09-01 15:47:11.000000000 +0100 ++++ yum-3.2.18/yum/constants.py 2008-10-02 17:09:57.000000000 +0100 @@ -17,7 +17,7 @@ """
@@ -33,7 +63,7 @@ Index: yum-3.2.18/yum/constants.py Index: yum-3.2.18/yum/depsolve.py =================================================================== --- yum-3.2.18.orig/yum/depsolve.py 2008-08-06 17:05:16.000000000 +0100 -+++ yum-3.2.18/yum/depsolve.py 2008-09-03 21:05:52.000000000 +0100 ++++ yum-3.2.18/yum/depsolve.py 2008-10-02 17:09:57.000000000 +0100 @@ -141,9 +141,14 @@ else: self.logger.critical(_('Invalid tsflag in config file: %s'), flag)
packages/yum/yum-native_3.2.18.bb +1 -1
@@ -5,7 +5,7 @@ SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://paths.patch;patch=1 \ file://yum-install-recommends.py \ file://extract-postinst.awk" -PR = "r6" +PR = "r7" DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native"
Signature · 1 line
1.6.1.3
PATCH 29/70 yum: fixed packaging (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5426 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/files/fix | 18 +++++++++++++++++ packages/yum/files/paths.patch | 40 +++++++++++++++++++++++--------------- packages/yum/files/paths2.patch | 33 ++++++++++++++++++++++++++++++++ packages/yum/yum_3.2.18.bb | 8 +++++- 4 files changed, 81 insertions(+), 18 deletions(-) create mode 100644 packages/yum/files/fix create mode 100644 packages/yum/files/paths2.patch
packages/yum/files/fix new file +18 -0
@@ -0,0 +1,18 @@ +--- + rpmUtils/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- yum-3.2.18.orig/rpmUtils/Makefile ++++ yum-3.2.18/rpmUtils/Makefile +@@ -1,10 +1,10 @@ + PYTHON=python + PACKAGE = $(shell basename `pwd`) + PYFILES = $(wildcard *.py) + PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)') +-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix') ++PYSYSDIR := /usr + PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER) + PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE) + + all: + echo "Nothing to do"
packages/yum/files/paths.patch +24 -16
@@ -1,8 +1,14 @@ -Index: yum-3.2.18/Makefile -=================================================================== ---- yum-3.2.18.orig/Makefile 2008-08-23 09:13:56.000000000 +0100 -+++ yum-3.2.18/Makefile 2008-08-23 09:18:09.000000000 +0100 -@@ -18,19 +18,19 @@ +--- + Makefile | 18 +++++++++--------- + docs/Makefile | 12 ++++++------ + etc/Makefile | 20 ++++++++++---------- + 3 files changed, 25 insertions(+), 25 deletions(-) + +--- yum-3.2.18.orig/Makefile ++++ yum-3.2.18/Makefile +@@ -16,23 +16,23 @@ clean: + + subdirs: for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done install:
@@ -27,15 +33,17 @@ Index: yum-3.2.18/Makefile - mkdir -p $(DESTDIR)/var/cache/yum - mkdir -p $(DESTDIR)/var/lib/yum + mkdir -p $(DESTDIR)$(localstatedir)/cache/yum -+ mkdir -p $(DESTDIR)$(localstatedir)/lib/yum ++ mkdir -p $(DESTDIR)$(localstatedir)/lib/yum for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done -Index: yum-3.2.18/docs/Makefile -=================================================================== ---- yum-3.2.18.orig/docs/Makefile 2008-08-23 09:19:07.000000000 +0100 -+++ yum-3.2.18/docs/Makefile 2008-08-23 09:19:37.000000000 +0100 -@@ -6,9 +6,9 @@ + .PHONY: docs test + +--- yum-3.2.18.orig/docs/Makefile ++++ yum-3.2.18/docs/Makefile +@@ -4,11 +4,11 @@ all: + clean: + rm -f *.pyc *.pyo *~ rm -fr epydoc install:
@@ -51,11 +59,11 @@ Index: yum-3.2.18/docs/Makefile + install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5 + install -m 644 yum-updatesd.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8 + install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5 -Index: yum-3.2.18/etc/Makefile -=================================================================== ---- yum-3.2.18.orig/etc/Makefile 2008-08-23 09:19:51.000000000 +0100 -+++ yum-3.2.18/etc/Makefile 2008-08-23 09:20:28.000000000 +0100 -@@ -5,20 +5,20 @@ +--- yum-3.2.18.orig/etc/Makefile ++++ yum-3.2.18/etc/Makefile +@@ -3,22 +3,22 @@ all: + + clean: rm -f *.pyc *.pyo *~ install:
packages/yum/files/paths2.patch new file +33 -0
@@ -0,0 +1,33 @@ +--- + rpmUtils/Makefile | 2 +- + yum/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- yum-3.2.18.orig/rpmUtils/Makefile ++++ yum-3.2.18/rpmUtils/Makefile +@@ -1,10 +1,10 @@ + PYTHON=python + PACKAGE = $(shell basename `pwd`) + PYFILES = $(wildcard *.py) + PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)') +-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix') ++PYSYSDIR = /usr + PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER) + PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE) + + all: + echo "Nothing to do" +--- yum-3.2.18.orig/yum/Makefile ++++ yum-3.2.18/yum/Makefile +@@ -1,10 +1,10 @@ + PYTHON=python + PACKAGE = $(shell basename `pwd`) + PYFILES = $(wildcard *.py) + PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)') +-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix') ++PYSYSDIR = /usr + PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER) + PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE) + + all: + echo "Nothing to do"
packages/yum/yum_3.2.18.bb +6 -2
@@ -1,12 +1,14 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" -PR = "r2" +PR = "r3" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://paths.patch;patch=1 \ + file://paths2.patch;patch=1 \ file://yum-install-recommends.py \ file://extract-postinst.awk" -DEPENDS = "rpm python python-iniparse python-urlgrabber yum-metadata-parser libxml2" +DEPENDS = "python" +RDEPENDS = "rpm python-core python-iniparse python-urlgrabber yum-metadata-parser" S = "${WORKDIR}/yum-${PV}"
@@ -22,3 +24,5 @@ do_install_append () { install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ } + +FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"
Signature · 1 line
1.6.1.3
Re: [PATCH 29/70] yum: fixed packaging (from Poky)
Am Mittwoch, den 04.03.2009, 16:52 +0100 schrieb Marcin Juszkiewicz:
Quoted 1 line
++PYSYSDIR = /usr
Might not want to hardcode that. Compute ${prefix} instead.
Signature · 1 line
:M:
PATCH 30/70 yum: added all required Python modules to dependencies (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5427 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/yum/yum_3.2.18.bb | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
packages/yum/yum_3.2.18.bb +7 -3
@@ -1,5 +1,5 @@ HOMEPAGE = "http://linux.duke.edu/projects/yum/" -PR = "r3" +PR = "r4" SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://paths.patch;patch=1 \
@@ -7,8 +7,12 @@ SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ file://yum-install-recommends.py \ file://extract-postinst.awk" -DEPENDS = "python" -RDEPENDS = "rpm python-core python-iniparse python-urlgrabber yum-metadata-parser" +RDEPENDS = "python-rpm python-core python-iniparse python-urlgrabber \ + python-shell python-re python-logging python-pickle \ + python-netserver python-compression \ + python-bzip2 python-unixadmin python-xml python-sqlite3 \ + python-textutils python-fcntl python-email \ + yum-metadata-parser" S = "${WORKDIR}/yum-${PV}"
Signature · 1 line
1.6.1.3
PATCH 31/70 fakechroot: fix duplicated readlink (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5115 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/fakechroot/fakechroot-native_2.5.bb | 2 +- packages/fakechroot/fakechroot_2.5.bb | 3 +- packages/fakechroot/files/fix-readlink.patch | 32 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 packages/fakechroot/files/fix-readlink.patch
packages/fakechroot/fakechroot-native_2.5.bb +1 -1
@@ -1,5 +1,5 @@ SECTION = "base" -PR = "r0" +PR = "r1" require fakechroot_${PV}.bb inherit native
packages/fakechroot/fakechroot_2.5.bb +2 -1
@@ -2,6 +2,7 @@ SECTION = "base" DESCRIPTION = "Gives a fake root environment which can support chroot" LICENSE = "GPL" -SRC_URI = "${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_${PV}.orig.tar.gz" +SRC_URI = "${DEBIAN_MIRROR}/main/f/fakechroot/fakechroot_${PV}.orig.tar.gz \ + file://fix-readlink.patch;patch=1" inherit autotools
packages/fakechroot/files/fix-readlink.patch new file +32 -0
@@ -0,0 +1,32 @@ +--- + src/libfakechroot.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- fakechroot-2.5.orig/src/libfakechroot.c ++++ fakechroot-2.5/src/libfakechroot.c +@@ -596,11 +596,11 @@ void fakechroot_init (void) + nextsym(open64, "open64"); + #if !defined(HAVE___OPENDIR2) + nextsym(opendir, "opendir"); + #endif + nextsym(pathconf, "pathconf"); +- nextsym(readlink, "readlink"); ++ nextsym(readlink, "own_readlink"); + nextsym(realpath, "realpath"); + nextsym(remove, "remove"); + #ifdef HAVE_REMOVEXATTR + nextsym(removexattr, "removexattr"); + #endif +@@ -1864,11 +1864,11 @@ long pathconf (const char *path, int nam + return next_pathconf(path, name); + } + + + /* #include <unistd.h> */ +-int readlink (const char *path, char *buf, READLINK_TYPE_ARG3) ++int own_readlink (const char *path, char *buf, READLINK_TYPE_ARG3) + { + int status; + char tmp[FAKECHROOT_MAXPATH], *tmpptr; + char *fakechroot_path, *fakechroot_ptr, fakechroot_buf[FAKECHROOT_MAXPATH]; +
Signature · 1 line
1.6.1.3
PATCH 32/70 package_rpm.bbclass: Update against recent packaging changes and start to implement dependency handling. (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5067 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 76 ++++++++++++++++++++++++++++++------------ 1 files changed, 54 insertions(+), 22 deletions(-)
classes/package_rpm.bbclass +54 -22
@@ -1,9 +1,14 @@ inherit package -inherit rpm_core RPMBUILD="rpmbuild --short-circuit ${RPMOPTS}" IMAGE_PKGTYPE ?= "rpm" +RPMBUILDPATH="${WORKDIR}/rpm" + +RPMOPTS="--rcfile=${WORKDIR}/rpmrc" +RPMOPTS="--rcfile=${WORKDIR}/rpmrc --target ${TARGET_SYS}" +RPM="rpm ${RPMOPTS}" + python write_specfile() { from bb import data, build import sys
@@ -56,7 +61,13 @@ python write_specfile() { for var in out_vartranslate.keys(): if out_vartranslate[var][0] == "%": continue - fd.write("%s\t: %s\n" % (out_vartranslate[var], bb.data.getVar(var, d))) + val = bb.data.getVar(var, d, 1) + if var == "RDEPENDS": + val = val.split()[0] + fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True))) + if rdepends: + fd.write("Requires: %s\n" % rdepends) fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True) fd.write("Summary\t: .\n")
@@ -74,6 +85,8 @@ python write_specfile() { # call out rpm -bb on the .spec, thereby creating an rpm + bb.note(bb.data.expand("${RPMBUILD} -bb ${OUTSPECFILE}", d)) + bb.data.setVar('BUILDSPEC', "${RPMBUILD} -bb ${OUTSPECFILE}\n", d) bb.data.setVarFlag('BUILDSPEC', 'func', '1', d) bb.build.exec_func('BUILDSPEC', d)
@@ -84,51 +97,69 @@ python write_specfile() { bb.movefile(rpm, outrpm) } +rpm_prep() { + if [ ! -e ${WORKDIR}/rpmrc ]; then + mkdir -p ${RPMBUILDPATH}/{SPECS,RPMS/{i386,i586,i686,noarch,ppc,mips,mipsel,arm},SRPMS,SOURCES,BUILD} + echo 'macrofiles:/usr/lib/rpm/macros:${WORKDIR}/macros' > ${WORKDIR}/rpmrc + echo '%_topdir ${RPMBUILDPATH}' > ${WORKDIR}/macros + echo '%_repackage_dir ${WORKDIR}' >> ${WORKDIR}/macros + fi +} + python do_package_rpm () { - workdir = bb.data.getVar('WORKDIR', d) + workdir = bb.data.getVar('WORKDIR', d, 1) if not workdir: - raise bb.build.FuncFailed("WORKDIR not defined") - workdir = bb.data.expand(workdir, d) + bb.error("WORKDIR not defined, unable to package") + return import os # path manipulations - outdir = bb.data.getVar('DEPLOY_DIR_RPM', d) + outdir = bb.data.getVar('DEPLOY_DIR_RPM', d, 1) if not outdir: - raise bb.build.FuncFailed("DEPLOY_DIR_RPM not defined") - outdir = bb.data.expand(outdir, d) + bb.error("DEPLOY_DIR_RPM not defined, unable to package") + return bb.mkdirhier(outdir) - packages = bb.data.getVar('PACKAGES', d) + packages = bb.data.getVar('PACKAGES', d, 1) if not packages: - packages = "${PN}" - bb.data.setVar('FILES', '', d) - ddir = bb.data.expand(bb.data.getVar('D', d), d) - bb.mkdirhier(ddir) - bb.data.setVar(bb.data.expand('FILES_${PN}', d), ''.join([ "./%s" % x for x in os.listdir(ddir)]), d) - packages = bb.data.expand(packages, d) + bb.debug(1, "PACKAGES not defined, nothing to package") + return + + if packages == []: + bb.debug(1, "No packages; nothing to do") + return + + # If "rpm" comes into overrides the presence of this function causes problems. + # Since we don't need it, remove it for now - hacky. + bb.data.delVar("do_package_write_rpm", d) for pkg in packages.split(): localdata = bb.data.createCopy(d) - root = "%s/install/%s" % (workdir, pkg) + pkgdest = bb.data.getVar('PKGDEST', d, 1) + root = "%s/%s" % (pkgdest, pkg) + + lf = bb.utils.lockfile(root + ".lock") bb.data.setVar('ROOT', '', localdata) bb.data.setVar('ROOT_%s' % pkg, root, localdata) - bb.data.setVar('PKG', pkg, localdata) + pkgname = bb.data.getVar('PKG_%s' % pkg, localdata, 1) + if not pkgname: + pkgname = pkg + bb.data.setVar('PKG', pkgname, localdata) overrides = bb.data.getVar('OVERRIDES', localdata) if not overrides: raise bb.build.FuncFailed('OVERRIDES not defined') overrides = bb.data.expand(overrides, localdata) - bb.data.setVar('OVERRIDES', '%s:%s' % (overrides, pkg), localdata) + bb.data.setVar('OVERRIDES', overrides + ':' + pkg, localdata) bb.data.update_data(localdata) - root = bb.data.getVar('ROOT', localdata) - basedir = os.path.dirname(root) + basedir = os.path.join(os.path.dirname(root)) pkgoutdir = outdir bb.mkdirhier(pkgoutdir) bb.data.setVar('OUTSPECFILE', os.path.join(workdir, "%s.spec" % pkg), localdata) bb.build.exec_func('write_specfile', localdata) - del localdata + bb.utils.unlockfile(lf) } python () {
@@ -143,7 +174,8 @@ python () { python do_package_write_rpm () { bb.build.exec_func("read_subpackage_metadata", d) + bb.build.exec_func("rpm_prep", d) bb.build.exec_func("do_package_rpm", d) } do_package_write_rpm[dirs] = "${D}" -addtask package_write_rpm before do_build after do_package +addtask package_write_rpm before do_package_write after do_package
Signature · 1 line
1.6.1.3
PATCH 33/70 Add rootfs_rpm.bbclass, a start at image generation from rpms. Its not expected to be entirely functional yet. (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5101 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 148 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 148 insertions(+), 0 deletions(-) create mode 100644 classes/rootfs_rpm.bbclass
classes/rootfs_rpm.bbclass new file +148 -0
@@ -0,0 +1,148 @@ +# +# Creates a root filesystem out of rpm packages +# + +ROOTFS_PKGMANAGE = "opkg" +# "rpm" "yum" +ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" + +do_rootfs[depends] += "rpm-native:do_populate_staging yum-native:do_populate_staging createrepo-native:do_populate_staging fakechroot-native:do_populate_staging" +do_rootfs[recrdeptask] += "do_package_write_rpm" + +YUMCONF = "${IMAGE_ROOTFS}/etc/yum.conf" +YUMARGS = "-c ${YUMCONF} --installroot ${IMAGE_ROOTFS}" + +fakeroot rootfs_rpm_do_rootfs () { + set -x + + # Update the repository index + createrepo ${DEPLOY_DIR_RPM} + + mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ + #echo "arm" > ${IMAGE_ROOTFS}/etc/rpm/platform + + # Copy the packages into the target image + # Ugly ugly ugly but rpm is braindead and can't see outside the chroot + # when installing :( + mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM} + cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ + + # Generate an apprpriate yum.conf + rm -rf ${YUMCONF} + cat > ${YUMCONF} << EOF +[main] +cachedir=/var/cache2/yum +keepcache=1 +debuglevel=10 +logfile=/var/log2/yum.log +exactarch=0 +obsoletes=1 +tolerant=1 +arch=arm +basearch=arm + +[poky-feed] +name = Poky RPM Feed +baseurl=file://${DEPLOY_DIR_RPM} +gpgcheck=0 + +EOF + #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm + #rpm --root ${IMAGE_ROOTFS} --initdb + #rpm --root ${IMAGE_ROOTFS} --dbpath ${IMAGE_ROOTFS}/var/lib/rpm -ihv --nodeps --ignoreos + #rpm -ihv --root ${IMAGE_ROOTFS} ${PACKAGE_INSTALL} + + #package_update_index_rpm + #package_generate_ipkg_conf + + # Uclibc builds don't provide this stuff... + if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then + if [ ! -z "${LINGUAS_INSTALL}" ]; then + for i in ${LINGUAS_INSTALL}; do + fakechroot yum ${YUMARGS} -y install $i + done + fi + fi + if [ ! -z "${PACKAGE_INSTALL}" ]; then + fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} + fi + + #export D=${IMAGE_ROOTFS} + #export OFFLINE_ROOT=${IMAGE_ROOTFS} + #export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} + #export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT} + + #mkdir -p ${IMAGE_ROOTFS}/etc/opkg/ + #grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/opkg/arch.conf + + ${ROOTFS_POSTINSTALL_COMMAND} + + #for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do + # if [ -f $i ] && ! sh $i; then + # opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst` + # fi + #done + #for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.postinst; do + # if [ -f $i ] && ! sh $i configure; then + # opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .postinst` + # fi + #done + + install -d ${IMAGE_ROOTFS}/${sysconfdir} + echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version + + ${ROOTFS_POSTPROCESS_COMMAND} + + rm -rf ${IMAGE_ROOTFS}/var/cache2/ + rm -rf ${IMAGE_ROOTFS}/var/run2/ + rm -rf ${IMAGE_ROOTFS}/var/log2/ + + log_check rootfs +} + +rootfs_rpm_log_check() { + target="$1" + lf_path="$2" + + lf_txt="`cat $lf_path`" + for keyword_die in "Cannot find package" "exit 1" ERR Fail + do + if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1 + then + echo "log_check: There were error messages in the logfile" + echo -e "log_check: Matched keyword: [$keyword_die]\n" + echo "$lf_txt" | grep -v log_check | grep -C 5 -i "$keyword_die" + echo "" + do_exit=1 + fi + done + test "$do_exit" = 1 && exit 1 + true +} + +remove_packaging_data_files() { + rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ +} + +install_all_locales() { + + PACKAGES_TO_INSTALL="" + + INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` + + for pkg in $INSTALLED_PACKAGES + do + for lang in ${IMAGE_LOCALES} + do + if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 2 ] + then + PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang" + fi + done + done + if [ "$PACKAGES_TO_INSTALL" != "" ] + then + opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL + fi +} +
Signature · 1 line
1.6.1.3
Re: [PATCH 33/70] Add rootfs_rpm.bbclass, a start at image generation from rpms. Its not expected to be entirely functional yet. (from Poky)
Quoted 5 lines · Marcin Juszkiewicz
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5101 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 148 ++++++++++++++++++++++++++++++++++++++++++++
There's a 'poky' references here that should either be dropped or made into ${DISTRO}:
[snip]
Quoted 2 lines
+[poky-feed]
+name = Poky RPM Feed
Signature · 1 line
Tom Rini
Re: [PATCH 33/70] Add rootfs_rpm.bbclass, a start at image generation from rpms. Its not expected to be entirely functional yet. (from Poky)
In reply to Marcin JuszkiewiczOn Wed, Mar 04, 2009 at 04:52:48PM +0100, Marcin Juszkiewicz wrote:
[snip]
Quoted 7 lines
classes/rootfs_rpm.bbclass new file +7
-0+ #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm + #rpm --root ${IMAGE_ROOTFS} --initdb + #rpm --root ${IMAGE_ROOTFS} --dbpath ${IMAGE_ROOTFS}/var/lib/rpm -ihv --nodeps --ignoreos + #rpm -ihv --root ${IMAGE_ROOTFS} ${PACKAGE_INSTALL} + + #package_update_index_rpm + #package_generate_ipkg_conf
[snip]
classes/rootfs_rpm.bbclass line 76
Quoted 7 lines
classes/rootfs_rpm.bbclass new file +7
-0+ #export D=${IMAGE_ROOTFS} + #export OFFLINE_ROOT=${IMAGE_ROOTFS} + #export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} + #export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT} + + #mkdir -p ${IMAGE_ROOTFS}/etc/opkg/ + #grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/opkg/arch.conf
These commented out items are never deleted, but seem like they should be.
Signature · 1 line
Tom Rini
PATCH 34/70 rootfs_rpm.bbclass: ship rpm and yum in target images (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5380 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
classes/rootfs_rpm.bbclass +2 -2
@@ -2,8 +2,8 @@ # Creates a root filesystem out of rpm packages # -ROOTFS_PKGMANAGE = "opkg" -# "rpm" "yum" +ROOTFS_PKGMANAGE = "rpm yum" + ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" do_rootfs[depends] += "rpm-native:do_populate_staging yum-native:do_populate_staging createrepo-native:do_populate_staging fakechroot-native:do_populate_staging"
Signature · 1 line
1.6.1.3
PATCH 35/70 package_rpm.bbclass: Fix empty package handling, handle package dependency renaming by adding a missing function call and expand RPMBUILD before changing the dictonary so local PV/PR changes don't break the WORKDIR variable expansion (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5100 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
classes/package_rpm.bbclass +8 -4
@@ -43,7 +43,7 @@ python write_specfile() { del files[files.index(r)] except ValueError: pass - if not files: + if not files and bb.data.getVar('ALLOW_EMPTY', d) != "1": from bb import note note("Not creating empty archive for %s" % (bb.data.expand('${PKG}-${PV}-${PR}${DISTRO_PR}', d, True)) return
@@ -62,10 +62,11 @@ python write_specfile() { if out_vartranslate[var][0] == "%": continue val = bb.data.getVar(var, d, 1) - if var == "RDEPENDS": - val = val.split()[0] fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) - rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True))) + + bb.build.exec_func("mapping_rename_hook", d) + rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True) or "")) + if rdepends: fd.write("Requires: %s\n" % rdepends) fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True)
@@ -158,6 +159,9 @@ python do_package_rpm () { pkgoutdir = outdir bb.mkdirhier(pkgoutdir) bb.data.setVar('OUTSPECFILE', os.path.join(workdir, "%s.spec" % pkg), localdata) + # Save the value of RPMBUILD expanded into the new dictonary so any + # changes in the compoents that make up workdir don't break packaging + bb.data.setVar('RPMBUILD', bb.data.getVar("RPMBUILD", d, True), localdata) bb.build.exec_func('write_specfile', localdata) bb.utils.unlockfile(lf) }
Signature · 1 line
1.6.1.3
PATCH 36/70 package_rpm.bbclass: Stop autogenerated dependencies for now, its not functioning correctly (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5111 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
classes/package_rpm.bbclass +2 -0
@@ -64,6 +64,8 @@ python write_specfile() { val = bb.data.getVar(var, d, 1) fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + fd.write("AutoReqProv: no\n") + bb.build.exec_func("mapping_rename_hook", d) rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True) or ""))
Signature · 1 line
1.6.1.3
Re: [PATCH 36/70] package_rpm.bbclass: Stop autogenerated dependencies for now, its not functioning correctly (from Poky)
Quoted 12 lines · On Wednesday 04 March 2009 07:52:51 Marcin Juszkiewicz wrote:
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5111
311d38ba-8fff-0310-9ca6-ca027cbcb966 ---classes/package_rpm.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)classes/package_rpm.bbclass +0
-0
classes/package_rpm.bbclass python write_specfile() { · line 68
Quoted 5 lines
classes/package_rpm.bbclass +2
-0@@ -64,6 +64,8 @@ python write_specfile() { val = bb.data.getVar(var, d, 1) fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + fd.write("AutoReqProv: no\n") +
may be a comment stating reason would be nice here.
Quoted 3 lines
classes/package_rpm.bbclass +0
-0bb.build.exec_func("mapping_rename_hook", d) rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True) or ""))
Signature · 1 line
Khem Raj
PATCH 37/70 package_rpm.bbclass: files needs to start from / (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5116 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
classes/package_rpm.bbclass +2 -0
@@ -82,6 +82,8 @@ python write_specfile() { fd.write("%files\n") for file in files: + if file[0] != '/': + fd.write('/') fd.write("%s\n" % file) fd.close()
Signature · 1 line
1.6.1.3
PATCH 38/70 package_rpm.bbclass: Fix problems with package version with '-' in the version (replace with '+'), improve the Requires and Recommends generation code (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5129 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-)
classes/package_rpm.bbclass +25 -8
@@ -12,9 +12,14 @@ RPM="rpm ${RPMOPTS}" python write_specfile() { from bb import data, build import sys + + version = bb.data.getVar('PV', d, 1) + version = version.replace('-', '+') + bb.data.setVar('RPMPV', version, d) + out_vartranslate = { "PKG": "Name", - "PV": "Version", + "RPMPV": "Version", "DESCRIPTION": "%description", "ROOT": "BuildRoot", "LICENSE": "License",
@@ -67,10 +72,24 @@ python write_specfile() { fd.write("AutoReqProv: no\n") bb.build.exec_func("mapping_rename_hook", d) - rdepends = " ".join(bb.utils.explode_deps(bb.data.getVar('RDEPENDS', d, True) or "")) + rdepends = bb.utils.explode_dep_versions(bb.data.getVar('RDEPENDS', d, True) or "") + for dep in rdepends: + ver = rdepends[dep] + if dep and ver: + ver = ver.replace('-', '+') + fd.write("Requires: %s %s\n" % (dep, ver)) + elif dep: + fd.write("Requires: %s\n" % (dep)) + + rdepends = bb.utils.explode_dep_versions(bb.data.getVar('RRECOMMENDS', d, True) or "") + for dep in rdepends: + ver = rdepends[dep] + if dep and ver: + ver = ver.replace('-', '+') + fd.write("Recommends: %s %s\n" % (dep, ver)) + elif dep: + fd.write("Recommends: %s\n" % (dep)) - if rdepends: - fd.write("Requires: %s\n" % rdepends) fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True) fd.write("Summary\t: .\n")
@@ -82,8 +101,6 @@ python write_specfile() { fd.write("%files\n") for file in files: - if file[0] != '/': - fd.write('/') fd.write("%s\n" % file) fd.close()
@@ -97,8 +114,8 @@ python write_specfile() { bb.build.exec_func('BUILDSPEC', d) # move the rpm into the pkgoutdir - rpm = bb.data.expand('${RPMBUILDPATH}/RPMS/${TARGET_ARCH}/${PKG}-${PV}-${PR}${DISTRO_PR}.${TARGET_ARCH}.rpm', d) - outrpm = bb.data.expand('${DEPLOY_DIR_RPM}/${PKG}-${PV}-${PR}${DISTRO_PR}.${TARGET_ARCH}.rpm', d) + rpm = bb.data.expand('${RPMBUILDPATH}/RPMS/${TARGET_ARCH}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d) + outrpm = bb.data.expand('${DEPLOY_DIR_RPM}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d) bb.movefile(rpm, outrpm) }
Signature · 1 line
1.6.1.3
PATCH 39/70 package_rpm.bbclass: Add support for postinst and preinst scripts (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5131 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
classes/package_rpm.bbclass +8 -3
@@ -24,6 +24,8 @@ python write_specfile() { "ROOT": "BuildRoot", "LICENSE": "License", "SECTION": "Group", + "pkg_postinst": "%post", + "pkg_preinst": "%pre", } root = bb.data.getVar('ROOT', d)
@@ -67,7 +69,8 @@ python write_specfile() { if out_vartranslate[var][0] == "%": continue val = bb.data.getVar(var, d, 1) - fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + if val: + fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) fd.write("AutoReqProv: no\n")
@@ -96,8 +99,10 @@ python write_specfile() { for var in out_vartranslate.keys(): if out_vartranslate[var][0] != "%": continue - fd.write(out_vartranslate[var] + "\n") - fd.write(bb.data.getVar(var, d) + "\n\n") + val = bb.data.getVar(var, d) + if val: + fd.write(out_vartranslate[var] + "\n") + fd.write(val + "\n\n") fd.write("%files\n") for file in files:
Signature · 1 line
1.6.1.3
PATCH 40/70 package_rpm.bbclass: Improve handling of '-' characters in Requires and Recommends fields (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5390 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 46 +++++++++++++++++++----------------------- 1 files changed, 21 insertions(+), 25 deletions(-)
classes/package_rpm.bbclass +21 -25
@@ -24,8 +24,6 @@ python write_specfile() { "ROOT": "BuildRoot", "LICENSE": "License", "SECTION": "Group", - "pkg_postinst": "%post", - "pkg_preinst": "%pre", } root = bb.data.getVar('ROOT', d)
@@ -69,29 +67,29 @@ python write_specfile() { if out_vartranslate[var][0] == "%": continue val = bb.data.getVar(var, d, 1) - if val: - fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) fd.write("AutoReqProv: no\n") bb.build.exec_func("mapping_rename_hook", d) - rdepends = bb.utils.explode_dep_versions(bb.data.getVar('RDEPENDS', d, True) or "") - for dep in rdepends: - ver = rdepends[dep] - if dep and ver: - ver = ver.replace('-', '+') - fd.write("Requires: %s %s\n" % (dep, ver)) - elif dep: - fd.write("Requires: %s\n" % (dep)) - - rdepends = bb.utils.explode_dep_versions(bb.data.getVar('RRECOMMENDS', d, True) or "") - for dep in rdepends: - ver = rdepends[dep] - if dep and ver: - ver = ver.replace('-', '+') - fd.write("Recommends: %s %s\n" % (dep, ver)) - elif dep: - fd.write("Recommends: %s\n" % (dep)) + + def write_dep_field(varname, outstring): + depends = bb.utils.explode_dep_versions(bb.data.getVar(varname, d, True) or "") + for dep in depends: + ver = depends[dep] + if dep and ver: + if '-' in ver: + subd = read_subpkgdata_dict(dep, d) + pv = subd['PV'] + reppv = pv.replace('-', '+') + ver = ver.replace(pv, reppv) + fd.write("%s: %s %s\n" % (outstring, dep, ver)) + elif dep: + fd.write("%s: %s\n" % (outstring, dep)) + + + write_dep_field('RDEPENDS', 'Requires') + write_dep_field('RRECOMMENDS', 'Recommends') fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True) fd.write("Summary\t: .\n")
@@ -99,10 +97,8 @@ python write_specfile() { for var in out_vartranslate.keys(): if out_vartranslate[var][0] != "%": continue - val = bb.data.getVar(var, d) - if val: - fd.write(out_vartranslate[var] + "\n") - fd.write(val + "\n\n") + fd.write(out_vartranslate[var] + "\n") + fd.write(bb.data.getVar(var, d) + "\n\n") fd.write("%files\n") for file in files:
Signature · 1 line
1.6.1.3
PATCH 41/70 package_rpm.bbclass: Fix package version fixing for PKG renamed packages (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5393 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-)
classes/package_rpm.bbclass +17 -4
@@ -71,10 +71,9 @@ python write_specfile() { fd.write("AutoReqProv: no\n") - bb.build.exec_func("mapping_rename_hook", d) - - def write_dep_field(varname, outstring): + def fix_dep_versions(varname): depends = bb.utils.explode_dep_versions(bb.data.getVar(varname, d, True) or "") + newdeps = [] for dep in depends: ver = depends[dep] if dep and ver:
@@ -83,11 +82,25 @@ python write_specfile() { pv = subd['PV'] reppv = pv.replace('-', '+') ver = ver.replace(pv, reppv) + newdeps.append("%s (%s)" % (dep, ver)) + elif dep: + newdeps.append(dep) + bb.data.setVar(varname, ", ".join(newdeps), d) + + fix_dep_versions('RDEPENDS') + fix_dep_versions('RRECOMMENDS') + + bb.build.exec_func("mapping_rename_hook", d) + + def write_dep_field(varname, outstring): + depends = bb.utils.explode_dep_versions(bb.data.getVar(varname, d, True) or "") + for dep in depends: + ver = depends[dep] + if dep and ver: fd.write("%s: %s %s\n" % (outstring, dep, ver)) elif dep: fd.write("%s: %s\n" % (outstring, dep)) - write_dep_field('RDEPENDS', 'Requires') write_dep_field('RRECOMMENDS', 'Recommends')
Signature · 1 line
1.6.1.3
PATCH 42/70 package_rpm.bbclass: Fix dependency rebuilding bug (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5397 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/package_rpm.bbclass +1 -1
@@ -85,7 +85,7 @@ python write_specfile() { newdeps.append("%s (%s)" % (dep, ver)) elif dep: newdeps.append(dep) - bb.data.setVar(varname, ", ".join(newdeps), d) + bb.data.setVar(varname, " ".join(newdeps), d) fix_dep_versions('RDEPENDS') fix_dep_versions('RRECOMMENDS')
Signature · 1 line
1.6.1.3
PATCH 43/70 package_rpm.bbclass: save value of RPMBUILDPATH as it is needed for packaging (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5413 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
classes/package_rpm.bbclass +1 -0
@@ -197,6 +197,7 @@ python do_package_rpm () { # Save the value of RPMBUILD expanded into the new dictonary so any # changes in the compoents that make up workdir don't break packaging bb.data.setVar('RPMBUILD', bb.data.getVar("RPMBUILD", d, True), localdata) + bb.data.setVar('RPMBUILDPATH', bb.data.getVar("RPMBUILDPATH", d, True), localdata) bb.build.exec_func('write_specfile', localdata) bb.utils.unlockfile(lf) }
Signature · 1 line
1.6.1.3
PATCH 44/70 rootfs_rpm.bbclass: Remove the feed directory before packaging the image (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5112 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +1 -0
@@ -96,6 +96,7 @@ EOF rm -rf ${IMAGE_ROOTFS}/var/cache2/ rm -rf ${IMAGE_ROOTFS}/var/run2/ rm -rf ${IMAGE_ROOTFS}/var/log2/ + rm -rf ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ log_check rootfs }
Signature · 1 line
1.6.1.3
PATCH 45/70 rootfs_rpm.bbclass: Add basic postinstall handling during image creation (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5134 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-)
classes/rootfs_rpm.bbclass +17 -15
@@ -12,6 +12,8 @@ do_rootfs[recrdeptask] += "do_package_write_rpm" YUMCONF = "${IMAGE_ROOTFS}/etc/yum.conf" YUMARGS = "-c ${YUMCONF} --installroot ${IMAGE_ROOTFS}" +AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk" + fakeroot rootfs_rpm_do_rootfs () { set -x
@@ -67,26 +69,26 @@ EOF fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} fi - #export D=${IMAGE_ROOTFS} - #export OFFLINE_ROOT=${IMAGE_ROOTFS} - #export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} - #export OPKG_OFFLINE_ROOT=${IPKG_OFFLINE_ROOT} + export D=${IMAGE_ROOTFS} + export OFFLINE_ROOT=${IMAGE_ROOTFS} + export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} + export OPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} #mkdir -p ${IMAGE_ROOTFS}/etc/opkg/ #grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/opkg/arch.conf ${ROOTFS_POSTINSTALL_COMMAND} - - #for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do - # if [ -f $i ] && ! sh $i; then - # opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst` - # fi - #done - #for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.postinst; do - # if [ -f $i ] && ! sh $i configure; then - # opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .postinst` - # fi - #done + + mkdir -p ${IMAGE_ROOTFS}/etc/rpm-postinsts/ + rpm --root ${IMAGE_ROOTFS} -aq --queryformat 'Name: %{NAME}\n' --scripts > ${IMAGE_ROOTFS}/etc/rpm-postinsts/combined + awk -f ${AWKPOSTINSTSCRIPT} < ${IMAGE_ROOTFS}/etc/rpm-postinsts/combined + rm ${IMAGE_ROOTFS}/etc/rpm-postinsts/combined + + for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*.sh; do + if [ -f $i ] && sh $i; then + rm $i + fi + done install -d ${IMAGE_ROOTFS}/${sysconfdir} echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
Signature · 1 line
1.6.1.3
PATCH 46/70 rootfs_rpm.bbclass: Fixup broken symlinks due to fakechroot and run any leftover postinstalls on real hardware at first boot (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5143 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-)
classes/rootfs_rpm.bbclass +29 -1
@@ -69,6 +69,15 @@ EOF fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} fi + # Symlinks created under fakeroot are wrong, now we have to fix them... + cd ${IMAGE_ROOTFS} + for f in `find . -type l -print` + do + link=`readlink $f | sed -e 's#${IMAGE_ROOTFS}##'` + rm $f + ln -s $link $f + done + export D=${IMAGE_ROOTFS} export OFFLINE_ROOT=${IMAGE_ROOTFS} export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
@@ -86,10 +95,29 @@ EOF for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*.sh; do if [ -f $i ] && sh $i; then - rm $i + # rm $i + mv $i $i.done fi done + install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d + # Stop $i getting expanded below... + i=\$i + cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S98configure << EOF +#!/bin/sh +for i in /etc/rpm-postinsts/*.sh; do + echo "Running postinst $i..." + if [ -f $i ] && sh $i; then + # rm $i + mv $i $i.done + else + echo "ERROR: postinst $i failed." + fi +done +rm -f ${sysconfdir}/rcS.d/S98configure +EOF + chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S98configure + install -d ${IMAGE_ROOTFS}/${sysconfdir} echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
Signature · 1 line
1.6.1.3
PATCH 47/70 rootfs_rpm.bbclass: Add recommends handling (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5158 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +4 -0
@@ -69,6 +69,10 @@ EOF fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} fi + # Add any recommended packages to the image + # (added as an extra script since yum itself doesn't support this) + yum-install-recommends.py ${IMAGE_ROOTFS} "fakechroot yum ${YUMARGS} -y install" + # Symlinks created under fakeroot are wrong, now we have to fix them... cd ${IMAGE_ROOTFS} for f in `find . -type l -print`
Signature · 1 line
1.6.1.3
PATCH 48/70 rootfs_rpm.bbclass: Set YUM_ARCH_FORCE (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5398 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +1 -0
@@ -11,6 +11,7 @@ do_rootfs[recrdeptask] += "do_package_write_rpm" YUMCONF = "${IMAGE_ROOTFS}/etc/yum.conf" YUMARGS = "-c ${YUMCONF} --installroot ${IMAGE_ROOTFS}" +export YUM_ARCH_FORCE = "${TARGET_ARCH}" AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk"
Signature · 1 line
1.6.1.3
PATCH 49/70 rootfs_rpm.bbclass: remove lock files to get rpm working on device (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5412 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +3 -0
@@ -133,6 +133,9 @@ EOF rm -rf ${IMAGE_ROOTFS}/var/log2/ rm -rf ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ + # remove lock files + rm -f ${IMAGE_ROOTFS}/var/lib/rpm/__db.* + log_check rootfs }
Signature · 1 line
1.6.1.3
PATCH 50/70 rootfs_rpm.bbclass: remove temporary yum config - rootfs has one from yum package (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5433 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +3 -0
@@ -136,6 +136,9 @@ EOF # remove lock files rm -f ${IMAGE_ROOTFS}/var/lib/rpm/__db.* + # remove no longer used yum.conf + rm -f ${IMAGE_ROOTFS}/etc/yum.conf + log_check rootfs }
Signature · 1 line
1.6.1.3
PATCH 51/70 rootfs_rpm.bbclass: added generation of feed entries (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5434 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +26 -0
@@ -15,6 +15,31 @@ export YUM_ARCH_FORCE = "${TARGET_ARCH}" AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk" +RPM_POSTPROCESS_COMMANDS = "rpm_insert_feeds_uris" + +rpm_insert_feeds_uris () { + + echo "Building from feeds activated!" + + mkdir -p ${IMAGE_ROOTFS}/etc/yum/repos.d/ + for line in ${RPM_FEED_URIS} + do + # strip leading and trailing spaces/tabs, then split into name and uri + line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`" + feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`" + feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`" + + echo "Added $feed_name feed with URL $feed_uri" + + FEED_FILE=${IMAGE_ROOTFS}/etc/yum/repos.d/$feed_name + + echo "[poky-feed-$feed_name]" >> $FEED_FILE + echo "name = $feed_name" >> $FEED_FILE + echo "baseurl = $feed_uri" >> $FEED_FILE + echo "gpgcheck = 0" >> $FEED_FILE + done +} + fakeroot rootfs_rpm_do_rootfs () { set -x
@@ -126,6 +151,7 @@ EOF install -d ${IMAGE_ROOTFS}/${sysconfdir} echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version + ${RPM_POSTPROCESS_COMMANDS} ${ROOTFS_POSTPROCESS_COMMAND} rm -rf ${IMAGE_ROOTFS}/var/cache2/
Signature · 1 line
1.6.1.3
Re: [PATCH 51/70] rootfs_rpm.bbclass: added generation of feed entries (from Poky)
Quoted 6 lines · Marcin Juszkiewicz
From: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5434 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-)
Same comments as 33/70
Signature · 1 line
Tom Rini
PATCH 52/70 classes: Split rpm feeds by PACKAGE_ARCH (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5381 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
classes/package_rpm.bbclass +2 -2
@@ -129,7 +129,7 @@ python write_specfile() { # move the rpm into the pkgoutdir rpm = bb.data.expand('${RPMBUILDPATH}/RPMS/${TARGET_ARCH}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d) - outrpm = bb.data.expand('${DEPLOY_DIR_RPM}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d) + outrpm = bb.data.expand('${DEPLOY_DIR_RPM}/${PACKAGE_ARCH}/${PKG}-${RPMPV}-${PR}.${TARGET_ARCH}.rpm', d) bb.movefile(rpm, outrpm) }
@@ -191,7 +191,7 @@ python do_package_rpm () { bb.data.update_data(localdata) basedir = os.path.join(os.path.dirname(root)) - pkgoutdir = outdir + pkgoutdir = os.path.join(outdir, bb.data.getVar('PACKAGE_ARCH', localdata, 1)) bb.mkdirhier(pkgoutdir) bb.data.setVar('OUTSPECFILE', os.path.join(workdir, "%s.spec" % pkg), localdata) # Save the value of RPMBUILD expanded into the new dictonary so any
Signature · 1 line
1.6.1.3
PATCH 53/70 packaged-staging.bbclass: Add rpm package coverage (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5382 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/packaged-staging.bbclass | 14 ++++++++++++++ classes/rootfs_rpm.bbclass | 36 ++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 14 deletions(-)
classes/packaged-staging.bbclass +14 -0
@@ -361,6 +361,8 @@ python do_package_stage () { ipkpath = bb.data.getVar('DEPLOY_DIR_IPK', d, True).replace(tmpdir, stagepath) if bb.data.inherits_class('package_deb', d): debpath = bb.data.getVar('DEPLOY_DIR_DEB', d, True).replace(tmpdir, stagepath) + if bb.data.inherits_class('package_rpm', d): + rpmpath = bb.data.getVar('DEPLOY_DIR_RPM', d, True).replace(tmpdir, stagepath) for pkg in packages: pkgname = bb.data.getVar('PKG_%s' % pkg, d, 1)
@@ -393,6 +395,18 @@ python do_package_stage () { bb.mkdirhier(destpath) bb.copyfile(srcfile, destpath + srcname) + if bb.data.inherits_class('package_rpm', d): + version = bb.data.getVar('PV', d, 1) + version = version.replace('-', '+') + bb.data.setVar('RPMPV', version, d) + srcname = bb.data.expand(pkgname + "-${RPMPV}-" + pr + ".${TARGET_ARCH}.rpm", d) + srcfile = bb.data.expand("${DEPLOY_DIR_RPM}/" + arch + "/" + srcname, d) + if os.path.exists(srcfile): + destpath = rpmpath + "/" + arch + "/" + bb.mkdirhier(destpath) + bb.copyfile(srcfile, destpath + srcname) + + # # Handle stamps/ files #
classes/rootfs_rpm.bbclass +22 -14
@@ -43,18 +43,9 @@ rpm_insert_feeds_uris () { fakeroot rootfs_rpm_do_rootfs () { set -x - # Update the repository index - createrepo ${DEPLOY_DIR_RPM} - mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ #echo "arm" > ${IMAGE_ROOTFS}/etc/rpm/platform - # Copy the packages into the target image - # Ugly ugly ugly but rpm is braindead and can't see outside the chroot - # when installing :( - mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM} - cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ - # Generate an apprpriate yum.conf rm -rf ${YUMCONF} cat > ${YUMCONF} << EOF
@@ -69,12 +60,29 @@ tolerant=1 arch=arm basearch=arm -[poky-feed] -name = Poky RPM Feed -baseurl=file://${DEPLOY_DIR_RPM} -gpgcheck=0 - EOF + + #priority=1 + for arch in ${PACKAGE_ARCHS}; do + if [ ! -d ${DEPLOY_DIR_RPM}/$arch ]; then + continue; + fi + createrepo ${DEPLOY_DIR_RPM}/$arch + + echo "[poky-feed-$arch]" >> ${YUMCONF} + echo "name = Poky RPM $arch Feed" >> ${YUMCONF} + echo "baseurl=file://${DEPLOY_DIR_RPM}/$arch" >> ${YUMCONF} + echo "gpgcheck=0" >> ${YUMCONF} + echo "" >> ${YUMCONF} + #priority=$(expr $priority + 5) + done + + # Copy the packages into the target image + # Ugly ugly ugly but rpm is braindead and can't see outside the chroot + # when installing :( + mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM} + cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ + #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm #rpm --root ${IMAGE_ROOTFS} --initdb #rpm --root ${IMAGE_ROOTFS} --dbpath ${IMAGE_ROOTFS}/var/lib/rpm -ihv --nodeps --ignoreos
Signature · 1 line
1.6.1.3
PATCH 54/70 rootfs_rpm.bbclass: use more efficient way to copy packages (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5386 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)
classes/rootfs_rpm.bbclass +7 -5
@@ -63,6 +63,8 @@ basearch=arm EOF #priority=1 + mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM} + for arch in ${PACKAGE_ARCHS}; do if [ ! -d ${DEPLOY_DIR_RPM}/$arch ]; then continue;
@@ -75,13 +77,13 @@ EOF echo "gpgcheck=0" >> ${YUMCONF} echo "" >> ${YUMCONF} #priority=$(expr $priority + 5) + + # Copy the packages into the target image + # Ugly ugly ugly but rpm is braindead and can't see outside the chroot + # when installing :( + cp -r ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ done - # Copy the packages into the target image - # Ugly ugly ugly but rpm is braindead and can't see outside the chroot - # when installing :( - mkdir -p ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM} - cp -r ${DEPLOY_DIR_RPM}/* ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm #rpm --root ${IMAGE_ROOTFS} --initdb
Signature · 1 line
1.6.1.3
PATCH 55/70 rootfs_rpm: set target architecture and do not tell yum which arch we will use (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5391 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
classes/rootfs_rpm.bbclass +1 -3
@@ -44,7 +44,7 @@ fakeroot rootfs_rpm_do_rootfs () { set -x mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ - #echo "arm" > ${IMAGE_ROOTFS}/etc/rpm/platform + echo ${TARGET_ARCH} >${IMAGE_ROOTFS}/etc/rpm/platform # Generate an apprpriate yum.conf rm -rf ${YUMCONF}
@@ -57,8 +57,6 @@ logfile=/var/log2/yum.log exactarch=0 obsoletes=1 tolerant=1 -arch=arm -basearch=arm EOF
Signature · 1 line
1.6.1.3
PATCH 56/70 rootfs_rpm.bbclass: fix platform so rpm will be usable on device (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5432 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/rootfs_rpm.bbclass +1 -1
@@ -44,7 +44,7 @@ fakeroot rootfs_rpm_do_rootfs () { set -x mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ - echo ${TARGET_ARCH} >${IMAGE_ROOTFS}/etc/rpm/platform + echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform # Generate an apprpriate yum.conf rm -rf ${YUMCONF}
Signature · 1 line
1.6.1.3
PATCH 57/70 rootfs_rpm.bbclass: added code to generate images from feeds (from Poky)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5436 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/rootfs_rpm.bbclass | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
classes/rootfs_rpm.bbclass +14 -0
@@ -15,6 +15,7 @@ export YUM_ARCH_FORCE = "${TARGET_ARCH}" AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk" +RPM_PREPROCESS_COMMANDS = "" RPM_POSTPROCESS_COMMANDS = "rpm_insert_feeds_uris" rpm_insert_feeds_uris () {
@@ -42,6 +43,8 @@ rpm_insert_feeds_uris () { fakeroot rootfs_rpm_do_rootfs () { set -x + + ${RPM_PREPROCESS_COMMANDS} mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
@@ -222,3 +225,14 @@ install_all_locales() { fi } +python () { + import bb + if bb.data.getVar('BUILD_IMAGES_FROM_FEEDS', d, True): + flags = bb.data.getVarFlag('do_rootfs', 'recrdeptask', d) + flags = flags.replace("do_package_write_rpm", "") + flags = flags.replace("do_deploy", "") + flags = flags.replace("do_populate_staging", "") + bb.data.setVarFlag('do_rootfs', 'recrdeptask', flags, d) + bb.data.setVar('RPM_PREPROCESS_COMMANDS', "rpm_insert_feed_uris", d) + bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) +}
Signature · 1 line
1.6.1.3
PATCH 58/70 python: Fix -native package staging functions (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5104 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/python/python-iniparse-native_0.2.3.bb | 1 + packages/python/python-urlgrabber-native_3.1.0.bb | 1 + .../python/yum-metadata-parser-native_1.1.2.bb | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
packages/python/python-iniparse-native_0.2.3.bb +1 -0
@@ -5,5 +5,6 @@ RDEPENDS = "" do_stage() { BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} }
packages/python/python-urlgrabber-native_3.1.0.bb +1 -0
@@ -5,5 +5,6 @@ RDEPENDS = "" do_stage() { BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} }
packages/python/yum-metadata-parser-native_1.1.2.bb +1 -0
@@ -7,5 +7,6 @@ RDEPENDS = "" do_stage() { BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ + STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_BINDIR}/.. --install-data=${STAGING_DATADIR} }
Signature · 1 line
1.6.1.3
Re: [PATCH 58/70] python: Fix -native package staging functions (from Poky)
Am Mittwoch, den 04.03.2009, 16:53 +0100 schrieb Marcin Juszkiewicz:
Quoted 8 lines
From: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5104 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- packages/python/python-iniparse-native_0.2.3.bb | 1 + packages/python/python-urlgrabber-native_3.1.0.bb | 1 + .../python/yum-metadata-parser-native_1.1.2.bb | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
Comments to 13/70 apply here.
:M:
PATCH 59/70 package_rpm.bbclass: Don't use the system wide RPM macros. (from Poky)
In reply to Marcin JuszkiewiczFrom: Rob Bradford <[email protected]>
This fixes the build on Fedora 10 where the RPM system macros obliterate the value of BuildRoot that is set in the spec file.
--- classes/package_rpm.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/package_rpm.bbclass +1 -1
@@ -136,7 +136,7 @@ python write_specfile() { rpm_prep() { if [ ! -e ${WORKDIR}/rpmrc ]; then mkdir -p ${RPMBUILDPATH}/{SPECS,RPMS/{i386,i586,i686,noarch,ppc,mips,mipsel,arm},SRPMS,SOURCES,BUILD} - echo 'macrofiles:/usr/lib/rpm/macros:${WORKDIR}/macros' > ${WORKDIR}/rpmrc + echo 'macrofiles:${STAGING_DIR_NATIVE}/usr/lib/rpm/macros:${WORKDIR}/macros' > ${WORKDIR}/rpmrc echo '%_topdir ${RPMBUILDPATH}' > ${WORKDIR}/macros echo '%_repackage_dir ${WORKDIR}' >> ${WORKDIR}/macros fi
Signature · 1 line
1.6.1.3
PATCH 60/70 package_rpm.bbclass: Add support for postinst and preinst scripts (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5131 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package_rpm.bbclass | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
classes/package_rpm.bbclass +8 -3
@@ -24,6 +24,8 @@ python write_specfile() { "ROOT": "BuildRoot", "LICENSE": "License", "SECTION": "Group", + "pkg_postinst": "%post", + "pkg_preinst": "%pre", } root = bb.data.getVar('ROOT', d)
@@ -67,7 +69,8 @@ python write_specfile() { if out_vartranslate[var][0] == "%": continue val = bb.data.getVar(var, d, 1) - fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) + if val: + fd.write("%s\t: %s\n" % (out_vartranslate[var], val)) fd.write("AutoReqProv: no\n")
@@ -110,8 +113,10 @@ python write_specfile() { for var in out_vartranslate.keys(): if out_vartranslate[var][0] != "%": continue - fd.write(out_vartranslate[var] + "\n") - fd.write(bb.data.getVar(var, d) + "\n\n") + val = bb.data.getVar(var, d) + if val: + fd.write(out_vartranslate[var] + "\n") + fd.write(val + "\n\n") fd.write("%files\n") for file in files:
Signature · 1 line
1.6.1.3
PATCH 61/70 openssl-native: make sure that PACKAGES will be empty (proper way)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- packages/openssl/openssl-native_0.9.7g.bb | 1 + packages/openssl/openssl-native_0.9.7m.bb | 1 + packages/openssl/openssl-native_0.9.8g.bb | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
packages/openssl/openssl-native_0.9.7g.bb +1 -0
@@ -14,3 +14,4 @@ do_install() { : } +PACKAGES = ""
packages/openssl/openssl-native_0.9.7m.bb +1 -0
@@ -18,3 +18,4 @@ do_install() { : } +PACKAGES = ""
packages/openssl/openssl-native_0.9.8g.bb +1 -0
@@ -22,3 +22,4 @@ do_install() { : } +PACKAGES = ""
Signature · 1 line
1.6.1.3
PATCH 62/70 base.bbclass: Add read_subpkgdata_dict function (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky@5389 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/base.bbclass | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
classes/base.bbclass +13 -0
@@ -1061,6 +1061,19 @@ python read_subpackage_metadata () { bb.data.setVar(key, sdata[key], d) } + +# +# Collapse FOO_pkg variables into FOO +# +def read_subpkgdata_dict(pkg, d): + import bb + ret = {} + subd = read_pkgdatafile(get_subpkgedata_fn(pkg, d)) + for var in subd: + newvar = var.replace("_" + pkg, "") + ret[newvar] = subd[var] + return ret + # Make sure MACHINE isn't exported # (breaks binutils at least) MACHINE[unexport] = "1"
Signature · 1 line
1.6.1.3
PATCH 63/70 package.bbclass: Write out extra useful data into the pkgdata files (from Poky)
In reply to Marcin JuszkiewiczFrom: Richard Purdie <[email protected]>
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5388 311d38ba-8fff-0310-9ca6-ca027cbcb966
--- classes/package.bbclass | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
classes/package.bbclass +6 -0
@@ -483,6 +483,11 @@ python emit_pkgdata() { val = bb.data.getVar('%s_%s' % (var, pkg), d, 1) if val: f.write('%s_%s: %s\n' % (var, pkg, encode(val))) + return + val = bb.data.getVar('%s' % (var), d, 1) + if val: + f.write('%s: %s\n' % (var, encode(val))) + return packages = bb.data.getVar('PACKAGES', d, True) pkgdatadir = bb.data.getVar('PKGDATA_DIR', d, True)
@@ -503,6 +508,7 @@ python emit_pkgdata() { subdata_file = pkgdatadir + "/runtime/%s" % pkg sf = open(subdata_file, 'w') write_if_exists(sf, pkg, 'PN') + write_if_exists(sf, pkg, 'PV') write_if_exists(sf, pkg, 'PR') write_if_exists(sf, pkg, 'DESCRIPTION') write_if_exists(sf, pkg, 'RDEPENDS')
Signature · 1 line
1.6.1.3
PATCH 64/70 package_rpm.bbclass: fix indentation
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- classes/package_rpm.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/package_rpm.bbclass +1 -1
@@ -196,7 +196,7 @@ python do_package_rpm () { bb.data.update_data(localdata) basedir = os.path.join(os.path.dirname(root)) - pkgoutdir = os.path.join(outdir, bb.data.getVar('PACKAGE_ARCH', localdata, 1)) + pkgoutdir = os.path.join(outdir, bb.data.getVar('PACKAGE_ARCH', localdata, 1)) bb.mkdirhier(pkgoutdir) bb.data.setVar('OUTSPECFILE', os.path.join(workdir, "%s.spec" % pkg), localdata) # Save the value of RPMBUILD expanded into the new dictonary so any
Signature · 1 line
1.6.1.3
PATCH 65/70 rpm-native: add Python 2.6
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- packages/rpm/rpm_4.4.2.3.bb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
packages/rpm/rpm_4.4.2.3.bb +1 -0
@@ -97,6 +97,7 @@ do_configure () { def rpm_python_version(d): import os, bb staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 ) + if os.path.exists( "%s/python2.6" % staging_incdir ): return "2.6" if os.path.exists( "%s/python2.5" % staging_incdir ): return "2.5" if os.path.exists( "%s/python2.4" % staging_incdir ): return "2.4" if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3"
Signature · 1 line
1.6.1.3
Re: [PATCH 65/70] rpm-native: add Python 2.6
Am Mittwoch, den 04.03.2009, 16:53 +0100 schrieb Marcin Juszkiewicz:
Quoted 11 lines
From: Marcin Juszkiewicz <[email protected]>
--- packages/rpm/rpm_4.4.2.3.bb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)packages/rpm/rpm_4.4.2.3.bb +0
-0
packages/rpm/rpm_4.4.2.3.bb do_configure () { · line 103
Quoted 7 lines
packages/rpm/rpm_4.4.2.3.bb +1
-0@@ -97,6 +97,7 @@ do_configure () { def rpm_python_version(d): import os, bb staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 ) + if os.path.exists( "%s/python2.6" % staging_incdir ): return "2.6" if os.path.exists( "%s/python2.5" % staging_incdir ): return "2.5" if os.path.exists( "%s/python2.4" % staging_incdir ): return "2.4" if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3"
Comment to 08/70 applies here.
Signature · 1 line
:M:
Re: [PATCH 65/70] rpm-native: add Python 2.6
Quoted 3 lines · On Wednesday 04 of March 2009 18:20:09 Michael 'Mickey' Lauer wrote:
Quoted 1 line
packages/rpm/rpm_4.4.2.3.bb | 1 +
Comment to 08/70 applies here.
done
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
PATCH 66/70 package_rpm.bbclass: fix syntax errors
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- classes/package_rpm.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
classes/package_rpm.bbclass +2 -2
@@ -52,7 +52,7 @@ python write_specfile() { pass if not files and bb.data.getVar('ALLOW_EMPTY', d) != "1": from bb import note - note("Not creating empty archive for %s" % (bb.data.expand('${PKG}-${PV}-${PR}${DISTRO_PR}', d, True)) + note("Not creating empty archive for %s" % (bb.data.expand('${PKG}-${PV}-${PR}${DISTRO_PR}', d, True))) return # output .spec using this metadata store
@@ -107,7 +107,7 @@ python write_specfile() { write_dep_field('RDEPENDS', 'Requires') write_dep_field('RRECOMMENDS', 'Recommends') - fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True) + fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True)) fd.write("Summary\t: .\n") for var in out_vartranslate.keys():
Signature · 1 line
1.6.1.3
PATCH 68/70 libxml2-native: really enable Python extension
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- packages/libxml/libxml2-native.inc | 5 ++--- packages/libxml/libxml2-native_2.7.2.bb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-)
packages/libxml/libxml2-native.inc +2 -3
@@ -1,7 +1,6 @@ DESCRIPTION = "GNOME XML library" DEPENDS = "python-native" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/libxml2-${PV}" -PR = "r3" SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz" S = "${WORKDIR}/libxml2-${PV}"
@@ -9,10 +8,10 @@ S = "${WORKDIR}/libxml2-${PV}" inherit distutils-base autotools native pkgconfig EXTRA_OECONF = "\ - --with-python=${STAGING_INCDIR}/${PYTHON_MAJMIN} \ + --with-python=${PYTHON_DIR} \ --without-debug \ --without-legacy \ - --without-catalog \ + --with-catalog \ --without-docbook \ --with-c14n \ "
packages/libxml/libxml2-native_2.7.2.bb +1 -1
@@ -1,2 +1,2 @@ require libxml2-native.inc -PR = "r0" +PR = "r1"
Signature · 1 line
1.6.1.3
PATCH 69/70 package_rpm.bbclass: save RPROVIDES in packages
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
--- classes/package_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
classes/package_rpm.bbclass +1 -0
@@ -106,6 +106,7 @@ python write_specfile() { write_dep_field('RDEPENDS', 'Requires') write_dep_field('RRECOMMENDS', 'Recommends') + write_dep_field('RPROVIDES', 'Provides') fd.write("Release\t: %s\n" % bb.data.expand('${PR}${DISTRO_PR}', d, True)) fd.write("Summary\t: .\n")
Signature · 1 line
1.6.1.3
PATCH 70/70 rootfs_rpm.bbclass: remove two functions (need rewrite for RPM)
In reply to Marcin JuszkiewiczFrom: Marcin Juszkiewicz <[email protected]>
install_all_locales and remove_packaging_data_files functions were from rootfs_ipk.bbclass and need to be rewritten for RPM rootfs.
--- classes/package_rpm.bbclass | 2 +- classes/rootfs_rpm.bbclass | 40 +++++++++++----------------------------- 2 files changed, 12 insertions(+), 30 deletions(-)
classes/package_rpm.bbclass +1 -1
@@ -200,7 +200,7 @@ python do_package_rpm () { pkgoutdir = os.path.join(outdir, bb.data.getVar('PACKAGE_ARCH', localdata, 1)) bb.mkdirhier(pkgoutdir) bb.data.setVar('OUTSPECFILE', os.path.join(workdir, "%s.spec" % pkg), localdata) - # Save the value of RPMBUILD expanded into the new dictonary so any + # Save the value of RPMBUILD expanded into the new dictonary so any # changes in the compoents that make up workdir don't break packaging bb.data.setVar('RPMBUILD', bb.data.getVar("RPMBUILD", d, True), localdata) bb.data.setVar('RPMBUILDPATH', bb.data.getVar("RPMBUILDPATH", d, True), localdata)
classes/rootfs_rpm.bbclass +11 -29
@@ -2,7 +2,7 @@ # Creates a root filesystem out of rpm packages # -ROOTFS_PKGMANAGE = "rpm yum" +ROOTFS_PKGMANAGE = "rpm yum" ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts"
@@ -43,7 +43,7 @@ rpm_insert_feeds_uris () { fakeroot rootfs_rpm_do_rootfs () { set -x - + ${RPM_PREPROCESS_COMMANDS} mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
@@ -78,9 +78,9 @@ EOF echo "gpgcheck=0" >> ${YUMCONF} echo "" >> ${YUMCONF} #priority=$(expr $priority + 5) - + # Copy the packages into the target image - # Ugly ugly ugly but rpm is braindead and can't see outside the chroot + # Ugly ugly ugly but rpm is braindead and can't see outside the chroot # when installing :( cp -r ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/ done
@@ -88,7 +88,7 @@ EOF #mkdir -p ${IMAGE_ROOTFS}/var/lib/rpm #rpm --root ${IMAGE_ROOTFS} --initdb - #rpm --root ${IMAGE_ROOTFS} --dbpath ${IMAGE_ROOTFS}/var/lib/rpm -ihv --nodeps --ignoreos + #rpm --root ${IMAGE_ROOTFS} --dbpath ${IMAGE_ROOTFS}/var/lib/rpm -ihv --nodeps --ignoreos #rpm -ihv --root ${IMAGE_ROOTFS} ${PACKAGE_INSTALL} #package_update_index_rpm
@@ -176,7 +176,7 @@ EOF # remove no longer used yum.conf rm -f ${IMAGE_ROOTFS}/etc/yum.conf - log_check rootfs + log_check rootfs } rootfs_rpm_log_check() {
@@ -185,44 +185,26 @@ rootfs_rpm_log_check() { lf_txt="`cat $lf_path`" for keyword_die in "Cannot find package" "exit 1" ERR Fail - do + do if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1 then echo "log_check: There were error messages in the logfile" echo -e "log_check: Matched keyword: [$keyword_die]\n" echo "$lf_txt" | grep -v log_check | grep -C 5 -i "$keyword_die" echo "" - do_exit=1 + do_exit=1 fi done - test "$do_exit" = 1 && exit 1 + test "$do_exit" = 1 && exit true } remove_packaging_data_files() { - rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ +# empty for now } install_all_locales() { - - PACKAGES_TO_INSTALL="" - - INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` - - for pkg in $INSTALLED_PACKAGES - do - for lang in ${IMAGE_LOCALES} - do - if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 2 ] - then - PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang" - fi - done - done - if [ "$PACKAGES_TO_INSTALL" != "" ] - then - opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL - fi +# empty for now } python () {
Signature · 1 line
1.6.1.3
I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
70 patches on the list????
I presume somebody is making a point with this. Yes, ok, _I_ get it - reading the emails on the list using a cell phone and gprs connection and tiny screen REALLY REALLY Reallly SUCKS when the mailing list also used as a patch review list.
Got it.
Deleted the lot; I can't read them on a cell phone, even if I had the patience to struggle through 120+ emails on THIS list alone today!
Let's split this list. I can't be the only person trying to keep up on a poor connection via a cell phone.
-Mike (mwester)
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Quoted 6 lines · Mike (mwester)
70 patches on the list????
I presume somebody is making a point with this. Yes, ok, _I_ get it - reading the emails on the list using a cell phone and gprs connection and tiny screen REALLY REALLY Reallly SUCKS when the mailing list also used as a patch review list.
Actually, the point is the opposite. Spamming the list where everyone is means bugs get caught and working-but-incorrect things get pointed out.
Quoted 7 lines
Got it.
Deleted the lot; I can't read them on a cell phone, even if I had the patience to struggle through 120+ emails on THIS list alone today!
Let's split this list. I can't be the only person trying to keep up on a poor connection via a cell phone.
Nothing personal, really, but when I'm on a limited connection I simply ignore certain lists.
Signature · 1 line
Tom Rini
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Wasn't suggested/agreed to post patches for review on 'openembedded-commits' ? One could just forward the cover-letter to this ML to get attention...
My 2 cents
Andrea
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Hello!
Quoted 3 lines
Wasn't suggested/agreed to post patches for review on 'openembedded-commits' ? One could just forward the cover-letter to this ML to get attention...
... and subscribe all users of oe-devel to oe-commits then.
Signature · 1 line
Yuri Bushmelev
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
In reply to Andrea AdamiQuoted 1 line · Andrea Adami
Wasn't suggested/agreed to post patches for review on 'openembedded-commits' ?
No, patches are human generated and need to get posted to *all* developers.
regards,
Koen
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
In reply to Andrea AdamiQuoted 2 lines · Andrea Adami
Wasn't suggested/agreed to post patches for review on 'openembedded-commits' ? One could just forward the cover-letter to this ML to get attention...
The problem with this is not many people will sign up for the list. We really do need every pair of eyes looking at stuff. Even if you do not feel like you really know the stuff, looking it over is a good way to learn. I even caught a very small mistake in one of Mickey's submission that was far from what I know a lot about.
Philip
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
In reply to Tom RiniQuoted 4 lines · Tom Rini
Quoted 2 lines · Mike (mwester)
70 patches on the list????
Quoted 8 lines
Quoted 4 lines
I presume somebody is making a point with this. Yes, ok, _I_ get it - reading the emails on the list using a cell phone and gprs connection and tiny screen REALLY REALLY Reallly SUCKS when the mailing list also used as a patch review list.
Actually, the point is the opposite. Spamming the list where everyone is means bugs get caught and working-but-incorrect things get pointed out.
Yes, in the *NORMAL* case that would be true. Seven patches - fine, that would work. 10x more than that? - that's clearly a case where clear thinking would put the changes on a branch and have it reviewed there. (Which is exactly what recent discussions here have been about, hence my conclusion that this patch-mega-bomb was intended to make a point about that discussion.)
70 patches? Come on, who's going to extract and apply 70 patches from email? Not likely!
Mike (mwester)
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Quoted 2 lines · Mike (mwester)
70 patches? Come on, who's going to extract and apply 70 patches from email? Not likely!
You're missing the point completely. Patches go to the mailinglist for review. You can choose to apply and test them if you wish. If you want to test the 69 patches, you pull the branch marcin provided. This is done so that patches get many eyes on them without people needed to use git, and people wanting to test can do one of the following:
* pull the branch
or
* use patchwork to create a bundle
or
* apply patches by hand
regards,
Koen
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Quoted 2 lines · Koen Kooi
This is done so that patches get many eyes on them without people needed to use git, and people wanting to test can do one of the following:
Yes, fine - but the point being made is that when a single day contains 120+ emails, of which well over 70 are part of the same mega-patch, then this policy actually does the *opposite* of what is intended --- people are simply going to look at the sheer magnitude of that, and exercise their ability to delete the entire inbox.
How does _that_ help with the reviewing? Wouldn't it have been better to point to a branch with an email outlining the nature and impact of the changes?
Or if we really want to have this in everyone's mailbox, wouldn't it be better to break it up over multiple days?
(And yes, I was one who favored the notion of reviewing patches on the mailing list -- and I still do -- but I now feel the pain caused by this policy when it is taken to the extreme, and I admit that my thinking was perhaps naive.)
-Mike (mwester)
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Quoted 14 lines · Mike (mwester)
Quoted 2 lines · Koen Kooi
This is done so that patches get many eyes on them without people needed to use git, and people wanting to test can do one of the following:
Yes, fine - but the point being made is that when a single day contains 120+ emails, of which well over 70 are part of the same mega-patch, then this policy actually does the *opposite* of what is intended --- people are simply going to look at the sheer magnitude of that, and exercise their ability to delete the entire inbox.
How does _that_ help with the reviewing? Wouldn't it have been better to point to a branch with an email outlining the nature and impact of the changes?
Quoted 7 lines
Or if we really want to have this in everyone's mailbox, wouldn't it be better to break it up over multiple days?
(And yes, I was one who favored the notion of reviewing patches on the mailing list -- and I still do -- but I now feel the pain caused by this policy when it is taken to the extreme, and I admit that my thinking was perhaps naive.)
I agree 70 patches is a bit much, but the principle still holds :) But I don't think sending 70 patches will be a daily occurrance, and we now that in the future patchsets need to be broken up more, or squashed together. It's nice that we can track the typos poky developers made and how fast they fixed it, but IMO those patches should be squashed together when possible.
regards,
Koen
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
In reply to Mike (mwester)Quoted 20 lines · Mike (mwester)
Quoted 11 lines · Tom Rini
Quoted 6 lines · Mike (mwester)
70 patches on the list????
I presume somebody is making a point with this. Yes, ok, _I_ get it - reading the emails on the list using a cell phone and gprs connection and tiny screen REALLY REALLY Reallly SUCKS when the mailing list also used as a patch review list.
Actually, the point is the opposite. Spamming the list where everyone is means bugs get caught and working-but-incorrect things get pointed out.
Yes, in the *NORMAL* case that would be true. Seven patches - fine, that would work. 10x more than that? - that's clearly a case where clear thinking would put the changes on a branch and have it reviewed there. (Which is exactly what recent discussions here have been about, hence my conclusion that this patch-mega-bomb was intended to make a point about that discussion.)
Quoted 2 lines
70 patches? Come on, who's going to extract and apply 70 patches from email? Not likely!
I would also suggest that before sending large patch sets to the list, use git rebase --interactive to combine patches. For review we want to see what the changes are, not how you created the changes.
I do know some people do not like to lose their history though.
And I hope that 70 patches is not a regular occurrence.
Philip
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Is the policy now to send *all* patches to the list?
Or only the critical ones (e.g. the ones that affect the build system and core functionality)?
Frans.
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
Am Donnerstag, den 05.03.2009, 16:00 +0100 schrieb Frans Meulenbroeks:
Quoted 3 lines
Is the policy now to send *all* patches to the list?
Or only the critical ones (e.g. the ones that affect the build system and core functionality)?
Only critical ones. Otherwise we might as well stop developing at all.
:M:
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
2009/3/5 Michael 'Mickey' Lauer <[email protected]>:
Quoted 7 lines
Am Donnerstag, den 05.03.2009, 16:00 +0100 schrieb Frans Meulenbroeks:
Quoted 3 lines
Is the policy now to send *all* patches to the list?
Or only the critical ones (e.g. the ones that affect the build system and core functionality)?Only critical ones. Otherwise we might as well stop developing at all.
Good. Then we're on the same page.
(and please bear with me if I do something wrong :-) )
Frans
Re: I got the point - did everyone one else? [was: Re: [PATCH 70/70]...]
In reply to Mike (mwester)Quoted 4 lines · On Thursday 05 of March 2009 13:33:39 Mike (mwester) wrote:
Yes, in the NORMAL case that would be true. Seven patches - fine, that would work. 10x more than that? - that's clearly a case where clear thinking would put the changes on a branch and have it reviewed there.
I sent hrw/poky-rpm branch for review on 19 November 2008. It contained nearly same set of patches but needed some work. **No one** (except Koen) looked at it. Thats why I sent whole branch as patchset to ML. During first hours it got at least 3 persons who read patches and gave ideas how to improve their quality. Tom Rini even started builds to check does everything works on his build machine.
And yes - patchset should be squashed but I am tired of that branch because I work on it since start of November.
Quoted 2 lines
70 patches? Come on, who's going to extract and apply 70 patches from email? Not likely!
And no one has to - whole patchset is available as GIT branch and I wrote about it in first mail.
The good thing is that I do not plan any such big merges in near future.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Quoted 11 lines · Marcin Juszkiewicz
As some of you know Poky has RPM support written. It consists few parts:
- creating RPM packages
- creating rootfs from RPM packages
- using RPM/YUM on device to managing packages (installing from local and remote packagesI had one attempt to get it merged before but it had some bugs so I started from scratch. Extracting required patches from pile of 1800 Poky changsets took me some time.
Quoted 5 lines
With this patchset I managed to build 'minimal-image' for AT91SAM9263-EK machine. As distribution I used 'minimal' to get something other then Angstrom.
So please review it (patch 67 is already merged in .dev tree).
patch 1 thru 30 look OK to go in. The python recipes aren't up to date with the current state of distutils.bbclass, but the effect is harmless. I'll try to have a look at 31-70 later.
regards,
Koen
Impressive work, both from the original author and you.
I don't know much about rpm or yum so I can't really comment on that. I didn't see any particular problems other than commented on.
Signature · 1 line
:M:
Quoted 1 line · On Wednesday 04 of March 2009 18:21:44 Michael 'Mickey' Lauer wrote:
Impressive work, both from the original author and you.
Most of work was done by Richard Purdie, then I had to check how it works and make it work also on device. Some changes were done by other OpenedHand guys. My patchset was result of digging in over thousand of Poky changes and some of them were tweaked a bit to apply to current OE.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Quoted 4 lines · Marcin Juszkiewicz
Quoted 1 line · On Wednesday 04 of March 2009 18:21:44 Michael 'Mickey' Lauer wrote:
Impressive work, both from the original author and you.
Most of work was done by Richard Purdie, then I had to check how it works and make it work also on device. Some changes were done by other OpenedHand guys. My patchset was result of digging in over thousand of Poky changes and some of them were tweaked a bit to apply to current OE.
My only suggestion is git rebase --interactive origin :)
Philip
Quoted 15 lines · Marcin Juszkiewicz
As some of you know Poky has RPM support written. It consists few parts:
- creating RPM packages
- creating rootfs from RPM packages
- using RPM/YUM on device to managing packages (installing from local and remote packagesI had one attempt to get it merged before but it had some bugs so I started from scratch. Extracting required patches from pile of 1800 Poky changsets took me some time.
With this patchset I managed to build 'minimal-image' for AT91SAM9263-EK machine. As distribution I used 'minimal' to get something other then Angstrom.
Quoted 5 lines
So please review it (patch 67 is already merged in .dev tree).
It is also visible on Web: http://cgit.openembedded.net/cgit.cgi?url=openembedded/log/&h=hrw/poky-merge/add-rpm-packages-support
Fetch via: git pull hrw/poky-merge/add-rpm-packages-support
OK. I got a failure that I'm not quite sure where it's from, other than rootfs_rpm.bbclass. Log is http://pastebin.com/d64e6cd01
MACHINE=nokia800 DISTRO=minimal and unrelated to BB_NUMBER_THREADS / PARALLEL_MAKE.
Signature · 1 line
Tom Rini
Quoted 19 lines · Tom Rini
Quoted 17 lines · Marcin Juszkiewicz
As some of you know Poky has RPM support written. It consists few parts:
- creating RPM packages
- creating rootfs from RPM packages
- using RPM/YUM on device to managing packages (installing from local and remote packagesI had one attempt to get it merged before but it had some bugs so I started from scratch. Extracting required patches from pile of 1800 Poky changsets took me some time.
With this patchset I managed to build 'minimal-image' for AT91SAM9263-EK machine. As distribution I used 'minimal' to get something other then Angstrom.
So please review it (patch 67 is already merged in .dev tree).
Quoted 8 lines
Quoted 3 lines
It is also visible on Web: http://cgit.openembedded.net/cgit.cgi?url=openembedded/log/&h=hrw/poky-merge/add-rpm-packages-support
Fetch via: git pull hrw/poky-merge/add-rpm-packages-support
OK. I got a failure that I'm not quite sure where it's from, other than rootfs_rpm.bbclass. Log is http://pastebin.com/d64e6cd01
MACHINE=nokia800 DISTRO=minimal and unrelated toBB_NUMBER_THREADS/PARALLEL_MAKE.
The problem is that python-sqlite-native doesn't exist and I don't have that installed on my system.
Signature · 1 line
Tom Rini
Rebased, squashed and pushed into org.openembedded.dev.
Now I can forget that RPM packages exists :)
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz