Update starttde consistent with the changes made to tdelibs/tdesu/stub.cpp in bug report 766.
The first snippet that is deleted is redundant and conflicts with the same $PATH test several lines later in the script.
The second change ensures $PATH is consistent with stub.cpp, which places $PREFIX/bin in the path order just before /usr/bin and not blindly as first in the search path. If, oddly, /usr/bin is not in the search path then the script falls back to placing $PREFIX/bin first in the …
[View More]search path.
==============================================================
diff -urN tdebase/starttde tdebase.new/starttde
--- tdebase/starttde 2012-02-15 13:26:30.000000000 -0600
+++ tdebase.new/starttde 2012-02-26 19:08:44.000000000 -0600
@@ -76,15 +76,6 @@
fi
fi
-# In case we have been started with full pathname spec without being in PATH.
-bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
-if [ -n "$bindir" ]; then
- case $PATH in
- $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
- *) PATH=$bindir:$PATH; export PATH;;
- esac
-fi
-
# Boot sequence:
#
# tdeinit is used to fork off processes which improves memory usage
@@ -165,7 +156,14 @@
fi
if [ -d $TDEDIR/bin ]; then
if [ -z "`echo $PATH | grep \"$TDEDIR/bin\"`" ]; then
- export PATH=$TDEDIR/bin:$PATH
+ # Respect the traditional path order. Don't blindly place $TDEDIR/bin
+ # first in the path. Only place $TDEDIR/bin before /usr/bin. This order is
+ # consistent with tdelibs/tdesu/stub.cpp.
+ if [ -n "`echo $PATH | grep \"/usr/bin\"`" ]; then
+ export PATH="`echo $PATH | sed \"s|/usr/bin|$TDEDIR/bin:/usr/bin|\"`"
+ else
+ export PATH=$TDEDIR/bin:$PATH
+ fi
fi
fi
if [ -d $TDEDIR/share ]; then
==============================================================
I have tested the change. If there are no objections then I would like to push the patch.
[View Less]
Tim, All
kate/kwrite are two of the crown jewels of tde. It would be nice to improve
things as this project goes along. One simple idea is to provide the
kate->tools->sort feature to kwrite. Is this the type of thing that warrants a
feature request on the bug tracker to make sure it doesn't get lost or is there
some other etherpad or tool that would be better. My .02 is it should go in the
tracker as pads seem to come and go.
--
David C. Rankin, J.D.,P.E.
Tim, Darrell,
This is my first attempt a building tqt3 from the git tree and I've run into a
problem. The good news it the build continued for quite some time. I wasn't
timing, but is estimate 60+% of the build completed. The errors at the end of
the build were:
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual int
TQODBCResult::numRowsAffected()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:983:60: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka …
[View More]long int*}' for argument '2' to
'SQLRETURN SQLRowCount(SQLHSTMT, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool
TQODBCResult::exec()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1109:43: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1127:50: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1149:43: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1163:43: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1177:43: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1192:12: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1210:16: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1227:12: error: cannot convert
'SQLINTEGER* {aka int*}' to 'SQLLEN* {aka long int*}' for argument '10' to
'SQLRETURN SQLBindParameter(SQLHSTMT, SQLUSMALLINT, SQLSMALLINT, SQLSMALLINT,
SQLSMALLINT, SQLULEN, SQLSMALLINT, SQLPOINTER, SQLLEN, SQLLEN*)'
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'virtual bool
TQODBCDriver::beginTransaction()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1666:23: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
../../../../src/sql/drivers/odbc/qsql_odbc.cpp: In member function 'bool
TQODBCDriver::endTrans()':
../../../../src/sql/drivers/odbc/qsql_odbc.cpp:1716:23: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
make[3]: *** [.obj/qsql_odbc.o] Error 1
make[3]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers/odbc'
make[2]: *** [sub-odbc] Error 2
make[2]: Leaving directory `/build/src/tqt3/plugins/src/sqldrivers'
make[1]: *** [sub-sqldrivers] Error 2
make[1]: Leaving directory `/build/src/tqt3/plugins/src'
make: *** [sub-plugins] Error 2
This looks liek issues with the odbc driver type definitions. Is this
something that you are familiar with and can help me with it? Or, is this
something you don't recognize and need me to send more to help narrow it down?
Looks like the src/sql/drivers/odbc/qsql_odbc.cpp code is not happy. The good
news, is that I've got the Arch build script developed to get (or should I say
git) it this for :) Let me know. Thanks!
--
David C. Rankin, J.D.,P.E.
[View Less]
I'm seeing these messages in my xsession log. The standard as-is message looks like that in the subject line. My messages now look like this:
[kinit] Could not load library (artswrapper)! Trying exec...
[kinit] Could not load library (/usr/local/bin/run_conky)! Trying exec...
[kinit] Could not load library (/usr/bin/VBoxClient-all)! Trying exec...
I added the [kinit] prefix in a patch I have not yet submitted to clarify the source of the message. I also patched the error string with the %s …
[View More]parameter to identify the object of the message.
The message sort of makes sense. kinit is trying to load/run/launch something that is not a library but is an executable. Browsing the source code (tdelibs/kinit/kinit.cpp) indicates there is a distinction between libraries and executables. Therefore I'm wondering whether the message should be displayed, clutters the xsession log, or should be revised.
As you can see from the as-is format, the message is not informative at all. Worse, the exclamation mark is misleading and needlessly disturbing to anybody reading the log. An exclamation mark should indicate something serious that needs attention but that is not the case here. The message is somewhat informative but is not emergency. If the message is valuable then rewording would help. Possibly something like:
[kinit] artswrapper is an executable and not a library. Launching with exec...
If there are no objections then I'd like to patch that error string as above and push to GIT.
Darrell
[View Less]
I'm seeing this message in my xsession log. The message occurs during the session shutdown.
Watching the log through tail, the message occurs after selecting any logout option. I believe the error is caused by the "Saving your sessions" dialog. I enabled logout confirmation and the error does not appear until after I confirm the logout, which is when the "Saving your sessions" dialog appears.
The message itself is in TQt3 qabstractlayout.cpp:609:
qWarning( "TQLayout \"%s\" added to %s \"%s\",…
[View More] which already has a"
" layout", TQObject::name(), parent->className(),
parent->name() );
Any ideas what to look for in the code and how to resolve?
Darrell
[View Less]
Tim, all,
In the arch qt3 build, there was a sed statement to include qglobal.h in qtimer.h:
# missing include "qglobal.h" in include/qtimer.h fix
sed -ie 's/define QTIMER_H/&\n#include "qglobal.h"/g'
"$pkgdir$_prefix/include/qtimer.h"
Is that needed for ntqtimer.h?
--
David C. Rankin, J.D.,P.E.
Tim,
If you already know this then never mind, but I needed to patch tdelibs and tdebase against today's GIT updates for some remaining tde-config renaming. The patches are here:
http://humanreadable.nfshost.com/trinity/patches/tdebase
Also two additional patches to build tdebase caused by recent tqt changes.
:)
Darrell
Guys, Gals,
When building TQt3 to replace Qt3, what is the name for the recommended
install dir (i.e. $QTDIR)? I am going to put it in /opt, so should it go in:
/opt/TQt3
or should I use it as a direct replacement and put it in
/opt/Qt3?
Specifically, I am attempting this on archlinux where I have only used Qt3
before. Is this advisable, or should I just stay with Qt3?
If I install TQt3, then will updating /etc/profile.d/qt3.sh be the proper
way to tell the rest of the system …
[View More]where to find Qt3 --or-- should I create a
new profile named tqt3.sh with that information??
--
David C. Rankin, J.D.,P.E.
[View Less]