ports/186650: [PATCH] net-im/licq-qt-gui: fix build on FreeBSD 10+
Vsevolod Volkov
vvv at colocall.net
Tue Feb 11 13:50:02 UTC 2014
>Number: 186650
>Category: ports
>Synopsis: [PATCH] net-im/licq-qt-gui: fix build on FreeBSD 10+
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 11 13:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Vsevolod Volkov
>Release: 10.0-RELEASE
>Organization:
>Environment:
FreeBSD tea.colocall.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
1. USE_GCC shoud be removed because qt-gui plugin does not work with licq compiled with clang.
2. Building qt-gui with clang fails due to missing #include <time.h> in 2 headers.
>How-To-Repeat:
1. portmaster net-im/licq-qt-gui
2. Start licq
>Fix:
1. Apply patch to the port's Makefile:
--- Makefile.orig
+++ Makefile
@@ -3,7 +3,7 @@
PORTNAME= qt4-gui
PORTVERSION= 1.8.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-im
PKGNAMESUFFIX?= ${KDE_SUFFIX}${PKGNAMESUFFIX2}
@@ -15,7 +15,6 @@
LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS= ${LOCALBASE}/lib/licq/protocol_icq.so:${PORTSDIR}/${LICQ_PORT}-i
-USE_GCC= yes
USE_XORG= x11 xext ice xscrnsaver
USES= cmake
USE_QT4= qmake_build moc_build rcc_build uic_build linguist_build
2. Put the attached patch to /usr/ports/net-im/licq-qt-gui/files/ and rebuild net-im/licq-qt-gui port.
Patch attached with submission follows:
--- src/contactlist/contactuserdata.h.orig
+++ src/contactlist/contactuserdata.h
@@ -20,6 +20,8 @@
#ifndef CONTACTUSERDATA_H
#define CONTACTUSERDATA_H
+#include <time.h>
+
#include <QList>
#include <QString>
#include <QTimer>
--- src/userevents/usereventcommon.h.orig
+++ src/userevents/usereventcommon.h
@@ -20,6 +20,8 @@
#ifndef USEREVENTCOMMON_H
#define USEREVENTCOMMON_H
+#include <time.h>
+
#include <QWidget>
#include <list>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list