Skip to contentSkip to conversation

sanity test problems at end of build

DISCUSSION 代尔欣 2 participants 2 messages Nov 29, 2008 – Nov 30, 2008

lore
Share & tools
lore

代尔欣

author
#0 lore raw

Hello..,
I also met this problem. In may case, from the log:

ERROR: QA Issue: paragui.pc failed sanity check
....

Quoted 4 lines
Quoted 4 lines

QA staging was broken by the package built above
ERROR: Error in executing:
ERROR: Exception:<type 'exceptions.SystemExit'> Message:1
ERROR: Printing the environment of the function

if it is because the file paragui.pc:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: ParaGUI
Description: cross-platform widget library
Version: 1.1.8
Libs: -lparagui -lsigc-1.2 -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
-lexpat -lfreetype -lz -lstdc++
Cflags: -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/freetype2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT After some debug, I found if I remove below lines from paragui.pc

Libs: -lparagui -lsigc-1.2 -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
-lexpat -lfreetype -lz -lstdc++
Cflags: -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/freetype2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT

The error is gone. But I don't think it is a correct fix. Because some packages may use pkgconfig with this file. To find the clue, I have question about this error, hope someone can answer me.

Q:
1. What is the purpose of the QA sanity check? And How this check do?

2. Just a guess, QA sanity check, Is it for checking the lib or include file installed correctly base on the .pc file or the .la(mail in Valentin Longchamp)? If it is, I think the error is in the bb files or Makefile in the package, it can't install the lib correctly.

Best Regards.

#1 lore raw
Quoted 2 lines · 代尔欣

Q:
1. What is the purpose of the QA sanity check? And How this check do?

.pc or .la files referring to the build time paths not existing target system will break native compilation in the best case, and causes run time failures in worst case.

In general, all references to the build system paths (except debug info source code references) are incorrect, and QA check will reject them.

Quoted 4 lines

2. Just a guess, QA sanity check, Is it for checking the lib or include file installed correctly base on the .pc file or the .la(mail in Valentin Longchamp)? If it is, I think the error is in the bb files or Makefile in the package, it can't install the lib correctly.

It is not so easy. Pkgconfig nor libtool are not aware of advanced techniques of cross compilation. Packager must find potential problems and create tricks to prevent them.

The most often sources of problems:

- There is no simple way to discriminate between calling of build time binaries as tools (must be native), calling build time binaries as source of compilation info (must be native, but must return info for target platform), actual path to target binary or library and finally target path to target binary or library.

- Combining of differnt approaches to get information together. For example use of output of binconfig (*-config) as a source for pkgconfig file (*.pc) will most probably cause problems - binconfig requires custom patching, pkg-config has support for sysroot and needs target paths.

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus