From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jul 1 10:40:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C04071065672 for ; Tue, 1 Jul 2008 10:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA548FC18 for ; Tue, 1 Jul 2008 10:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m61Ae1rR070451 for ; Tue, 1 Jul 2008 10:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m61Ae11t070450; Tue, 1 Jul 2008 10:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 1 Jul 2008 10:40:01 GMT Resent-Message-Id: <200807011040.m61Ae11t070450@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, Eygene Ryabinkin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 225A91065679 for ; Tue, 1 Jul 2008 10:33:10 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id CEB838FC24 for ; Tue, 1 Jul 2008 10:33:09 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtps (TLSv1:CAMELLIA256-SHA:256) id 1KDdAa-0002cH-Bh; Tue, 01 Jul 2008 14:33:08 +0400 Message-Id: <20080701103308.3212D1AF41E@void.codelabs.ru> Date: Tue, 1 Jul 2008 14:33:08 +0400 (MSD) From: Eygene Ryabinkin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/125140: [patch] add dependencies on libstdc++.[45] for security/drweb X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eygene Ryabinkin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2008 10:40:03 -0000 >Number: 125140 >Category: ports >Synopsis: [patch] add dependencies on libstdc++.[45] for security/drweb >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 01 10:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Eygene Ryabinkin >Release: FreeBSD 7.0-STABLE i386 >Organization: Code Labs >Environment: System: FreeBSD XXX 7.0-STABLE FreeBSD 7.0-STABLE #16: Tue Mar 18 11:49:55 MSK 2008 root@XXX:/usr/obj/usr/src/sys/XXX i386 >Description: Drweb 4.33 requires compatibility libraries libstdc++.4 for FreeBSD <= 5.x and libstdc++.5 for FreeBSD >= 6.x. So the port should depend on the misc/compat5x or misc/compat6x, depending on the FreeBSD version. >How-To-Repeat: Uninstall misc/compat6x on FreeBSD 6.x/7.x/8.x, install DrWeb and try to start the daemon. It will complain like this: ----- Starting drwebd. /libexec/ld-elf.so.1: Shared object "libstdc++.so.5" not found, required by "drwebd" ----- >Fix: Add library dependencies to the port. The following patch does it. PORTREVISION was no bumped, perhaps it should be done to get the proper dependencies on the already installed systems. --- add-compat-5x-6x-dependency.patch begins here --- diff -urN ./Makefile ../drweb/Makefile --- ./Makefile 2008-07-01 14:19:11.000000000 +0400 +++ ../drweb/Makefile 2008-07-01 14:22:44.000000000 +0400 @@ -29,9 +29,11 @@ .if ${OSVERSION} >= 601000 DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd61 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f61 +LIB_DEPENDS+= stdc++.5:${PORTSDIR}/misc/compat6x .else DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd55 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f55 +LIB_DEPENDS+= stdc++.4:${PORTSDIR}/misc/compat5x .endif WRKSRC= ${WRKDIR}/${DISTNAME} --- add-compat-5x-6x-dependency.patch ends here --- Tested this on FreeBSD 7.0. Had not tested on 5.x -- no such version at hand, sorry. >Release-Note: >Audit-Trail: >Unformatted: