[csw-maintainers] Checkpkg database update and new checkpkg tests

Yann Rouillard yann at pleiades.fr.eu.org
Thu Jan 10 19:01:42 CET 2013


Hi Jan,

2013/1/10 Jan Holzhueter <jh at opencsw.org>

> Hi,
> I did brake it :)
>
> package.StdoutSyntaxError: Could not parse
> '/tmp/pkg_v0EICf/CSWffmpeg/root/opt/csw/bin/amd64/ffmpeg: warning:
> hardware capability (CA_SUNW_HW_1) unsupported: 0x100  [ AMD_3DNow ]'
> [...]
>
>
What a nice error message ! (this wil be improved soon ;) ).

This error happens because ldd encountered an unexpected line.
In that case, we should figure out if this line is the sign of a problem or
not:
  - if this is not a problem, we should ignore it when parsing ldd output
(modification to be done in checkpkg code),
  - if this is a problem:
         - either we let the error be raised so that the maintainer is
warned that something is wrong,
        - or better we store the information in the checkpkg database and
add a real check about this issue.



> Don't know how it gets AMD_3DNow but thats fine too :)
>

Well I am not sure it is fine.
It usually means that, to be run, your binary requires a system with
hardware capability AMD_3DNOW.
See: http://docs.oracle.com/cd/E19082-01/819-0690/chapter2-20/index.html

I am not sure we want that for our binaries. Are there still a lot of
computers without this capability ?

But maybe this is just an optional feature, I have to check exactly how it
works.
Are you able to run the resulting binary on a system without AMD_3DNOW
capabilites ?



>
> package is ffmpeg if you want to test it.
>
>
Do I have a direct access to the location where you built it so I can skip
the building step ?

Yann


>
> Greetings
> Jan
>
>
>
> Am 03.01.13 22:27, schrieb Yann Rouillard:
> > Hi everybody,
> >
> > I proposed some time ago to implement new checkpkg checks in order to
> > detect binaries not honouring the new direct binding constraint or
> > having unused libraries dependencies:
> >  http://lists.opencsw.org/pipermail/maintainers/2012-August/017126.htmland
> http://lists.opencsw.org/pipermail/maintainers/2012-August/017158.html
> >
> > Well, as always, it took longer than expected but with the help and
> > advices of Maciej, I will eventually be able to commit the new tests on
> > the main branch the day after tomorrow.
> >
> > These new checks will probably not change anything or trigger new
> > warnings for your package, except if your build system doesn't correctly
> > take into account the LD_OPTIONS default variable defined by GAR.
> > In that case, you will probably have one the two new checkpkg errors
> > documented here:
> > http://wiki.opencsw.org/checkpkg-error-tags#no-direct-binding
> > http://wiki.opencsw.org/checkpkg-error-tags#soname-unused
> >
> > An important note: ldd is used to gather some information about
> > binaries. As ldd only work on binaries of the same architecture, this
> > means that the package content analysis step can now only be done on a
> > server with the same architecture as the package checked.
> > The real check step however can still be performed from anywhere.
> >
> >
> > These new checks required to add new information about symbols and
> > linkage in the checkpkg database. This information can now easily be
> > used to create others checks related to linkage, symbol and interfaces.
> > For exemple I also added a new test to detect if a binary is using a
> > forbidden version
> > interface:
> http://wiki.opencsw.org/checkpkg-error-tags#forbidden-version-interface-dependencies
> >
> > Unfortunately this also requires to re-import all the existing packages
> > to in the database to gather the symbols and linkage information from
> > previous packages.
> > I will begin this operation starting from now, it takes around 18h and
> > can be done live without preventing maintainers to upload new packages.
> > However, at the end, I will update the db schema version and commit the
> > new code. After this, you will have to svn update your gar build system
> > or it will complains about db schema version difference.
> > The procedure followed is described on the
> > wiki: http://wiki.opencsw.org/checkpkg#toc
> > <http://wiki.opencsw.org/checkpkg#toc8>
> >
> > I'll keep you updated as soon as it is finished.
> >
> > If you have any question, don't hesitate.
> >
> >
> > BTW, happy New Year to everybody !
> >
> >
> > Yann
> >
> >
> > _______________________________________________
> > maintainers mailing list
> > maintainers at lists.opencsw.org
> > https://lists.opencsw.org/mailman/listinfo/maintainers
> > .:: This mailing list's archive is public. ::.
> >
>
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers
> .:: This mailing list's archive is public. ::.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20130110/cd2bf55d/attachment.html>


More information about the maintainers mailing list