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

Jan Holzhueter jh at opencsw.org
Thu Jan 10 11:13:42 CET 2013


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 ]'
with (^\t(?P<soname>\S+)\s+=>\s+(?P<path_found>\S+)|^\tsymbol not
found:\s(?P<symbol>\S+)\s+\((?P<path_not_found>\S+)\)|^\t(?P<path_only>\S+)$|^\t(?P<soname_version_not_found>\S+)
\((?P<lib_name>\S+)\) =>\t \(version not found\)|^\trelocation \S+
symbol: (?P<relocation_symbol>\S+): file (?P<relocation_path>\S+):
relocation bound to a symbol with STV_PROTECTED
visibility$|^\trelocation \S+ sizes differ:
(?P<sizes_differ_symbol>\S+)$|^\t\t\(file (?P<sizediff_file1>\S+)
size=(?P<size1>0x\w+); file (?P<sizediff_file2>\S+)
size=(?P<size2>0x\w+)\)$|^\t\t(?P<sizediffused_file>\S+) size used;
possible insufficient data copied$|^\s*unreferenced
object=(?P<object>.*); unused dependency of (?P<binary>.*)$|^\s*unused
object=.*$|^\s*unused search path=.*  \(RUNPATH/RPATH from file
.*\)$|^\s*$|^\tmove (?P<move_index>\d+) offset invalid: \(unknown\):
offset=(?P<move_offset>0x[0-9a-f]+) lies outside memory image; move
discarded|relocation R_(386|AMD64|X86_64|SPARC)_\w+ sizes differ:
(?P<reloc_symbol>.*)|\t\t\(file .* size=0(?:x[0-9a-f]+)?; file
.*size=0x(?:[0-9a-f]+)?\)|\t.* size used; possible data truncation)


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

package is ffmpeg if you want to test it.


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.html and 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. ::.
> 



More information about the maintainers mailing list