Skip to contentSkip to conversation

Add some packages for LSB test

PATCH In review Kang Kai 4 participants 8 messages May 13, 2011 – May 16, 2011

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

cover Add some packages for LSB test

From: Kang Kai <[email protected]>

Because gettext is splitted, so add gettext-runtime to provide command gettext. Add libxml-sax-perl to help creating olver test report.
Add foomatic-filters to lsb image.
Recreate locale fr_FR to pass LSB libstdc++ test.

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

Thanks,
Kang Kai <[email protected]>
---

Kang Kai (4):
libxml-sax-perl: added to create LSB olver test report
foomatic-filters: add a link to pass LSB printing test
task-core-lsb: add packages into lsb image
lsbsetup: recreate locale fr_FR

 .../foomatic/foomatic-filters_4.0.7.bb             |    9 ++++++-
 meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh    |    1 +
 meta/recipes-extended/lsb/lsbsetup_0.9.bb          |    2 +-
 .../perl/libxml-namespacesupport-perl_1.11.bb      |   22 ++++++++++++++++
 meta/recipes-extended/perl/libxml-sax-perl_0.96.bb |   26 ++++++++++++++++++++
 meta/recipes-extended/tasks/task-core-lsb.bb       |    5 +++-
 6 files changed, 62 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb
 create mode 100644 meta/recipes-extended/perl/libxml-sax-perl_0.96.bb
author
#1 lore raw

PATCH 1/4 libxml-sax-perl: added to create LSB olver test report

From: Kang Kai <[email protected]>

libxml-sax-perl is need to create LSB olver test report, so import it and its dependecy libxml-namespacesupport-perl from oe. Add LICENSE and reset PR.

---
 .../perl/libxml-namespacesupport-perl_1.11.bb      |   22 ++++++++++++++++
 meta/recipes-extended/perl/libxml-sax-perl_0.96.bb |   26 ++++++++++++++++++++
 2 files changed, 48 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb
 create mode 100644 meta/recipes-extended/perl/libxml-sax-perl_0.96.bb
meta/recipes-extended/perl/libxml-namespacesupport-perl_1.11.bb new file +22 -0
new file mode 100644
index 0000000..d96430e
@@ -0,0 +1,22 @@
+SUMMARY = "Perl module for supporting simple generic namespaces"
+DESCRIPTION = "XML::NamespaceSupport offers a simple way to process namespace-based XML names. \
+                It also helps maintain a prefix-to-namespace URI map, and provides a number of \
+                basic checks. "
+
+SECTION = "libs"
+LICENSE = "Artistic|GPLv1+"
+PR = "r0"
+
+LIC_FILES_CHKSUM = "file://META.yml;beginline=22;endline=22;md5=3b2b564dae8b9af9e8896e85c07dcbe5"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-${PV}.tar.gz"
+SRC_URI[md5sum] = "222cca76161cd956d724286d36b607da"
+SRC_URI[sha256sum] = "6d8151f0a3f102313d76b64bfd1c2d9ed46bfe63a16f038e7d860fda287b74ea"
+
+
+S = "${WORKDIR}/XML-NamespaceSupport-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND="native"
+
meta/recipes-extended/perl/libxml-sax-perl_0.96.bb new file +26 -0
new file mode 100644
index 0000000..13956cb
@@ -0,0 +1,26 @@
+SUMMARY = "Perl module for using and building Perl SAX2 XML processors" 
+DESCRIPTION = "XML::SAX consists of several framework classes for using and \
+building Perl SAX2 XML parsers, filters, and drivers.  It is designed \ 
+around the need to be able to "plug in" different SAX parsers to an \
+application without requiring programmer intervention.  Those of you \
+familiar with the DBI will be right at home.  Some of the designs \
+come from the Java JAXP specification (SAX part), only without the \
+javaness."
+
+SECTION = "libs"
+LICENSE = "Artistic|GPLv1+"
+DEPENDS += "libxml-namespacesupport-perl-native"
+RDEPENDS_${PN} += "libxml-namespacesupport-perl perl-module-file-temp"
+PR = "r0"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=65c4cd8f39c24c7135ed70dacbcb09e3"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-SAX-${PV}.tar.gz"
+SRC_URI[md5sum] = "bdcd4119a62505184e211e9dfaef0ab1"
+SRC_URI[sha256sum] = "9bbef613afa42c46df008d537decc5a61df7e92d65463f3c900769f39e5c8e08"
+
+S = "${WORKDIR}/XML-SAX-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.7.1
author
#2 lore raw

PATCH 2/4 foomatic-filters: add a link to pass LSB printing test

In reply to Kang Kai

From: Kang Kai <[email protected]>

LSB printing test will test a foomatic-rip under cups' directory, so add it as link.
Part fixes [Yocto 904]

---
 .../foomatic/foomatic-filters_4.0.7.bb             |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +8 -1
index 8d70400..43e9c8d 100644
@@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
 "
 
 DEPENDS += "cups perl libxml2"
-PR = "r0"
+PR = "r1"
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
@@ -20,4 +20,11 @@ SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}.
 SRC_URI[md5sum] = "20abd25c1c98b2dae68709062a132a7d"
 SRC_URI[sha256sum] = "090313fae40b177f505d9c9b93d7a4d7188b6d5d18b6ae41ab24903ac983478d"
 
+do_install_append_linuxstdbase() {
+    install -d ${D}${libdir}/cups/filter
+    ln -sf ../../../bin/foomatic-rip ${D}${libdir}/cups/filter
+}
+
+FILES_${PN} += "${libdir}/cups/filter/foomatic-rip"
+
 inherit autotools
Signature · 1 line
1.7.1
#3 lore raw

Re: [PATCH 2/4] foomatic-filters: add a link to pass LSB printing test

Quoted 25 lines · Kang Kai

From: Kang Kai<[email protected]>

LSB printing test will test a foomatic-rip under cups' directory, so add it as link.
Part fixes [Yocto 904]

---
  .../foomatic/foomatic-filters_4.0.7.bb             |    9 ++++++++-
  1 files changed, 8 insertions(+), 1 deletions(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +1 -1
index 8d70400..43e9c8d 100644
@@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
  "
 
  DEPENDS += "cups perl libxml2"
-PR = "r0"
+PR = "r1"
 
  LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 25

Quoted 6 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +3 -0
@@ -20,4 +20,11 @@ SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}.
  SRC_URI[md5sum] = "20abd25c1c98b2dae68709062a132a7d"
  SRC_URI[sha256sum] = "090313fae40b177f505d9c9b93d7a4d7188b6d5d18b6ae41ab24903ac983478d"
 
+do_install_append_linuxstdbase() {
+    install -d ${D}${libdir}/cups/filter
+    ln -sf ../../../bin/foomatic-rip ${D}${libdir}/cups/filter

Kai Kang:

This should really be an absolute patch instead of a relative, there are distros that might have a different exec_prefix

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 28

Quoted 3 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +3 -0
+}
+
+FILES_${PN} += "${libdir}/cups/filter/foomatic-rip"

Should this be _linuxstdbase also?

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 30

Quoted 2 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +1 -0
+
  inherit autotools

Sau!

#4 lore raw

Re: [PATCH 2/4] foomatic-filters: add a link to pass LSB printing test

Quoted 29 lines · Saul Wold
Quoted 28 lines · Kang Kai

From: Kang Kai<[email protected]>

LSB printing test will test a foomatic-rip under cups' directory, so add it as link.
Part fixes [Yocto 904]

---
  .../foomatic/foomatic-filters_4.0.7.bb             |    9 ++++++++-
  1 files changed, 8 insertions(+), 1 deletions(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +1 -1
index 8d70400..43e9c8d 100644
@@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
  "
 
  DEPENDS += "cups perl libxml2"
-PR = "r0"
+PR = "r1"
 
  LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
@@ -20,4 +20,11 @@ SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}.
  SRC_URI[md5sum] = "20abd25c1c98b2dae68709062a132a7d"
  SRC_URI[sha256sum] = "090313fae40b177f505d9c9b93d7a4d7188b6d5d18b6ae41ab24903ac983478d"
 
Quoted 7 lines

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 25

Quoted 3 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +3 -0
+do_install_append_linuxstdbase() {
+    install -d ${D}${libdir}/cups/filter
+    ln -sf ../../../bin/foomatic-rip ${D}${libdir}/cups/filter

Kai Kang:

This should really be an absolute patch instead of a relative, there are distros that might have a different exec_prefix

We should likely audit our environments for these items. I know at Wind River our policy is all links are relative, we do not allow absolute links as the values usually cause problems in sysroots, or external SDK environments.

(Note, pseudo has a mechanism internal to it that ensures that absolute links don't point off to system files.. but we still avoid it.)

--Mark

Quoted 13 lines

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 28

Quoted 3 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +3 -0
+}
+
+FILES_${PN} += "${libdir}/cups/filter/foomatic-rip"

Should this be _linuxstdbase also?

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 30

Quoted 2 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +1 -0
+
  inherit autotools

Sau!
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#5 lore raw

Re: [PATCH 2/4] foomatic-filters: add a link to pass LSB printing test

Quoted 38 lines · Mark Hatle
Quoted 29 lines · Saul Wold
Quoted 28 lines · Kang Kai

From: Kang Kai<[email protected]>

LSB printing test will test a foomatic-rip under cups' directory, so add it as link.
Part fixes [Yocto 904]

---
  .../foomatic/foomatic-filters_4.0.7.bb             |    9 ++++++++-
  1 files changed, 8 insertions(+), 1 deletions(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +1 -1
index 8d70400..43e9c8d 100644
@@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
  "
 
  DEPENDS += "cups perl libxml2"
-PR = "r0"
+PR = "r1"
 
  LICENSE = "GPLv2+"
  LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
@@ -20,4 +20,11 @@ SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}.
  SRC_URI[md5sum] = "20abd25c1c98b2dae68709062a132a7d"
  SRC_URI[sha256sum] = "090313fae40b177f505d9c9b93d7a4d7188b6d5d18b6ae41ab24903ac983478d"
 
Quoted 7 lines

meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}. · line 25

Quoted 3 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb +3 -0
+do_install_append_linuxstdbase() {
+    install -d ${D}${libdir}/cups/filter
+    ln -sf ../../../bin/foomatic-rip ${D}${libdir}/cups/filter

Kai Kang:

This should really be an absolute patch instead of a relative, there are distros that might have a different exec_prefix

Quoted 6 lines

We should likely audit our environments for these items. I know at Wind River our policy is all links are relative, we do not allow absolute links as the values usually cause problems in sysroots, or external SDK environments.

(Note, pseudo has a mechanism internal to it that ensures that absolute links don't point off to system files.. but we still avoid it.)

If we want to use relative paths, they need to be calculated using the current layout. I can think of at least one userbase which is going to want to set all the *prefix variables to "/" instead of "/usr" and I'd prefer not to introduce additional problems for them.

Cheers,

Richard

author
#6 lore raw

PATCH 3/4 task-core-lsb: add packages into lsb image

In reply to Kang Kai

From: Kang Kai <[email protected]>

Add gettext-runtime, libxml-sax-perl and foomatic-filters to task-core-image.bb
Bump PR to r4

---
 meta/recipes-extended/tasks/task-core-lsb.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
meta/recipes-extended/tasks/task-core-lsb.bb +4 -1
index 6de24b4..70eb2d6 100644
@@ -3,7 +3,7 @@
 #
 
 DESCRIPTION = "Create Small Image Tasks"
-PR = "r3"
+PR = "r4"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
@@ -111,6 +111,7 @@ RDEPENDS_task-core-tcl = "\
 RDEPENDS_task-core-misc = "\
     elfutils \
     gettext \
+    gettext-runtime \
     groff \
     lsb \
     lsbsetup \
@@ -131,6 +132,7 @@ RDEPENDS_task-core-lsb-command-add = "\
     msmtp \
     chkconfig \
     xdg-utils \
+    foomatic-filters \
 "
 #    cups
 
@@ -188,6 +190,7 @@ RDEPENDS_task-core-lsb-runtime-add = "\
     liburi-perl \
     libxml-parser-perl \
     libxml-perl \
+    libxml-sax-perl \
     eglibc-localedatas \
     eglibc-gconvs \
     eglibc-charmaps \
Signature · 1 line
1.7.1
author
#7 lore raw

PATCH 4/4 lsbsetup: recreate locale fr_FR

In reply to Kang Kai

From: Kang Kai <[email protected]>

Update LSB_Setup.sh to recreate locale fr_FR, which helps to pass LSB libstdc++ test.
Bump PR to r3.

---
 meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh |    1 +
 meta/recipes-extended/lsb/lsbsetup_0.9.bb       |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh +1 -0
index aa3d5ee..10d8fb8 100644
@@ -208,6 +208,7 @@ localedef -i en_US -f UTF-8 en_US.UTF-8
 localedef -i se_NO -f UTF-8 se_NO.UTF-8
 localedef -i de_DE -f ISO-8859-1 de_DE
 localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1
+localedef -i fr_FR -f ISO-8859-1 fr_FR
 
 #resolve localhost 
 LOCALHOST=`hostname`
meta/recipes-extended/lsb/lsbsetup_0.9.bb +1 -1
index b0d0a3f..21bd26e 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "auto-setup environment for lsb test"
 SECTION = "console/utils"
 PRIORITY = "required"
 LICENSE = "GPLv2"
-PR = "r2"
+PR = "r3"
 
 LIC_FILES_CHKSUM = "file://LSB_Setup.sh;beginline=3;endline=16;md5=97451c7c0786ce5bbe9ac58042945583"
 
Signature · 1 line
1.7.1