Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/7] Misc fixes and cleanups
@ 2011-12-23  1:01 Mark Hatle
  2011-12-23  1:01 ` [PATCH 1/7] package.bbclass: Adjust RPM call to use dynamic location for magic files Mark Hatle
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

Misc fixes and cleanups that affect various parts of the system...

The following changes since commit c38693f78c968ab5f4bb557c20d1c8c55393ed6b:

  opkg: Fix installation order in feeds with mutiple providers of packages (2011-12-22 22:38:09 +0000)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib mhatle/misc-fixes
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/misc-fixes

Mark Hatle (7):
  package.bbclass: Adjust RPM call to use dynamic location for magic
    files
  package_rpm.bbclass:  Add RPMSPEC_PREAMBLE
  rpm_5.4.0: Fix configuration issue with native/nativesdk
  udev: Remove linux-libc-headers dependency
  gperf: Add missing SRC checksum
  which: Add missing SRC checksums
  base.bbclass: Allow buildstats to be optionally supplied

 meta/classes/base.bbclass                  |    1 -
 meta/classes/package.bbclass               |    2 +-
 meta/classes/package_rpm.bbclass           |    8 +++++++-
 meta/conf/local.conf.sample                |    3 ++-
 meta/recipes-core/udev/udev-new.inc        |    2 +-
 meta/recipes-devtools/rpm/rpm_5.4.0.bb     |    3 ++-
 meta/recipes-extended/gperf/gperf_3.0.3.bb |    3 +++
 meta/recipes-extended/which/which_2.18.bb  |    3 +++
 8 files changed, 19 insertions(+), 6 deletions(-)

-- 
1.7.3.4




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

* [PATCH 1/7] package.bbclass: Adjust RPM call to use dynamic location for magic files
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 2/7] package_rpm.bbclass: Add RPMSPEC_PREAMBLE Mark Hatle
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

The magic file could be installed somewhere else if the system native prefix
settings are changed.  Adjust the packaging files to compensate for this.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/package.bbclass     |    2 +-
 meta/classes/package_rpm.bbclass |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 39c1d4b..9040eb4 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1113,7 +1113,7 @@ if [ x"$D" = "x" ]; then
 fi
 }
 
-RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/bin/rpmdeps --macros ${STAGING_LIBDIR_NATIVE}/rpm/macros --define '_rpmfc_magic_path ${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc' --rpmpopt ${STAGING_LIBDIR_NATIVE}/rpm/rpmpopt"
+RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/bin/rpmdeps --macros ${STAGING_LIBDIR_NATIVE}/rpm/macros --define '_rpmfc_magic_path ${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc' --rpmpopt ${STAGING_LIBDIR_NATIVE}/rpm/rpmpopt"
 
 # Collect perfile run-time dependency metadata
 # Output:
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 93a4c31..469526b 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -941,7 +941,7 @@ python do_package_rpm () {
 		d.setVar('PACKAGE_ARCH_EXTEND', package_arch)
 	pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}', d)
 	pkgarch = bb.data.expand('${PACKAGE_ARCH_EXTEND}${TARGET_VENDOR}-${TARGET_OS}', d)
-	magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d)
+	magicfile = bb.data.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc', d)
 	bb.mkdirhier(pkgwritedir)
 	os.chmod(pkgwritedir, 0755)
 
-- 
1.7.3.4




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

* [PATCH 2/7] package_rpm.bbclass: Add RPMSPEC_PREAMBLE
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
  2011-12-23  1:01 ` [PATCH 1/7] package.bbclass: Adjust RPM call to use dynamic location for magic files Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 3/7] rpm_5.4.0: Fix configuration issue with native/nativesdk Mark Hatle
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

Add a way to add arbitrary text to the top of a spec file.  This
can be useful for adding specific tags to the produced binaries for
tracking purposes.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/package_rpm.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 469526b..d03dc3f 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -817,6 +817,12 @@ python write_specfile () {
 	except OSError:
 		raise bb.build.FuncFailed("unable to open spec file for writing.")
 
+	# RPMSPEC_PREAMBLE is a way to add arbitrary text to the top
+	# of the generated spec file
+	external_preamble = d.getVar("RPMSPEC_PREAMBLE", True)
+	if external_preamble:
+		specfile.write(external_preamble + "\n")
+
 	for line in spec_preamble_top:
 		specfile.write(line + "\n")
 
-- 
1.7.3.4




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

* [PATCH 3/7] rpm_5.4.0: Fix configuration issue with native/nativesdk
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
  2011-12-23  1:01 ` [PATCH 1/7] package.bbclass: Adjust RPM call to use dynamic location for magic files Mark Hatle
  2011-12-23  1:01 ` [PATCH 2/7] package_rpm.bbclass: Add RPMSPEC_PREAMBLE Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 4/7] udev: Remove linux-libc-headers dependency Mark Hatle
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

RPM's configuration assumes if the prefix isn't /usr or /usr/local
that you really want the DB in $prefix/var -- we want it in
$localstatedir.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-devtools/rpm/rpm_5.4.0.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index 2c0c076..122d3a9 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -45,7 +45,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 DEPENDS = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt ${extrarpmdeps}"
 extrarpmdeps = "python perl"
 extrarpmdeps_virtclass-native = "file-native"
-PR = "r26"
+PR = "r27"
 
 # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
 # in order to extract the distribution SRPM into a format we can extract...
@@ -347,6 +347,7 @@ do_configure() {
 
 	./autogen.sh
 
+	export varprefix=${localstatedir}
 	oe_runconf
 }
 
-- 
1.7.3.4




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

* [PATCH 4/7] udev: Remove linux-libc-headers dependency
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
                   ` (2 preceding siblings ...)
  2011-12-23  1:01 ` [PATCH 3/7] rpm_5.4.0: Fix configuration issue with native/nativesdk Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 5/7] gperf: Add missing SRC checksum Mark Hatle
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

The linux-libc-headers dependency is not needed, as it is
automatically inherited from the libc and other dependencies.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-core/udev/udev-new.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/udev/udev-new.inc b/meta/recipes-core/udev/udev-new.inc
index e302c03..198336b 100644
--- a/meta/recipes-core/udev/udev-new.inc
+++ b/meta/recipes-core/udev/udev-new.inc
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://libudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
                     file://extras/gudev/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
 
-DEPENDS = "acl glib-2.0 libusb usbutils pciutils linux-libc-headers gperf-native libxslt-native"
+DEPENDS = "acl glib-2.0 libusb usbutils pciutils gperf-native libxslt-native"
 RPROVIDES_${PN} = "hotplug"
 RRECOMMENDS_${PN} += "udev-extraconf udev-cache usbutils-ids pciutils-ids"
 RDEPENDS_libudev = "${PN} (= ${EXTENDPKGV})"
-- 
1.7.3.4




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

* [PATCH 5/7] gperf: Add missing SRC checksum
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
                   ` (3 preceding siblings ...)
  2011-12-23  1:01 ` [PATCH 4/7] udev: Remove linux-libc-headers dependency Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 6/7] which: Add missing SRC checksums Mark Hatle
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-extended/gperf/gperf_3.0.3.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-extended/gperf/gperf_3.0.3.bb b/meta/recipes-extended/gperf/gperf_3.0.3.bb
index 5cccdf1..e7acc1f 100644
--- a/meta/recipes-extended/gperf/gperf_3.0.3.bb
+++ b/meta/recipes-extended/gperf/gperf_3.0.3.bb
@@ -5,3 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a5f84abb0070adf8a0925d7d534b6e0a \
                     file://src/main.cc;firstline=8;endline=19;md5=3eab12ba436c4da725b19b131def6de9"
 
 PR = "r1"
+
+SRC_URI[md5sum] = "cc20e58975a38075440423c8fb85fd00"
+SRC_URI[sha256sum] = "63287527c8d9e27e801cf0804436f3494bd569db05d49dcdd2a942ae72fa9055"
-- 
1.7.3.4




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

* [PATCH 6/7] which: Add missing SRC checksums
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
                   ` (4 preceding siblings ...)
  2011-12-23  1:01 ` [PATCH 5/7] gperf: Add missing SRC checksum Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-23  1:01 ` [PATCH 7/7] base.bbclass: Allow buildstats to be optionally supplied Mark Hatle
  2011-12-27 18:32 ` [PATCH 0/7] Misc fixes and cleanups Saul Wold
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/recipes-extended/which/which_2.18.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-extended/which/which_2.18.bb b/meta/recipes-extended/which/which_2.18.bb
index 92010b2..f87929b 100644
--- a/meta/recipes-extended/which/which_2.18.bb
+++ b/meta/recipes-extended/which/which_2.18.bb
@@ -14,6 +14,9 @@ PR = "r1"
 SRC_URI = "http://www.xs4all.nl/~carlo17/which/which-${PV}.tar.gz \
            file://fix_name_conflict_group_member.patch"
 
+SRC_URI[md5sum] = "42d51938e48b91f6e19fabf216f5c3e9"
+SRC_URI[sha256sum] = "9445cd7e02ec0c26a44fd56098464ded064ba5d93dd2e15ec12410ba56b2e544"
+
 DEPENDS = "cwautomacros-native"
 
 inherit autotools update-alternatives
-- 
1.7.3.4




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

* [PATCH 7/7] base.bbclass: Allow buildstats to be optionally supplied
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
                   ` (5 preceding siblings ...)
  2011-12-23  1:01 ` [PATCH 6/7] which: Add missing SRC checksums Mark Hatle
@ 2011-12-23  1:01 ` Mark Hatle
  2011-12-27 18:32 ` [PATCH 0/7] Misc fixes and cleanups Saul Wold
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Hatle @ 2011-12-23  1:01 UTC (permalink / raw)
  To: openembedded-core

Buildstats should be allowed to be optionally enabled.  It's
recommended that it be enabled via the USER_CLASSES setting.

Alternatively it could be enabled via the INHERIT_DISTRO or
similar mechanism.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/base.bbclass   |    1 -
 meta/conf/local.conf.sample |    3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index fbcaefb..e65a722 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -7,7 +7,6 @@ inherit mirrors
 inherit utils
 inherit utility-tasks
 inherit metadata_scm
-inherit buildstats
 inherit logging
 
 OE_IMPORTS += "os sys time oe.path oe.utils oe.data oe.packagegroup"
diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
index 73ab9f8..7d52d0e 100644
--- a/meta/conf/local.conf.sample
+++ b/meta/conf/local.conf.sample
@@ -134,12 +134,13 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks"
 # The following is a list of additional classes to use when building images which
 # enable extra features. Some available options which can be included in this variable 
 # are:
+#   - 'buildstats' collect build statistics
 #   - 'image-mklibs' to reduce shared library files size for an image
 #   - 'image-prelink' in order to prelink the filesystem image
 #   - 'image-swab' to perform host system intrusion detection
 # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink
 # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
-USER_CLASSES ?= "image-mklibs image-prelink"
+USER_CLASSES ?= "buildstats image-mklibs image-prelink"
 
 #
 # Runtime testing of images
-- 
1.7.3.4




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

* Re: [PATCH 0/7] Misc fixes and cleanups
  2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
                   ` (6 preceding siblings ...)
  2011-12-23  1:01 ` [PATCH 7/7] base.bbclass: Allow buildstats to be optionally supplied Mark Hatle
@ 2011-12-27 18:32 ` Saul Wold
  7 siblings, 0 replies; 9+ messages in thread
From: Saul Wold @ 2011-12-27 18:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 12/22/2011 05:01 PM, Mark Hatle wrote:
> Misc fixes and cleanups that affect various parts of the system...
>
> The following changes since commit c38693f78c968ab5f4bb557c20d1c8c55393ed6b:
>
>    opkg: Fix installation order in feeds with mutiple providers of packages (2011-12-22 22:38:09 +0000)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib mhatle/misc-fixes
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/misc-fixes
>
> Mark Hatle (7):
>    package.bbclass: Adjust RPM call to use dynamic location for magic
>      files
>    package_rpm.bbclass:  Add RPMSPEC_PREAMBLE
>    rpm_5.4.0: Fix configuration issue with native/nativesdk
>    udev: Remove linux-libc-headers dependency
>    gperf: Add missing SRC checksum
>    which: Add missing SRC checksums
The Above were all merged to OE-Core

Thanks
	Sau!


>    base.bbclass: Allow buildstats to be optionally supplied
>
No sure about this, no comments, but RP did not take it yet.

Sau!


>   meta/classes/base.bbclass                  |    1 -
>   meta/classes/package.bbclass               |    2 +-
>   meta/classes/package_rpm.bbclass           |    8 +++++++-
>   meta/conf/local.conf.sample                |    3 ++-
>   meta/recipes-core/udev/udev-new.inc        |    2 +-
>   meta/recipes-devtools/rpm/rpm_5.4.0.bb     |    3 ++-
>   meta/recipes-extended/gperf/gperf_3.0.3.bb |    3 +++
>   meta/recipes-extended/which/which_2.18.bb  |    3 +++
>   8 files changed, 19 insertions(+), 6 deletions(-)
>



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

end of thread, other threads:[~2011-12-27 18:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23  1:01 [PATCH 0/7] Misc fixes and cleanups Mark Hatle
2011-12-23  1:01 ` [PATCH 1/7] package.bbclass: Adjust RPM call to use dynamic location for magic files Mark Hatle
2011-12-23  1:01 ` [PATCH 2/7] package_rpm.bbclass: Add RPMSPEC_PREAMBLE Mark Hatle
2011-12-23  1:01 ` [PATCH 3/7] rpm_5.4.0: Fix configuration issue with native/nativesdk Mark Hatle
2011-12-23  1:01 ` [PATCH 4/7] udev: Remove linux-libc-headers dependency Mark Hatle
2011-12-23  1:01 ` [PATCH 5/7] gperf: Add missing SRC checksum Mark Hatle
2011-12-23  1:01 ` [PATCH 6/7] which: Add missing SRC checksums Mark Hatle
2011-12-23  1:01 ` [PATCH 7/7] base.bbclass: Allow buildstats to be optionally supplied Mark Hatle
2011-12-27 18:32 ` [PATCH 0/7] Misc fixes and cleanups Saul Wold

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