* [PATCH 1/2] sat-solver: fix arch=all packages
2011-04-25 9:49 [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Qing He
@ 2011-04-25 9:49 ` Qing He
2011-04-25 9:49 ` [PATCH 2/2] quilt: fix test for target build Qing He
2011-05-06 22:37 ` [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Qing He @ 2011-04-25 9:49 UTC (permalink / raw)
To: poky
From: Qing He <qing.he@intel.com>
add a new options to set noarch archs as all so platform independent
packages can be recognized and installed.
fixes [YOCTO #993]
Signed-off-by: Qing He <qing.he@intel.com>
---
...sat-solver_poky.patch => sat-solver_core.patch} | 27 +++++++++++++++++--
meta/recipes-extended/sat-solver/sat-solver_git.bb | 16 ++++++------
2 files changed, 32 insertions(+), 11 deletions(-)
rename meta/recipes-extended/sat-solver/sat-solver/{sat-solver_poky.patch => sat-solver_core.patch} (81%)
diff --git a/meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch b/meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch
similarity index 81%
rename from meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch
rename to meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch
index b762bac..11bf5b0 100644
--- a/meta/recipes-extended/sat-solver/sat-solver/sat-solver_poky.patch
+++ b/meta/recipes-extended/sat-solver/sat-solver/sat-solver_core.patch
@@ -1,3 +1,5 @@
+Upstream-Status: Inappropriate [distribution]
+
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 <mark.hatle@windriver.com>
+Signed-off-by: Qing He <qing.he@intel.com>
+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 ( OE_CORE )
++MESSAGE(STATUS "Building for OE core")
++ADD_DEFINITIONS( -DOE_CORE -DOE_CORE_SEMANTICS)
++ENDIF ( OE_CORE )
++
+ 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
@@ -27,7 +48,7 @@ index 55c8677..3356ff8 100644
}
/* we allow changes to/from noarch */
-+#ifdef POKY_SEMANTICS
++#ifdef OE_CORE_SEMANTICS
+ if (a1 == a2 ||
+ a1 == ARCH_NOARCH || a2 == ARCH_NOARCH ||
+ a1 == ARCH_ANY || a2 == ARCH_ANY ||
@@ -86,7 +107,7 @@ index 34a14a3..2d7cd70 100644
- 0
-};
+/* Provide the const char *archpolicies structure */
-+#include "poky-arch.h"
++#include "core-arch.h"
void
pool_setarch(Pool *pool, const char *arch)
@@ -97,7 +118,7 @@ index 34a14a3..2d7cd70 100644
-#ifndef DEBIAN_SEMANTICS
- id = ARCH_NOARCH;
-#else
-+#if defined(DEBIAN_SEMANTICS) || defined(POKY_SEMANTICS)
++#if defined(DEBIAN_SEMANTICS) || defined(OE_CORE_SEMANTICS)
id = ARCH_ALL;
+#else
+ id = ARCH_NOARCH;
diff --git a/meta/recipes-extended/sat-solver/sat-solver_git.bb b/meta/recipes-extended/sat-solver/sat-solver_git.bb
index a693776..2d4d299 100644
--- a/meta/recipes-extended/sat-solver/sat-solver_git.bb
+++ b/meta/recipes-extended/sat-solver/sat-solver_git.bb
@@ -7,19 +7,19 @@ 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 \
file://sat-solver_obsolete.patch \
file://cmake.patch \
file://db5.patch \
- file://sat-solver_poky.patch \
+ file://sat-solver_core.patch \
"
S = "${WORKDIR}/git"
-EXTRA_OECMAKE += "-DLIB=lib -DRPM5=RPM5"
+EXTRA_OECMAKE += "-DLIB=lib -DRPM5=RPM5 -DOE_CORE=OE_CORE"
inherit cmake pkgconfig
@@ -38,18 +38,18 @@ do_archgen () {
INSTALL_PLATFORM_ARCHS="$each_arch $INSTALL_PLATFORM_ARCHS"
done
- echo "/* Automatically generated by the sat-solver recipe */" > src/poky-arch.h
- echo "const char *archpolicies[] = {" >> src/poky-arch.h
+ echo "/* Automatically generated by the sat-solver recipe */" > src/core-arch.h
+ echo "const char *archpolicies[] = {" >> src/core-arch.h
set -- $INSTALL_PLATFORM_ARCHS
save_IFS=$IFS
IFS=:
- while [ $# -gt 0 ]; do echo " \"$1\", "\""$*"\", >> src/poky-arch.h ; shift; done
+ while [ $# -gt 0 ]; do echo " \"$1\", "\""$*"\", >> src/core-arch.h ; shift; done
IFS=$save_IFS
- echo " 0" >> src/poky-arch.h
- echo "};" >> src/poky-arch.h
+ echo " 0" >> src/core-arch.h
+ echo "};" >> src/core-arch.h
}
addtask archgen before do_configure after do_patch
--
1.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 0/2][RESEND] bug fix for quilt and sat-solver
@ 2011-04-25 9:49 Qing He
2011-04-25 9:49 ` [PATCH 1/2] sat-solver: fix arch=all packages Qing He
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Qing He @ 2011-04-25 9:49 UTC (permalink / raw)
To: poky
From: Qing He <qing.he@intel.com>
sat-solver: rebranding
quilt: alternative form in patch
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: qhe/fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=qhe/fix
Thanks,
Qing He <qing.he@intel.com>
---
Qing He (2):
sat-solver: fix arch=all packages
quilt: fix test for target build
.../quilt/quilt/gnu_patch_test_fix_target.patch | 26 +++++++++++++++++++
meta/recipes-devtools/quilt/quilt_0.48.bb | 6 +++-
...sat-solver_poky.patch => sat-solver_core.patch} | 27 +++++++++++++++++--
meta/recipes-extended/sat-solver/sat-solver_git.bb | 16 ++++++------
4 files changed, 62 insertions(+), 13 deletions(-)
create mode 100644 meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch
rename meta/recipes-extended/sat-solver/sat-solver/{sat-solver_poky.patch => sat-solver_core.patch} (81%)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] quilt: fix test for target build
2011-04-25 9:49 [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Qing He
2011-04-25 9:49 ` [PATCH 1/2] sat-solver: fix arch=all packages Qing He
@ 2011-04-25 9:49 ` Qing He
2011-05-06 22:37 ` [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Qing He @ 2011-04-25 9:49 UTC (permalink / raw)
To: poky
From: Qing He <qing.he@intel.com>
fixes [YOCTO #969]
Signed-off-by: Qing He <qing.he@intel.com>
---
.../quilt/quilt/gnu_patch_test_fix_target.patch | 26 ++++++++++++++++++++
meta/recipes-devtools/quilt/quilt_0.48.bb | 6 +++-
2 files changed, 30 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch
diff --git a/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch b/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch
new file mode 100644
index 0000000..672155b
--- /dev/null
+++ b/meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch
@@ -0,0 +1,26 @@
+Upstream-Status: Pending
+
+the test should be skipped for cross compiling.
+
+Signed-off-by: Qing He <qing.he@intel.com>
+
+diff --git a/configure.ac b/configure.ac
+index 026a36c..8af591b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -245,6 +245,7 @@ fi
+ QUILT_COMPAT_PROG_PATH(DIFF, diff)
+ QUILT_COMPAT_PROG_PATH(PATCH, patch)
+
++if test "x$cross_compiling" != "xyes"; then
+ # Sun diff and others will not work because GNU patch options are used.
+ AC_MSG_CHECKING([the version of $DIFF])
+ if $DIFF --version 2>/dev/null | grep GNU >/dev/null; then
+@@ -293,6 +294,7 @@ current version of patch from ftp.gnu.org, or if you already have GNU patch
+ then you can supply its path with the '--with-patch=' option.
+ ])
+ fi
++fi
+
+ QUILT_COMPAT_PROG_PATH(FIND, find)
+
diff --git a/meta/recipes-devtools/quilt/quilt_0.48.bb b/meta/recipes-devtools/quilt/quilt_0.48.bb
index 20a708d..124e2cd 100644
--- a/meta/recipes-devtools/quilt/quilt_0.48.bb
+++ b/meta/recipes-devtools/quilt/quilt_0.48.bb
@@ -2,8 +2,10 @@ require quilt.inc
LICENSE="GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
-PR = "r0"
-SRC_URI += "file://aclocal.patch"
+PR = "r1"
+SRC_URI += "file://aclocal.patch \
+ file://gnu_patch_test_fix_target.patch \
+ "
SRC_URI[md5sum] = "f77adda60039ffa753f3c584a286f12b"
SRC_URI[sha256sum] = "73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"
--
1.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2][RESEND] bug fix for quilt and sat-solver
2011-04-25 9:49 [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Qing He
2011-04-25 9:49 ` [PATCH 1/2] sat-solver: fix arch=all packages Qing He
2011-04-25 9:49 ` [PATCH 2/2] quilt: fix test for target build Qing He
@ 2011-05-06 22:37 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2011-05-06 22:37 UTC (permalink / raw)
To: Qing He; +Cc: poky
On 04/25/2011 02:49 AM, Qing He wrote:
> From: Qing He<qing.he@intel.com>
>
> sat-solver: rebranding
> quilt: alternative form in patch
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
> Branch: qhe/fix
> Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=qhe/fix
>
> Thanks,
> Qing He<qing.he@intel.com>
> ---
>
>
> Qing He (2):
> sat-solver: fix arch=all packages
> quilt: fix test for target build
>
> .../quilt/quilt/gnu_patch_test_fix_target.patch | 26 +++++++++++++++++++
> meta/recipes-devtools/quilt/quilt_0.48.bb | 6 +++-
> ...sat-solver_poky.patch => sat-solver_core.patch} | 27 +++++++++++++++++--
> meta/recipes-extended/sat-solver/sat-solver_git.bb | 16 ++++++------
> 4 files changed, 62 insertions(+), 13 deletions(-)
> create mode 100644 meta/recipes-devtools/quilt/quilt/gnu_patch_test_fix_target.patch
> rename meta/recipes-extended/sat-solver/sat-solver/{sat-solver_poky.patch => sat-solver_core.patch} (81%)
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
Pulled into Master
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-06 22:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 9:49 [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Qing He
2011-04-25 9:49 ` [PATCH 1/2] sat-solver: fix arch=all packages Qing He
2011-04-25 9:49 ` [PATCH 2/2] quilt: fix test for target build Qing He
2011-05-06 22:37 ` [PATCH 0/2][RESEND] bug fix for quilt and sat-solver Saul Wold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.