diff options
author | Will Andrews <will@FreeBSD.org> | 2003-09-18 14:57:05 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2003-09-18 14:57:05 +0000 |
commit | 01ff961210c499a0f1195f744c4e6a1125a932e7 (patch) | |
tree | 975326e07f6532f9c7757124222c6b4243184711 /x11/kdebase3 | |
parent | Upgrade to Qt 3.2.1 / KDE 3.1.4. This upgrade includes patches for (diff) |
Upgrade to Qt 3.2.1 / KDE 3.1.4. See x11/kde3/Makefile rev 1.64 for details.
Notes
Notes:
svn path=/head/; revision=89050
Diffstat (limited to 'x11/kdebase3')
-rw-r--r-- | x11/kdebase3/Makefile | 2 | ||||
-rw-r--r-- | x11/kdebase3/distinfo | 2 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-configure | 122 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-kdm-backend-client.c | 33 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-kioslave-fish-fish.cpp | 10 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp | 172 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-konsole-konsole-konsole_grantpty.c | 62 | ||||
-rw-r--r-- | x11/kdebase3/files/patch-konsole-konsole-main.cpp | 18 |
8 files changed, 2 insertions, 419 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile index d3157b31a51e..6cdf342d44ef 100644 --- a/x11/kdebase3/Makefile +++ b/x11/kdebase3/Makefile @@ -8,7 +8,6 @@ PORTNAME= kdebase PORTVERSION= ${KDE_VERSION} -PORTREVISION= 1 CATEGORIES= x11 kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${KDE_VERSION}/src @@ -18,6 +17,7 @@ MAINTAINER= kde@FreeBSD.org COMMENT= This package provides the basic applications for the KDE system BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients +LIB_DEPENDS= smbclient:${PORTSDIR}/net/samba-libsmbclient USE_KDELIBS_VER=3 PREFIX= ${KDE_PREFIX} diff --git a/x11/kdebase3/distinfo b/x11/kdebase3/distinfo index 8bd0f3797664..7997c9f6f51c 100644 --- a/x11/kdebase3/distinfo +++ b/x11/kdebase3/distinfo @@ -1 +1 @@ -MD5 (KDE/kdebase-3.1.3.tar.bz2) = d11514ebed619de18869d95e2d110951 +MD5 (KDE/kdebase-3.1.4.tar.bz2) = e6859ad85b176e11ce997490786c124d diff --git a/x11/kdebase3/files/patch-configure b/x11/kdebase3/files/patch-configure deleted file mode 100644 index fcc7afb4565b..000000000000 --- a/x11/kdebase3/files/patch-configure +++ /dev/null @@ -1,122 +0,0 @@ ---- configure.orig Sat Aug 23 22:55:38 2003 -+++ configure Sat Aug 23 22:57:16 2003 -@@ -33894,8 +33894,67 @@ - echo "$as_me:$LINENO: result: not found" >&5 - echo "${ECHO_T}not found" >&6 - -- { echo "$as_me:$LINENO: WARNING: Could not find libfontconfig anywhere, check http://www.fontconfig.org/" >&5 --echo "$as_me: WARNING: Could not find libfontconfig anywhere, check http://www.fontconfig.org/" >&2;} -+ -+ echo "$as_me:$LINENO: checking for pkg-config" >&5 -+echo $ECHO_N "checking for pkg-config... $ECHO_C" >&6 -+ if test -n "$PKGCONFIG"; then -+ kde_cv_path="$PKGCONFIG"; -+ else -+ kde_cache=`echo pkg-config | sed 'y%./+-%__p_%'` -+ -+ if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ -+ kde_cv_path="NONE" -+ dirs="${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin" -+ kde_save_IFS=$IFS -+ IFS=':' -+ for dir in $PATH; do -+ dirs="$dirs $dir" -+ done -+ IFS=$kde_save_IFS -+ -+ for dir in $dirs; do -+ if test -x "$dir/pkg-config"; then -+ if test -n "" -+ then -+ evalstr="$dir/pkg-config 2>&1 " -+ if eval $evalstr; then -+ kde_cv_path="$dir/pkg-config" -+ break -+ fi -+ else -+ kde_cv_path="$dir/pkg-config" -+ break -+ fi -+ fi -+ done -+ -+ eval "kde_cv_path_$kde_cache=$kde_cv_path" -+ -+ -+fi -+ -+ -+ eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\"" -+ -+ fi -+ -+ if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then -+ echo "$as_me:$LINENO: result: not found" >&5 -+echo "${ECHO_T}not found" >&6 -+ -+ { echo "$as_me:$LINENO: WARNING: Could not find neither pkg-config nor fontconfig-config, check http://www.fontconfig.org/ " >&5 -+echo "$as_me: WARNING: Could not find neither pkg-config nor fontconfig-config, check http://www.fontconfig.org/ " >&2;} -+ -+ else -+ echo "$as_me:$LINENO: result: $kde_cv_path" >&5 -+echo "${ECHO_T}$kde_cv_path" >&6 -+ PKGCONFIG=$kde_cv_path -+ -+ fi -+ - - else - echo "$as_me:$LINENO: result: $kde_cv_path" >&5 -@@ -33905,6 +33964,30 @@ - fi - - -+if test -n "$PKGCONFIG"; then -+ vers=`$PKGCONFIG fontconfig --modversion 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -+ if test -n "$vers" && test "$vers" -ge 1000000 -+ then -+ LIBFONTCONFIG_LIBS="`$PKGCONFIG fontconfig --libs`" -+ LIBFONTCONFIG_RPATH= -+ for args in $LIBFONTCONFIG_LIBS; do -+ case $args in -+ -L*) -+ LIBFONTCONFIG_RPATH="$LIBFONTCONFIG_RPATH $args" -+ ;; -+ esac -+ done -+ LIBFONTCONFIG_RPATH=`echo $LIBFONTCONFIG_RPATH | sed -e "s/-L/-R/g"` -+ LIBFONTCONFIG_CFLAGS="`$PKGCONFIG fontconfig --cflags`" -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define HAVE_FONTCONFIG 1 -+_ACEOF -+ -+ fi -+fi -+ - if test -n "$FONTCONFIG_CONFIG"; then - vers=`$FONTCONFIG_CONFIG --version 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` - if test -n "$vers" && test "$vers" -ge 1000000 -@@ -37753,7 +37836,7 @@ - do - for j in ldap.h; - do -- echo "configure: 37756: $i/$j" >&5 -+ echo "configure: 37839: $i/$j" >&5 - if test -r "$i/$j"; then - echo "taking that" >&5 - ldap_incdir=$i -@@ -37775,7 +37858,7 @@ - do - for j in libldap.$ext; - do -- echo "configure: 37778: $i/$j" >&5 -+ echo "configure: 37861: $i/$j" >&5 - if test -r "$i/$j"; then - echo "taking that" >&5 - ldap_libdir=$i - diff --git a/x11/kdebase3/files/patch-kdm-backend-client.c b/x11/kdebase3/files/patch-kdm-backend-client.c deleted file mode 100644 index fe44c4f3831c..000000000000 --- a/x11/kdebase3/files/patch-kdm-backend-client.c +++ /dev/null @@ -1,33 +0,0 @@ ---- kdm/backend/client.c 18 Jun 2003 20:05:15 -0000 2.25.2.4 -+++ kdm/backend/client.c 6 Aug 2003 16:02:39 -0000 2.25.2.5 -@@ -1,5 +1,5 @@ - /* $TOG: verify.c /main/37 1998/02/11 10:00:45 kaleb $ */ --/* $Id: client.c,v 2.25.2.4 2003/06/18 20:05:15 ossi Exp $ */ -+/* $Id: client.c,v 2.25.2.5 2003/08/06 16:02:39 ossi Exp $ */ - /* - - Copyright 1988, 1998 The Open Group -@@ -1009,7 +1009,11 @@ StartClient (struct display *d, - exit (1); - # endif - # ifdef USE_PAM -- pam_setcred(pamh, 0); -+ if (pam_setcred(pamh, 0) != PAM_SUCCESS) { -+ LogError("pam_setcred for %\"s failed, errno=%d\n", -+ name, errno); -+ exit (1); -+ } - /* pass in environment variables set by libpam and modules it called */ - pam_env = pam_getenvlist(pamh); - ReInitErrorLog (); -@@ -1267,7 +1271,9 @@ SessionExit (struct display *d, int stat - #ifdef USE_PAM - if (pamh) { - /* shutdown PAM session */ -- pam_setcred(pamh, PAM_DELETE_CRED); -+ if (pam_setcred(pamh, PAM_DELETE_CRED) != PAM_SUCCESS) -+ LogError("pam_setcred(DELETE_CRED) for %\"s failed, errno=%d\n", -+ d->verify->user, errno); - pam_close_session(pamh, 0); - pam_end(pamh, PAM_SUCCESS); - pamh = NULL; diff --git a/x11/kdebase3/files/patch-kioslave-fish-fish.cpp b/x11/kdebase3/files/patch-kioslave-fish-fish.cpp deleted file mode 100644 index 6373fd0f3546..000000000000 --- a/x11/kdebase3/files/patch-kioslave-fish-fish.cpp +++ /dev/null @@ -1,10 +0,0 @@ ---- kioslave/fish/fish.cpp.orig -+++ kioslave/fish/fish.cpp -@@ -302,5 +302,5 @@ - void fishProtocol::openConnection() { - static int open_pty_pair(int fd[2]) - { --#if defined(HAVE_TERMIOS_H) && defined(HAVE_GRANTPT) -+#if defined(HAVE_TERMIOS_H) && defined(HAVE_GRANTPT) && !defined (HAVE_OPENPTY) - /** with kind regards to The GNU C Library - Reference Manual for Version 2.2.x of the GNU C Library */ diff --git a/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp b/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp deleted file mode 100644 index 44642dc8aebc..000000000000 --- a/x11/kdebase3/files/patch-konsole-konsole-TEPty.cpp +++ /dev/null @@ -1,172 +0,0 @@ ---- konsole/konsole/TEPty.cpp 22 Nov 2002 13:17:57 -0000 1.75 -+++ konsole/konsole/TEPty.cpp 24 Aug 2003 21:44:00 -0000 -@@ -65,6 +65,9 @@ - #include <config.h> - #endif - -+// Get the Q_OS_* defines -+#include <qglobal.h> -+ - #ifdef __sgi - #define __svr4__ - #endif -@@ -88,6 +91,10 @@ - #include <sys/types.h> - #endif - -+#ifdef Q_OS_FREEBSD -+#include <sys/param.h> -+#endif -+ - #include <stdlib.h> - #include <stdio.h> - -@@ -198,9 +205,30 @@ public: - - FILE* syslog_file = NULL; //stdout; - --#define PTY_FILENO 3 -+#define DEFAULT_PTY_FILENO 3 -+int PTY_FILENO = -1; // None allocated yet. -+ - #define BASE_CHOWN "konsole_grantpty" - -+void TEPtyInit() -+{ -+/* -+** FreeBSD can't dup2(fd,3) because fd 3 is already in use by -+** some weird pipe. So instead, we get a new throwaway fd -+** that's not in use by anyone. -+*/ -+#ifdef Q_OS_FREEBSD -+ PTY_FILENO = open("/dev/null",O_RDWR); -+ if (PTY_FILENO == -1) { -+ perror("konsole:open PTY"); -+ /* This won't work either, but hey .. */ -+ PTY_FILENO = DEFAULT_PTY_FILENO; -+ } -+#else -+ PTY_FILENO = DEFAULT_PTY_FILENO; -+#endif -+} -+ - int chownpty(int fd, bool grant) - // param fd: the fd of a master pty. - // param grant: true to grant, false to revoke -@@ -212,6 +240,8 @@ int chownpty(int fd, bool grant) - newsa.sa_flags = 0; - sigaction(SIGCHLD, &newsa, &oldsa); - -+ if (PTY_FILENO == -1) TEPtyInit(); -+ - pid_t pid = fork(); - if (pid < 0) - { -@@ -225,7 +255,12 @@ int chownpty(int fd, bool grant) - /* We pass the master pseudo terminal as file descriptor PTY_FILENO. */ - if (fd != PTY_FILENO && dup2(fd, PTY_FILENO) < 0) exit(1); - QString path = locate("exe", BASE_CHOWN); -- execle(path.ascii(), BASE_CHOWN, grant?"--grant":"--revoke", NULL, NULL); -+ /* -+ ** Because konsole_grantpty now can't expect the fd -+ ** to be constant, we need an additional parameter. -+ */ -+ QString fdnumber = QString::number(PTY_FILENO); -+ execle(path.ascii(), BASE_CHOWN, grant?"--grant":"--revoke", fdnumber.ascii(), NULL, NULL); - exit(1); // should not be reached - } - -@@ -486,6 +521,16 @@ int TEPty::makePty(bool _addutmp) - // open and set all standard files to slave tty - int tt = m_SlaveFd; // Already opened? - -+#ifdef Q_OS_FREEBSD -+ /* -+ ** It seems to be possible for SlaveFd to be closed in error -+ ** somewhere along the line. So check it for "liveness". -+ */ -+ struct stat sb; -+ if (fstat(tt,&sb)!=0) -+ tt=-1; // Apparently not alive. -+#endif -+ - if (tt < 0) - tt = open(ttynam, O_RDWR); - -@@ -524,14 +569,57 @@ int TEPty::makePty(bool _addutmp) - } - strncpy(l_struct.ut_name, str_ptr, UT_NAMESIZE); - -+#ifdef Q_OS_FREEBSD -+ /* FreeBSD until august 22, 2003 returned ENOMEM for too-long -+ ** hostnames. Then sanity prevailed (?) and the error was changed -+ ** to NAMETOOLONG, but this breaks konsole .. again. -+ ** -+ ** Instead of bailing out with long hostnames, put in partial -+ ** hostnames (the first UT_HOSTSIZE characters) instead. -+ */ -+ char hostnamebuffer[MAXHOSTNAMELEN+1]; -+ memset(hostnamebuffer,0,MAXHOSTNAMELEN+1); -+ if (gethostname(hostnamebuffer, MAXHOSTNAMELEN) == -1) -+ { -+ if ( (errno==ENOMEM) || (errno==ENAMETOOLONG) ) { -+ /* ignore it, but very odd */ -+ } -+ else { -+ /* Not much chance of this being visible anywhere ... */ -+ perror("konsole:gethostname"); -+ abort(); -+ } -+ } -+ /* Copy hostname, possibly only partially */ -+ memset(l_struct.ut_host,0,UT_HOSTSIZE); -+ strncpy(l_struct.ut_host,hostnamebuffer,UT_HOSTSIZE); -+ l_struct.ut_host[UT_HOSTSIZE]=0; -+#else -+ /* Non-FreeBSD systems */ - if (gethostname(l_struct.ut_host, UT_HOSTSIZE) == -1) { -- if (errno != ENOMEM) -+ if (errno != ENOMEM) - abort(); - l_struct.ut_host[UT_HOSTSIZE]=0; - } -+#endif - - if (! (str_ptr=ttyname(tt)) ) { -+#ifdef Q_OS_FREEBSD -+ /* -+ ** In FreeBSD, the ttyname() call always returns NULL -+ ** for the kinds of devices (ptys) we have opened, -+ ** so don't abort, use a foolish default value instead. -+ ** The call to login() probably won't work _anyway_, -+ ** since normally users can't update the wtmp file. -+ ** -+ ** If we were real sticklers for accuracy, we'd copy the -+ ** code from konsole_grantpty that does it's darndest to -+ ** file out the right tty name. -+ */ -+ str_ptr = const_cast<char *>("/dev/konsole"); -+#else - abort(); -+#endif - } - if (strncmp(str_ptr, "/dev/", 5) == 0) - str_ptr += 5; -@@ -607,7 +695,7 @@ void TEPty::startPgm(const char* pgm, QV - // #define CERASE 0177 - // #endif - --#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) -+#if defined (Q_OS_FREEBSD) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) - ioctl(0,TIOCGETA,(char *)&ttmode); - #else - # if defined (_HPUX_SOURCE) || defined(__Lynx__) -@@ -621,7 +709,7 @@ void TEPty::startPgm(const char* pgm, QV - ttmode.c_cc[VINTR] = CTRL('C'); - ttmode.c_cc[VQUIT] = CTRL('\\'); - ttmode.c_cc[VERASE] = 0177; --#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) -+#if defined (Q_OS_FREEBSD) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) - ioctl(0,TIOCSETA,(char *)&ttmode); - #else - # ifdef _HPUX_SOURCE
\ No newline at end of file diff --git a/x11/kdebase3/files/patch-konsole-konsole-konsole_grantpty.c b/x11/kdebase3/files/patch-konsole-konsole-konsole_grantpty.c deleted file mode 100644 index 5093a52d277b..000000000000 --- a/x11/kdebase3/files/patch-konsole-konsole-konsole_grantpty.c +++ /dev/null @@ -1,62 +0,0 @@ ---- konsole/konsole/konsole_grantpty.c 2 Sep 2002 01:09:24 -0000 1.7 -+++ konsole/konsole/konsole_grantpty.c 24 Aug 2003 21:44:01 -0000 -@@ -40,7 +40,9 @@ - # include <dirent.h> - #endif - --#define PTY_FILENO 3 /* keep in sync with grantpty */ -+#define DEFAULT_PTY_FILENO 3 /* keep in sync with TEPty.cpp */ -+int PTY_FILENO = DEFAULT_PTY_FILENO; -+ - #define TTY_GROUP "tty" - - int main (int argc, char *argv[]) -@@ -52,11 +54,13 @@ int main (int argc, char *argv[]) - uid_t uid; - mode_t mod; - char* tty; -+ int command_fd; /* which fd to use? */ - - /* check preconditions **************************************************/ -- if (argc != 2 || (strcmp(argv[1],"--grant") && strcmp(argv[1],"--revoke"))) -+ if (( (argc != 3) && (argc != 2) /* optional third arg */ ) || -+ (strcmp(argv[1],"--grant") && strcmp(argv[1],"--revoke"))) - { -- printf("usage: %s (--grant|--revoke)\n",argv[0]); -+ printf("usage: %s (--grant|--revoke) [fd]\n",argv[0]); - printf("%s is a helper for\n",argv[0]); - printf("konsole and not intented to\n"); - printf("be called from the command\n"); -@@ -83,6 +87,22 @@ int main (int argc, char *argv[]) - uid = 0; /* root */ - mod = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; - } -+ -+ command_fd = DEFAULT_PTY_FILENO; -+ if (argv[2]) -+ { -+ command_fd = atoi(argv[2]); -+ } -+ if (command_fd > 2) /* must be out of stdin,stdout,stderr range */ -+ { -+ PTY_FILENO=command_fd; -+ } -+ else -+ { -+ fprintf(stderr,"%s: Bad command fd (seems to be %d)\n",argv[0],command_fd); -+ return 1; -+ } -+ - /* Get the group ID of the special `tty' group. */ - p = getgrnam(TTY_GROUP); /* posix */ - gid = p ? p->gr_gid : getgid (); /* posix */ -@@ -117,6 +137,9 @@ int main (int argc, char *argv[]) - if (dirp->d_fileno != dsb.st_ino) - continue; - { -+ /* Else this is the right device file .. any possible memory -+ ** leak here because two files match is unimportant? -+ */ - int pdlen = strlen(_PATH_DEV), namelen = strlen(dirp->d_name); - pty = malloc(pdlen + namelen + 1); - if (pty) {
\ No newline at end of file diff --git a/x11/kdebase3/files/patch-konsole-konsole-main.cpp b/x11/kdebase3/files/patch-konsole-konsole-main.cpp deleted file mode 100644 index 989b34605258..000000000000 --- a/x11/kdebase3/files/patch-konsole-konsole-main.cpp +++ /dev/null @@ -1,18 +0,0 @@ ---- konsole/konsole/main.cpp 29 Jun 2003 21:53:11 -0000 1.243.2.3 -+++ konsole/konsole/main.cpp 24 Aug 2003 21:44:02 -0000 -@@ -123,6 +123,7 @@ public: - }; - - -+extern void TEPtyInit(); - - /* --| main |------------------------------------------------------ */ - int main(int argc, char* argv[]) -@@ -137,6 +138,7 @@ int main(int argc, char* argv[]) - bool scrollbaron = true; - QCString wname = PACKAGE; - -+ TEPtyInit(); - - KAboutData aboutData( PACKAGE, I18N_NOOP("Konsole"), - VERSION, description, KAboutData::License_GPL_V2, |