Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Marcin Juszkiewicz <openembedded@haerwu.biz>,
	Richard Purdie <richard@openedhand.com>
Subject: Re: [PATCH 18/70] yum-native: Add some hacks to make yum work better in the cross build case (from Poky)
Date: Tue, 10 Mar 2009 00:58:10 -0700	[thread overview]
Message-ID: <200903100058.15789.raj.khem@gmail.com> (raw)
In-Reply-To: <1236182004-4523-19-git-send-email-openembedded@haerwu.biz>

[-- Attachment #1: Type: text/plain, Size: 4256 bytes --]

On Wednesday 04 March 2009 07:52:33 Marcin Juszkiewicz wrote:
> From: Richard Purdie <richard@openedhand.com>
>
> 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
>
> diff --git a/packages/yum/yum-native/hacks.patch
> b/packages/yum/yum-native/hacks.patch new file mode 100644
> index 0000000..0486b5f
> --- /dev/null
> +++ b/packages/yum/yum-native/hacks.patch
> @@ -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"

Does this mean that it will only work for arm ? It would be nice if it could 
work for other arches too.

> +     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"
> ++

Ditto as above.

> +     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):
> diff --git a/packages/yum/yum-native_3.2.18.bb
> b/packages/yum/yum-native_3.2.18.bb index d3098cc..03e54d5 100644
> --- a/packages/yum/yum-native_3.2.18.bb
> +++ b/packages/yum/yum-native_3.2.18.bb
> @@ -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"

-- 
Khem Raj

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

  reply	other threads:[~2009-03-10 18:40 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 15:52 Merging RPM support from Poky Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 01/70] rpm: drop 4.4 Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 02/70] rpm/rpm-native: Add recipe for 4.4.2.3 (from Poky) Marcin Juszkiewicz
2009-03-04 19:17   ` Tom Rini
2009-03-04 20:28     ` Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 03/70] rpm: Patch out some Makefile strangeness causing build failures " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 04/70] rpm: Enable python extensions and improve cross compiling patches " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 05/70] rpm: Tweak patches to remove popt problem " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 06/70] rpm: Add recommends support from suse rpm patches " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 07/70] rpm-native: Set varprefix to get the rpm database in a sane location " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 08/70] rpm: Handle PYTHONVER differently in EXTRA_OECONF to stop gettext/uclibc failures during parsing " Marcin Juszkiewicz
2009-03-04 17:11   ` Michael 'Mickey' Lauer
2009-03-04 19:29     ` Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 09/70] rpm: Add missing patches " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 10/70] rpm: Add python module packaging " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 11/70] beecrypt: get patch from Poky to fix building on 64bit machines Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 12/70] Drop pointless rpm_core class. (from Poky) Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 13/70] Add python-urlgrabber, python-iniparser, yum-metadata-parser and native varients " Marcin Juszkiewicz
2009-03-04 17:14   ` Michael 'Mickey' Lauer
2009-03-04 19:58     ` Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 14/70] Add yum-native and createrepo " Marcin Juszkiewicz
2009-03-04 19:35   ` Tom Rini
2009-03-04 19:53   ` Tom Rini
2009-03-04 20:26     ` Tom Rini
2009-03-04 20:29     ` Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 15/70] createrepo-native: Add fix for empty data fields when creating repositories " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 16/70] createrepo-native: added dependency on Python " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 17/70] yum-native: Add patch to fix install paths " Marcin Juszkiewicz
2009-03-10  7:59   ` Khem Raj
2009-03-04 15:52 ` [PATCH 18/70] yum-native: Add some hacks to make yum work better in the cross build case " Marcin Juszkiewicz
2009-03-10  7:58   ` Khem Raj [this message]
2009-03-10 10:54     ` Richard Purdie
2009-03-04 15:52 ` [PATCH 19/70] yum-native: add depends on libxml2-native " Marcin Juszkiewicz
2009-03-10  7:59   ` Khem Raj
2009-03-04 15:52 ` [PATCH 20/70] yum-native: Add NOPOST and NOTRIGGERS flags when installing packages " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 21/70] yum-native: Add extract-postinst.awk script for use during rootfs generation " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 22/70] yum-metadata-parser-native: depend on GLib 2.0 native " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 23/70] yum: Add yum-install-recommends.py script to handle installing Recommends " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 24/70] yum: added 3.2.18 " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 25/70] yum-metadata-parser: fixed dependencies " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 26/70] yum: do not hardcode arm architecture - rootfs_rpm provide arch info " Marcin Juszkiewicz
2009-03-10  8:02   ` Khem Raj
2009-03-04 15:52 ` [PATCH 27/70] yum: Don't apply hacks.patch, its only needed for the native version " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 28/70] yum-native: Fix hacks.patch to handle architecture detection issues " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 29/70] yum: fixed packaging " Marcin Juszkiewicz
2009-03-04 17:17   ` Michael 'Mickey' Lauer
2009-03-04 15:52 ` [PATCH 30/70] yum: added all required Python modules to dependencies " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 31/70] fakechroot: fix duplicated readlink " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 32/70] package_rpm.bbclass: Update against recent packaging changes and start to implement dependency handling. " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 33/70] Add rootfs_rpm.bbclass, a start at image generation from rpms. Its not expected to be entirely functional yet. " Marcin Juszkiewicz
2009-03-04 17:42   ` Tom Rini
2009-03-04 17:47   ` Tom Rini
2009-03-04 15:52 ` [PATCH 34/70] rootfs_rpm.bbclass: ship rpm and yum in target images " Marcin Juszkiewicz
2009-03-04 15:52 ` [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 " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 36/70] package_rpm.bbclass: Stop autogenerated dependencies for now, its not functioning correctly " Marcin Juszkiewicz
2009-03-10  8:06   ` Khem Raj
2009-03-04 15:52 ` [PATCH 37/70] package_rpm.bbclass: files needs to start from / " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 38/70] package_rpm.bbclass: Fix problems with package version with '-' in the version (replace with '+'), improve the Requires and Recommends generation code " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 39/70] package_rpm.bbclass: Add support for postinst and preinst scripts " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 40/70] package_rpm.bbclass: Improve handling of '-' characters in Requires and Recommends fields " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 41/70] package_rpm.bbclass: Fix package version fixing for PKG renamed packages " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 42/70] package_rpm.bbclass: Fix dependency rebuilding bug " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 43/70] package_rpm.bbclass: save value of RPMBUILDPATH as it is needed for packaging " Marcin Juszkiewicz
2009-03-04 15:52 ` [PATCH 44/70] rootfs_rpm.bbclass: Remove the feed directory before packaging the image " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 45/70] rootfs_rpm.bbclass: Add basic postinstall handling during image creation " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 46/70] rootfs_rpm.bbclass: Fixup broken symlinks due to fakechroot and run any leftover postinstalls on real hardware at first boot " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 47/70] rootfs_rpm.bbclass: Add recommends handling " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 48/70] rootfs_rpm.bbclass: Set YUM_ARCH_FORCE " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 49/70] rootfs_rpm.bbclass: remove lock files to get rpm working on device " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 50/70] rootfs_rpm.bbclass: remove temporary yum config - rootfs has one from yum package " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 51/70] rootfs_rpm.bbclass: added generation of feed entries " Marcin Juszkiewicz
2009-03-04 17:43   ` Tom Rini
2009-03-04 15:53 ` [PATCH 52/70] classes: Split rpm feeds by PACKAGE_ARCH " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 53/70] packaged-staging.bbclass: Add rpm package coverage " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 54/70] rootfs_rpm.bbclass: use more efficient way to copy packages " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 55/70] rootfs_rpm: set target architecture and do not tell yum which arch we will use " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 56/70] rootfs_rpm.bbclass: fix platform so rpm will be usable on device " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 57/70] rootfs_rpm.bbclass: added code to generate images from feeds " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 58/70] python: Fix -native package staging functions " Marcin Juszkiewicz
2009-03-04 17:19   ` Michael 'Mickey' Lauer
2009-03-04 15:53 ` [PATCH 59/70] package_rpm.bbclass: Don't use the system wide RPM macros. " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 60/70] package_rpm.bbclass: Add support for postinst and preinst scripts " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 61/70] openssl-native: make sure that PACKAGES will be empty (proper way) Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 62/70] base.bbclass: Add read_subpkgdata_dict function (from Poky) Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 63/70] package.bbclass: Write out extra useful data into the pkgdata files " Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 64/70] package_rpm.bbclass: fix indentation Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 65/70] rpm-native: add Python 2.6 Marcin Juszkiewicz
2009-03-04 17:20   ` Michael 'Mickey' Lauer
2009-03-04 19:30     ` Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 66/70] package_rpm.bbclass: fix syntax errors Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 68/70] libxml2-native: really enable Python extension Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 69/70] package_rpm.bbclass: save RPROVIDES in packages Marcin Juszkiewicz
2009-03-04 15:53 ` [PATCH 70/70] rootfs_rpm.bbclass: remove two functions (need rewrite for RPM) Marcin Juszkiewicz
2009-03-05  4:06   ` I got the point - did everyone one else? [was: Re: [PATCH 70/70]...] Mike (mwester)
2009-03-05  4:47     ` Tom Rini
2009-03-05  8:45       ` Andrea Adami
2009-03-05  9:26         ` Yuri Bushmelev
2009-03-05 11:35         ` Koen Kooi
2009-03-05 13:56         ` Philip Balister
2009-03-05 12:33       ` Mike (mwester)
2009-03-05 12:49         ` Koen Kooi
2009-03-05 13:20           ` Mike (mwester)
2009-03-05 13:57             ` Koen Kooi
2009-03-05 14:03         ` Philip Balister
2009-03-05 15:00           ` Frans Meulenbroeks
2009-03-05 17:15             ` Michael 'Mickey' Lauer
2009-03-05 17:26               ` Frans Meulenbroeks
2009-03-05 15:08         ` Marcin Juszkiewicz
2009-03-04 16:44 ` Merging RPM support from Poky Koen Kooi
2009-03-04 17:21 ` Michael 'Mickey' Lauer
2009-03-04 17:29   ` Marcin Juszkiewicz
2009-03-04 18:21     ` Philip Balister
2009-03-04 23:00 ` Tom Rini
2009-03-10 16:46   ` Tom Rini
2009-03-19 15:17 ` Marcin Juszkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200903100058.15789.raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded@haerwu.biz \
    --cc=richard@openedhand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox