> I suggest to try attached patch and see how it goes. > > Regards, > Simon switching to pushd / popd makes the problem go away completely: + mkdir -p /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/lib64/tcl8.6 + ln -s /usr/lib64/tclConfig.sh /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/lib64/tcl8.6/tclConfig.sh + mkdir -p /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/unix + find generic unix -name '*.h' -exec cp -p '{}' '/usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/{}' ';' + pushd /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include ~/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64/usr/include ~/rpm/BUILD/tcl8.6.0 + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/fakemysql.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/fakepq.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/fakesql.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itcl.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itcl2TclOO.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itclDecls.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itclInt.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itclIntDecls.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itclMigrate2TclCore.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/itclTclIntStubsFcn.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/mysqlStubs.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/odbcStubs.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/pqStubs.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tcl.h ']' + ln -sf ../../tcl.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclDecls.h ']' + ln -sf ../../tclDecls.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclOO.h ']' + ln -sf ../../tclOO.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclOODecls.h ']' + ln -sf ../../tclOODecls.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclPlatDecls.h ']' + ln -sf ../../tclPlatDecls.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclThread.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclTomMath.h ']' + ln -sf ../../tclTomMath.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tclTomMathDecls.h ']' + ln -sf ../../tclTomMathDecls.h /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tdbc.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tdbcDecls.h ']' + for i in '*.h' + '[' -f /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/include/tcl-private/generic/tdbcInt.h ']' + popd ~/rpm/BUILD/tcl8.6.0 + sed -i -e 's|/usr/local/home/build/rpm/BUILD/tcl8.6.0/unix|/usr/lib64|; s|/usr/local/home/build/rpm/BUILD/tcl8.6.0|/usr/include/tcl-private|' /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/lib64/tclConfig.sh + rm -rf /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/share/tcl8.6/tclAppInit.c + rm -rf /usr/local/home/build/rpm/BUILDROOT/tcl-8.6.0-4hss.el6.x86_64//usr/share/tcl8.6/ldAix + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tGFAim + umask 022 + cd /usr/local/home/build/rpm/BUILD + cd tcl8.6.0 + unset DISPLAY + exit 0 Installed packages looks fine also, at least there are links at all: [neu at rpmbuild generic]$ pwd /usr/include/tcl-private/generic [neu at rpmbuild generic]$ ls -la total 444 drwxr-xr-x 2 root root 4096 Jun 28 11:13 . drwxr-xr-x 4 root root 4096 Jun 28 11:05 .. -rw-r--r-- 1 root root 4996 Jun 26 2012 regcustom.h -rw-r--r-- 1 root root 1137 Apr 26 2011 regerrs.h -rw-r--r-- 1 root root 11263 Jun 26 2012 regex.h -rw-r--r-- 1 root root 12722 Jun 26 2012 regguts.h -rw-r--r-- 1 root root 60467 Nov 5 2012 tclCompile.h lrwxrwxrwx 1 root root 16 Jun 28 11:13 tclDecls.h -> ../../tclDecls.h -rw-r--r-- 1 root root 2451 Jul 2 2012 tclFileSystem.h lrwxrwxrwx 1 root root 11 Jun 28 11:13 tcl.h -> ../../tcl.h -rw-r--r-- 1 root root 50962 Dec 20 2012 tclIntDecls.h -rw-r--r-- 1 root root 186174 Nov 5 2012 tclInt.h -rw-r--r-- 1 root root 20897 Dec 20 2012 tclIntPlatDecls.h -rw-r--r-- 1 root root 17791 Jun 26 2012 tclIO.h lrwxrwxrwx 1 root root 18 Jun 28 11:13 tclOODecls.h -> ../../tclOODecls.h lrwxrwxrwx 1 root root 13 Jun 28 11:13 tclOO.h -> ../../tclOO.h -rw-r--r-- 1 root root 7241 Dec 20 2012 tclOOIntDecls.h -rw-r--r-- 1 root root 23931 Sep 4 2012 tclOOInt.h -rw-r--r-- 1 root root 457 Dec 4 2012 tclParse.h lrwxrwxrwx 1 root root 20 Jun 28 11:13 tclPlatDecls.h -> ../../tclPlatDecls.h -rw-r--r-- 1 root root 1075 Jun 26 2012 tclPort.h -rw-r--r-- 1 root root 1668 Jun 26 2012 tclRegexp.h lrwxrwxrwx 1 root root 23 Jun 28 11:13 tclTomMathDecls.h -> ../../tclTomMathDecls.h lrwxrwxrwx 1 root root 18 Jun 28 11:13 tclTomMath.h -> ../../tclTomMath.h -rw-r--r-- 1 root root 71 Jun 26 2012 tclTomMathInt.h -rw-r--r-- 1 root root 27 Jun 26 2012 tommath.h Will try the debug statements Yury mentioned also... -Jens www.biotronik.com BIOTRONIK - Celebrating 50 years of excellence Founded in 1963 with the development of the first German pacemaker, BIOTRONIK has brought innovations and the highest quality standards to the cardiac rhythm management and vascular intervention fields in more than 100 countries around the world. We’ve developed advanced technologies such as BIOTRONIK Home Monitoring®, Closed Loop Stimulation (CLS) and Orsiro, the industry's first hybrid drug eluting stent. BIOTRONIK also offers the broadest portfolio of cardiac devices with ProMRI®, an advanced technology that gives patients access to magnetic resonance (MR) scanning. BIOTRONIK SE & Co. KG Woermannkehre 1, 12359 Berlin, Germany Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRA 6501 Vertreten durch ihre Komplementärin: BIOTRONIK MT SE Sitz der Gesellschaft: Berlin, Registergericht: Berlin HRB 118866 B Geschäftsführende Direktoren: Christoph Böhmer, Dr. Lothar Krings This e-mail and the information it contains including attachments are confidential and meant only for use by the intended recipient(s); disclosure or copying is strictly prohibited. If you are not addressed, but in the possession of this e-mail, please notify the sender immediately and delete the document.