summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2005-04-14 20:53:30 +0000
committermarkd <markd@pkgsrc.org>2005-04-14 20:53:30 +0000
commitd86349ac27fec030d1ab755eb9a04d44179813fb (patch)
treed2fd2fa5a4ecc351572cd9fb076b5d0b409885ae
parentd8a0e7ba010a3fa981da6e601282b366ba089c98 (diff)
downloadpkgsrc-d86349ac27fec030d1ab755eb9a04d44179813fb.tar.gz
Remove some patches only required for gcc2 on Solaris and add a couple
that fix build with later gcc's.
-rw-r--r--x11/kdebase3/Makefile8
-rw-r--r--x11/kdebase3/patches/patch-ae11
-rw-r--r--x11/kdebase3/patches/patch-am16
-rw-r--r--x11/kdebase3/patches/patch-an15
-rw-r--r--x11/kdebase3/patches/patch-fg11
-rw-r--r--x11/kdebase3/patches/patch-fh13
-rw-r--r--x11/kdebase3/patches/patch-fl13
-rw-r--r--x11/kdebase3/patches/patch-fm13
-rw-r--r--x11/kdebase3/patches/patch-fn13
-rw-r--r--x11/kdebase3/patches/patch-fo13
-rw-r--r--x11/kdebase3/patches/patch-fp13
-rw-r--r--x11/kdebase3/patches/patch-fr12
-rw-r--r--x11/kdebase3/patches/patch-fs13
-rw-r--r--x11/kdebase3/patches/patch-ft13
-rw-r--r--x11/kdebase3/patches/patch-fv13
-rw-r--r--x11/kdebase3/patches/patch-fz12
16 files changed, 40 insertions, 162 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile
index d4b98b6a546..b0f1a9466be 100644
--- a/x11/kdebase3/Makefile
+++ b/x11/kdebase3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2005/04/11 21:48:11 tv Exp $
+# $NetBSD: Makefile,v 1.76 2005/04/14 20:53:30 markd Exp $
DISTNAME= kdebase-${_KDE_VERSION}
PKGREVISION= 2
@@ -103,6 +103,12 @@ pre-configure:
${MV} -f $${file}.new $${file}; \
done
+.if ${OPSYS} == "SunOS"
+post-configure:
+ # will be done with a proper configure check in 3.4.1
+ ${ECHO} "#define HAVE_SYS_LOADAVG_H 1" >> ${WRKSRC}/config.h
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/kde/templates/.source/emptydir
${INSTALL_DATA} ${DISTDIR}/NetBSD-flag.png ${PREFIX}/${ICONDIR}
diff --git a/x11/kdebase3/patches/patch-ae b/x11/kdebase3/patches/patch-ae
index 404a0a09079..b39d05ed114 100644
--- a/x11/kdebase3/patches/patch-ae
+++ b/x11/kdebase3/patches/patch-ae
@@ -1,16 +1,7 @@
-$NetBSD: patch-ae,v 1.7 2004/11/01 16:39:06 gavan Exp $
+$NetBSD: patch-ae,v 1.8 2005/04/14 20:53:30 markd Exp $
--- kcontrol/krdb/krdb.cpp.orig 2004-07-17 18:52:04.000000000 +0100
+++ kcontrol/krdb/krdb.cpp
-@@ -42,6 +42,8 @@
-
- #include <X11/Xlib.h>
-
-+#undef truncate
-+
- inline const char * gtkEnvVar(int version)
- {
- return 2==version ? "GTK2_RC_FILES" : "GTK_RC_FILES";
@@ -384,7 +386,14 @@ static void createGtkrc( bool exportColo
// not every button, checkbox, etc.
t << "style \"MenuItem\"" << endl;
diff --git a/x11/kdebase3/patches/patch-am b/x11/kdebase3/patches/patch-am
new file mode 100644
index 00000000000..a4c8f9dde3f
--- /dev/null
+++ b/x11/kdebase3/patches/patch-am
@@ -0,0 +1,16 @@
+$NetBSD: patch-am,v 1.12 2005/04/14 20:53:30 markd Exp $
+
+--- kicker/extensions/kasbar/kasloaditem.cpp.orig Sun Dec 5 14:22:53 2004
++++ kicker/extensions/kasbar/kasloaditem.cpp
+@@ -1,6 +1,11 @@
+ #include <math.h>
+ #include <stdlib.h>
+
++#include <config.h>
++#ifdef HAVE_SYS_LOADAVG_H
++#include <sys/loadavg.h> // e.g. Solaris
++#endif
++
+ #include <qpainter.h>
+ #include <qbitmap.h>
+ #include <qdatetime.h>
diff --git a/x11/kdebase3/patches/patch-an b/x11/kdebase3/patches/patch-an
new file mode 100644
index 00000000000..79432d0dbc2
--- /dev/null
+++ b/x11/kdebase3/patches/patch-an
@@ -0,0 +1,15 @@
+$NetBSD: patch-an,v 1.5 2005/04/14 20:53:30 markd Exp $
+
+--- kcontrol/kfontinst/kfontinst/GetPid.c.orig 2005-04-13 01:05:50.467823000 +1200
++++ kcontrol/kfontinst/kfontinst/GetPid.c
+@@ -243,6 +243,10 @@ unsigned int kfi_getPid(const char *proc
+ #include <pwd.h>
+ #include <sys/resource.h>
+ #ifdef OS_Solaris
++#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
++# undef _FILE_OFFSET_BITS
++# define _FILE_OFFSET_BITS 32
++#endif
+ #include <procfs.h>
+ #else
+ #include <sys/procfs.h>
diff --git a/x11/kdebase3/patches/patch-fg b/x11/kdebase3/patches/patch-fg
index 732d69580d3..1935fff3ec6 100644
--- a/x11/kdebase3/patches/patch-fg
+++ b/x11/kdebase3/patches/patch-fg
@@ -1,16 +1,7 @@
-$NetBSD: patch-fg,v 1.3 2004/11/01 16:39:06 gavan Exp $
+$NetBSD: patch-fg,v 1.4 2005/04/14 20:53:30 markd Exp $
--- ksysguard/gui/ksysguard.cc.orig 2004-08-05 19:57:19.000000000 +0100
+++ ksysguard/gui/ksysguard.cc
-@@ -34,6 +34,8 @@
- #include <stdlib.h>
- #include <unistd.h>
-
-+#undef open
-+
- #include <kaboutdata.h>
- #include <kaction.h>
- #include <kcmdlineargs.h>
@@ -145,7 +147,7 @@ void TopLevel::resetWorkSheets()
mWorkSpace->removeAllWorkSheets();
diff --git a/x11/kdebase3/patches/patch-fh b/x11/kdebase3/patches/patch-fh
deleted file mode 100644
index 6e15599a3e4..00000000000
--- a/x11/kdebase3/patches/patch-fh
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fh,v 1.3 2004/11/01 16:39:06 gavan Exp $
-
---- kate/app/kategrepdialog.cpp.orig 2004-10-03 08:10:53.000000000 +0100
-+++ kate/app/kategrepdialog.cpp
-@@ -48,6 +48,8 @@
- #include <kcombobox.h>
- #include <klineedit.h>
-
-+#undef truncate
-+
- const char *template_desc[] = {
- "normal",
- "assignment",
diff --git a/x11/kdebase3/patches/patch-fl b/x11/kdebase3/patches/patch-fl
deleted file mode 100644
index a4eec346fc9..00000000000
--- a/x11/kdebase3/patches/patch-fl
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fl,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- kdeprint/slave/kio_print.cpp.orig 2004-05-22 21:26:46.000000000 +0100
-+++ kdeprint/slave/kio_print.cpp
-@@ -46,6 +46,8 @@
- #include <stdlib.h>
- #include <sys/stat.h>
-
-+#undef stat
-+
- #define PRINT_DEBUG kdDebug(7019) << "kio_print: "
-
- extern "C"
diff --git a/x11/kdebase3/patches/patch-fm b/x11/kdebase3/patches/patch-fm
deleted file mode 100644
index f3fd50b6297..00000000000
--- a/x11/kdebase3/patches/patch-fm
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fm,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- khotkeys/shared/actions.cpp.orig 2004-07-17 18:52:06.000000000 +0100
-+++ khotkeys/shared/actions.cpp
-@@ -35,6 +35,8 @@
-
- #include <X11/X.h>
-
-+#undef truncate
-+
- namespace KHotKeys
- {
-
diff --git a/x11/kdebase3/patches/patch-fn b/x11/kdebase3/patches/patch-fn
deleted file mode 100644
index 2b7c7be38b9..00000000000
--- a/x11/kdebase3/patches/patch-fn
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fn,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- libkonq/konq_operations.cc.orig 2004-10-03 08:11:27.000000000 +0100
-+++ libkonq/konq_operations.cc
-@@ -33,6 +33,8 @@
- #include "konq_defaults.h"
- #include "konqbookmarkmanager.h"
-
-+#undef stat
-+
- // For doDrop
- #include <qdir.h>//first
- #include <assert.h>
diff --git a/x11/kdebase3/patches/patch-fo b/x11/kdebase3/patches/patch-fo
deleted file mode 100644
index 552e2ec10b2..00000000000
--- a/x11/kdebase3/patches/patch-fo
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fo,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- kioslave/man/kio_man.cpp.orig 2004-08-05 19:57:13.000000000 +0100
-+++ kioslave/man/kio_man.cpp
-@@ -46,6 +46,8 @@
- #include <kfilterbase.h>
- #include <kfilterdev.h>
-
-+#undef truncate
-+
- using namespace KIO;
-
- MANProtocol *MANProtocol::_self = 0;
diff --git a/x11/kdebase3/patches/patch-fp b/x11/kdebase3/patches/patch-fp
deleted file mode 100644
index d4abb4654eb..00000000000
--- a/x11/kdebase3/patches/patch-fp
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fp,v 1.2 2005/03/23 21:44:37 markd Exp $
-
---- kioslave/pop3/pop3.cc.orig 2005-01-04 03:50:57.000000000 +1300
-+++ kioslave/pop3/pop3.cc
-@@ -63,6 +63,8 @@ extern "C" {
- #include <kio/passdlg.h>
- #include "pop3.h"
-
-+#undef truncate
-+
- #define GREETING_BUF_LEN 1024
- #define MAX_RESPONSE_LEN 512
- #define MAX_COMMANDS 10
diff --git a/x11/kdebase3/patches/patch-fr b/x11/kdebase3/patches/patch-fr
deleted file mode 100644
index 6ca5bb9f857..00000000000
--- a/x11/kdebase3/patches/patch-fr
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-fr,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- kmenuedit/menufile.cpp.orig 2004-07-17 18:52:07.000000000 +0100
-+++ kmenuedit/menufile.cpp
-@@ -27,6 +27,7 @@
-
- #include "menufile.h"
-
-+#undef truncate
-
- #define MF_MENU "Menu"
- #define MF_PUBLIC_ID "-//freedesktop//DTD Menu 1.0//EN"
diff --git a/x11/kdebase3/patches/patch-fs b/x11/kdebase3/patches/patch-fs
deleted file mode 100644
index bb28cfaffb1..00000000000
--- a/x11/kdebase3/patches/patch-fs
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fs,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- kmenuedit/treeview.cpp.orig 2004-07-17 18:52:07.000000000 +0100
-+++ kmenuedit/treeview.cpp
-@@ -21,6 +21,8 @@
-
- #include <unistd.h>
-
-+#undef truncate
-+
- #include <qcstring.h>
- #include <qcursor.h>
- #include <qdatastream.h>
diff --git a/x11/kdebase3/patches/patch-ft b/x11/kdebase3/patches/patch-ft
deleted file mode 100644
index 8ed9be6db53..00000000000
--- a/x11/kdebase3/patches/patch-ft
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ft,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- konsole/konsole/session.cpp.orig 2004-05-22 21:26:55.000000000 +0100
-+++ konsole/konsole/session.cpp
-@@ -14,6 +14,8 @@
- #include <qregexp.h>
- #include <qtextedit.h>
-
-+#undef truncate
-+
- #ifndef HERE
- #define HERE fprintf(stderr,"%s(%d): here\n",__FILE__,__LINE__)
- #endif
diff --git a/x11/kdebase3/patches/patch-fv b/x11/kdebase3/patches/patch-fv
deleted file mode 100644
index dcc879c8a96..00000000000
--- a/x11/kdebase3/patches/patch-fv
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-fv,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- kpersonalizer/kcountrypage.cpp.orig 2004-07-17 18:52:08.000000000 +0100
-+++ kpersonalizer/kcountrypage.cpp
-@@ -33,6 +33,8 @@
-
- #include "kcountrypage.h"
-
-+#undef truncate
-+
- KCountryPage::KCountryPage(QWidget *parent, const char *name ) : KCountryPageDlg(parent,name) {
-
- px_introSidebar->setPixmap(UserIcon("step1.png"));
diff --git a/x11/kdebase3/patches/patch-fz b/x11/kdebase3/patches/patch-fz
deleted file mode 100644
index 1ea5d42e9de..00000000000
--- a/x11/kdebase3/patches/patch-fz
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-fz,v 1.1 2004/11/01 16:39:06 gavan Exp $
-
---- konqueror/sidebar/trees/konq_sidebartree.cpp.orig 2004-10-08 14:57:27.000000000 +0100
-+++ konqueror/sidebar/trees/konq_sidebartree.cpp
-@@ -49,6 +49,7 @@
- #include <stdlib.h>
- #include <assert.h>
-
-+#undef truncate
-
- static const int autoOpenTimeout = 750;
-