Skip to contentSkip to conversation

bug fix for sat-solver and zypper

PATCH RESEND Superseded Qing He 2 participants 3 messages Apr 15, 2011 – Apr 18, 2011

lore
Share & tools
lore

Qing He

author
#0 lore raw

cover bug fix for sat-solver and zypper

From: Qing He <[email protected]>

This patch fix the issue when installing and handling 'all' packages in zypper.

Resend to the right list, also with Upstream-Status updated.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: qhe/poky
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=qhe/poky

Thanks,
Qing He <[email protected]>
---

Qing He (1):
sat-solver: fix arch=all packages

 .../sat-solver/sat-solver/cmake.patch              |    2 +
 .../sat-solver/sat-solver/db5.patch                |    2 +
 .../sat-solver/sat-solver_obsolete.patch           |    2 +
 .../sat-solver/sat-solver/sat-solver_poky.patch    |   21 ++++++++++++++++++++
 .../sat-solver/sat-solver/sat-solver_rpm5.patch    |    2 +
 meta/recipes-extended/sat-solver/sat-solver_git.bb |    4 +-
 6 files changed, 31 insertions(+), 2 deletions(-)
author
#1 lore raw

PATCH 1/1 sat-solver: fix arch=all packages

From: Qing He <[email protected]>

add a new options to set noarch archs as all so platform independent packages can be recognized and installed.

fixes [YOCTO #993]

---
 .../sat-solver/sat-solver/cmake.patch              |    2 +
 .../sat-solver/sat-solver/db5.patch                |    2 +
 .../sat-solver/sat-solver_obsolete.patch           |    2 +
 .../sat-solver/sat-solver/sat-solver_poky.patch    |   21 ++++++++++++++++++++
 .../sat-solver/sat-solver/sat-solver_rpm5.patch    |    2 +
 meta/recipes-extended/sat-solver/sat-solver_git.bb |    4 +-
 6 files changed, 31 insertions(+), 2 deletions(-)
meta/recipes-extended/sat-solver/sat-solver/cmake.patch +2 -0
index 52319f0..c1ec86a 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Inappropriate [configuration]
+
 Enable debugging for all builds
 not building docs (need oxygen)
 
meta/recipes-extended/sat-solver/sat-solver/db5.patch +2 -0
index 98f322f..6b67912 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Pending
+
 RPM no longer includes an internal version of db, it now relies on the system
 version.  The system version in Poky is available at /usr/include/db51
 
meta/recipes-extended/sat-solver/sat-solver/sat-solver_obsolete.patch +2 -0
index 7685057..60483e9 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Pending
+
 Fix obsolete settings with RPM5.
 
 The following patch is from Michael Schroeder <[email protected]>
meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch +21 -0
index b762bac..c8e54f5 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Inappropriate [distro specific]
+
 Fix "arch" integration with Poky.
 
 Add a missing "any" architecture type and update the semantics to use it.
@@ -5,8 +7,27 @@ Add a missing "any" architecture type and update the semantics to use it.
 Disable the built-in archpolicies structure, and replace it with one
 we generate in the recipe.
 
+Also add poky semantics option in CMake.
+
 Signed-off-by: Mark Hatle <[email protected]>
+Signed-off-by: Qing He <[email protected]>
 
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 443281e..4456a87 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -45,6 +45,11 @@ MESSAGE(STATUS "Building for Debian")
+ ADD_DEFINITIONS( -DDEBIAN -DDEBIAN_SEMANTICS)
+ ENDIF ( DEBIAN )
+ 
++IF ( POKY )
++MESSAGE(STATUS "Building for Poky")
++ADD_DEFINITIONS( -DPOKY -DPOKY_SEMANTICS)
++ENDIF ( POKY )
++
+ IF ( MULTI_SEMANTICS )
+ MESSAGE(STATUS "Enabling multi dist support")
+ ADD_DEFINITIONS( -DMULTI_SEMANTICS)
 diff --git a/src/knownid.h b/src/knownid.h
 index 7757ae0..4b8bee7 100644
 --- a/src/knownid.h
meta/recipes-extended/sat-solver/sat-solver/sat-solver_rpm5.patch +2 -0
index 1776f6c..d59c513 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Pending
+
 Add RPM5 configuration support
 
 Update the cmake configuration to detect additional files needed by RPM5.
meta/recipes-extended/sat-solver/sat-solver_git.bb +2 -2
index a693776..0d5a5e6 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.BSD;md5=62272bd11c97396d4aaf1c41bc11f7d8"
 DEPENDS = "libcheck rpm zlib expat db"
 
 PV = "0.0-git${SRCPV}"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "git://gitorious.org/opensuse/sat-solver.git;protocol=git \
            file://sat-solver_rpm5.patch \
@@ -19,7 +19,7 @@ SRC_URI = "git://gitorious.org/opensuse/sat-solver.git;protocol=git \
 
 S = "${WORKDIR}/git"
 
-EXTRA_OECMAKE += "-DLIB=lib -DRPM5=RPM5"
+EXTRA_OECMAKE += "-DLIB=lib -DRPM5=RPM5 -DPOKY=POKY"
 
 inherit cmake pkgconfig
 
Signature · 1 line
1.7.0
#2 lore raw

Re: [PATCH 1/1] sat-solver: fix arch=all packages

Hi Qing,

meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch Add a missing "any" architecture type and update the semantics to use it. · line 26

Quoted 12 lines · Qing He
meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch +12 -0
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 443281e..4456a87 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -45,6 +45,11 @@ MESSAGE(STATUS "Building for Debian")
+ ADD_DEFINITIONS( -DDEBIAN -DDEBIAN_SEMANTICS)
+ ENDIF ( DEBIAN )
+ 
++IF ( POKY )
++MESSAGE(STATUS "Building for Poky")
++ADD_DEFINITIONS( -DPOKY -DPOKY_SEMANTICS)
++ENDIF ( POKY )

We're trying to move away from the Poky branding. Could we use OECORE in this patch instead please?

Cheers,

Richard