pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt3-libs Another Interix-only fix: add -ldb, and s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0875abf731f9
branches:  trunk
changeset: 481840:0875abf731f9
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Oct 13 15:15:52 2004 +0000

description:
Another Interix-only fix: add -ldb, and since Qt incorrectly #includes
system C headers without extern "C", add extern "C" protection.

diffstat:

 x11/qt3-libs/Makefile.common  |  4 ++--
 x11/qt3-libs/distinfo         |  6 +++---
 x11/qt3-libs/patches/patch-ia |  7 +++++--
 x11/qt3-libs/patches/patch-ib |  4 ++--
 4 files changed, 12 insertions(+), 9 deletions(-)

diffs (84 lines):

diff -r 7b5828b7d4ac -r 0875abf731f9 x11/qt3-libs/Makefile.common
--- a/x11/qt3-libs/Makefile.common      Wed Oct 13 13:42:23 2004 +0000
+++ b/x11/qt3-libs/Makefile.common      Wed Oct 13 15:15:52 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.36 2004/10/13 12:06:36 tv Exp $
+# $NetBSD: Makefile.common,v 1.37 2004/10/13 15:15:52 tv Exp $
 #
 DISTNAME=              qt-x11-free-${QTVERSION}
 CATEGORIES=            x11
@@ -59,7 +59,7 @@
 CFLAGS+=               -I/usr/local/include/bind
 LDFLAGS+=              -L/usr/local/lib/bind -lbind
 BUILDLINK_PASSTHRU_DIRS+=/usr/local/include/bind /usr/local/lib/bind
-SYS_LIBS=              -lbind -ldl
+SYS_LIBS=              -lbind -ldb -ldl
 .endif
 
 .if !exists(${X11BASE}/lib/libXinerama.so)
diff -r 7b5828b7d4ac -r 0875abf731f9 x11/qt3-libs/distinfo
--- a/x11/qt3-libs/distinfo     Wed Oct 13 13:42:23 2004 +0000
+++ b/x11/qt3-libs/distinfo     Wed Oct 13 15:15:52 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2004/10/13 12:06:36 tv Exp $
+$NetBSD: distinfo,v 1.27 2004/10/13 15:15:52 tv Exp $
 
 SHA1 (qt-x11-free-3.3.3.tar.bz2) = b9737d8dc0c440a7d28f1f0a164e49f7bd242585
 Size (qt-x11-free-3.3.3.tar.bz2) = 14424812 bytes
@@ -15,5 +15,5 @@
 SHA1 (patch-bb) = df300b77d0adb653eaa16c97f995ed2def8e7d87
 SHA1 (patch-bc) = d8a84e1b66bf1953b53df57ae81d2c98cce69c41
 SHA1 (patch-bd) = 0493bc7a0e9b9fa3c88f77b6fc89f77a3e4e3481
-SHA1 (patch-ia) = c02d328458c49f6070e86b56de84bce776cfce1f
-SHA1 (patch-ib) = 81a901ee3bcee6525d9bcd064aab70d4fe0afb8d
+SHA1 (patch-ia) = 62c50fe48b9ff1ce9fb757b432c8b1db7693e112
+SHA1 (patch-ib) = b15936b85b2b1946e8c9a92bf393c3d3a1fc6950
diff -r 7b5828b7d4ac -r 0875abf731f9 x11/qt3-libs/patches/patch-ia
--- a/x11/qt3-libs/patches/patch-ia     Wed Oct 13 13:42:23 2004 +0000
+++ b/x11/qt3-libs/patches/patch-ia     Wed Oct 13 15:15:52 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ia,v 1.1 2004/10/13 02:08:43 tv Exp $
+$NetBSD: patch-ia,v 1.2 2004/10/13 15:15:53 tv Exp $
 
 --- mkspecs/interix-g++/qplatformdefs.h.orig   Tue Oct 12 16:43:29 2004
 +++ mkspecs/interix-g++/qplatformdefs.h
-@@ -0,0 +1,82 @@
+@@ -0,0 +1,85 @@
 +#ifndef QPLATFORMDEFS_H
 +#define QPLATFORMDEFS_H
 +
@@ -10,6 +10,8 @@
 +
 +#include "qglobal.h"
 +
++extern "C" { // it is nonstandard to include C headers without protection!
++
 +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
 +
 +#include <unistd.h>
@@ -48,6 +50,7 @@
 +#include <arpa/nameser.h>
 +#include <resolv.h>
 +
++}; // extern "C"
 +
 +#if !defined(QT_NO_COMPAT)
 +#define QT_STATBUF            struct stat
diff -r 7b5828b7d4ac -r 0875abf731f9 x11/qt3-libs/patches/patch-ib
--- a/x11/qt3-libs/patches/patch-ib     Wed Oct 13 13:42:23 2004 +0000
+++ b/x11/qt3-libs/patches/patch-ib     Wed Oct 13 15:15:52 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ib,v 1.2 2004/10/13 12:06:36 tv Exp $
+$NetBSD: patch-ib,v 1.3 2004/10/13 15:15:53 tv Exp $
 
 --- mkspecs/interix-g++/qmake.conf.orig        Tue Oct 12 16:51:42 2004
 +++ mkspecs/interix-g++/qmake.conf
@@ -60,7 +60,7 @@
 +
 +QMAKE_LIBS            =
 +QMAKE_LIBS_DYNLOAD    =
-+QMAKE_LIBS_X11                = -lXext -lX11 -lm -ldl -lbind
++QMAKE_LIBS_X11                = -lXext -lX11 -lm -lbind -ldb -ldl
 +QMAKE_LIBS_X11SM      = -lSM -lICE
 +QMAKE_LIBS_QT         = -lqt
 +QMAKE_LIBS_QT_THREAD  = -lqt-mt



Home | Main Index | Thread Index | Old Index