diff options
28 files changed, 50 insertions, 1503 deletions
diff --git a/README.LSB b/README.LSB deleted file mode 100644 index fecbe548b7..0000000000 --- a/README.LSB +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | OE-Core aims to be able to provide basic LSB compatible images. There | ||
| 2 | are some challenges for OE as LSB isn't always 100% relevant to its | ||
| 3 | target embedded and IoT audiences. | ||
| 4 | |||
| 5 | One challenge is that the LSB spec is no longer being actively | ||
| 6 | developed [https://github.com/LinuxStandardBase/lsb] and has | ||
| 7 | components which are end of life or significantly dated. OE | ||
| 8 | therefore provides compatibility with the following caveats: | ||
| 9 | |||
| 10 | * Qt4 is provided by the separate meta-qt4 layer. Its noted that Qt4 | ||
| 11 | is end of life and this isn't something the core project regularly | ||
| 12 | tests any longer. Users are recommended to group together to support | ||
| 13 | maintenance of that layer. [http://git.yoctoproject.org/cgit/cgit.cgi/meta-qt4/] | ||
| 14 | |||
| 15 | * GTK+ 2 is provided by meta-oe. It is noted that GTK+ 2 is end of life | ||
| 16 | and use of GTK+ 2 isn't recommended. | ||
| 17 | |||
| 18 | * mailx has been dropped since its no longer being developed upstream | ||
| 19 | and there are better, more modern replacements such as s-nail | ||
| 20 | (http://sdaoden.eu/code.html) or mailutils (http://mailutils.org/). | ||
| 21 | |||
| 22 | * A few perl modules that were required by LSB 4.x aren't provided: | ||
| 23 | libclass-isa, libenv, libdumpvalue, libfile-checktree, | ||
| 24 | libi18n-collate, libpod-plainer. | ||
| 25 | |||
| 26 | * libpng 1.2 isn't provided; oe-core includes the latest release of libpng | ||
| 27 | instead. | ||
| 28 | |||
| 29 | * pax (POSIX standard archive) tool is not provided. | ||
diff --git a/meta/conf/distro/include/distro_alias.inc b/meta/conf/distro/include/distro_alias.inc index ab6ebdb899..7ab3b12cd5 100644 --- a/meta/conf/distro/include/distro_alias.inc +++ b/meta/conf/distro/include/distro_alias.inc | |||
| @@ -43,9 +43,6 @@ DISTRO_PN_ALIAS_pn-core-image-base = "OE-Core" | |||
| 43 | DISTRO_PN_ALIAS_pn-core-image-clutter = "OE-Core" | 43 | DISTRO_PN_ALIAS_pn-core-image-clutter = "OE-Core" |
| 44 | DISTRO_PN_ALIAS_pn-core-image-full-cmdline = "OE-Core" | 44 | DISTRO_PN_ALIAS_pn-core-image-full-cmdline = "OE-Core" |
| 45 | DISTRO_PN_ALIAS_pn-core-image-kernel-dev = "OE-Core" | 45 | DISTRO_PN_ALIAS_pn-core-image-kernel-dev = "OE-Core" |
| 46 | DISTRO_PN_ALIAS_pn-core-image-lsb = "OE-Core" | ||
| 47 | DISTRO_PN_ALIAS_pn-core-image-lsb-dev = "OE-Core" | ||
| 48 | DISTRO_PN_ALIAS_pn-core-image-lsb-sdk = "OE-Core" | ||
| 49 | DISTRO_PN_ALIAS_pn-core-image-minimal = "OE-Core" | 46 | DISTRO_PN_ALIAS_pn-core-image-minimal = "OE-Core" |
| 50 | DISTRO_PN_ALIAS_pn-core-image-minimal-dev = "OE-Core" | 47 | DISTRO_PN_ALIAS_pn-core-image-minimal-dev = "OE-Core" |
| 51 | DISTRO_PN_ALIAS_pn-core-image-minimal-initramfs = "OE-Core" | 48 | DISTRO_PN_ALIAS_pn-core-image-minimal-initramfs = "OE-Core" |
| @@ -202,8 +199,6 @@ DISTRO_PN_ALIAS_pn-linux-libc-headers-yocto = "Debian=linux-kernel-headers Ubunt | |||
| 202 | DISTRO_PN_ALIAS_pn-linux-yocto = "Debian=linux-base Ubuntu=linux" | 199 | DISTRO_PN_ALIAS_pn-linux-yocto = "Debian=linux-base Ubuntu=linux" |
| 203 | DISTRO_PN_ALIAS_pn-linux-yocto-rt = "Debian=linux-base Ubuntu=linux" | 200 | DISTRO_PN_ALIAS_pn-linux-yocto-rt = "Debian=linux-base Ubuntu=linux" |
| 204 | DISTRO_PN_ALIAS_pn-linux-yocto-tiny = "OSPDT" | 201 | DISTRO_PN_ALIAS_pn-linux-yocto-tiny = "OSPDT" |
| 205 | DISTRO_PN_ALIAS_pn-lsbinitscripts = "Windriver" | ||
| 206 | DISTRO_PN_ALIAS_pn-lsbtest = "Windriver" | ||
| 207 | DISTRO_PN_ALIAS_pn-ltp = "Mandriva=ltp Ubuntu=ltp" | 202 | DISTRO_PN_ALIAS_pn-ltp = "Mandriva=ltp Ubuntu=ltp" |
| 208 | DISTRO_PN_ALIAS_pn-lttng-modules = "OSPDT upstream=http://lttng.org/" | 203 | DISTRO_PN_ALIAS_pn-lttng-modules = "OSPDT upstream=http://lttng.org/" |
| 209 | DISTRO_PN_ALIAS_pn-lttng-tools = "OSPDT upstream=http://lttng.org/" | 204 | DISTRO_PN_ALIAS_pn-lttng-tools = "OSPDT upstream=http://lttng.org/" |
| @@ -265,7 +260,6 @@ DISTRO_PN_ALIAS_pn-packagegroup-core-clutter = "OE-Core" | |||
| 265 | DISTRO_PN_ALIAS_pn-packagegroup-core-device-devel = "OE-Core" | 260 | DISTRO_PN_ALIAS_pn-packagegroup-core-device-devel = "OE-Core" |
| 266 | DISTRO_PN_ALIAS_pn-packagegroup-core-eclipse-debug = "OE-Core" | 261 | DISTRO_PN_ALIAS_pn-packagegroup-core-eclipse-debug = "OE-Core" |
| 267 | DISTRO_PN_ALIAS_pn-packagegroup-core-full-cmdline = "OE-Core" | 262 | DISTRO_PN_ALIAS_pn-packagegroup-core-full-cmdline = "OE-Core" |
| 268 | DISTRO_PN_ALIAS_pn-packagegroup-core-lsb = "OE-Core" | ||
| 269 | DISTRO_PN_ALIAS_pn-packagegroup-core-nfs = "OE-Core" | 263 | DISTRO_PN_ALIAS_pn-packagegroup-core-nfs = "OE-Core" |
| 270 | DISTRO_PN_ALIAS_pn-packagegroup-core-sdk = "OE-Core" | 264 | DISTRO_PN_ALIAS_pn-packagegroup-core-sdk = "OE-Core" |
| 271 | DISTRO_PN_ALIAS_pn-packagegroup-core-ssh-dropbear = "OE-Core" | 265 | DISTRO_PN_ALIAS_pn-packagegroup-core-ssh-dropbear = "OE-Core" |
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 6a2308d13c..0757230b1a 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -114,8 +114,6 @@ RECIPE_MAINTAINER_pn-core-image-full-cmdline = "Richard Purdie <richard.purdie@l | |||
| 114 | RECIPE_MAINTAINER_pn-core-image-kernel-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 114 | RECIPE_MAINTAINER_pn-core-image-kernel-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| 115 | RECIPE_MAINTAINER_pn-core-image-sato = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 115 | RECIPE_MAINTAINER_pn-core-image-sato = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| 116 | RECIPE_MAINTAINER_pn-core-image-sato-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 116 | RECIPE_MAINTAINER_pn-core-image-sato-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| 117 | RECIPE_MAINTAINER_pn-core-image-lsb = "Richard Purdie <richard.purdie@linuxfoundation.org>" | ||
| 118 | RECIPE_MAINTAINER_pn-core-image-lsb-sdk = "Richard Purdie <richard.purdie@linuxfoundation.org>" | ||
| 119 | RECIPE_MAINTAINER_pn-core-image-testmaster-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 117 | RECIPE_MAINTAINER_pn-core-image-testmaster-initramfs = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| 120 | RECIPE_MAINTAINER_pn-core-image-testmaster = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 118 | RECIPE_MAINTAINER_pn-core-image-testmaster = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| 121 | RECIPE_MAINTAINER_pn-core-image-clutter = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 119 | RECIPE_MAINTAINER_pn-core-image-clutter = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
| @@ -455,9 +453,7 @@ RECIPE_MAINTAINER_pn-linux-yocto-tiny = "Bruce Ashfield <bruce.ashfield@gmail.co | |||
| 455 | RECIPE_MAINTAINER_pn-llvm = "Khem Raj <raj.khem@gmail.com>" | 453 | RECIPE_MAINTAINER_pn-llvm = "Khem Raj <raj.khem@gmail.com>" |
| 456 | RECIPE_MAINTAINER_pn-logrotate = "Yi Zhao <yi.zhao@windriver.com>" | 454 | RECIPE_MAINTAINER_pn-logrotate = "Yi Zhao <yi.zhao@windriver.com>" |
| 457 | RECIPE_MAINTAINER_pn-lrzsz = "Anuj Mittal <anuj.mittal@intel.com>" | 455 | RECIPE_MAINTAINER_pn-lrzsz = "Anuj Mittal <anuj.mittal@intel.com>" |
| 458 | RECIPE_MAINTAINER_pn-lsb = "Hongxu Jia <hongxu.jia@windriver.com>" | 456 | RECIPE_MAINTAINER_pn-lsb-release = "Hongxu Jia <hongxu.jia@windriver.com>" |
| 459 | RECIPE_MAINTAINER_pn-lsbinitscripts = "Ross Burton <ross.burton@intel.com>" | ||
| 460 | RECIPE_MAINTAINER_pn-lsbtest = "Yi Zhao <yi.zhao@windriver.com>" | ||
| 461 | RECIPE_MAINTAINER_pn-lsof = "Ross Burton <ross.burton@intel.com>" | 457 | RECIPE_MAINTAINER_pn-lsof = "Ross Burton <ross.burton@intel.com>" |
| 462 | RECIPE_MAINTAINER_pn-ltp = "Yi Zhao <yi.zhao@windriver.com>" | 458 | RECIPE_MAINTAINER_pn-ltp = "Yi Zhao <yi.zhao@windriver.com>" |
| 463 | RECIPE_MAINTAINER_pn-lttng-modules = "Richard Purdie <richard.purdie@linuxfoundation.org>" | 459 | RECIPE_MAINTAINER_pn-lttng-modules = "Richard Purdie <richard.purdie@linuxfoundation.org>" |
diff --git a/meta/lib/oeqa/manual/bsp-hw.json b/meta/lib/oeqa/manual/bsp-hw.json index 4b7c76f70f..18cec222fc 100644 --- a/meta/lib/oeqa/manual/bsp-hw.json +++ b/meta/lib/oeqa/manual/bsp-hw.json | |||
| @@ -526,7 +526,7 @@ | |||
| 526 | "expected_results": "" | 526 | "expected_results": "" |
| 527 | }, | 527 | }, |
| 528 | "4": { | 528 | "4": { |
| 529 | "action": "check ping status \n\nNote: This TC apply only for core-image-full-cmd and core-image-lsb .", | 529 | "action": "check ping status \n\nNote: This TC apply only for core-image-full-cmd.", |
| 530 | "expected_results": "ping should always work before/after standby" | 530 | "expected_results": "ping should always work before/after standby" |
| 531 | } | 531 | } |
| 532 | }, | 532 | }, |
diff --git a/meta/lib/oeqa/manual/compliance-test.json b/meta/lib/oeqa/manual/compliance-test.json index 8c13b68ec3..367a416f01 100644 --- a/meta/lib/oeqa/manual/compliance-test.json +++ b/meta/lib/oeqa/manual/compliance-test.json | |||
| @@ -1,36 +1,6 @@ | |||
| 1 | [ | 1 | [ |
| 2 | { | 2 | { |
| 3 | "test": { | 3 | "test": { |
| 4 | "@alias": "compliance-test.compliance-test.LSB_subset_test_suite", | ||
| 5 | "author": [ | ||
| 6 | { | ||
| 7 | "email": "corneliux.stoicescu@intel.com", | ||
| 8 | "name": "corneliux.stoicescu@intel.com" | ||
| 9 | } | ||
| 10 | ], | ||
| 11 | "execution": { | ||
| 12 | "1": { | ||
| 13 | "action": "Get lsd-sdk image and install it on target device or start the image(if it is QEMU) with option \"-m 512M\"", | ||
| 14 | "expected_results": "" | ||
| 15 | }, | ||
| 16 | "2": { | ||
| 17 | "action": "Comment in /opt/lsb-test/session any tests you don't want to run.", | ||
| 18 | "expected_results": "" | ||
| 19 | }, | ||
| 20 | "3": { | ||
| 21 | "action": "Run /usr/bin/LSB_Test.sh which should download the LSB suite and set it up. Some packages may fail to download because their location changed on ftp.linuxfoundation.org. You need to manually update /opt/lsb-test/packages_list", | ||
| 22 | "expected_results": "" | ||
| 23 | }, | ||
| 24 | "4": { | ||
| 25 | "action": "Tests should start automatically, you can use the web interface to reconfigure the setup. ", | ||
| 26 | "expected_results": "Check the result on wiki https://wiki.yoctoproject.org/wiki/LSB_Result No regression failures should be met." | ||
| 27 | } | ||
| 28 | }, | ||
| 29 | "summary": "LSB_subset_test_suite" | ||
| 30 | } | ||
| 31 | }, | ||
| 32 | { | ||
| 33 | "test": { | ||
| 34 | "@alias": "compliance-test.compliance-test.stress_test_-_Genericx86-64", | 4 | "@alias": "compliance-test.compliance-test.stress_test_-_Genericx86-64", |
| 35 | "author": [ | 5 | "author": [ |
| 36 | { | 6 | { |
| @@ -40,7 +10,7 @@ | |||
| 40 | ], | 10 | ], |
| 41 | "execution": { | 11 | "execution": { |
| 42 | "1": { | 12 | "1": { |
| 43 | "action": "Bootup with core-image-lsb-sdk image", | 13 | "action": "Bootup with core-image-sato-sdk image", |
| 44 | "expected_results": "" | 14 | "expected_results": "" |
| 45 | }, | 15 | }, |
| 46 | "2": { | 16 | "2": { |
diff --git a/meta/lib/oeqa/manual/toaster-managed-mode.json b/meta/lib/oeqa/manual/toaster-managed-mode.json index 812f57da34..12374c7c64 100644 --- a/meta/lib/oeqa/manual/toaster-managed-mode.json +++ b/meta/lib/oeqa/manual/toaster-managed-mode.json | |||
| @@ -1494,7 +1494,7 @@ | |||
| 1494 | "expected_results": "A type in form appears. \n\n\t" | 1494 | "expected_results": "A type in form appears. \n\n\t" |
| 1495 | }, | 1495 | }, |
| 1496 | "6": { | 1496 | "6": { |
| 1497 | "action": "Change distro (ex: poky-lsb). \n\n\t", | 1497 | "action": "Change distro (ex: poky-tiny). \n\n\t", |
| 1498 | "expected_results": "Distro has changed. \n\n\t" | 1498 | "expected_results": "Distro has changed. \n\n\t" |
| 1499 | }, | 1499 | }, |
| 1500 | "7": { | 1500 | "7": { |
| @@ -1503,7 +1503,7 @@ | |||
| 1503 | }, | 1503 | }, |
| 1504 | "8": { | 1504 | "8": { |
| 1505 | "action": " Build a recipe (ex: core-image-minimal) and wait until build finish.", | 1505 | "action": " Build a recipe (ex: core-image-minimal) and wait until build finish.", |
| 1506 | "expected_results": "Build finishes successfully. \n\nThe 'success' criteria for this one should be that the build is reported as using the poky-lsb distro in the build summary page, and that the DISTRO variable value in the bitbake variables table is set to the value specified in toaster (poky-lsb again)." | 1506 | "expected_results": "Build finishes successfully. \n\nThe 'success' criteria for this one should be that the build is reported as using the poky-tiny distro in the build summary page, and that the DISTRO variable value in the bitbake variables table is set to the value specified in toaster (poky-tiny again)." |
| 1507 | } | 1507 | } |
| 1508 | }, | 1508 | }, |
| 1509 | "summary": "Build_a_recipe_with_different_distro" | 1509 | "summary": "Build_a_recipe_with_different_distro" |
| @@ -1612,7 +1612,7 @@ | |||
| 1612 | "expected_results": "" | 1612 | "expected_results": "" |
| 1613 | }, | 1613 | }, |
| 1614 | "3": { | 1614 | "3": { |
| 1615 | "action": "Check that the table is populated with the list of image recipes (eg. core-image minimal, core-image-lsb) \n\n\n", | 1615 | "action": "Check that the table is populated with the list of image recipes (eg. core-image minimal) \n\n\n", |
| 1616 | "expected_results": "" | 1616 | "expected_results": "" |
| 1617 | }, | 1617 | }, |
| 1618 | "4": { | 1618 | "4": { |
| @@ -1670,7 +1670,7 @@ | |||
| 1670 | "expected_results": "" | 1670 | "expected_results": "" |
| 1671 | }, | 1671 | }, |
| 1672 | "7": { | 1672 | "7": { |
| 1673 | "action": "Sort the table by \"Layer\" and then navigate away by selecting an image (such as core-image-lsb). When you click the \"back\" button in the web-browser to go back, the \"New custom image\" table should still be sorted by \"Layer\". \nThis should apply also by navigating back to the page by any other means. \n\n", | 1673 | "action": "Sort the table by \"Layer\" and then navigate away by selecting an image. When you click the \"back\" button in the web-browser to go back, the \"New custom image\" table should still be sorted by \"Layer\". \nThis should apply also by navigating back to the page by any other means. \n\n", |
| 1674 | "expected_results": "" | 1674 | "expected_results": "" |
| 1675 | }, | 1675 | }, |
| 1676 | "8": { | 1676 | "8": { |
| @@ -2348,7 +2348,7 @@ | |||
| 2348 | "expected_results": "" | 2348 | "expected_results": "" |
| 2349 | }, | 2349 | }, |
| 2350 | "3": { | 2350 | "3": { |
| 2351 | "action": "Build 6 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-lsb, core-image-clutter) to name a few. ", | 2351 | "action": "Build 6 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-clutter) to name a few. ", |
| 2352 | "expected_results": " All recipes are built correctly \n\n" | 2352 | "expected_results": " All recipes are built correctly \n\n" |
| 2353 | }, | 2353 | }, |
| 2354 | "4": { | 2354 | "4": { |
| @@ -2382,7 +2382,7 @@ | |||
| 2382 | "expected_results": "" | 2382 | "expected_results": "" |
| 2383 | }, | 2383 | }, |
| 2384 | "3": { | 2384 | "3": { |
| 2385 | "action": "Build 6 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-lsb, core-image-clutter) to name a few. \n\n", | 2385 | "action": "Build 6 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-clutter) to name a few. \n\n", |
| 2386 | "expected_results": "All recipes are built correctly \n\n" | 2386 | "expected_results": "All recipes are built correctly \n\n" |
| 2387 | }, | 2387 | }, |
| 2388 | "4": { | 2388 | "4": { |
| @@ -2420,7 +2420,7 @@ | |||
| 2420 | "expected_results": "" | 2420 | "expected_results": "" |
| 2421 | }, | 2421 | }, |
| 2422 | "3": { | 2422 | "3": { |
| 2423 | "action": "Build 4 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-lsb, core-image-clutter) to name a few. \n\n", | 2423 | "action": "Build 4 recipes example (core-image-sato, core-image-minimal, core-image-base, core-image-clutter) to name a few. \n\n", |
| 2424 | "expected_results": " All recipes are built correctly \n\n" | 2424 | "expected_results": " All recipes are built correctly \n\n" |
| 2425 | }, | 2425 | }, |
| 2426 | "4": { | 2426 | "4": { |
diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb index f206cee373..9b0ae0d1c2 100644 --- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb +++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb | |||
| @@ -37,7 +37,7 @@ RDEPENDS_packagegroup-self-hosted-host-tools = "\ | |||
| 37 | e2fsprogs-tune2fs \ | 37 | e2fsprogs-tune2fs \ |
| 38 | hdparm \ | 38 | hdparm \ |
| 39 | iptables \ | 39 | iptables \ |
| 40 | lsb \ | 40 | lsb-release \ |
| 41 | mc \ | 41 | mc \ |
| 42 | mc-fish \ | 42 | mc-fish \ |
| 43 | mc-helpers \ | 43 | mc-helpers \ |
diff --git a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb index 396d0ec0a1..f9a98d4509 100644 --- a/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb +++ b/meta/recipes-devtools/bootchart2/bootchart2_0.14.8.bb | |||
| @@ -141,7 +141,7 @@ PACKAGES =+ "pybootchartgui" | |||
| 141 | FILES_pybootchartgui += "${PYTHON_SITEPACKAGES_DIR}/pybootchartgui ${bindir}/pybootchartgui" | 141 | FILES_pybootchartgui += "${PYTHON_SITEPACKAGES_DIR}/pybootchartgui ${bindir}/pybootchartgui" |
| 142 | RDEPENDS_pybootchartgui = "python3-pycairo python3-compression python3-image python3-shell python3-compression python3-codecs" | 142 | RDEPENDS_pybootchartgui = "python3-pycairo python3-compression python3-image python3-shell python3-compression python3-codecs" |
| 143 | RDEPENDS_${PN}_class-target += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}" | 143 | RDEPENDS_${PN}_class-target += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}" |
| 144 | RDEPENDS_${PN}_class-target += "lsb" | 144 | RDEPENDS_${PN}_class-target += "lsb-release" |
| 145 | DEPENDS_append_class-native = " python3-pycairo-native" | 145 | DEPENDS_append_class-native = " python3-pycairo-native" |
| 146 | 146 | ||
| 147 | PACKAGES =+ "bootchartd-stop-initscript" | 147 | PACKAGES =+ "bootchartd-stop-initscript" |
diff --git a/meta/recipes-extended/images/core-image-lsb-dev.bb b/meta/recipes-extended/images/core-image-lsb-dev.bb deleted file mode 100644 index d2dc9e2b53..0000000000 --- a/meta/recipes-extended/images/core-image-lsb-dev.bb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | require core-image-lsb.bb | ||
| 2 | |||
| 3 | DESCRIPTION = "Basic image without X support suitable for development work. It \ | ||
| 4 | can be used for customization and implementations that conform to Linux \ | ||
| 5 | Standard Base (LSB)." | ||
| 6 | |||
| 7 | IMAGE_FEATURES += "dev-pkgs" | ||
diff --git a/meta/recipes-extended/images/core-image-lsb-sdk.bb b/meta/recipes-extended/images/core-image-lsb-sdk.bb deleted file mode 100644 index a3d602edd6..0000000000 --- a/meta/recipes-extended/images/core-image-lsb-sdk.bb +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | require core-image-lsb.bb | ||
| 2 | |||
| 3 | DESCRIPTION = "Basic image without X support suitable for Linux Standard Base \ | ||
| 4 | (LSB) implementations. It includes the full meta-toolchain, plus development \ | ||
| 5 | headers and libraries to form a standalone SDK." | ||
| 6 | |||
| 7 | IMAGE_FEATURES += "tools-sdk dev-pkgs tools-debug eclipse-debug tools-profile tools-testapps debug-tweaks" | ||
| 8 | |||
| 9 | IMAGE_INSTALL += "kernel-devsrc" | ||
| 10 | |||
| 11 | # Reduce this to try and keep below the 4GB image size for now | ||
| 12 | IMAGE_OVERHEAD_FACTOR = "1.2" | ||
diff --git a/meta/recipes-extended/images/core-image-lsb.bb b/meta/recipes-extended/images/core-image-lsb.bb deleted file mode 100644 index ab61c6e6df..0000000000 --- a/meta/recipes-extended/images/core-image-lsb.bb +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | DESCRIPTION = "An image containing packages that are required to conform \ | ||
| 2 | to the Linux Standard Base (LSB) specification." | ||
| 3 | |||
| 4 | IMAGE_FEATURES += "splash ssh-server-openssh hwcodecs package-management" | ||
| 5 | |||
| 6 | IMAGE_INSTALL = "\ | ||
| 7 | ${CORE_IMAGE_BASE_INSTALL} \ | ||
| 8 | packagegroup-core-full-cmdline \ | ||
| 9 | packagegroup-core-lsb \ | ||
| 10 | " | ||
| 11 | |||
| 12 | inherit core-image distro_features_check | ||
| 13 | |||
| 14 | REQUIRED_DISTRO_FEATURES = "pam" | ||
diff --git a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch b/meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch index 0175752067..0175752067 100644 --- a/meta/recipes-extended/lsb/lsb/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch +++ b/meta/recipes-extended/lsb/lsb-release/0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch | |||
diff --git a/meta/recipes-extended/lsb/lsb-release_1.4.bb b/meta/recipes-extended/lsb/lsb-release_1.4.bb new file mode 100644 index 0000000000..4d8b3d3d3c --- /dev/null +++ b/meta/recipes-extended/lsb/lsb-release_1.4.bb | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | SUMMARY = "lsb_release support for OpenEmbedded" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" | ||
| 4 | LICENSE = "GPLv2+" | ||
| 5 | |||
| 6 | # lsb_release needs getopt | ||
| 7 | RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_getopt}" | ||
| 8 | |||
| 9 | LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" | ||
| 10 | |||
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz \ | ||
| 12 | file://0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch \ | ||
| 13 | " | ||
| 14 | UPSTREAM_VERSION_UNKNOWN = "1" | ||
| 15 | |||
| 16 | SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4" | ||
| 17 | SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172" | ||
| 18 | |||
| 19 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/lsb/files/lsb_release/" | ||
| 20 | UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/" | ||
| 21 | |||
| 22 | CLEANBROKEN = "1" | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | oe_runmake install prefix=${D}${root_prefix} mandir=${D}${datadir}/man/ DESTDIR=${D} | ||
| 26 | |||
| 27 | mkdir -p ${D}${sysconfdir}/lsb-release.d | ||
| 28 | |||
| 29 | echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release | ||
| 30 | echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release | ||
| 31 | if [ -n "${DISTRO_CODENAME}" ]; then | ||
| 32 | echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release | ||
| 33 | fi | ||
| 34 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release | ||
| 35 | } | ||
| 36 | |||
| 37 | FILES_${PN} += "${base_libdir}" | ||
diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions deleted file mode 100755 index 7c1dce24cf..0000000000 --- a/meta/recipes-extended/lsb/lsb/init-functions +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # LSB initscript functions, as defined in the LSB Spec 1.1.0 | ||
| 4 | # | ||
| 5 | # Lawrence Lim <llim@core.com> - Tue, 26 June 2007 | ||
| 6 | # Updated to the latest LSB 3.1 spec | ||
| 7 | # http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt | ||
| 8 | |||
| 9 | start_daemon () { | ||
| 10 | /etc/core-lsb/lsb_start_daemon "$@" | ||
| 11 | } | ||
| 12 | |||
| 13 | killproc () { | ||
| 14 | /etc/core-lsb/lsb_killproc "$@" | ||
| 15 | } | ||
| 16 | |||
| 17 | pidofproc () { | ||
| 18 | /etc/core-lsb/lsb_pidofproc "$@" | ||
| 19 | } | ||
| 20 | |||
| 21 | log_success_msg () { | ||
| 22 | /etc/core-lsb/lsb_log_message success "$@" | ||
| 23 | } | ||
| 24 | |||
| 25 | log_failure_msg () { | ||
| 26 | /etc/core-lsb/lsb_log_message failure "$@" | ||
| 27 | } | ||
| 28 | |||
| 29 | log_warning_msg () { | ||
| 30 | /etc/core-lsb/lsb_log_message warning "$@" | ||
| 31 | } | ||
| 32 | |||
| 33 | # int log_begin_message (char *message) | ||
| 34 | log_begin_msg () { | ||
| 35 | if [ -z "$1" ]; then | ||
| 36 | return 1 | ||
| 37 | fi | ||
| 38 | echo " * $@" | ||
| 39 | } | ||
| 40 | |||
| 41 | |||
| 42 | log_end_msg () { | ||
| 43 | /etc/core-lsb/lsb_log_message end "$@" | ||
| 44 | } | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_killproc b/meta/recipes-extended/lsb/lsb/lsb_killproc deleted file mode 100755 index 866c1a9c63..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_killproc +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | . /etc/init.d/functions | ||
| 4 | |||
| 5 | LSB=LSB-1.1 killproc $* | ||
| 6 | exit $? | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_log_message b/meta/recipes-extended/lsb/lsb/lsb_log_message deleted file mode 100755 index 10343b0819..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_log_message +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | . /etc/init.d/functions | ||
| 4 | |||
| 5 | ACTION=$1 | ||
| 6 | shift | ||
| 7 | |||
| 8 | case "$ACTION" in | ||
| 9 | success) | ||
| 10 | echo -n $* | ||
| 11 | success "$*" | ||
| 12 | echo | ||
| 13 | ;; | ||
| 14 | failure) | ||
| 15 | echo -n $* | ||
| 16 | failure "$*" | ||
| 17 | echo | ||
| 18 | ;; | ||
| 19 | warning) | ||
| 20 | echo -n $* | ||
| 21 | warning "$*" | ||
| 22 | echo | ||
| 23 | ;; | ||
| 24 | *) | ||
| 25 | ;; | ||
| 26 | esac | ||
| 27 | exit 0 | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_pidofproc b/meta/recipes-extended/lsb/lsb/lsb_pidofproc deleted file mode 100755 index 6d1fd0f249..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_pidofproc +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | . /etc/init.d/functions | ||
| 4 | |||
| 5 | pidofproc $* | ||
| 6 | exit $? | ||
diff --git a/meta/recipes-extended/lsb/lsb/lsb_start_daemon b/meta/recipes-extended/lsb/lsb/lsb_start_daemon deleted file mode 100755 index de62c2344d..0000000000 --- a/meta/recipes-extended/lsb/lsb/lsb_start_daemon +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | . /etc/init.d/functions | ||
| 4 | |||
| 5 | nice= | ||
| 6 | force= | ||
| 7 | pidfile= | ||
| 8 | user= | ||
| 9 | check= | ||
| 10 | RETVAL= | ||
| 11 | while [ "$1" != "${1##[-+]}" ]; do | ||
| 12 | case $1 in | ||
| 13 | -f) | ||
| 14 | force="--force" | ||
| 15 | shift | ||
| 16 | ;; | ||
| 17 | -n) | ||
| 18 | nice=$2 | ||
| 19 | shift 2 | ||
| 20 | ;; | ||
| 21 | -p) | ||
| 22 | pidfile="--pidfile $2" | ||
| 23 | shift 2 | ||
| 24 | ;; | ||
| 25 | -u) | ||
| 26 | user="--user $2" | ||
| 27 | shift 2 | ||
| 28 | ;; | ||
| 29 | -c) | ||
| 30 | check="--check $2" | ||
| 31 | shift 2 | ||
| 32 | ;; | ||
| 33 | *) | ||
| 34 | echo "Unknown Option $1" | ||
| 35 | echo "Options are:" | ||
| 36 | echo "-f" | ||
| 37 | echo "-p {pidfile}" | ||
| 38 | echo "-n [+/-nicelevel]" | ||
| 39 | echo "-u {user}" | ||
| 40 | echo "-c {base}" | ||
| 41 | exit 1;; | ||
| 42 | esac | ||
| 43 | done | ||
| 44 | LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $* | ||
| 45 | exit $? | ||
diff --git a/meta/recipes-extended/lsb/lsb_5.0.bb b/meta/recipes-extended/lsb/lsb_5.0.bb deleted file mode 100644 index d1de334008..0000000000 --- a/meta/recipes-extended/lsb/lsb_5.0.bb +++ /dev/null | |||
| @@ -1,136 +0,0 @@ | |||
| 1 | SUMMARY = "LSB support for OpenEmbedded" | ||
| 2 | SECTION = "console/utils" | ||
| 3 | HOMEPAGE = "http://prdownloads.sourceforge.net/lsb" | ||
| 4 | LICENSE = "GPLv2+" | ||
| 5 | |||
| 6 | LSB_CORE = "lsb-core-${TARGET_ARCH}" | ||
| 7 | LSB_CORE_x86 = "lsb-core-ia32" | ||
| 8 | LSB_CORE_x86-64 = "lsb-core-amd64" | ||
| 9 | RPROVIDES_${PN} += "${LSB_CORE}" | ||
| 10 | |||
| 11 | # lsb_release needs getopt, lsbinitscripts | ||
| 12 | RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_getopt} lsbinitscripts" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM = "file://README;md5=12da544b1a3a5a1795a21160b49471cf" | ||
| 15 | |||
| 16 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/lsb/lsb_release/1.4/lsb-release-1.4.tar.gz \ | ||
| 17 | file://0001-fix-lsb_release-to-work-with-busybox-head-and-find.patch \ | ||
| 18 | file://init-functions \ | ||
| 19 | file://lsb_killproc \ | ||
| 20 | file://lsb_log_message \ | ||
| 21 | file://lsb_pidofproc \ | ||
| 22 | file://lsb_start_daemon \ | ||
| 23 | " | ||
| 24 | UPSTREAM_VERSION_UNKNOWN = "1" | ||
| 25 | |||
| 26 | SRC_URI[md5sum] = "30537ef5a01e0ca94b7b8eb6a36bb1e4" | ||
| 27 | SRC_URI[sha256sum] = "99321288f8d62e7a1d485b7c6bdccf06766fb8ca603c6195806e4457fdf17172" | ||
| 28 | |||
| 29 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/lsb/files/lsb_release/" | ||
| 30 | UPSTREAM_CHECK_REGEX = "/lsb_release/(?P<pver>(\d+[\.\-_]*)+)/" | ||
| 31 | |||
| 32 | S = "${WORKDIR}/lsb-release-1.4" | ||
| 33 | |||
| 34 | CLEANBROKEN = "1" | ||
| 35 | |||
| 36 | do_install() { | ||
| 37 | oe_runmake install prefix=${D}${root_prefix} mandir=${D}${datadir}/man/ DESTDIR=${D} | ||
| 38 | |||
| 39 | # these two dirs are needed by package lsb-dist-checker | ||
| 40 | mkdir -p ${D}${sysconfdir}/opt | ||
| 41 | mkdir -p ${D}${localstatedir}/opt | ||
| 42 | |||
| 43 | mkdir -p ${D}${base_libdir} | ||
| 44 | mkdir -p ${D}${sysconfdir}/lsb-release.d | ||
| 45 | printf "LSB_VERSION=\"core-5.0-noarch:" > ${D}${sysconfdir}/lsb-release | ||
| 46 | |||
| 47 | if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ]; then | ||
| 48 | printf "core-5.0-ia32" >> ${D}${sysconfdir}/lsb-release | ||
| 49 | else | ||
| 50 | printf "core-5.0-${TARGET_ARCH}" >> ${D}${sysconfdir}/lsb-release | ||
| 51 | fi | ||
| 52 | echo "\"" >> ${D}${sysconfdir}/lsb-release | ||
| 53 | echo "DISTRIB_ID=${DISTRO}" >> ${D}${sysconfdir}/lsb-release | ||
| 54 | echo "DISTRIB_RELEASE=${DISTRO_VERSION}" >> ${D}${sysconfdir}/lsb-release | ||
| 55 | if [ -n "${DISTRO_CODENAME}" ]; then | ||
| 56 | echo "DISTRIB_CODENAME=${DISTRO_CODENAME}" >> ${D}${sysconfdir}/lsb-release | ||
| 57 | fi | ||
| 58 | echo "DISTRIB_DESCRIPTION=\"${DISTRO_NAME} ${DISTRO_VERSION}\"" >> ${D}${sysconfdir}/lsb-release | ||
| 59 | |||
| 60 | if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ]; then | ||
| 61 | mkdir -p ${D}${sysconfdir}/lsb-release.d | ||
| 62 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-noarch | ||
| 63 | touch ${D}${sysconfdir}/lsb-release.d/desktop-${PV}-noarch | ||
| 64 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-ia32 | ||
| 65 | touch ${D}${sysconfdir}/lsb-release.d/desktop-${PV}-ia32 | ||
| 66 | elif [ "${TARGET_ARCH}" = "x86_64" ]; then | ||
| 67 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-noarch | ||
| 68 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-amd64 | ||
| 69 | touch ${D}${sysconfdir}/lsb-release.d/desktop-${PV}-amd64 | ||
| 70 | fi | ||
| 71 | if [ "${TARGET_ARCH}" = "powerpc" ]; then | ||
| 72 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-noarch | ||
| 73 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-ppc32 | ||
| 74 | touch ${D}${sysconfdir}/lsb-release.d/desktop-${PV}-ppc32 | ||
| 75 | elif [ "${TARGET_ARCH}" = "powerpc64" ]; then | ||
| 76 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-noarch | ||
| 77 | touch ${D}${sysconfdir}/lsb-release.d/graphics-${PV}-ppc64 | ||
| 78 | touch ${D}${sysconfdir}/lsb-release.d/desktop-${PV}-ppc64 | ||
| 79 | fi | ||
| 80 | } | ||
| 81 | |||
| 82 | do_install_append() { | ||
| 83 | install -d ${D}${sysconfdir}/core-lsb | ||
| 84 | for i in lsb_killproc lsb_log_message lsb_pidofproc lsb_start_daemon | ||
| 85 | do | ||
| 86 | install -m 0755 ${WORKDIR}/$i ${D}${sysconfdir}/core-lsb | ||
| 87 | done | ||
| 88 | |||
| 89 | install -d ${D}${nonarch_base_libdir}/lsb | ||
| 90 | install -m 0755 ${WORKDIR}/init-functions ${D}${nonarch_base_libdir}/lsb | ||
| 91 | |||
| 92 | # create links for LSB test | ||
| 93 | if [ -e ${sbindir}/chkconfig ]; then | ||
| 94 | if [ "${nonarch_base_libdir}" != "${nonarch_libdir}" ] ; then | ||
| 95 | install -d ${D}${nonarch_libdir}/lsb | ||
| 96 | fi | ||
| 97 | ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/install_initd | ||
| 98 | ln -sf ${sbindir}/chkconfig ${D}${nonarch_libdir}/lsb/remove_initd | ||
| 99 | fi | ||
| 100 | |||
| 101 | if [ "${TARGET_ARCH}" = "x86_64" ]; then | ||
| 102 | # don't symlink if usrmerge is in DISTRO_FEATURES as it manages the symlink | ||
| 103 | if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','false','true',d)} && \ | ||
| 104 | [ "${base_libdir}" != "${base_prefix}/lib64" ]; then | ||
| 105 | lnr ${D}${base_libdir} ${D}${base_prefix}/lib64 | ||
| 106 | fi | ||
| 107 | cd ${D}${base_libdir} | ||
| 108 | ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.2 | ||
| 109 | ln -sf ld-linux-x86-64.so.2 ld-lsb-x86-64.so.3 | ||
| 110 | fi | ||
| 111 | if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ]; then | ||
| 112 | cd ${D}${base_libdir} | ||
| 113 | ln -sf ld-linux.so.2 ld-lsb.so.2 | ||
| 114 | ln -sf ld-linux.so.2 ld-lsb.so.3 | ||
| 115 | fi | ||
| 116 | |||
| 117 | if [ "${TARGET_ARCH}" = "powerpc64" ]; then | ||
| 118 | if [ "${base_libdir}" != "${base_prefix}/lib64" ]; then | ||
| 119 | lnr ${D}${base_libdir} ${D}${base_prefix}/lib64 | ||
| 120 | fi | ||
| 121 | cd ${D}${base_libdir} | ||
| 122 | ln -sf ld64.so.1 ld-lsb-ppc64.so.2 | ||
| 123 | ln -sf ld64.so.1 ld-lsb-ppc64.so.3 | ||
| 124 | fi | ||
| 125 | if [ "${TARGET_ARCH}" = "powerpc" ]; then | ||
| 126 | cd ${D}${base_libdir} | ||
| 127 | ln -sf ld.so.1 ld-lsb-ppc32.so.2 | ||
| 128 | ln -sf ld.so.1 ld-lsb-ppc32.so.3 | ||
| 129 | fi | ||
| 130 | } | ||
| 131 | |||
| 132 | FILES_${PN} += "${@'${base_prefix}/lib64' if d.getVar('TARGET_ARCH') == ('x86_64' or 'powerpc64') and '${base_libdir}' != '${base_prefix}/lib64' else ''} \ | ||
| 133 | ${base_libdir} \ | ||
| 134 | ${nonarch_libdir}/lsb \ | ||
| 135 | ${nonarch_base_libdir}/lsb/* \ | ||
| 136 | " | ||
diff --git a/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch b/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch deleted file mode 100644 index c0076453f2..0000000000 --- a/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Subject: functions: avoid exit 1 which causes init scripts to fail | ||
| 4 | |||
| 5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
| 6 | --- | ||
| 7 | rc.d/init.d/functions | 2 +- | ||
| 8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 9 | |||
| 10 | Index: initscripts-9.72/rc.d/init.d/functions | ||
| 11 | =================================================================== | ||
| 12 | --- initscripts-9.72.orig/rc.d/init.d/functions | ||
| 13 | +++ initscripts-9.72/rc.d/init.d/functions | ||
| 14 | @@ -686,6 +686,6 @@ if [ "$_use_systemctl" = "1" ]; then | ||
| 15 | fi | ||
| 16 | fi | ||
| 17 | |||
| 18 | -strstr "$(cat /proc/cmdline)" "rc.debug" && set -x | ||
| 19 | +strstr "$(cat /proc/cmdline)" "rc.debug" && set -x || true | ||
| 20 | return 0 | ||
| 21 | |||
diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch deleted file mode 100644 index e912daa701..0000000000 --- a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From e46b056282c8420f096d5c34d78c00f816788784 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Fan Xin <fan.xin@jp.fujitsu.com> | ||
| 3 | Date: Mon, 5 Jun 2017 16:26:47 +0900 | ||
| 4 | Subject: [PATCH 1/2] Upstream-Status: Inappropriate [configuration] | ||
| 5 | |||
| 6 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> | ||
| 7 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 8 | |||
| 9 | Rebase on 9.72 | ||
| 10 | |||
| 11 | Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com> | ||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | --- | ||
| 15 | rc.d/init.d/functions | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions | ||
| 19 | index 2e3da964..1a204dec 100644 | ||
| 20 | --- a/rc.d/init.d/functions | ||
| 21 | +++ b/rc.d/init.d/functions | ||
| 22 | @@ -59,7 +59,7 @@ systemctl_redirect () { | ||
| 23 | [ -z "${COLUMNS:-}" ] && COLUMNS=80 | ||
| 24 | |||
| 25 | if [ -z "${CONSOLETYPE:-}" ]; then | ||
| 26 | - if [ -c "/dev/stderr" ] && [ -r "/dev/stderr" ]; then | ||
| 27 | + if [ -c "/dev/stderr" ] && [ -r "/dev/stderr" ] && [ -e /sbin/consoletype ]; then | ||
| 28 | CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)" | ||
| 29 | else | ||
| 30 | CONSOLETYPE="serial" | ||
| 31 | -- | ||
| 32 | 2.15.1 | ||
| 33 | |||
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.79.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.79.bb deleted file mode 100644 index 6d3fcf13dd..0000000000 --- a/meta/recipes-extended/lsb/lsbinitscripts_9.79.bb +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | SUMMARY = "SysV init scripts which are only used in an LSB image" | ||
| 2 | HOMEPAGE = "https://wiki.debian.org/LSBInitScripts" | ||
| 3 | SECTION = "base" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | |||
| 6 | RPROVIDES_${PN} += "initd-functions" | ||
| 7 | RDEPENDS_${PN} += "util-linux" | ||
| 8 | RCONFLICTS_${PN} = "initscripts-functions" | ||
| 9 | |||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | SRC_URI = "git://github.com/fedora-sysv/initscripts \ | ||
| 14 | file://functions.patch \ | ||
| 15 | file://0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch \ | ||
| 16 | " | ||
| 17 | SRCREV = "a51c1b4f7dcf55b568b2ee4c2b18078849943469" | ||
| 18 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)" | ||
| 19 | |||
| 20 | SRC_URI[md5sum] = "d6c798f40dceb117e12126d94cb25a9a" | ||
| 21 | SRC_URI[sha256sum] = "1793677bdd1f7ee4cb00878ce43346196374f848a4c8e4559e086040fc7487db" | ||
| 22 | |||
| 23 | # Since we are only taking the patched version of functions, no need to | ||
| 24 | # configure or compile anything so do not execute these | ||
| 25 | do_configure[noexec] = "1" | ||
| 26 | do_compile[noexec] = "1" | ||
| 27 | |||
| 28 | do_install(){ | ||
| 29 | install -d ${D}${sysconfdir}/init.d/ | ||
| 30 | install -m 0644 ${S}/rc.d/init.d/functions ${D}${sysconfdir}/init.d/functions | ||
| 31 | } | ||
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh deleted file mode 100644 index 073e247a58..0000000000 --- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh +++ /dev/null | |||
| @@ -1,525 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Copyright (C) 2012 Wind River Systems, Inc. | ||
| 4 | # | ||
| 5 | # This program is free software; you can redistribute it and/or modify | ||
| 6 | # it under the terms of the GNU General Public License version 2 as | ||
| 7 | # published by the Free Software Foundation. | ||
| 8 | # | ||
| 9 | # This program is distributed in the hope that it will be useful, | ||
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| 12 | # See the GNU General Public License for more details. | ||
| 13 | # | ||
| 14 | # You should have received a copy of the GNU General Public License | ||
| 15 | # along with this program; if not, write to the Free Software | ||
| 16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 17 | |||
| 18 | |||
| 19 | WORK_DIR="/opt/lsb-test" | ||
| 20 | |||
| 21 | if [ `id -u` -ne 0 ] | ||
| 22 | then | ||
| 23 | cat << EOF | ||
| 24 | In order to install and run LSB testsuite, you need administrator privileges. | ||
| 25 | You are currently running this script as an unprivileged user. | ||
| 26 | |||
| 27 | EOF | ||
| 28 | exit 1 | ||
| 29 | fi | ||
| 30 | |||
| 31 | ARCH=`uname -m` | ||
| 32 | if [ ${ARCH} != "i686" ] && [ ${ARCH} != "x86_64" ] && [ ${ARCH} != "ppc" ] && [ ${ARCH} != "ppc64" ] | ||
| 33 | then | ||
| 34 | echo "Error: Unsupported architecture" | ||
| 35 | exit 1 | ||
| 36 | fi | ||
| 37 | |||
| 38 | which rpm | ||
| 39 | if [ $? -ne 0 ] | ||
| 40 | then | ||
| 41 | echo "No rpm command found" | ||
| 42 | exit 1 | ||
| 43 | fi | ||
| 44 | |||
| 45 | RET=0 | ||
| 46 | |||
| 47 | cd ${WORK_DIR} || exit 1 | ||
| 48 | # Step 1: Download the LSB Packages | ||
| 49 | echo "" | ||
| 50 | echo "Download LSB packages..." | ||
| 51 | echo "" | ||
| 52 | |||
| 53 | if [ ! -e ./packages_list ] | ||
| 54 | then | ||
| 55 | echo "Error: Could not find packages list" >&2 | ||
| 56 | exit 1 | ||
| 57 | fi | ||
| 58 | |||
| 59 | . ./packages_list | ||
| 60 | |||
| 61 | PACKAGES_DIR="/var/opt/lsb/test/manager/packages/ftp.linuxfoundation.org/pub/lsb" | ||
| 62 | |||
| 63 | BASE_PACKAGES_DIR="${PACKAGES_DIR}/base/released-all/binary" | ||
| 64 | RUNTIME_BASE_PACKAGES_DIR="${PACKAGES_DIR}/test_suites/released-all/binary/runtime" | ||
| 65 | RUNTIME_PACKAGES_DIR="${PACKAGES_DIR}/test_suites/${LSB_RELEASE}/binary/runtime" | ||
| 66 | APP_PACKAGES_DIR="${PACKAGES_DIR}/app-battery/${LSB_RELEASE}/${LSB_ARCH}" | ||
| 67 | APP_TESTFILES_DIR="${PACKAGES_DIR}/app-battery/tests" | ||
| 68 | SNAPSHOTS_TESTFILES_DIR="${PACKAGES_DIR}/snapshots/appbat/tests" | ||
| 69 | |||
| 70 | if [ ! -d ${PACKAGES_DIR} ] | ||
| 71 | then | ||
| 72 | mkdir -p ${PACKAGES_DIR} | ||
| 73 | fi | ||
| 74 | |||
| 75 | if [ ! -d ${BASE_PACKAGES_DIR} ] | ||
| 76 | then | ||
| 77 | mkdir -p ${BASE_PACKAGES_DIR} | ||
| 78 | fi | ||
| 79 | |||
| 80 | if [ ! -d ${RUNTIME_BASE_PACKAGES_DIR} ] | ||
| 81 | then | ||
| 82 | mkdir -p ${RUNTIME_BASE_PACKAGES_DIR} | ||
| 83 | fi | ||
| 84 | |||
| 85 | if [ ! -d ${RUNTIME_PACKAGES_DIR} ] | ||
| 86 | then | ||
| 87 | mkdir -p ${RUNTIME_PACKAGES_DIR} | ||
| 88 | fi | ||
| 89 | |||
| 90 | if [ ! -d ${APP_PACKAGES_DIR} ] | ||
| 91 | then | ||
| 92 | mkdir -p ${APP_PACKAGES_DIR} | ||
| 93 | fi | ||
| 94 | |||
| 95 | if [ ! -d ${APP_TESTFILES_DIR} ] | ||
| 96 | then | ||
| 97 | mkdir -p ${APP_TESTFILES_DIR} | ||
| 98 | fi | ||
| 99 | |||
| 100 | # Official download server list. You can replace them with your own server. | ||
| 101 | SERVER_IPADDR="140.211.169.28" | ||
| 102 | SERVER_NAME="ftp.linuxfoundation.org" | ||
| 103 | |||
| 104 | if ! `grep -F -q "${SERVER_NAME}" /etc/hosts`; then | ||
| 105 | echo "${SERVER_IPADDR} ${SERVER_NAME} ${SERVER_NAME}" >> /etc/hosts | ||
| 106 | fi | ||
| 107 | |||
| 108 | #ping -c 5 ${SERVER_NAME} | ||
| 109 | #if [ $? -ne 0 ] | ||
| 110 | #then | ||
| 111 | # echo "The server: ${SERVER_NAME} is unreachable" | ||
| 112 | # exit 1 | ||
| 113 | #fi | ||
| 114 | |||
| 115 | SERVER1="\ | ||
| 116 | http://${SERVER_NAME}/pub/lsb/base/released-all/binary" | ||
| 117 | SERVER2="\ | ||
| 118 | http://${SERVER_NAME}/pub/lsb/test_suites/released-all/binary/runtime" | ||
| 119 | SERVER3="\ | ||
| 120 | http://${SERVER_NAME}/pub/lsb/test_suites/${LSB_RELEASE}/binary/runtime" | ||
| 121 | SERVER4="\ | ||
| 122 | http://${SERVER_NAME}/pub/lsb/app-battery/${LSB_RELEASE}/${LSB_ARCH}" | ||
| 123 | SERVER5="\ | ||
| 124 | http://${SERVER_NAME}/pub/lsb/app-battery/tests" | ||
| 125 | |||
| 126 | # We using "curl" as a download tool, "wget" is an alternative. | ||
| 127 | CURL=`which curl` | ||
| 128 | WGET=`which wget` | ||
| 129 | if [ ! -z ${CURL} ] | ||
| 130 | then | ||
| 131 | DOWNLOAD_CMD="${CURL} -R -L -f --retry 3 --retry-delay 4 --connect-timeout 180 --compressed -C - -o" | ||
| 132 | elif [ ! -z ${WGET} ] | ||
| 133 | then | ||
| 134 | DOWNLOAD_CMD="${WGET} -c -t 5 -O" | ||
| 135 | else | ||
| 136 | echo "Can not find a download tool, please install curl or wget." | ||
| 137 | exit 1 | ||
| 138 | fi | ||
| 139 | |||
| 140 | cd ${BASE_PACKAGES_DIR} | ||
| 141 | for pkg in ${BASE_PACKAGES_LIST}; do | ||
| 142 | if [ ! -f ${pkg} ] | ||
| 143 | then | ||
| 144 | #${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER1}/${pkg} > /dev/null 2>&1 | ||
| 145 | ${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER1}/${pkg} | ||
| 146 | if [ $? -eq 0 ] | ||
| 147 | then | ||
| 148 | mv -f ${pkg}".#part" ${pkg} | ||
| 149 | echo "Download ${pkg} successfully." | ||
| 150 | else | ||
| 151 | echo "Download ${pkg} failed." | ||
| 152 | RET=1 | ||
| 153 | fi | ||
| 154 | fi | ||
| 155 | done | ||
| 156 | |||
| 157 | cd ${RUNTIME_BASE_PACKAGES_DIR} | ||
| 158 | for pkg in ${RUNTIME_BASE_PACKAGES_LIST}; do | ||
| 159 | if [ ! -f ${pkg} ] | ||
| 160 | then | ||
| 161 | #${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER2}/${pkg} > /dev/null 2>&1 | ||
| 162 | ${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER2}/${pkg} | ||
| 163 | if [ $? -eq 0 ] | ||
| 164 | then | ||
| 165 | mv -f ${pkg}".#part" ${pkg} | ||
| 166 | echo "Download ${pkg} successfully." | ||
| 167 | else | ||
| 168 | echo "Download ${pkg} failed." | ||
| 169 | RET=1 | ||
| 170 | fi | ||
| 171 | fi | ||
| 172 | done | ||
| 173 | |||
| 174 | cd ${RUNTIME_PACKAGES_DIR} | ||
| 175 | for pkg in ${RUNTIME_PACKAGES_LIST}; do | ||
| 176 | if [ ! -f ${pkg} ] | ||
| 177 | then | ||
| 178 | #${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER3}/${pkg} > /dev/null 2>&1 | ||
| 179 | ${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER3}/${pkg} | ||
| 180 | if [ $? -eq 0 ] | ||
| 181 | then | ||
| 182 | mv -f ${pkg}".#part" ${pkg} | ||
| 183 | echo "Download ${pkg} successfully." | ||
| 184 | else | ||
| 185 | echo "Download ${pkg} failed." | ||
| 186 | RET=1 | ||
| 187 | fi | ||
| 188 | fi | ||
| 189 | done | ||
| 190 | |||
| 191 | cd ${APP_PACKAGES_DIR} | ||
| 192 | for pkg in ${APP_PACKAGES_LIST}; do | ||
| 193 | if [ ! -f ${pkg} ] | ||
| 194 | then | ||
| 195 | #${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER4}/${pkg} > /dev/null 2>&1 | ||
| 196 | ${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER4}/${pkg} | ||
| 197 | if [ $? -eq 0 ] | ||
| 198 | then | ||
| 199 | mv -f ${pkg}".#part" ${pkg} | ||
| 200 | echo "Download ${pkg} successfully." | ||
| 201 | else | ||
| 202 | echo "Download ${pkg} failed." | ||
| 203 | RET=1 | ||
| 204 | fi | ||
| 205 | fi | ||
| 206 | done | ||
| 207 | |||
| 208 | cd ${APP_TESTFILES_DIR} | ||
| 209 | for pkg in ${APP_TESTFILES_LIST}; do | ||
| 210 | if [ ! -f ${pkg} ] | ||
| 211 | then | ||
| 212 | #${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER5}/${pkg} > /dev/null 2>&1 | ||
| 213 | ${DOWNLOAD_CMD} ${pkg}".#part" ${SERVER5}/${pkg} | ||
| 214 | if [ $? -eq 0 ] | ||
| 215 | then | ||
| 216 | mv -f ${pkg}".#part" ${pkg} | ||
| 217 | echo "Download ${pkg} successfully." | ||
| 218 | else | ||
| 219 | echo "Download ${pkg} failed." | ||
| 220 | RET=1 | ||
| 221 | fi | ||
| 222 | fi | ||
| 223 | done | ||
| 224 | |||
| 225 | if [ ${RET} -ne 0 ] | ||
| 226 | then | ||
| 227 | echo "Download some packages failed. Please download them again." | ||
| 228 | exit 1 | ||
| 229 | fi | ||
| 230 | |||
| 231 | # Step 2: Install the LSB Packages | ||
| 232 | echo "" | ||
| 233 | echo "Install LSB packages..." | ||
| 234 | echo "" | ||
| 235 | |||
| 236 | # Kill lighttpd | ||
| 237 | ps aux | grep "lighttpd" | grep -v -q "grep" | ||
| 238 | if [ $? -eq 0 ] | ||
| 239 | then | ||
| 240 | killall lighttpd >/dev/null 2>&1 | ||
| 241 | fi | ||
| 242 | |||
| 243 | # Start avahi-daemon | ||
| 244 | ps aux | grep "avahi-daemon" | grep -v -q "grep" | ||
| 245 | if [ $? -ne 0 ] | ||
| 246 | then | ||
| 247 | /etc/init.d/avahi-daemon start >/dev/null 2>&1 | ||
| 248 | fi | ||
| 249 | |||
| 250 | LSB_START_CMD="/opt/lsb/test/manager/bin/dist-checker-start.pl" | ||
| 251 | LSB_STOP_CMD="/opt/lsb/test/manager/bin/dist-checker-stop.pl" | ||
| 252 | |||
| 253 | PLATFORM_FILE="/etc/rpm/platform" | ||
| 254 | |||
| 255 | RPM_INSTALL_CMD="rpm --quiet --nodeps --replacepkgs --nosignature -i --ignoreos" | ||
| 256 | RPM_INSTALL_CMD_NOSCRIPTS="rpm --quiet --nodeps --replacepkgs --noscripts --nosignature -i --ignoreos" | ||
| 257 | |||
| 258 | # If the lsb has been started, stop it first. | ||
| 259 | if [ -x ${LSB_STOP_CMD} ] | ||
| 260 | then | ||
| 261 | ${LSB_STOP_CMD} | ||
| 262 | fi | ||
| 263 | |||
| 264 | if [ ! -d /etc/rpm ] | ||
| 265 | then | ||
| 266 | mkdir -p /etc/rpm | ||
| 267 | fi | ||
| 268 | |||
| 269 | if [ ! -f ${PLATFORM_FILE} ] | ||
| 270 | then | ||
| 271 | touch ${PLATFORM_FILE} | ||
| 272 | fi | ||
| 273 | |||
| 274 | if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then | ||
| 275 | if [ ${ARCH} = i686 ];then | ||
| 276 | echo "i486-suse" >> ${PLATFORM_FILE} | ||
| 277 | echo "i486-noarch" >> ${PLATFORM_FILE} | ||
| 278 | echo "i486-pc" >> ${PLATFORM_FILE} | ||
| 279 | echo "noarch-suse" >> ${PLATFORM_FILE} | ||
| 280 | elif [ ${ARCH} = x86_64 ]; then | ||
| 281 | echo "i486-suse" >> ${PLATFORM_FILE} | ||
| 282 | echo "i486-noarch" >> ${PLATFORM_FILE} | ||
| 283 | echo "i486-pc" >> ${PLATFORM_FILE} | ||
| 284 | echo "i486-.*-linux.*" >> ${PLATFORM_FILE} | ||
| 285 | echo "noarch-suse" >> ${PLATFORM_FILE} | ||
| 286 | echo "${ARCH}-suse" >> ${PLATFORM_FILE} | ||
| 287 | echo "${ARCH}-noarch" >> ${PLATFORM_FILE} | ||
| 288 | echo "${ARCH}-pc" >> ${PLATFORM_FILE} | ||
| 289 | else | ||
| 290 | echo "${ARCH}-suse" >> ${PLATFORM_FILE} | ||
| 291 | echo "${ARCH}-noarch" >> ${PLATFORM_FILE} | ||
| 292 | echo "${ARCH}-pc" >> ${PLATFORM_FILE} | ||
| 293 | echo "noarch-suse" >> ${PLATFORM_FILE} | ||
| 294 | fi | ||
| 295 | fi | ||
| 296 | |||
| 297 | if [ -d ${BASE_PACKAGES_DIR} ] | ||
| 298 | then | ||
| 299 | cd ${BASE_PACKAGES_DIR} | ||
| 300 | for pkg in ${BASE_PACKAGES_LIST} | ||
| 301 | do | ||
| 302 | rpm --quiet -q ${pkg%\.*} | ||
| 303 | if [ $? -ne 0 ]; then | ||
| 304 | $RPM_INSTALL_CMD ${pkg} | ||
| 305 | fi | ||
| 306 | done | ||
| 307 | fi | ||
| 308 | |||
| 309 | if [ -d ${RUNTIME_BASE_PACKAGES_DIR} ] | ||
| 310 | then | ||
| 311 | cd ${RUNTIME_BASE_PACKAGES_DIR} | ||
| 312 | for pkg in ${RUNTIME_BASE_PACKAGES_LIST} | ||
| 313 | do | ||
| 314 | rpm --quiet -q ${pkg%\.*} | ||
| 315 | if [ $? -ne 0 ]; then | ||
| 316 | $RPM_INSTALL_CMD ${pkg} | ||
| 317 | fi | ||
| 318 | done | ||
| 319 | fi | ||
| 320 | |||
| 321 | if [ -d ${RUNTIME_PACKAGES_DIR} ] | ||
| 322 | then | ||
| 323 | cd ${RUNTIME_PACKAGES_DIR} | ||
| 324 | for pkg in ${RUNTIME_PACKAGES_LIST} | ||
| 325 | do | ||
| 326 | rpm --quiet -q ${pkg%\.*} | ||
| 327 | if [ $? -ne 0 ]; then | ||
| 328 | $RPM_INSTALL_CMD ${pkg} | ||
| 329 | fi | ||
| 330 | done | ||
| 331 | fi | ||
| 332 | |||
| 333 | if [ -d ${APP_PACKAGES_DIR} ] | ||
| 334 | then | ||
| 335 | cd ${APP_PACKAGES_DIR} | ||
| 336 | for pkg in ${APP_PACKAGES_LIST} | ||
| 337 | do | ||
| 338 | echo "${pkg}" | grep -q "apache\|xpdf" | ||
| 339 | if [ $? -eq 0 ] | ||
| 340 | then | ||
| 341 | rpm --quiet -q ${pkg%\.*} | ||
| 342 | if [ $? -ne 0 ]; then | ||
| 343 | $RPM_INSTALL_CMD_NOSCRIPTS ${pkg} | ||
| 344 | fi | ||
| 345 | else | ||
| 346 | rpm --quiet -q ${pkg%\.*} | ||
| 347 | if [ $? -ne 0 ]; then | ||
| 348 | $RPM_INSTALL_CMD ${pkg} | ||
| 349 | fi | ||
| 350 | fi | ||
| 351 | done | ||
| 352 | fi | ||
| 353 | |||
| 354 | if [ ! -d ${SNAPSHOTS_TESTFILES_DIR} ] | ||
| 355 | then | ||
| 356 | mkdir -p ${SNAPSHOTS_TESTFILES_DIR} | ||
| 357 | fi | ||
| 358 | |||
| 359 | if [ -d ${APP_TESTFILES_DIR} ] | ||
| 360 | then | ||
| 361 | cd ${APP_TESTFILES_DIR} | ||
| 362 | for pkg in ${APP_TESTFILES_LIST} | ||
| 363 | do | ||
| 364 | cp -f ${pkg} ${SNAPSHOTS_TESTFILES_DIR} | ||
| 365 | done | ||
| 366 | fi | ||
| 367 | |||
| 368 | cd ${WORK_DIR} | ||
| 369 | |||
| 370 | # Step 3: Set environment | ||
| 371 | echo "" | ||
| 372 | echo "Set environment..." | ||
| 373 | echo "" | ||
| 374 | |||
| 375 | check () | ||
| 376 | { | ||
| 377 | if [ $? -eq 0 ] | ||
| 378 | then | ||
| 379 | echo "PASS" | ||
| 380 | else | ||
| 381 | echo "FAIL" | ||
| 382 | exit 1 | ||
| 383 | fi | ||
| 384 | } | ||
| 385 | |||
| 386 | echo "" | ||
| 387 | echo "---------------------------------" | ||
| 388 | echo "Create the Dirnames on target" | ||
| 389 | |||
| 390 | if [ ! -d /etc/rpm/sysinfo ] | ||
| 391 | then | ||
| 392 | mkdir -p /etc/rpm/sysinfo | ||
| 393 | fi | ||
| 394 | |||
| 395 | cat > /etc/rpm/sysinfo/Dirnames << EOF | ||
| 396 | /etc/opt/lsb | ||
| 397 | /home/tet/LSB.tools | ||
| 398 | /opt/lsb-tet3-lite/lib/ksh | ||
| 399 | /opt/lsb-tet3-lite/lib/perl | ||
| 400 | /opt/lsb-tet3-lite/lib/posix_sh | ||
| 401 | /opt/lsb-tet3-lite/lib/tet3 | ||
| 402 | /opt/lsb-tet3-lite/lib/xpg3sh | ||
| 403 | /opt/lsb/appbat/lib/python2.4/site-packages/qm | ||
| 404 | /opt/lsb/appbat/lib/python2.4/site-packages/qm/external | ||
| 405 | /opt/lsb/appbat/lib/python2.4/site-packages/qm/external/DocumentTemplate | ||
| 406 | /opt/lsb/appbat/lib/python2.4/site-packages/qm/test | ||
| 407 | /opt/lsb/appbat/lib/python2.4/site-packages/qm/test/classes | ||
| 408 | /opt/lsb/appbat/lib/python2.4/site-packages/qm/test/web | ||
| 409 | /opt/lsb/test/doc | ||
| 410 | /opt/lsb/test/lib | ||
| 411 | /opt/lsb/test/qm/diagnostics | ||
| 412 | /opt/lsb/test/qm/doc | ||
| 413 | /opt/lsb/test/qm/doc/test/html | ||
| 414 | /opt/lsb/test/qm/doc/test/print | ||
| 415 | /opt/lsb/test/qm/dtml | ||
| 416 | /opt/lsb/test/qm/dtml/test | ||
| 417 | /opt/lsb/test/qm/messages/test | ||
| 418 | /opt/lsb/test/qm/tutorial/test/tdb | ||
| 419 | /opt/lsb/test/qm/tutorial/test/tdb/QMTest | ||
| 420 | /opt/lsb/test/qm/web | ||
| 421 | /opt/lsb/test/qm/web/images | ||
| 422 | /opt/lsb/test/qm/web/stylesheets | ||
| 423 | /opt/lsb/test/qm/xml | ||
| 424 | /opt/lsb/test/share | ||
| 425 | /usr/share/doc/lsb-runtime-test | ||
| 426 | /var/opt/lsb | ||
| 427 | /opt/lsb/test/desktop | ||
| 428 | /opt/lsb/test/desktop/fontconfig | ||
| 429 | /opt/lsb/test/desktop/freetype | ||
| 430 | /opt/lsb/test/desktop/gtkvts | ||
| 431 | /opt/lsb/test/desktop/libpng | ||
| 432 | /opt/lsb/test/desktop/xft | ||
| 433 | /opt/lsb/test/desktop/xml | ||
| 434 | /opt/lsb/test/desktop/xrender | ||
| 435 | |||
| 436 | |||
| 437 | EOF | ||
| 438 | |||
| 439 | if [ -f /etc/rpm/sysinfo/Dirnames ] | ||
| 440 | then | ||
| 441 | echo "Success to creat Dirnames file" | ||
| 442 | else | ||
| 443 | echo "Fail to creat Dirnames file" | ||
| 444 | fi | ||
| 445 | |||
| 446 | [ -x /sbin/ldconfig ] && { | ||
| 447 | echo "" | ||
| 448 | echo "---------------------------------" | ||
| 449 | echo "Update cache" | ||
| 450 | /sbin/ldconfig | ||
| 451 | check; | ||
| 452 | } | ||
| 453 | |||
| 454 | # Check loop device | ||
| 455 | if [ ! -b /dev/loop0 ] | ||
| 456 | then | ||
| 457 | insmod /lib/modules/`uname -r`/kernel/drivers/block/loop.ko | ||
| 458 | if [ $? != 0 ];then | ||
| 459 | echo "Insmod loop.ko failed." | ||
| 460 | fi | ||
| 461 | fi | ||
| 462 | |||
| 463 | # Resolve localhost | ||
| 464 | LOCALHOST=`hostname` | ||
| 465 | if ! `grep -F -q "$LOCALHOST" /etc/hosts`; then | ||
| 466 | echo "127.0.0.1 $LOCALHOST" >> /etc/hosts | ||
| 467 | fi | ||
| 468 | |||
| 469 | # Workaround to add part of locales for LSB test | ||
| 470 | localedef -i de_DE -f ISO-8859-1 de_DE | ||
| 471 | localedef -i de_DE -f ISO-8859-15 de_DE.ISO-8859-15 | ||
| 472 | localedef -i de_DE -f UTF-8 de_DE.UTF-8 | ||
| 473 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro | ||
| 474 | localedef -i en_HK -f ISO-8859-1 en_HK | ||
| 475 | localedef -i en_PH -f ISO-8859-1 en_PH | ||
| 476 | localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 | ||
| 477 | localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1 | ||
| 478 | localedef -i en_US -f ISO-8859-1 en_US | ||
| 479 | localedef -i en_US -f UTF-8 en_US.UTF-8 | ||
| 480 | localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1 | ||
| 481 | localedef -i es_MX -f ISO-8859-1 es_MX | ||
| 482 | localedef -i fr_FR -f ISO-8859-1 fr_FR | ||
| 483 | localedef -i it_IT -f ISO-8859-1 it_IT | ||
| 484 | localedef -i ja_JP -f EUC-JP ja_JP.eucjp | ||
| 485 | localedef -i se_NO -f UTF-8 se_NO.UTF-8 | ||
| 486 | localedef -i ta_IN -f UTF-8 ta_IN | ||
| 487 | localedef -i es_ES -f ISO-8859-1 es_ES | ||
| 488 | localedef -i fr_FR@euro -f ISO-8859-1 fr_FR@euro | ||
| 489 | localedef -i is_IS -f UTF-8 is_IS.UTF-8 | ||
| 490 | localedef -i zh_TW -f BIG5 zh_TW.BIG5 | ||
| 491 | localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 | ||
| 492 | |||
| 493 | echo "" | ||
| 494 | echo "Installation done!" | ||
| 495 | echo "" | ||
| 496 | |||
| 497 | # Step 4: Start LSB test | ||
| 498 | if [ -x ${LSB_START_CMD} ] | ||
| 499 | then | ||
| 500 | ${LSB_START_CMD} | ||
| 501 | fi | ||
| 502 | |||
| 503 | echo "---------------------------------" | ||
| 504 | echo "Run all the certification version of LSB Tests" | ||
| 505 | echo "---------------------------------" | ||
| 506 | |||
| 507 | LSB_DIST_CHECKER="/opt/lsb/test/manager/utils/dist-checker.pl" | ||
| 508 | SESSION="${WORK_DIR}/session" | ||
| 509 | if [ ! -e ${SESSION} ] | ||
| 510 | then | ||
| 511 | echo "Error: Could not find session file." | ||
| 512 | echo "You must run LSB test from webbrower." | ||
| 513 | exit 1 | ||
| 514 | fi | ||
| 515 | |||
| 516 | if [ -x ${LSB_DIST_CHECKER} ] | ||
| 517 | then | ||
| 518 | ${LSB_DIST_CHECKER} -v2 -f ${SESSION} | ||
| 519 | check | ||
| 520 | fi | ||
| 521 | |||
| 522 | echo "" | ||
| 523 | echo "LSB test complete. Please check the log file in /var/opt/lsb/test/manager/results/" | ||
| 524 | echo "" | ||
| 525 | |||
diff --git a/meta/recipes-extended/lsb/lsbtest/packages_list b/meta/recipes-extended/lsb/lsbtest/packages_list deleted file mode 100644 index 1a6c11699a..0000000000 --- a/meta/recipes-extended/lsb/lsbtest/packages_list +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | LSB_RELEASE="released-5.0" | ||
| 2 | LSB_ARCH="lsbarch" | ||
| 3 | |||
| 4 | BASE_PACKAGES_LIST="lsb-setup-5.0.0-2.noarch.rpm" | ||
| 5 | |||
| 6 | RUNTIME_BASE_PACKAGES_LIST="lsb-dist-checker-5.0.0.1-1.targetarch.rpm \ | ||
| 7 | lsb-tet3-lite-3.7-27.lsb5.targetarch.rpm \ | ||
| 8 | lsb-tet3-lite-devel-3.7-27.lsb5.targetarch.rpm \ | ||
| 9 | lsb-xvfb-1.2.0-22.targetarch.rpm \ | ||
| 10 | " | ||
| 11 | |||
| 12 | RUNTIME_PACKAGES_LIST="lsb-cmdchk-5.0.3-1.targetarch.rpm \ | ||
| 13 | lsb-libchk-5.0.3-1.targetarch.rpm \ | ||
| 14 | lsb-qm-2.2-1.lsb5.targetarch.rpm \ | ||
| 15 | lsb-task-dist-testkit-5.0.0-2.noarch.rpm \ | ||
| 16 | lsb-test-core-5.0.1-1.targetarch.rpm \ | ||
| 17 | lsb-test-cpp-t2c-5.0.0-1.targetarch.rpm \ | ||
| 18 | lsb-test-desktop-5.0.0-1.targetarch.rpm \ | ||
| 19 | lsb-test-desktop-t2c-5.0.0-1.targetarch.rpm \ | ||
| 20 | lsb-test-libstdcpp-4.1.0-22.lsb1.targetarch.rpm \ | ||
| 21 | lsb-test-olver-core-5.0.0-1.targetarch.rpm \ | ||
| 22 | lsb-test-perl-5.0.2-1.noarch.rpm \ | ||
| 23 | lsb-test-printing-5.0.1-1.targetarch.rpm \ | ||
| 24 | lsb-test-python-5.0.0-1.targetarch.rpm \ | ||
| 25 | lsb-test-qt4-azov-5.0.0-1.targetarch.rpm \ | ||
| 26 | lsb-test-xts5-5.1.5-47.lsb5.targetarch.rpm \ | ||
| 27 | lsb-test-alsa-t2c-5.1.91-4.targetarch.rpm \ | ||
| 28 | lsb-test-core-t2c-5.0.1-1.targetarch.rpm \ | ||
| 29 | lsb-test-xml2-azov-5.0.0-1.targetarch.rpm \ | ||
| 30 | " | ||
| 31 | |||
| 32 | APP_PACKAGES_LIST="lsb-python-2.4.6-10.lsb5.targetarch.rpm \ | ||
| 33 | lsb-apache-2.2.19-5.lsb5.targetarch.rpm \ | ||
| 34 | lsb-tcl-8.5.9-21.lsb5.targetarch.rpm \ | ||
| 35 | lsb-expect-5.43.0-21.lsb5.targetarch.rpm \ | ||
| 36 | lsb-groff-1.20.1-9.lsb5.targetarch.rpm \ | ||
| 37 | lsb-raptor-1.4.21-4.lsb5.targetarch.rpm \ | ||
| 38 | lsb-xpdf-1.01-17.lsb5.targetarch.rpm \ | ||
| 39 | lsb-samba-3.5.9-5.lsb5.targetarch.rpm \ | ||
| 40 | lsb-rsync-3.0.8-3.lsb5.targetarch.rpm \ | ||
| 41 | " | ||
| 42 | |||
| 43 | APP_TESTFILES_LIST="expect-tests.tar \ | ||
| 44 | tcl-tests.tar \ | ||
| 45 | raptor-tests.tar \ | ||
| 46 | test1.pdf \ | ||
| 47 | test2.pdf \ | ||
| 48 | " | ||
| 49 | |||
diff --git a/meta/recipes-extended/lsb/lsbtest/session b/meta/recipes-extended/lsb/lsbtest/session deleted file mode 100644 index 4d47e40f7d..0000000000 --- a/meta/recipes-extended/lsb/lsbtest/session +++ /dev/null | |||
| @@ -1,176 +0,0 @@ | |||
| 1 | [GENERAL] | ||
| 2 | VERBOSE_LEVEL: 1 | ||
| 3 | ARCHITECTURE: targetarch | ||
| 4 | USE_INTERNET: 1 | ||
| 5 | STD_VERSION: LSB 5.0 | ||
| 6 | STD_PROFILE: no | ||
| 7 | [cmdchk] | ||
| 8 | RUN: 1 | ||
| 9 | VERSION: local|* | ||
| 10 | |||
| 11 | [libchk] | ||
| 12 | RUN: 1 | ||
| 13 | VERSION: local|* | ||
| 14 | |||
| 15 | [alsa-t2c] | ||
| 16 | RUN: 1 | ||
| 17 | VERSION: local|* | ||
| 18 | |||
| 19 | [alsa-t2c|local|*] | ||
| 20 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/alsa-t2c | ||
| 21 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/alsa-t2c/results | ||
| 22 | |||
| 23 | [core] | ||
| 24 | RUN: 1 | ||
| 25 | VERSION: local|* | ||
| 26 | |||
| 27 | [core|local|*] | ||
| 28 | AUTOREPLY_PROVIDES_BASH: n | ||
| 29 | AUTOREPLY_TESTRUN_PATH: /home/tet/test_sets | ||
| 30 | AUTOREPLY_PERSON: Automated | ||
| 31 | AUTOREPLY_KERNEL_NAME: vmlinuz | ||
| 32 | AUTOREPLY_INSTALL_LSBPAM_CONF: y | ||
| 33 | AUTOREPLY_PROVIDES_C_SHELL: n | ||
| 34 | AUTOREPLY_ORGANISATION: N/A | ||
| 35 | AUTOREPLY_SET_PASS_MIN_DAYS: y | ||
| 36 | AUTOREPLY_PROVIDES_SYSV_INIT: | ||
| 37 | AUTOREPLY_ISNTALL_DEVS: y | ||
| 38 | AUTOREPLY_SUPPORTS_FILE_CMD: y | ||
| 39 | AUTOREPLY_TEST_SYSTEM: Distribution Checker | ||
| 40 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/core/tet/test_sets | ||
| 41 | AUTOREPLY_SUPPORTS_NLS: n | ||
| 42 | AUTOREPLY_SUPPORTS_PROCESS_ACCOUNTING: n | ||
| 43 | AUTOREPLY_PATH_TO_RC.D: | ||
| 44 | AUTOREPLY_ALLOWS_MAKEDEV: n | ||
| 45 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/core/tet/test_sets/results | ||
| 46 | |||
| 47 | [core-t2c] | ||
| 48 | RUN: 1 | ||
| 49 | VERSION: local|* | ||
| 50 | |||
| 51 | [core-t2c|local|*] | ||
| 52 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/core-t2c | ||
| 53 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/core-t2c/results | ||
| 54 | |||
| 55 | [cpp-t2c] | ||
| 56 | RUN: 1 | ||
| 57 | VERSION: local|* | ||
| 58 | |||
| 59 | [cpp-t2c|local|*] | ||
| 60 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/cpp-t2c | ||
| 61 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/cpp-t2c/results | ||
| 62 | |||
| 63 | [desktop] | ||
| 64 | RUN: 1 | ||
| 65 | VERSION: local|* | ||
| 66 | |||
| 67 | [desktop|local|*] | ||
| 68 | AUTOREPLY_DESKTOP_ENVIRONMENT: [default] | ||
| 69 | AUTOREPLY_PERSON: Automated | ||
| 70 | AUTOREPLY_X_CLIENT_HOSTNAME: | ||
| 71 | AUTOREPLY_TEST_SYSTEM: Distribution Checker | ||
| 72 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/desktop | ||
| 73 | AUTOREPLY_X11_FONT_PATH: [default] | ||
| 74 | AUTOREPLY_SHOW_SUMMARY_REPORT: | ||
| 75 | AUTOREPLY_ORGANISATION: N/A | ||
| 76 | AUTOREPLY_XVFB_DISPLAY: [default] | ||
| 77 | |||
| 78 | [desktop-t2c] | ||
| 79 | RUN: 1 | ||
| 80 | VERSION: local|* | ||
| 81 | |||
| 82 | [desktop-t2c|local|*] | ||
| 83 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/desktop-t2c | ||
| 84 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/desktop-t2c/results | ||
| 85 | |||
| 86 | [libstdcpp] | ||
| 87 | RUN: 1 | ||
| 88 | VERSION: local|* | ||
| 89 | |||
| 90 | [libstdcpp|local|*] | ||
| 91 | AUTOREPLY_TEST_SYSTEM: Distribution Checker | ||
| 92 | AUTOREPLY_PERSON: Automated | ||
| 93 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/libstdcpp_4.1.0 | ||
| 94 | AUTOREPLY_ORGANISATION: N/A | ||
| 95 | AUTOREPLY_GNU_TRIPLET: | ||
| 96 | |||
| 97 | [olver] | ||
| 98 | RUN: 1 | ||
| 99 | VERSION: local|* | ||
| 100 | |||
| 101 | [olver|local|*] | ||
| 102 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/olver-core | ||
| 103 | AUTOREPLY_RESULTS_DIR: /var/opt/lsb/test/olver-core | ||
| 104 | |||
| 105 | [perl] | ||
| 106 | RUN: 1 | ||
| 107 | VERSION: local|* | ||
| 108 | |||
| 109 | [perl|local|*] | ||
| 110 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/perl | ||
| 111 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/perl/results | ||
| 112 | |||
| 113 | [printing] | ||
| 114 | RUN: 1 | ||
| 115 | VERSION: local|* | ||
| 116 | |||
| 117 | [printing|local|*] | ||
| 118 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/printing | ||
| 119 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/printing/results | ||
| 120 | |||
| 121 | [python] | ||
| 122 | RUN: 1 | ||
| 123 | VERSION: local|* | ||
| 124 | |||
| 125 | [python|local|*] | ||
| 126 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/python | ||
| 127 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/python/results | ||
| 128 | |||
| 129 | [xml2-azov] | ||
| 130 | RUN: 1 | ||
| 131 | VERSION: local|* | ||
| 132 | |||
| 133 | [xts5] | ||
| 134 | RUN: 1 | ||
| 135 | VERSION: local|* | ||
| 136 | |||
| 137 | [xts5|local|*] | ||
| 138 | AUTOREPLY_XT_FONTPATH_GOOD: [default] | ||
| 139 | AUTOREPLY_TESTSUITE_DIR: /opt/lsb/test/xts5 | ||
| 140 | AUTOREPLY_XVFB_DISPLAY: [default] | ||
| 141 | AUTOREPLY_RESULTS_DIR: /opt/lsb/test/xts5/xts5/results | ||
| 142 | AUTOREPLY_XT_FONTPATH: [default] | ||
| 143 | AUTOREPLY_X_CLIENT_HOSTNAME: | ||
| 144 | |||
| 145 | [apache] | ||
| 146 | RUN: 1 | ||
| 147 | VERSION: local|* | ||
| 148 | |||
| 149 | [expect] | ||
| 150 | RUN: 1 | ||
| 151 | VERSION: local|* | ||
| 152 | |||
| 153 | [groff] | ||
| 154 | RUN: 1 | ||
| 155 | VERSION: local|* | ||
| 156 | |||
| 157 | [raptor] | ||
| 158 | RUN: 1 | ||
| 159 | VERSION: local|* | ||
| 160 | |||
| 161 | [rsync] | ||
| 162 | RUN: 1 | ||
| 163 | VERSION: local|* | ||
| 164 | |||
| 165 | [samba] | ||
| 166 | RUN: 1 | ||
| 167 | VERSION: local|* | ||
| 168 | |||
| 169 | [tcl] | ||
| 170 | RUN: 1 | ||
| 171 | VERSION: local|* | ||
| 172 | |||
| 173 | [xpdf] | ||
| 174 | RUN: 1 | ||
| 175 | VERSION: local|* | ||
| 176 | |||
diff --git a/meta/recipes-extended/lsb/lsbtest_1.0.bb b/meta/recipes-extended/lsb/lsbtest_1.0.bb deleted file mode 100644 index a90c023d52..0000000000 --- a/meta/recipes-extended/lsb/lsbtest_1.0.bb +++ /dev/null | |||
| @@ -1,49 +0,0 @@ | |||
| 1 | SUMMARY = "Automates Linux Standard Base (LSB) tests" | ||
| 2 | HOMEPAGE = "https://wiki.debian.org/LSBInitScripts" | ||
| 3 | SECTION = "console/utils" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | PR = "r3" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://LSB_Test.sh;beginline=3;endline=16;md5=7063bb54b04719df0716b513447f4fc0" | ||
| 8 | |||
| 9 | SRC_URI = "file://LSB_Test.sh \ | ||
| 10 | file://packages_list \ | ||
| 11 | file://session \ | ||
| 12 | " | ||
| 13 | RDEPENDS_${PN} = "lsb rpm" | ||
| 14 | |||
| 15 | S = "${WORKDIR}" | ||
| 16 | |||
| 17 | do_install() { | ||
| 18 | install -d ${D}/opt/lsb-test | ||
| 19 | install -m 0755 ${S}/LSB_Test.sh ${D}/opt/lsb-test/LSB_Test.sh | ||
| 20 | install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list | ||
| 21 | install -m 0644 ${S}/session ${D}/opt/lsb-test/session | ||
| 22 | if [ "${TARGET_ARCH}" = "i586" ] || [ "${TARGET_ARCH}" = "i686" ];then | ||
| 23 | sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list | ||
| 24 | sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session | ||
| 25 | fi | ||
| 26 | if [ "${TARGET_ARCH}" = "x86_64" ];then | ||
| 27 | sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list | ||
| 28 | sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session | ||
| 29 | fi | ||
| 30 | if [ "${TARGET_ARCH}" = "powerpc" ];then | ||
| 31 | sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list | ||
| 32 | sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session | ||
| 33 | fi | ||
| 34 | |||
| 35 | # For a ppc64 target. the default userspace is 32b. | ||
| 36 | # Therefore, only change the lsbarch and targetarch | ||
| 37 | # in the package_list when MLIB=lib64 is being used. | ||
| 38 | # Otherwise, by default, the ppc32 LSB packages | ||
| 39 | # will be downloaded by LSB_Test.sh | ||
| 40 | if [ "${TARGET_ARCH}" = "powerpc64" ];then | ||
| 41 | if [ "${PN}" != "${BPN}" ];then | ||
| 42 | sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list | ||
| 43 | sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session | ||
| 44 | fi | ||
| 45 | fi | ||
| 46 | } | ||
| 47 | |||
| 48 | FILES_${PN} += "/opt/lsb-test/* \ | ||
| 49 | " | ||
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb deleted file mode 100644 index a821fd8bf3..0000000000 --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb +++ /dev/null | |||
| @@ -1,240 +0,0 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2010 Intel Corporation | ||
| 3 | # | ||
| 4 | |||
| 5 | SUMMARY = "Linux Standard Base (LSB)" | ||
| 6 | DESCRIPTION = "Packages required to satisfy the Linux Standard Base (LSB) specification" | ||
| 7 | PR = "r10" | ||
| 8 | |||
| 9 | inherit packagegroup distro_features_check | ||
| 10 | |||
| 11 | # The libxt, libxtst and others require x11 in DISTRO_FEATURES | ||
| 12 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 13 | |||
| 14 | # libglu needs virtual/libgl, which requires opengl in DISTRO_FEATURES | ||
| 15 | REQUIRED_DISTRO_FEATURES += "opengl" | ||
| 16 | |||
| 17 | # libpam, pam-plugin-wheel requires pam in DISTRO_FEATURES | ||
| 18 | REQUIRED_DISTRO_FEATURES += "pam" | ||
| 19 | |||
| 20 | # | ||
| 21 | # We will skip parsing this packagegeoup for non-glibc systems | ||
| 22 | # | ||
| 23 | python __anonymous () { | ||
| 24 | if d.getVar('TCLIBC') != "glibc": | ||
| 25 | raise bb.parse.SkipRecipe("incompatible with %s C library" % | ||
| 26 | d.getVar('TCLIBC')) | ||
| 27 | } | ||
| 28 | |||
| 29 | PACKAGES = "\ | ||
| 30 | packagegroup-core-lsb \ | ||
| 31 | packagegroup-core-sys-extended \ | ||
| 32 | packagegroup-core-db \ | ||
| 33 | packagegroup-core-perl \ | ||
| 34 | packagegroup-core-python \ | ||
| 35 | packagegroup-core-tcl \ | ||
| 36 | packagegroup-core-lsb-misc \ | ||
| 37 | packagegroup-core-lsb-core \ | ||
| 38 | packagegroup-core-lsb-perl \ | ||
| 39 | packagegroup-core-lsb-python \ | ||
| 40 | packagegroup-core-lsb-desktop \ | ||
| 41 | packagegroup-core-lsb-runtime-add \ | ||
| 42 | " | ||
| 43 | |||
| 44 | |||
| 45 | RDEPENDS_packagegroup-core-lsb = "\ | ||
| 46 | packagegroup-core-sys-extended \ | ||
| 47 | packagegroup-core-db \ | ||
| 48 | packagegroup-core-perl \ | ||
| 49 | packagegroup-core-python \ | ||
| 50 | packagegroup-core-tcl \ | ||
| 51 | packagegroup-core-lsb-misc \ | ||
| 52 | packagegroup-core-lsb-core \ | ||
| 53 | packagegroup-core-lsb-perl \ | ||
| 54 | packagegroup-core-lsb-python \ | ||
| 55 | packagegroup-core-lsb-desktop \ | ||
| 56 | packagegroup-core-lsb-runtime-add \ | ||
| 57 | " | ||
| 58 | |||
| 59 | |||
| 60 | RDEPENDS_packagegroup-core-sys-extended = "\ | ||
| 61 | curl \ | ||
| 62 | dhcp-client \ | ||
| 63 | hdparm \ | ||
| 64 | lighttpd \ | ||
| 65 | libaio \ | ||
| 66 | lrzsz \ | ||
| 67 | lzo \ | ||
| 68 | mc \ | ||
| 69 | mc-fish \ | ||
| 70 | mc-helpers \ | ||
| 71 | mc-helpers-perl \ | ||
| 72 | mdadm \ | ||
| 73 | minicom \ | ||
| 74 | parted \ | ||
| 75 | quota \ | ||
| 76 | screen \ | ||
| 77 | setserial \ | ||
| 78 | sysstat \ | ||
| 79 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'udev-extraconf', d)} \ | ||
| 80 | unzip \ | ||
| 81 | watchdog \ | ||
| 82 | wget \ | ||
| 83 | which \ | ||
| 84 | xinetd \ | ||
| 85 | zip \ | ||
| 86 | " | ||
| 87 | |||
| 88 | RDEPENDS_packagegroup-core-db = "\ | ||
| 89 | db \ | ||
| 90 | sqlite3 \ | ||
| 91 | " | ||
| 92 | |||
| 93 | RDEPENDS_packagegroup-core-perl = "\ | ||
| 94 | gdbm \ | ||
| 95 | perl \ | ||
| 96 | zlib \ | ||
| 97 | " | ||
| 98 | |||
| 99 | |||
| 100 | RDEPENDS_packagegroup-core-python = "\ | ||
| 101 | expat \ | ||
| 102 | gdbm \ | ||
| 103 | gmp \ | ||
| 104 | ncurses \ | ||
| 105 | openssl \ | ||
| 106 | python \ | ||
| 107 | readline \ | ||
| 108 | zip \ | ||
| 109 | " | ||
| 110 | |||
| 111 | RDEPENDS_packagegroup-core-tcl = "\ | ||
| 112 | tcl \ | ||
| 113 | " | ||
| 114 | |||
| 115 | # Miscellaneous packages required by LSB (or LSB tests) | ||
| 116 | RDEPENDS_packagegroup-core-lsb-misc = "\ | ||
| 117 | chkconfig \ | ||
| 118 | gettext \ | ||
| 119 | gettext-runtime \ | ||
| 120 | groff \ | ||
| 121 | lsbinitscripts \ | ||
| 122 | lsbtest \ | ||
| 123 | lsof \ | ||
| 124 | strace \ | ||
| 125 | libusb1 \ | ||
| 126 | usbutils \ | ||
| 127 | rpm \ | ||
| 128 | " | ||
| 129 | |||
| 130 | SUMMARY_packagegroup-core-lsb-core = "LSB Core" | ||
| 131 | DESCRIPTION_packagegroup-core-lsb-core = "Packages required to support commands/libraries \ | ||
| 132 | specified in the LSB Core specification" | ||
| 133 | RDEPENDS_packagegroup-core-lsb-core = "\ | ||
| 134 | at \ | ||
| 135 | bash \ | ||
| 136 | bc \ | ||
| 137 | binutils \ | ||
| 138 | binutils-symlinks \ | ||
| 139 | bzip2 \ | ||
| 140 | coreutils \ | ||
| 141 | cpio \ | ||
| 142 | cronie \ | ||
| 143 | cups \ | ||
| 144 | diffutils \ | ||
| 145 | ed \ | ||
| 146 | glibc-utils \ | ||
| 147 | elfutils \ | ||
| 148 | file \ | ||
| 149 | findutils \ | ||
| 150 | fontconfig-utils \ | ||
| 151 | foomatic-filters \ | ||
| 152 | gawk \ | ||
| 153 | ghostscript \ | ||
| 154 | grep \ | ||
| 155 | gzip \ | ||
| 156 | localedef \ | ||
| 157 | lsb \ | ||
| 158 | m4 \ | ||
| 159 | make \ | ||
| 160 | man \ | ||
| 161 | man-pages \ | ||
| 162 | msmtp \ | ||
| 163 | patch \ | ||
| 164 | procps \ | ||
| 165 | psmisc \ | ||
| 166 | sed \ | ||
| 167 | shadow \ | ||
| 168 | tar \ | ||
| 169 | time \ | ||
| 170 | util-linux \ | ||
| 171 | xdg-utils \ | ||
| 172 | \ | ||
| 173 | glibc \ | ||
| 174 | libgcc \ | ||
| 175 | libpam \ | ||
| 176 | libxml2 \ | ||
| 177 | ncurses \ | ||
| 178 | zlib \ | ||
| 179 | nspr \ | ||
| 180 | nss \ | ||
| 181 | " | ||
| 182 | |||
| 183 | SUMMARY_packagegroup-core-lsb-perl = "LSB Runtime Languages (Perl)" | ||
| 184 | DESCRIPTION_packagegroup-core-lsb-perl = "Packages required to support libraries \ | ||
| 185 | specified in the LSB Runtime languages specification (Perl parts)" | ||
| 186 | RDEPENDS_packagegroup-core-lsb-perl = "\ | ||
| 187 | perl \ | ||
| 188 | perl-modules \ | ||
| 189 | perl-misc \ | ||
| 190 | perl-pod \ | ||
| 191 | perl-dev \ | ||
| 192 | perl-doc \ | ||
| 193 | " | ||
| 194 | |||
| 195 | SUMMARY_packagegroup-core-lsb-python = "LSB Runtime Languages (Python)" | ||
| 196 | DESCRIPTION_packagegroup-core-lsb-python = "Packages required to support libraries \ | ||
| 197 | specified in the LSB Runtime languages specification (Python parts)" | ||
| 198 | RDEPENDS_packagegroup-core-lsb-python = "\ | ||
| 199 | python \ | ||
| 200 | python-modules \ | ||
| 201 | python-misc \ | ||
| 202 | " | ||
| 203 | |||
| 204 | SUMMARY_packagegroup-core-lsb-desktop = "LSB Desktop" | ||
| 205 | DESCRIPTION_packagegroup-core-lsb-desktop = "Packages required to support libraries \ | ||
| 206 | specified in the LSB Desktop specification" | ||
| 207 | RDEPENDS_packagegroup-core-lsb-desktop = "\ | ||
| 208 | libxt \ | ||
| 209 | libxxf86vm \ | ||
| 210 | libdrm \ | ||
| 211 | libglu \ | ||
| 212 | libxi \ | ||
| 213 | libxtst \ | ||
| 214 | libx11-locale \ | ||
| 215 | xorg-minimal-fonts \ | ||
| 216 | gdk-pixbuf-loader-ico \ | ||
| 217 | gdk-pixbuf-loader-bmp \ | ||
| 218 | gdk-pixbuf-loader-ani \ | ||
| 219 | gdk-pixbuf-xlib \ | ||
| 220 | liberation-fonts \ | ||
| 221 | alsa-lib \ | ||
| 222 | " | ||
| 223 | |||
| 224 | RDEPENDS_packagegroup-core-lsb-runtime-add = "\ | ||
| 225 | ldd \ | ||
| 226 | pam-plugin-wheel \ | ||
| 227 | e2fsprogs-mke2fs \ | ||
| 228 | mkfontdir \ | ||
| 229 | liburi-perl \ | ||
| 230 | libxml-parser-perl \ | ||
| 231 | libxml-perl \ | ||
| 232 | libxml-sax-perl \ | ||
| 233 | glibc-localedatas \ | ||
| 234 | glibc-gconvs \ | ||
| 235 | glibc-charmaps \ | ||
| 236 | glibc-binaries \ | ||
| 237 | glibc-localedata-posix \ | ||
| 238 | glibc-extra-nss \ | ||
| 239 | glibc-pcprofile \ | ||
| 240 | " | ||
diff --git a/meta/recipes.txt b/meta/recipes.txt index 2439357876..fb2c25014d 100644 --- a/meta/recipes.txt +++ b/meta/recipes.txt | |||
| @@ -3,7 +3,7 @@ recipes-connectivity - Libraries and applications related to communication with | |||
| 3 | recipes-core - What's needed to build a basic working Linux image including commonly used dependencies | 3 | recipes-core - What's needed to build a basic working Linux image including commonly used dependencies |
| 4 | recipes-devtools - Tools primarily used by the build system (but can also be used on targets) | 4 | recipes-devtools - Tools primarily used by the build system (but can also be used on targets) |
| 5 | recipes-extended - Applications which whilst not essential add features compared to the alternatives in | 5 | recipes-extended - Applications which whilst not essential add features compared to the alternatives in |
| 6 | core. May be needed for full tool functionality or LSB compliance. | 6 | core. May be needed for full tool functionality. |
| 7 | recipes-gnome - All things related to the GTK+ application framework | 7 | recipes-gnome - All things related to the GTK+ application framework |
| 8 | recipes-graphics - X and other graphically related system libraries | 8 | recipes-graphics - X and other graphically related system libraries |
| 9 | recipes-kernel - The kernel and generic applications/libraries with strong kernel dependencies | 9 | recipes-kernel - The kernel and generic applications/libraries with strong kernel dependencies |
