public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/7] world-image fixes
@ 2013-01-25 19:42 Martin Jansa
  2013-01-25 19:42 ` [PATCH 1/7] console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg Martin Jansa
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

This depends on
http://lists.linuxtogo.org/pipermail/bitbake-devel/2013-January/004091.html

And world-image is far from building correctly, see
"File conflicts between PN-doc packages" thread.

Later I'll post error log from world-image build including 
complete oe-core and ~20 more layers.

The following changes since commit 9a43a67993c21cedf6cf71138e3da9c691ebf4a7:

  gawk: Add missing dependency on readline (2013-01-25 14:37:13 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib jansa/world
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=jansa/world

Martin Jansa (7):
  console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between
    PN-dbg
  initrdscripts: exclude conflicting packages from world-image
  automake: use autotools_do_install
  gcc-configure-runtime: always remove info/dir
  eglibc-scripts: don't package mtrace, RDEPEND on eglibc-mtrace
    instead, fix RDEPENDS
  eglibc-package: remove infodir/dir if it exists
  oe-core: add world-image

 meta/recipes-core/console-tools/console-tools_0.3.2.bb     |  7 +++++++
 meta/recipes-core/eglibc/eglibc-package.inc                |  4 ++++
 meta/recipes-core/eglibc/eglibc-scripts.inc                |  5 ++---
 meta/recipes-core/images/world-image.bb                    | 10 ++++++++++
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb |  2 ++
 meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb |  2 ++
 meta/recipes-core/kbd/kbd_1.15.2.bb                        |  3 +++
 meta/recipes-devtools/automake/automake_1.12.6.bb          |  3 +--
 meta/recipes-devtools/gcc/gcc-configure-runtime.inc        |  8 +++-----
 9 files changed, 34 insertions(+), 10 deletions(-)
 create mode 100644 meta/recipes-core/images/world-image.bb

-- 
1.8.1.1




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/7] console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 2/7] initrdscripts: exclude conflicting packages from world-image Martin Jansa
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/console-tools/console-tools_0.3.2.bb | 7 +++++++
 meta/recipes-core/kbd/kbd_1.15.2.bb                    | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/meta/recipes-core/console-tools/console-tools_0.3.2.bb b/meta/recipes-core/console-tools/console-tools_0.3.2.bb
index a46e44d..40de13a 100644
--- a/meta/recipes-core/console-tools/console-tools_0.3.2.bb
+++ b/meta/recipes-core/console-tools/console-tools_0.3.2.bb
@@ -15,6 +15,13 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \
            file://lcmessage.m4 \
            file://Makevars"
 
+RREPLACES_${PN}-dbg = "kbd-dbg"
+RPROVIDES_${PN}-dbg = "kbd-dbg"
+RCONFLICTS_${PN}-dbg = "kbd-dbg"
+RREPLACES_${PN} = "kbd"
+RPROVIDES_${PN} = "kbd"
+RCONFLICTS_${PN} = "kbd"
+
 SRC_URI[md5sum] = "bf21564fc38b3af853ef724babddbacd"
 SRC_URI[sha256sum] = "eea6b441672dacd251079fc85ed322e196282e0e66c16303ec64c3a2b1c126c2"
 
diff --git a/meta/recipes-core/kbd/kbd_1.15.2.bb b/meta/recipes-core/kbd/kbd_1.15.2.bb
index 79ea468..f650b80 100644
--- a/meta/recipes-core/kbd/kbd_1.15.2.bb
+++ b/meta/recipes-core/kbd/kbd_1.15.2.bb
@@ -6,6 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=587ce626d15bd61699a64a6b8a5afefb"
 inherit autotools gettext
 
 BBCLASSEXTEND = "native"
+RREPLACES_${PN}-dbg = "console-tools-dbg"
+RPROVIDES_${PN}-dbg = "console-tools-dbg"
+RCONFLICTS_${PN}-dbg = "console-tools-dbg"
 RREPLACES_${PN} = "console-tools"
 RPROVIDES_${PN} = "console-tools"
 RCONFLICTS_${PN} = "console-tools"
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/7] initrdscripts: exclude conflicting packages from world-image
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
  2013-01-25 19:42 ` [PATCH 1/7] console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 3/7] automake: use autotools_do_install Martin Jansa
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 ++
 meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index cbb4a39..8df391e 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -34,6 +34,8 @@ do_install() {
     install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug
 }
 
+EXCLUDE_PACKAGES_FROM_WORLD_IMAGE = "${PN}-base"
+
 PACKAGES = "${PN}-base \
             initramfs-module-mdev \
             initramfs-module-udev \
diff --git a/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb
index 55a8600..17be28f 100644
--- a/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb
@@ -5,6 +5,8 @@ RDEPENDS = "udev"
 DEPENDS = "virtual/kernel"
 SRC_URI = "file://init-live.sh"
 
+EXCLUDE_FROM_WORLD_IMAGE = "1"
+
 PR = "r11"
 
 do_compile() {
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/7] automake: use autotools_do_install
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
  2013-01-25 19:42 ` [PATCH 1/7] console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg Martin Jansa
  2013-01-25 19:42 ` [PATCH 2/7] initrdscripts: exclude conflicting packages from world-image Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 4/7] gcc-configure-runtime: always remove info/dir Martin Jansa
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

* autotools_do_install removes /info/dir when it exists, overwritting whole
  do_install prevented that, use do_install_append instead.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-devtools/automake/automake_1.12.6.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/automake/automake_1.12.6.bb b/meta/recipes-devtools/automake/automake_1.12.6.bb
index 59bbdd8..549051b 100644
--- a/meta/recipes-devtools/automake/automake_1.12.6.bb
+++ b/meta/recipes-devtools/automake/automake_1.12.6.bb
@@ -31,8 +31,7 @@ SRC_URI[sha256sum] = "0cbe570db487908e70af7119da85ba04f7e28656b26f717df0265ae08d
 
 PR = "r0"
 
-do_install () {
-    oe_runmake 'DESTDIR=${D}' install
+do_install_append () {
     install -d ${D}${datadir}
 
     # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/7] gcc-configure-runtime: always remove info/dir
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
                   ` (2 preceding siblings ...)
  2013-01-25 19:42 ` [PATCH 3/7] automake: use autotools_do_install Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 5/7] eglibc-scripts: don't package mtrace, RDEPEND on eglibc-mtrace instead, fix RDEPENDS Martin Jansa
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

* move libgomp.info removal also outside that for cycle, can be removed outside if exists
* also use infodir variable instead of ${datadir}/info

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-devtools/gcc/gcc-configure-runtime.inc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 1c9155f..a9f77d9 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
@@ -41,12 +41,10 @@ do_install () {
 	for d in ${RUNTIMETARGET}; do
 		cd ${B}/$target/$d/
 		oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install
-		if [ "$d" = "libgomp" ]; then
-			rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
-			rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
-			rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
-		fi
 	done
+	rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir
+	rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
+	rmdir --ignore-fail-on-non-empty -p ${D}${infodir}
 	chown -R root:root ${D}
 }
 
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/7] eglibc-scripts: don't package mtrace, RDEPEND on eglibc-mtrace instead, fix RDEPENDS
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
                   ` (3 preceding siblings ...)
  2013-01-25 19:42 ` [PATCH 4/7] gcc-configure-runtime: always remove info/dir Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 6/7] eglibc-package: remove infodir/dir if it exists Martin Jansa
  2013-01-25 19:42 ` [PATCH 7/7] oe-core: add world-image Martin Jansa
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

* eglibc-mtrace and eglibc-scripts provide the same mtrace script
* remove mtrace from eglibc-scripts and replace it with RDEPENDS
* mtrace also needs perl (eglibc-mtrace has correct RDEPENDS), bash is
  for sotruss and xtrace
* remove invalid RDEPENDS_ldd, ldd is now using /bin/sh and is not
  packaged by eglibc-scripts
* fixes error in world-image build:
  * check_data_file_clashes: Package eglibc-mtrace wants to install file
    rootfs/usr/bin/mtrace
    But that file is already provided by package  * eglibc-scripts

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/eglibc/eglibc-scripts.inc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/eglibc/eglibc-scripts.inc b/meta/recipes-core/eglibc/eglibc-scripts.inc
index a020961..9ca6673 100644
--- a/meta/recipes-core/eglibc/eglibc-scripts.inc
+++ b/meta/recipes-core/eglibc/eglibc-scripts.inc
@@ -2,12 +2,11 @@ include eglibc-collateral.inc
 
 SUMMARY = "utility scripts provided by eglibc"
 DESCRIPTION = "utility scripts provided by eglibc"
-RDEPENDS_${PN} = "bash"
-RDEPENDS_ldd = "bash"
+RDEPENDS_${PN} = "bash eglibc-mtrace"
 
 SRC = "${STAGING_INCDIR}/eglibc-scripts-internal-${MULTIMACH_TARGET_SYS}"
 
-bashscripts = "mtrace sotruss xtrace"
+bashscripts = "sotruss xtrace"
 
 do_install() {
 	install -d -m 0755 ${D}${bindir}
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/7] eglibc-package: remove infodir/dir if it exists
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
                   ` (4 preceding siblings ...)
  2013-01-25 19:42 ` [PATCH 5/7] eglibc-scripts: don't package mtrace, RDEPEND on eglibc-mtrace instead, fix RDEPENDS Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  2013-01-25 19:42 ` [PATCH 7/7] oe-core: add world-image Martin Jansa
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

* fixes error in world-image build:
 * check_data_file_clashes: Package eglibc-doc wants to install file
   rootfs/usr/share/info/dir
   But that file is already provided by package  * gcc-doc

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/eglibc/eglibc-package.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 79c43f1..dae5d4f 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -80,6 +80,10 @@ do_install_append () {
 		sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' -e '2s,exec.*perl,exec ${USRBINPATH}/env perl,' ${D}${bindir}/mtrace
 	fi
 	rm -rf ${D}${includedir}/rpcsvc/rquota*
+	# Info dir listing isn't interesting at this point so remove it if it exists.
+	if [ -e "${D}${infodir}/dir" ]; then
+		rm -f ${D}${infodir}/dir
+	fi
 }
 
 do_install_locale () {
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 7/7] oe-core: add world-image
  2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
                   ` (5 preceding siblings ...)
  2013-01-25 19:42 ` [PATCH 6/7] eglibc-package: remove infodir/dir if it exists Martin Jansa
@ 2013-01-25 19:42 ` Martin Jansa
  6 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2013-01-25 19:42 UTC (permalink / raw)
  To: openembedded-core

* this depends on newer bitbake
* similar to world target, but collects all PACKAGES
* recipes marked with EXCLUDE_FROM_WORLD are excluded from world as well
  as world-image
* recipes marked with EXCLUDE_FROM_WORLD_IMAGE are excluded completely
  from world-image, sometimes you can build 2 recipes in same sysroot,
  but cannot install them in the same image
* PACKAGES listed in EXCLUDE_PACKAGES_FROM_WORLD_IMAGE are also
  excluded. You can remove e.g. ${PN}-dbg, but keep all other PACKAGES.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/images/world-image.bb | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 meta/recipes-core/images/world-image.bb

diff --git a/meta/recipes-core/images/world-image.bb b/meta/recipes-core/images/world-image.bb
new file mode 100644
index 0000000..ab195c3
--- /dev/null
+++ b/meta/recipes-core/images/world-image.bb
@@ -0,0 +1,10 @@
+# IMAGE_INSTALL is set from bitbake itself to union of all PACKAGES
+# from all recipes which are not marked as:
+# EXCLUDE_FROM_WORLD or EXCLUDE_FROM_WORLD_IMAGE
+# or individual packages listed in
+# EXCLUDE_PACKAGES_FROM_WORLD_IMAGE
+
+inherit image
+
+# don't build this in regular world builds
+EXCLUDE_FROM_WORLD = "1"
-- 
1.8.1.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-25 19:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 19:42 [PATCH 0/7] world-image fixes Martin Jansa
2013-01-25 19:42 ` [PATCH 1/7] console-tools, kbd: add RREPLACES/RPROVIDES/RCONFLICTS combo between PN-dbg Martin Jansa
2013-01-25 19:42 ` [PATCH 2/7] initrdscripts: exclude conflicting packages from world-image Martin Jansa
2013-01-25 19:42 ` [PATCH 3/7] automake: use autotools_do_install Martin Jansa
2013-01-25 19:42 ` [PATCH 4/7] gcc-configure-runtime: always remove info/dir Martin Jansa
2013-01-25 19:42 ` [PATCH 5/7] eglibc-scripts: don't package mtrace, RDEPEND on eglibc-mtrace instead, fix RDEPENDS Martin Jansa
2013-01-25 19:42 ` [PATCH 6/7] eglibc-package: remove infodir/dir if it exists Martin Jansa
2013-01-25 19:42 ` [PATCH 7/7] oe-core: add world-image Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox