https://bugzilla.novell.com/show_bug.cgi?id=853690
https://bugzilla.novell.com/show_bug.cgi?id=853690#c3
--- Comment #3 from A R 2013-12-05 06:52:26 UTC ---
found a (the?) problem, and a fix ...
in
cat /usr/sbin/checkinstall
...
+ echo "AAAAAA"
+ cat /${TMP_DIR}/newfiles
2423 # Prepare directories to be included in the .spec file
mv ${TMP_DIR}/newfiles ${TMP_DIR}/newfiles.tmp
cat ${TMP_DIR}/newfiles.tmp | while read line; do
[ -d "${BUILD_DIR}/${line}" -o -L "${BUILD_DIR}/${line}" ] &&
echo -n "%dir " >> ${TMP_DIR}/newfiles
echo "\"/${line}\"" >> ${TMP_DIR}/newfiles
done
+ echo "BBBBBB"
+ cat /${TMP_DIR}/newfiles
+ exit
...
@ exec
checkinstall ...
returns
AAAAAA
/usr/
/usr/local/
/usr/local/include/
/usr/local/include/lua.hpp
/usr/local/include/lualib.h
/usr/local/include/lauxlib.h
/usr/local/include/luaconf.h
/usr/local/include/lua.h
/usr/local/man/
/usr/local/man/man1/
/usr/local/man/man1/luac.1.gz
/usr/local/man/man1/lua.1.gz
/usr/local/bin/
/usr/local/bin/luac
/usr/local/bin/lua
/usr/local/lib64/
/usr/local/lib64/liblua.so.5.1
/usr/local/lib64/liblua.so
BBBBBB
%dir "//usr/"
%dir "//usr/local/"
%dir "//usr/local/include/"
"//usr/local/include/lua.hpp"
"//usr/local/include/lualib.h"
"//usr/local/include/lauxlib.h"
"//usr/local/include/luaconf.h"
"//usr/local/include/lua.h"
%dir "//usr/local/man/"
%dir "//usr/local/man/man1/"
"//usr/local/man/man1/luac.1.gz"
"//usr/local/man/man1/lua.1.gz"
%dir "//usr/local/bin/"
"//usr/local/bin/luac"
"//usr/local/bin/lua"
%dir "//usr/local/lib64/"
"//usr/local/lib64/liblua.so.5.1"
%dir "//usr/local/lib64/liblua.so" <==================================
INCORRECT
note, the INCORRECT assignment of
"//usr/local/lib64/liblua.so"
as a
%dir"
since
cd /usr/local/src/lua-5.1.5/
rm -rf ~/TEST
mkdir -p ~/TEST
cd ~/TEST
mkdir T1
touch F1
ln -sf T1 T2
ln -sf F1 F2
test -d T1; echo $? ==> 0
test -d T2; echo $? ==> 0
test -d F1; echo $? ==> 1
test -d F2; echo $? ==> 1
test -f F1; echo $? ==> 0
test -f F2; echo $? ==> 0
It seems that that the "-L" symbolic link serves no purpose; changing
- [ -d "${BUILD_DIR}/${line}" -o -L "${BUILD_DIR}/${line}" ] && echo
-n "%dir " >> ${TMP_DIR}/newfiles
+ [ -d "${BUILD_DIR}/${line}" ] && echo -n "%dir " >>
${TMP_DIR}/newfiles
now @ exec
checkinstall ...
returns
AAAAAA
/usr/
/usr/local/
/usr/local/include/
/usr/local/include/lua.hpp
/usr/local/include/lualib.h
/usr/local/include/lauxlib.h
/usr/local/include/luaconf.h
/usr/local/include/lua.h
/usr/local/man/
/usr/local/man/man1/
/usr/local/man/man1/luac.1.gz
/usr/local/man/man1/lua.1.gz
/usr/local/bin/
/usr/local/bin/luac
/usr/local/bin/lua
/usr/local/lib64/
/usr/local/lib64/liblua.so.5.1
/usr/local/lib64/liblua.so
BBBBBB
%dir "//usr/"
%dir "//usr/local/"
%dir "//usr/local/include/"
"//usr/local/include/lua.hpp"
"//usr/local/include/lualib.h"
"//usr/local/include/lauxlib.h"
"//usr/local/include/luaconf.h"
"//usr/local/include/lua.h"
%dir "//usr/local/man/"
%dir "//usr/local/man/man1/"
"//usr/local/man/man1/luac.1.gz"
"//usr/local/man/man1/lua.1.gz"
%dir "//usr/local/bin/"
"//usr/local/bin/luac"
"//usr/local/bin/lua"
%dir "//usr/local/lib64/"
"//usr/local/lib64/liblua.so.5.1"
"//usr/local/lib64/liblua.so" <==================== CORRECT
and, removing the 'exit' allows the checkinstall to proceed to completion,
...
**********************************************************************
Done. The new package has been saved to
/usr/src/packages/RPMS/x86_64/lua-custom-5.1-1.x86_64.rpm
You can install it in your system anytime using:
rpm -i lua-custom-5.1-1.x86_64.rpm
**********************************************************************
installs & verifies
rpm -qa | grep -i lua-custom
(empty)
which lua
(empty)
rpm -ivh --force /usr/src/packages/RPMS/x86_64/lua-custom-5.1-1.x86_64.rpm
Preparing... #################################
[100%]
Updating / installing...
1:lua-custom-5.1-1 #################################
[100%]
rpm -qa | grep -i lua-custom
lua-custom-5.1-1.x86_64
which lua
/usr/local/bin/lua
lua -v
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
(1) why is this different bet 12.3 & 13.1?
(2) this simple fix seems OK, but I'm not clear it won't cause trouble in other
cases. is it sufficient?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.