head 1.7; access; symbols pkgsrc-2017Q3:1.6.0.70 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.66 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.64 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.62 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.60 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.58 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.56 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.54 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.52 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.50 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.48 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.46 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.44 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.42 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.40 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.38 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.36 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.34 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.32 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.30 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.28 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.26 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.24 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.22 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.20 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.18 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.16 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.14 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.12 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.10 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.8 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.6 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.4 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.2 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.5.0.44 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.42 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.40 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.38 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.36 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.34 pkgsrc-2008Q1:1.5.0.32 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.30 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.28 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.26 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.24 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.22 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.20 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.18 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.16 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.14 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.12 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.10 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.8 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.6 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.4 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.2 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.4.0.4 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.2 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.2.0.2 netbsd-1-6-1-base:1.2 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2017.09.26.10.27.22; author wiz; state dead; branches; next 1.6; commitid 9ARpkXTuh9Wg2H8A; 1.6 date 2009.04.07.10.59.48; author hasso; state Exp; branches; next 1.5; 1.5 date 2004.04.16.14.30.45; author recht; state Exp; branches; next 1.4; 1.4 date 2003.03.18.08.36.25; author skrll; state Exp; branches; next 1.3; 1.3 date 2003.03.11.13.02.08; author markd; state Exp; branches; next 1.2; 1.2 date 2002.10.28.08.46.44; author skrll; state Exp; branches; next 1.1; 1.1 date 2002.01.07.08.07.59; author skrll; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.01.07.08.07.59; author skrll; state Exp; branches; next ; desc @@ 1.7 log @*: remove qt3 and the packages using it, including KDE3 Announced in https://mail-index.netbsd.org/pkgsrc-users/2017/09/10/msg025556.html @ text @$NetBSD: patch-ac,v 1.6 2009/04/07 10:59:48 hasso Exp $ --- src/tools/qdir_unix.cpp.orig 2007-02-02 16:01:05 +0200 +++ src/tools/qdir_unix.cpp 2009-04-07 13:10:26 +0300 @@@@ -36,6 +36,16 @@@@ **********************************************************************/ #include "qplatformdefs.h" + +#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s + +// POSIX Large File Support redefines truncate -> truncate64 +#if defined(truncate) +# undef truncate +#endif + +#endif + #include "qdir.h" #ifndef QT_NO_DIR @@@@ -53,6 +63,9 @@@@ #include #include +#ifndef MAXNAMLEN +#define MAXNAMLEN NAME_MAX +#endif void QDir::slashify( QString& ) { @@@@ -88,10 +101,19 @@@@ QString QDir::canonicalPath() const bool QDir::mkdir( const QString &dirName, bool acceptAbsPath ) const { -#if defined(Q_OS_MACX) // Mac X doesn't support trailing /'s +#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s QString name = dirName; - if (dirName[dirName.length() - 1] == "/") - name = dirName.left( dirName.length() - 1 ); + int pos = name.length(); + if (pos > 0) { + while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { + --pos; + }; + if ( pos == 0 ) { + name = QDir::rootDirPath(); + } else { + name.truncate( pos ); + } + } int status = ::mkdir( QFile::encodeName(filePath(name,acceptAbsPath)), 0777 ); #else @@@@ -103,7 +125,24 @@@@ bool QDir::mkdir( const QString &dirName bool QDir::rmdir( const QString &dirName, bool acceptAbsPath ) const { +#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s + QString name = dirName; + int pos = name.length(); + if (pos > 0) { + while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { + --pos; + }; + if ( pos == 0 ) { + name = QDir::rootDirPath(); + } else { + name.truncate( pos ); + } + } + return ::rmdir( QFile::encodeName(filePath(name,acceptAbsPath)) ) + == 0; +#else return ::rmdir( QFile::encodeName(filePath(dirName,acceptAbsPath)) ) == 0; +#endif } bool QDir::isReadable() const @ 1.6 log @Make it compile on DragonFly master. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.5 2004/04/16 14:30:45 recht Exp $ @ 1.5 log @update to 3.3.1 changes (among many others): - New QLocale Class - The ActiveQt framework, first available in Qt 3.1, has been enhanced in lots of ways in Qt 3.3. - Semi-Transparent Windows Other Improvements - The network module now supports IPv6 in addition to IPv4. - New 64-bit platforms are supported: Itanium on Linux (Intel compiler) and Windows (MSVC and Intel). - QCursor now provides the BusyCursor shape, which combines an hourglass with an arrow. - Qt's DOM classes are now reentrant when Qt is built with multithread support enabled. See http://www.trolltech.com/products/qt/whatsnew.html for more details. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2003/03/18 08:36:25 skrll Exp $ d3 2 a4 2 --- src/tools/qdir_unix.cpp.orig 2004-02-18 14:22:42.000000000 +0100 +++ src/tools/qdir_unix.cpp 2004-04-15 01:49:24.000000000 +0200 d22 11 a32 1 @@@@ -88,10 +98,19 @@@@ d55 1 a55 1 @@@@ -103,7 +122,24 @@@@ @ 1.4 log @Update qt3 to 3.1.2. This update fixes a large number of bugs. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2003/03/11 13:02:08 markd Exp $ d3 2 a4 2 --- src/tools/qdir_unix.cpp.orig Mon Dec 9 22:40:32 2002 +++ src/tools/qdir_unix.cpp d22 1 a22 1 @@@@ -86,10 +96,19 @@@@ d45 1 a45 1 @@@@ -101,7 +120,24 @@@@ bool QDir::mkdir( const QString &dirName @ 1.3 log @Update qt to 3.1.1. Qt 3.1 introduces many significant new features and many improvements over the 3.0.x series. Also lots of bugfixes. The Qt version 3.1 series is binary compatible with the 3.0.x series: applications compiled for 3.0 will continue to run with 3.1. @ text @d1 1 a1 1 $NetBSD$ d42 2 a43 2 return ::mkdir( QFile::encodeName(filePath(name,acceptAbsPath)), 0777 ) == 0; d45 1 a45 1 @@@@ -100,7 +119,24 @@@@ @ 1.2 log @Update to Qt 3.0.6, change PKGLIBTOOL to LIBTOOL in one place and do a bit of PLIST sorting. Qt 3.0.6 is a bugfix release. It maintains both forward and backward compatibility (source and binary) with Qt 3.0.5 Binary compatibility warning: Qt 3.0.6 is backward and forward binary compatible with Qt 3.0.5, and is planned to be binary compatible with Qt 3.1. Unfortunately Qt 3.0.5 is not 100% backward binary compatible with Qt 3.0.3 (a class got a few bytes smaller), meaning executables compiled with 3.0.5 may not run properly when linked dynamically to 3.0.3. at runtime. Note that this is not a problem on MS-Windows. Due to its wide distributed in various GNU/Linux distributions, we have decided to stick with 3.0.5's ABI. If you ship dynamically linked executables, we suggest putting a QT_REQUIRE_VERSION macro at the beginning of your main function: ... #include ... int main( int argc, char**argv ) { QT_REQUIRE_VERSION( argc, argv, "3.0.5" ) ... } The macro will show a message box with a warning message and then abort the application gracefully with exit(1). For a full buglist see the Trolltech web site. @ text @d3 1 a3 1 --- src/tools/qdir_unix.cpp.orig Thu Oct 17 15:08:58 2002 d5 18 a22 1 @@@@ -82,10 +82,19 @@@@ QString QDir::canonicalPath() const d33 8 a40 8 + while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { + --pos; + }; + if ( pos == 0 ) { + name = QDir::rootDirPath(); + } else { + name.truncate( pos ); + } d42 1 a42 1 return QT_MKDIR( QFile::encodeName(filePath(name,acceptAbsPath)), 0777 ) d45 1 a45 1 @@@@ -96,7 +105,24 @@@@ bool QDir::mkdir( const QString &dirName d53 8 a60 8 + while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) { + --pos; + }; + if ( pos == 0 ) { + name = QDir::rootDirPath(); + } else { + name.truncate( pos ); + } d62 2 a63 2 + return QT_RMDIR( QFile::encodeName(filePath(name,acceptAbsPath)) ) + == 0; d65 1 a65 1 return QT_RMDIR( QFile::encodeName(filePath(dirName,acceptAbsPath)) ) == 0; @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- src/tools/qdir_unix.cpp.orig Wed Dec 12 06:58:31 2001 d5 1 a5 1 @@@@ -81,10 +81,19 @@@@ d9 1 a9 1 -#ifdef Q_OS_MACX // Mac X doesn't support trailing /'s d28 1 a28 1 @@@@ -95,7 +104,24 @@@@ @ 1.1.1.1 log @Initial import of qt3-libs-3.0.1. The multiplatform GUI toolkit we all know and love. @ text @@