From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 2 21:30:21 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C40816A40F for ; Sun, 2 Jul 2006 21:30:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3D45444CF for ; Sun, 2 Jul 2006 21:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k62LUJei011504 for ; Sun, 2 Jul 2006 21:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k62LUJ6s011503; Sun, 2 Jul 2006 21:30:19 GMT (envelope-from gnats) Resent-Date: Sun, 2 Jul 2006 21:30:19 GMT Resent-Message-Id: <200607022130.k62LUJ6s011503@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcin Wisnicki Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99F2B16A412 for ; Sun, 2 Jul 2006 21:28:17 +0000 (UTC) (envelope-from marcin@ghost.pnet.one.pl) Received: from ghost.pnet.one.pl (xdsl-10260.wroclaw.dialog.net.pl [84.40.242.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9476444B3 for ; Sun, 2 Jul 2006 21:28:14 +0000 (GMT) (envelope-from marcin@ghost.pnet.one.pl) Received: from ghost.pnet.one.pl (smmsp@localhost [127.0.0.1]) by ghost.pnet.one.pl (8.13.6/8.13.6) with ESMTP id k62LS9tb095582; Sun, 2 Jul 2006 23:28:10 +0200 (CEST) (envelope-from marcin@ghost.pnet.one.pl) Received: (from root@localhost) by ghost.pnet.one.pl (8.13.6/8.13.6/Submit) id k62LS8MG095581; Sun, 2 Jul 2006 23:28:08 +0200 (CEST) (envelope-from marcin) Message-Id: <200607022128.k62LS8MG095581@ghost.pnet.one.pl> Date: Sun, 2 Jul 2006 23:28:08 +0200 (CEST) From: Marcin Wisnicki To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: alex@bsdguru.org Subject: ports/99725: [PATCH] polish/ekg: file conflicts with polish/libgadu X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 21:30:21 -0000 >Number: 99725 >Category: ports >Synopsis: [PATCH] polish/ekg: file conflicts with polish/libgadu >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 02 21:30:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Marcin Wisnicki >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD ghost.pnet.one.pl 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jun 24 06:58:43 CEST 2006 >Description: This port installs its own copy of libgadu.so that conflicts with libgadu port. Because setting CONFLICTS on both ports is undesirable, polish/ekg should instead not install libgadu.so and use the one provided with polish/libgadu. Following patch adds dependency on libgadu and hacks configure to allow building with external library. Unnecessary parts of port were removed (MAKE_ENV, mandir) I am also going to submit a pr against polish/libgadu that sets conflict with older versions of polish/ekg. As a consequence, upgrading ekg with portupgrade if libgadu is already installed will be broken. If this patch is going to be commited, something like this should be added to UPDATING: If you have installed both ekg-1.6,2 and libgadu-20051229_1 then you should first deinstall them and install polish/ekg after that, eg: pkg_deinstall -f pl-ekg-\* pl-libgadu-\* portinstall polish/ekg Port maintainer (alex@bsdguru.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- pl-ekg-1.6_1,2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/polish/ekg.orig/Makefile /usr/ports/polish/ekg/Makefile --- /usr/ports/polish/ekg.orig/Makefile Mon Nov 14 17:09:05 2005 +++ /usr/ports/polish/ekg/Makefile Sun Jul 2 21:29:28 2006 @@ -6,6 +6,7 @@ PORTNAME= ekg PORTVERSION= 1.6 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= polish net-im MASTER_SITES= http://dev.null.pl/ekg/ @@ -13,22 +14,19 @@ MAINTAINER= alex@bsdguru.org COMMENT= Text-mode Gadu-Gadu client -LIB_DEPENDS= aspell.16:${PORTSDIR}/polish/aspell +LIB_DEPENDS= aspell.16:${PORTSDIR}/polish/aspell \ + gadu.3:${PORTSDIR}/polish/libgadu USE_GMAKE= yes GNU_CONFIGURE= yes USE_GNOME= gnomehack pkgconfig -CONFIGURE_ARGS+= --enable-shared \ +CONFIGURE_ARGS+= --disable-shared \ --disable-static \ --enable-dynamic \ - --enable-aspell \ - --mandir=${PREFIX}/man + --enable-aspell CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" -MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ - CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" INSTALLS_SHLIB= yes @@ -38,8 +36,5 @@ post-install: ${STRIP_CMD} ${PREFIX}/bin/ekg - ${RM} ${PREFIX}/lib/libgadu.so ${PREFIX}/lib/libgadu.so.3 - ${MV} ${PREFIX}/lib/libgadu.so.3.3 ${PREFIX}/lib/libgadu.so.3 - ${LN} -s ${PREFIX}/lib/libgadu.so.3 ${PREFIX}/lib/libgadu.so .include diff -ruN --exclude=CVS /usr/ports/polish/ekg.orig/files/patch-configure /usr/ports/polish/ekg/files/patch-configure --- /usr/ports/polish/ekg.orig/files/patch-configure Wed Jul 21 23:36:45 2004 +++ /usr/ports/polish/ekg/files/patch-configure Sun Jul 2 17:26:06 2006 @@ -1,6 +1,19 @@ ---- configure Mon Jun 28 22:13:05 2004 -+++ configure Sat Jul 17 10:12:27 2004 -@@ -4554,7 +4554,6 @@ +--- configure.orig Sun Jul 2 17:24:39 2006 ++++ configure Sun Jul 2 17:25:50 2006 +@@ -3813,12 +3813,6 @@ + lib_static_enabled=no + fi + +-if test "x$enable_static" = "xno" -a "x$enable_shared" != "xyes"; then +- { { echo "$as_me:$LINENO: error: You must choose either static or shared version of libgadu." >&5 +-echo "$as_me: error: You must choose either static or shared version of libgadu." >&2;} +- { (exit 1); exit 1; }; } +-fi +- + # Check whether --enable-dynamic or --disable-dynamic was given. + if test "${enable_dynamic+set}" = set; then + enableval="$enable_dynamic" +@@ -4770,7 +4764,6 @@ LIBS_LIBGADU="$LIBS_LIBGADU $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_INCLUDES" CFLAGS_LIBGADU="$CFLAGS_LIBGADU $OPENSSL_INCLUDES" diff -ruN --exclude=CVS /usr/ports/polish/ekg.orig/pkg-plist /usr/ports/polish/ekg/pkg-plist --- /usr/ports/polish/ekg.orig/pkg-plist Thu Jan 26 06:16:28 2006 +++ /usr/ports/polish/ekg/pkg-plist Sun Jul 2 21:38:12 2006 @@ -1,9 +1,4 @@ bin/ekg -include/libgadu-config.h -include/libgadu.h -lib/libgadu.so -lib/libgadu.so.3 -libdata/pkgconfig/libgadu.pc %%DATADIR%%/themes/arim.theme %%DATADIR%%/themes/dj.theme %%DATADIR%%/themes/eileen.theme --- pl-ekg-1.6_1,2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: