> - then the package fails to build for us with "scons" 3.6 that is present > in unstable... somehow it tries to install the library in the target > where we are trying to build it. I did not understand why...
Ok, so I'm not sure what you're running into here. I cleaned out all build artifacts my build tree and those installed on my system ("scons -c" and "sudo scons -c install", respectively) and then did a fresh install into a temporary directory using PREFIX. It seems to work fine as shown in the transcript below. Let me know if I can provide more info or run things differently. thanks, tim === tim@pauling:~/reglookup/trunk$ mkdir /tmp/reglookup tim@pauling:~/reglookup/trunk$ sudo PREFIX=/tmp/reglookup scons install scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... gcc -o src/reglookup.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include src/reglookup.c gcc -o lib/regfi.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include lib/regfi.c lib/regfi.c:672:13: warning: regfi_offset_in_hbin defined but not used [-Wunused-function] static bool regfi_offset_in_hbin(const REGFI_HBIN* hbin, uint32_t voffset) ^ gcc -o lib/winsec.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include lib/winsec.c gcc -o lib/range_list.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include lib/range_list.c gcc -o lib/lru_cache.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include lib/lru_cache.c gcc -o lib/void_stack.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include lib/void_stack.c ar rc lib/libregfi.a lib/regfi.o lib/winsec.o lib/range_list.o lib/lru_cache.o lib/void_stack.o ranlib lib/libregfi.a gcc -o lib/regfi.os -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/local/include lib/regfi.c lib/regfi.c:672:13: warning: regfi_offset_in_hbin defined but not used [-Wunused-function] static bool regfi_offset_in_hbin(const REGFI_HBIN* hbin, uint32_t voffset) ^ gcc -o lib/winsec.os -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/local/include lib/winsec.c gcc -o lib/range_list.os -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/local/include lib/range_list.c gcc -o lib/lru_cache.os -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/local/include lib/lru_cache.c gcc -o lib/void_stack.os -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/local/include lib/void_stack.c gcc -o lib/libregfi.so.1.0.1 -fPIC -Wl,-z,relro,-z,now -shared -Wl,-Bsymbolic -Wl,-soname=libregfi.so.1 lib/regfi.os lib/winsec.os lib/range_list.os lib/lru_cache.os lib/void_stack.os -Llib -L/usr/local/lib -lm -lpthread -ltalloc gcc -o src/reglookup -fPIC -Wl,-z,relro,-z,now src/reglookup.o -Llib -L/usr/local/lib -lm -lpthread -lregfi -ltalloc Install file: "src/reglookup" as "/tmp/reglookup/bin/reglookup" gcc -o src/reglookup-recover.o -c -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -DREGFI_VERSION='"1.0.1.283"' -fPIE -pie -fstack-protector -D_FORTIFY_SOURCE=2 -Iinclude -I/usr/local/include src/reglookup-recover.c gcc -o src/reglookup-recover -fPIC -Wl,-z,relro,-z,now src/reglookup-recover.o -Llib -L/usr/local/lib -lm -lpthread -lregfi -ltalloc Install file: "src/reglookup-recover" as "/tmp/reglookup/bin/reglookup-recover" Install file: "bin/reglookup-timeline" as "/tmp/reglookup/bin/reglookup-timeline" docbook2x-man --to-stdout doc/reglookup-recover.1.docbook|sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/'| gzip -9 > doc/reglookup-recover.1.gz Install file: "doc/reglookup-recover.1.gz" as "/tmp/reglookup/man/man1/reglookup-recover.1.gz" docbook2x-man --to-stdout doc/reglookup-timeline.1.docbook|sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/'| gzip -9 > doc/reglookup-timeline.1.gz Install file: "doc/reglookup-timeline.1.gz" as "/tmp/reglookup/man/man1/reglookup-timeline.1.gz" docbook2x-man --to-stdout doc/reglookup.1.docbook|sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/'| gzip -9 > doc/reglookup.1.gz Install file: "doc/reglookup.1.gz" as "/tmp/reglookup/man/man1/reglookup.1.gz" Install file: "lib/libregfi.a" as "/tmp/reglookup/lib/libregfi.a" ldconfig Install file: "lib/libregfi.so.1.0.1" as "/tmp/reglookup/lib/libregfi.so.1.0.1" ldconfig Install file: "include/byteorder.h" as "/tmp/reglookup/include/regfi/byteorder.h" Install file: "include/compat.h" as "/tmp/reglookup/include/regfi/compat.h" Install file: "include/lru_cache.h" as "/tmp/reglookup/include/regfi/lru_cache.h" Install file: "include/range_list.h" as "/tmp/reglookup/include/regfi/range_list.h" Install file: "include/regfi.h" as "/tmp/reglookup/include/regfi/regfi.h" Install file: "include/void_stack.h" as "/tmp/reglookup/include/regfi/void_stack.h" Install file: "include/winsec.h" as "/tmp/reglookup/include/regfi/winsec.h" python setup.py install --root=/ | tee pyregfi2-install.log running install running build running build_py running install_lib running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/pyregfi-1.0.1.283.egg-info Writing /usr/local/lib/python2.7/dist-packages/pyregfi-1.0.1.283.egg-info python3 setup.py install --root=/ | tee pyregfi3-install.log running install running build running build_py running install_lib running install_egg_info Removing /usr/local/lib/python3.4/dist-packages/pyregfi-1.0.1.283.egg-info Writing /usr/local/lib/python3.4/dist-packages/pyregfi-1.0.1.283.egg-info scons: done building targets. tim@pauling:~/reglookup/trunk$ find /tmp/reglookup/ /tmp/reglookup/ /tmp/reglookup/include /tmp/reglookup/include/regfi /tmp/reglookup/include/regfi/winsec.h /tmp/reglookup/include/regfi/void_stack.h /tmp/reglookup/include/regfi/regfi.h /tmp/reglookup/include/regfi/range_list.h /tmp/reglookup/include/regfi/lru_cache.h /tmp/reglookup/include/regfi/compat.h /tmp/reglookup/include/regfi/byteorder.h /tmp/reglookup/lib /tmp/reglookup/lib/libregfi.so.1 /tmp/reglookup/lib/libregfi.so /tmp/reglookup/lib/libregfi.so.1.0.1 /tmp/reglookup/lib/libregfi.a /tmp/reglookup/man /tmp/reglookup/man/man1 /tmp/reglookup/man/man1/reglookup.1.gz /tmp/reglookup/man/man1/reglookup-timeline.1.gz /tmp/reglookup/man/man1/reglookup-recover.1.gz /tmp/reglookup/bin /tmp/reglookup/bin/reglookup-timeline /tmp/reglookup/bin/reglookup-recover /tmp/reglookup/bin/reglookup