From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 6 10:00:11 2007 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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6838D16A404 for ; Tue, 6 Mar 2007 10:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 44F4A13C4AC for ; Tue, 6 Mar 2007 10:00:11 +0000 (UTC) (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 l26A0Aaj030633 for ; Tue, 6 Mar 2007 10:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l26A0Aws030630; Tue, 6 Mar 2007 10:00:10 GMT (envelope-from gnats) Resent-Date: Tue, 6 Mar 2007 10:00:10 GMT Resent-Message-Id: <200703061000.l26A0Aws030630@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, "Rashid N. Achilov" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A89816A411 for ; Tue, 6 Mar 2007 09:55:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3762513C4BB for ; Tue, 6 Mar 2007 09:55:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l269tpAD073181 for ; Tue, 6 Mar 2007 09:55:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l269tpce073180; Tue, 6 Mar 2007 09:55:51 GMT (envelope-from nobody) Message-Id: <200703060955.l269tpce073180@www.freebsd.org> Date: Tue, 6 Mar 2007 09:55:51 GMT From: "Rashid N. Achilov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/109974: some kdelibs depend sholud be optional 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: Tue, 06 Mar 2007 10:00:11 -0000 >Number: 109974 >Category: ports >Synopsis: some kdelibs depend sholud be optional >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 06 10:00:10 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rashid N. Achilov >Release: 6.2-RELEASE >Organization: LLC "AS-System Complex" >Environment: FreeBSD to-495.askd.ru 6.2-RELEASE FreeBSD 6.2-RELEASE #3: Fri Feb 16 18:47:32 NOVT 2007 root@to-495.askd.ru:/usr/obj/usr/src/sys/Sentry i386 >Description: kdelibs take unconditional depends from DNSSD and libthai packages. Why? I do not use DNS-SD and do not have any other boxes with DNS-SD. I do not know thai language and at nearest 500m around hasn't any who knows it. Why I sholud download, install and update these unnecessary packages? kdelibs IMHO sholud has an OPTIONS to switch off these depends and I have generated patch to include it >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN kdelibs3.old/Makefile kdelibs3/Makefile --- kdelibs3.old/Makefile Thu Feb 8 04:09:19 2007 +++ kdelibs3/Makefile Tue Mar 6 15:55:13 2007 @@ -23,11 +23,9 @@ art_lgpl_2.5:${PORTSDIR}/graphics/libart_lgpl \ artsc.0:${PORTSDIR}/audio/arts \ aspell:${PORTSDIR}/textproc/aspell \ - dns_sd:${PORTSDIR}/net/mDNSResponder \ idn:${PORTSDIR}/dns/libidn \ jasper:${PORTSDIR}/graphics/jasper \ pcre:${PORTSDIR}/devel/pcre \ - thai:${PORTSDIR}/devel/libthai \ tiff.4:${PORTSDIR}/graphics/tiff \ xml2.5:${PORTSDIR}/textproc/libxml2 \ xslt.2:${PORTSDIR}/textproc/libxslt @@ -38,15 +36,6 @@ ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme CONFLICTS+= kdeadmin-3.[0-3].* kdeadmin-3.4.[0-1]* kdeartwork-3.[2-3]* kdebase-3.[0-4]* kdepim-3.2* -.if defined(WITHOUT_CUPS) || defined(KDE_WITHOUT_CUPS) -CONFLICTS+= kdelibs-[0-9]* -PKGNAMESUFFIX= -nocups -CONFIGURE_ARGS+=--disable-cups -PLIST= ${.CURDIR}/../kdelibs3-nocups/pkg-plist -.else -CONFLICTS+= kdelibs-nocups-[0-9]* -LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-base -.endif USE_BZIP2= yes USE_FAM= yes @@ -66,7 +55,6 @@ --enable-mt \ --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \ --x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include \ - --with-libthai=yes \ --with-lua=no \ --with-ssl-dir=${OPENSSLBASE} CONFIGURE_ENV+= libltdl_cv_shlibext=".so" @@ -74,6 +62,10 @@ FONTSCALE= ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf FONTENCOD= ${X11BASE}/lib/X11/fonts/encodings/encodings.dir +OPTIONS= CUPS "With CUPS support" on \ + DNSSD "With DNS-SD support" on \ + THAI "With Thai language support" off + .include "${.CURDIR}/../../x11/kde3/Makefile.kde" .include @@ -81,6 +73,27 @@ .if !exists(/usr/bin/bzip2) LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2 .endif # !exists(/usr/bin/bzip2) + +.if !defined(WITH_CUPS) || defined(KDE_WITHOUT_CUPS) +CONFLICTS+= kdelibs-[0-9]* +PKGNAMESUFFIX= -nocups +CONFIGURE_ARGS+=--disable-cups +PLIST= ${.CURDIR}/../kdelibs3-nocups/pkg-plist +.else +CONFLICTS+= kdelibs-nocups-[0-9]* +LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-base +.endif + +.if defined(WITH_DNSSD) +LIB_DEPENDS+= dns_sd:${PORTSDIR}/net/mDNSResponder +.else +CONFIGURE_ARGS+=--without-dnssd +.endif + +.if defined(WITH_THAI) +LIB_DEPENDS+= thai:${PORTSDIR}/devel/libthai +CONFIGURE_ARGS+=--with-libthai=yes +.endif pre-configure: ${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/kdeprint/cups/kmcupsmanager.cpp >Release-Note: >Audit-Trail: >Unformatted: