Bug 520

Summary: LSB: Command Tests
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Xiaofeng Yan <Xiaofeng.yan>
Component: meta-yoctoAssignee: Mark Hatle <mark.hatle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jingdong.lu, kai.kang, ke.yu, kevin.tian, mark.hatle, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Xiaofeng Yan 2010-11-03 20:22:48 UTC
Some commands tested by lsb test suite are absent in lsb-image. The detailed command names are below:
ed
fc-cache
fc-list
fc-match
install_initd
lp
lpr
mailx
man()
remove_initd
sendmail
Comment 1 Ke Yu 2010-11-03 20:32:10 UTC
yocto already has recipes "ed" "man", the rest are missing. Saul, should we add them into 1.0 pkg upgrade plan?
Comment 2 Xiaofeng Yan 2010-11-03 21:35:20 UTC
(In reply to comment #0)
> Some commands tested by lsb test suite are absent in lsb-image. The detailed
> command names are below:
> ed
> fc-cache
> fc-list
> fc-match
> install_initd
> lp
> lpr
> mailx
> man()
> remove_initd
> sendmail
ed has been in lsb-imgae and mailx have been gotten by jingdong lu. Command "man" has been in recipes-extended. so other packages can be assigned.
Comment 3 Jingdong Lu 2010-11-03 23:22:19 UTC
fontconfig provides fc-cache, fc-list, fc-match and it has been included in yocto. 
install_initd and remove_initd should be provided by lsb package.eg, ln -snf /sbin/chkconfig /usr/lib/lsb/install_initd.
lp, lpr should be provided by cups. So I think we should add the following packages, just like cups, mailx, sendmail
Comment 4 Mark Hatle 2010-11-04 09:12:08 UTC
A few quick notes of my own:


> ed

ed we'll need to add...

> fc-cache
> fc-list
> fc-match

The above are fontconfig files.  We likely have fontconfig as part of some of the graphics components, we'll just need to enable/add it as part of the LSB configuration.

> install_initd
> remove_initd

These come from the "lsb" package that we, as vendors, are required to provide.  Usually this package provides a couple of small helper scripts as mandated by the LSB, and a large group of RDEPENDS for each run-time application specified by the LSB version.

If we already have an 'lsb' package, then it's a bug in that package, otherwise it's an enhancement.  (I've done some of this work before, so I'll be happy to take on this work if needed...)

> lp
> lpr

In WR Linux and Fedora -- cups supplies this.. but it can be any program that provides lp and lpr functionality.  We likely want to investigate a smaller provider.  The older 'lp' package may be better for an embedded system...  (but cups is more full featured of course)

> mailx
> sendmail

Both mailx and sendmail (program) should be provided by something....

> man

While we may not have man pages, we do need the man program (and related components to make it work...)
Comment 5 Mark Hatle 2011-02-22 10:01:48 UTC
This is a tracking bug.. as we get closer to LSB test suite passing additional notes will be added and this will eventually be resolved.
Comment 6 Xiaofeng Yan 2011-03-24 20:08:18 UTC
xdg-desktop-icon 
xdg-desktop-menu
xdg-email
xdg-icon-resource
xdg-mime
xdg-open
xdg-screensaver
Comment 7 Xiaofeng Yan 2011-03-24 20:10:01 UTC
We need to add commands above according to lsb test suite 4.1
Comment 8 Kai Kang 2011-03-30 02:34:08 UTC
(In reply to comment #6)
> xdg-desktop-icon 
> xdg-desktop-menu
> xdg-email
> xdg-icon-resource
> xdg-mime
> xdg-open
> xdg-screensaver

I send a pull request to add xdg-utils to fix this, but no response. I just wonder which part of pull request failed to be accepted, or just send it again.
Comment 9 Saul Wold 2011-05-04 16:03:11 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5d737849bb79d6f00efb23392312052d2bf4b86b

and

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5cd5efb66f1e6050d00a7f3e3c15f0e9e2fb4bb4

Are there more changes for this bug?  If this is tracking do we need to create other bugs for the individual parts?
Comment 10 Kai Kang 2011-05-04 18:24:09 UTC
(In reply to comment #9)
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5d737849bb79d6f00efb23392312052d2bf4b86b
This is for xdg-utils commands

> 
> and
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5cd5efb66f1e6050d00a7f3e3c15f0e9e2fb4bb4
And this is for install_initd and remove_initd

> 
> Are there more changes for this bug?  If this is tracking do we need to create
> other bugs for the individual parts?
Right now LSB commands check left 4 failures:
foomatic-rip : provided by foomatic-filters
gs : provided by ghostscript
lp 
lpr : these two provided by cups, but add cups into lsb image will failed, I am working on it.
Comment 11 Saul Wold 2011-05-05 09:30:27 UTC
Ghostscript:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ca63a0158ae42010477080ad6bb776329f1230b0

Foomatic-filters:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2ebb1fbb14b465924a6fa710fd2d73e5fca18a68

This leaves fixing Cups, let's file a new bug for CUPS and we mark this one resolved.

There is another bug 904 for CUPS, so I am marking this one resolved.