summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/lsb
AgeCommit message (Collapse)AuthorFiles
2013-09-14LSB Command Check: fix install_initd and remove_initd not foundHongxu Jia1
The install_initd and remove_initd are linked to /sbin/chkconfig for lsb core test, but chkconfig has been moved from /sbin to /usr/sbin in order to fix QA warning about unsafe references in binaries. (In commit e486242db83297701803866bea971a2f1a1135fe) Let install_initd and remove_initd link to /usr/sbin/chkconfig could fix this issue. [YOCTO #5152] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-27LSB_Test.sh: add -f option for curlYi Zhao1
In normal cases when a HTTP server fails to deliver a file, it returns an HTML document to describe the reason (e.g. 404 Not Found). The curl will output this page as a file and do not return error. Add a "-f" option will prevent curl from outputting that and return error. [YOCTO #4895] Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-27lsbinitscripts: remove x permission on functionsHongxu Jia1
It doesn't need to set x permission for this file Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-07-15initscripts: Update to 9.48Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-06-27lsbtest: sync test suite packages versionHongxu Jia1
Update file packages_list after sync test suite packages version with upstream. Check date: Jun 25, 2013 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-06-13lsbinitscripts: Update to 9.47Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-29lsbinitscripts: Update to 9.46Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-02lsb: distro codename info addedCristian Iorga1
Poky distro codename info added to /etc/lsb-release file. lsb_release script will not complain anymore about the incompleteness of /etc/lsb-release file by returning an error code. Increases LSB compliance. Partial fix for [YOCTO #4071]. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-18lsbinitscripts: Update to 9.45Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-28lsbinitscripts: Update to 9.44Saul Wold1
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-28lsbtest: sync test suite packages versionKang Kai2
Update file packages_list after sync test suite packages version with upstream. Check date: Feb 20, 2103 Bump up PR. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-19lsbinitscripts: Don't compileSaul Wold1
Only functions macros is installed, so no need to configure or compile [YOCTO #3584] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-12-19lsbinitscripts: update to 9.43Saul Wold2
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-11-24lsbsetup: drop itKang Kai2
lsbsetup provides script LSB_Setup.sh to setup LSB test on image. But script LSB_Test.sh provided by lsbtest replaces its function now. So drop lsbsetup. lsbsetup links /etc/localtime to HongKong zoneinfo file to make LSB wcsftime test case pass(Yocto 1079). But the test case PASS without this link, so remove the link. Other 2 links are moved to packages lsb. [Yocto 3278] Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-24lsb: move links from lsbsetup to hereKang Kai1
Because package lsbsetup is dropped, move the links created for LSB test to package lsb. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-24lsbtest: update list fileKang Kai2
Update the lsbtest's list file that we can download the latest sub-packages of LSB suite 4.1.0 and then run the test with them. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-20Replace "echo -e" with "printf" to have the same behavior in dash or bashAndrei Gherzan1
oe-core removed the prerequisite to have sh as bash. POSIX doesn't define any options and furthermore allows 'echo -e' to be the default behavior. This means that in dash 'echo -e' will actually print '-e' and interpret backslashes by default. We use instead 'printf' builtin command with or without '\n' to simulate 'echo -e' or 'echo -n'. 'printf' needs format while 'echo' can be used without any arguments. So 'echo >' was replaced by 'printf "" >'. 'echo' without '-n' flag adds a new line by default so to keep the same behavior of two new lines while using 'echo "\n"', 'printf "\n\n"' is used. [YOCTO #3138] Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-10lsb: update versionKang Kai1
Update package lsb version to be same with current lsb test suit version. Because when install the suit, it warns that need lsb version >= 3.0 at least. Drop the duplicated creating files under /etc/lsb-release.d. Provides directories /etc/opt and /var/opt that they are required by package lsb-dist-checker in lsb test suit. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-08-06lsb: use ${base_bindir} and ${sysconfdir} instead of /bin and /etcJavier Martinez Canillas1
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-06lsbinitscripts: use ${sysconfdir} instead of /etc for packagingJavier Martinez Canillas1
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-06lsbtest: use ${bindir} instead of /usr/bin for packagingJavier Martinez Canillas1
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-06lsbsetup: use ${bindir} instead of /usr/bin for packagingJavier Martinez Canillas1
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-09lsbinitscripts: increase ALTERNATIVE_PRIORITYKang Kai1
[YOCTO #2133] Increase ALTERNATIVE_PRIORITY of file functions to be higher than the value in package initscript. Then when lsbinitscripts installed, file functions provided by lsbinitscripts will be used. Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-04lsbinitiscripts: Add glib-2.0 to DEPENDS listSaul Wold1
ppp-watch requires it. x86_64-poky-linux-gcc -m64 --sysroot=/intel/poky2/builds/fetch/tmp/sysroots/qemux86-64 -O2 -pipe -g -feliminate-unused-debug-types -Wall -D_GNU_SOURCE `pkg-config glib-2.0 --cflags` -c ppp-watch.c -o ppp-watch.o Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found ppp-watch.c:78:18: fatal error: glib.h: No such file or directory compilation terminated. make[1]: *** [ppp-watch.o] Error 1 make[1]: Leaving directory `/intel/poky2/builds/fetch/tmp/work/x86_64-poky-linux/lsbinitscripts-9.03-r0/initscripts-9.03/src' Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-06-15lsbinitscripts: Add the header for functions.patchXiaofeng Yan1
Add upstream-status and signed-off-by to functions.patch Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-05lsbinitscripts: Missing popt DEPENDSElizabeth Flanagan1
Missing DEPENDS causes build to fail. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
2012-06-05lsbinitscripts: Patch file functions for confirming to an lsb imageXiaofeng Yan1
Add the condition judgment to functions for avoiding to print error information when system start up at first. [YOCTO #2133] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2012-06-05lsbinitscripts: Add initscripts to enhance init functions in an lsb imageXiaofeng Yan1
The version of initscripts has more functions than the simple. There could be some errors for current initscripts when running some programe because of absent some functions provided by initscripts. [YOCTO #2133] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2012-04-18lsb: Fix PR bump, fix bashisms, correct dependency issue, tweak package ↵Richard Purdie1
description Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-04-17lsb: Add DISTRO Info to /etc/lsb-release file also add util-linux to DEPENDSSaul Wold1
Add the DISTRO* fields to the /etc/lsb-release file so the distro parsing code can find standard information about the Poky Distro when using the Self-Hosted Image. The lsb_release command uses getopt which is provided by util-linux Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-28More quoting fixesRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-28lsbtest: Add recipe for LSB tests and automate testYi Zhao4
The recipe is used for LSB tests. The script LSB_Test.sh does the following things: - setup LSB testing environment - download LSB rpm packages with list file packages_list from remote - install the packages - execute LSB testing with profile file session - collect the results Install packages_list and session files into ${D}/opt/lsb-test. [YOCTO #1567]
2012-02-26More quoting fixesMartin Jansa2
* We have various variables which are either not quoted at all or are half quoted. This patch fixes the bad exmaples so everything is consistent. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-03LSB_Setup.sh: Add locale resources and startup script avahi-daemonXiaofeng Yan1
The purpose of adding locale resources is to resolve bug 1954 because missing locale resources cause many failures. The purpose of adding startup script avahi-daemon is to resolve bug 1907. The detailed description is as follows: No daemon progress "avahi-daemon" when system starting up. Function "gethostbyaddr" will search file "/var/run/avahi-daemon/socket" but there is no this file which is created by avahi-daemon. [YOCTO #1907 #1954] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-03init-functions: Add two functionsXiaofeng Yan1
Add log_begin_msg() and log_end_msg () in init-functions because some startup scripts need them. if there are not two functions, then error information will arise on screen. for example, $ /etc/init.d/avahi-daemon start /etc/init.d/avahi-daemon: line 161: log_begin_msg: command not found /etc/init.d/avahi-daemon: line 163: log_end_msg: command not found [YOCTO #1907] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-17lsb: Change link of ${baselib} to lib64 for 64bits systemXiaofeng Yan1
Correct two faults: 1 Binaries of lsb test suite need ld-linux.so* in /lib64. for example: Target$ ./lsbcmdchk -sh: ./lsbcmdchk: No such file or directory Target$ strings lsbcmdchk | grep "ld-" /lib64/ld-lsb-x86-64.so.3 "lsbcmdchk" from lsb test suite is a binary program. A new modification to lsb_1.4.bb caused that binaries from lsb test suite can't run because binaries of lsb test suite need ld-linux.so* in /lib64. But the link is changed due to adding multilib. I changed this link again. 2 correct mandir Waring will appear when running task task do_populate_sysroot NOTE: package lsb-1.4-r2: task do_populate_sysroot: Succeeded WARNING: For recipe lsb, the following files were installed but not shipped in any package: WARNING: /{datadir}/man/man1/lsb_release.1.gz I changed mandir=${D}/man to mandir=${D}/${datadir}/man Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-08lsb: Fix hard code libdir issue for multilibMei Lei1
Signed-off-by: Mei Lei <lei.mei@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-20lsbsetup_1.0.bb: Change the hardcoded /usr/lib to support multilibMei Lei1
Signed-off-by: Mei Lei <lei.mei@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-01Drop PRIORITY variableRichard Purdie2
As discussed on the mailing list, this variable isn't useful and if wanted would be better implemented by distros using pn-X overrides. This patch executes: find . -regex ".*\.\(bb\|inc\)$" | xargs sed -i '/^PRIORITY = ".*"$/d' against the tree removing the referenced. Thanks to Phil Blundell for the command. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-19lsbsetup: Rename this file and add a link for lsb testXiaofeng Yan2
[YOCTO #1079] Rename this file version from 0.9 to 1.0. Link time environment for Hong Kong time for lsb test. Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Added yocto bugid Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-05-17lsbsetup: Add a link for lsb testXiaofeng Yan1
Link /usr/lib/sendmail to /usr/sbin/sendmail Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-17lsb: Install init-functions to rpm packageXiaofeng Yan1
The script init-functions can't be built into rpm package of lsb. I modify lsb_1.4.bb to add this script to rpm package of lsb. Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-16lsbsetup: recreate locale fr_FRKang Kai2
Update LSB_Setup.sh to recreate locale fr_FR, which helps to pass LSB libstdc++ test. Bump PR to r3. Signed-off-by: Kang Kai <kai.kang@windriver.com>
2011-05-11lsbsetup: Add link for sendmailXiaofeng Yan1
Link /sbin/sendmail/ to /usr/lib/sendmail Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-11init-functions: Conforming applications may install one or more ↵Xiaofeng Yan5
initialization scripts LSB Test Suite need init scripts for lsb-image. During the installer's post-install processing phase the program /usr/lib/lsb/install_initd \ must be called to activate the init script. \ When a software package is removed, /usr/lib/lsb/remove_initd \ must be called to deactivate the init script. Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-11wq!lsb: Add init-functions to lsb-imageXiaofeng Yan1
init-functions is needed by LSB Test Suite. Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-04LSB_Setup.sh: Add character set to lsb-imageXiaofeng Yan1
Add character set to lsb-image to solve bugs from lsb test Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
2011-05-04lsbsetup: add commands install_initd and remove_initdKang Kai1
Add commands install_initd and remove_initd link to chkconfig, which can handler LSB format init.d scripts. Needed by LSB commands check. Bump PR to r2 Part fixes [Yocto 520] Signed-off-by: Kang Kai <kai.kang@windriver.com>
2011-04-22lsbsetup: add some workaround for LSB testsKang Kai2
Add some workaround for LSB libstdcpp and tcl tests. Recreate locales for libstdcpp test, and resolve localhost is for tcl test [Yocto 898] Bump PR, update LICENSE information and installed file mode Signed-off-by: Kang Kai <kai.kang@windriver.com>
2011-04-08lsb: fix lic_files_chksumSaul Wold1
Fixes [YOCTO #961] Signed-off-by: Saul Wold <sgw@linux.intel.com>