From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 23 00:20:01 2009 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 A30891065670 for ; Fri, 23 Jan 2009 00:20:01 +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 77F598FC12 for ; Fri, 23 Jan 2009 00:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0N0K1kf063902 for ; Fri, 23 Jan 2009 00:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0N0K1gm063901; Fri, 23 Jan 2009 00:20:01 GMT (envelope-from gnats) Resent-Date: Fri, 23 Jan 2009 00:20:01 GMT Resent-Message-Id: <200901230020.n0N0K1gm063901@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, Jan Henrik Sylvester Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DABE91065675 for ; Fri, 23 Jan 2009 00:16:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id A8A4F8FC18 for ; Fri, 23 Jan 2009 00:16:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0N0G9f7059083 for ; Fri, 23 Jan 2009 00:16:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n0N0G91K059082; Fri, 23 Jan 2009 00:16:09 GMT (envelope-from nobody) Message-Id: <200901230016.n0N0G91K059082@www.freebsd.org> Date: Fri, 23 Jan 2009 00:16:09 GMT From: Jan Henrik Sylvester To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/130903: misc/kdeedu4 does not build libsbigudrv.so during upgrade 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: Fri, 23 Jan 2009 00:20:02 -0000 >Number: 130903 >Category: ports >Synopsis: misc/kdeedu4 does not build libsbigudrv.so during upgrade >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: Fri Jan 23 00:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jan Henrik Sylvester >Release: 7.1-RELEASE-p2 i386 >Organization: >Environment: >Description: If libsbigudrv.so is already installed, for example from a previous version of the same port during a portupgrade, misc/kdeedu4 links against the old version of libsbigudrv.so and consequently does not build a new one. As a result, the old version is removed with the old package and the library is missing for the new install. This has happened to me during an upgrade from kdeedu-4.1.1_1 to kdeedu-4.1.4, but it probably applies for other upgrades, too, since the configure reported the same for the upgrade to kdeedu-4.1.4_1. With a previous version installed: -- Found SBIG: /usr/local/kde4/lib/libsbigudrv.so ... + libsbigudrv ... Congratulations! All external packages have been found. Without a previous version installed: -- Could not find OPTIONAL package SBIG .. -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. + libsbigudrv, 1.00: SBIG Universal Driver Needed by KStars. >How-To-Repeat: - Have kdeedu-4.1.1_1 installed and portupgrade to kdeedu-4.1.4. - Try to 'pkg_create -b kdeedu-4.1.4' and observe that lib/libsbigudrv.so* is missing. >Fix: mkdir misc/kdeedu4/files patch < kdeedu4-always-libsbigudrv.txt This will remove all non-comment lines from cmake/modules/FindSBIG.cmake. The configure process will not find libsbigudrv.so from the previous version anymore and it is build and installed. Patch attached with submission follows: --- misc/kdeedu4/files/patch-rm-cmake-modules-FindSBIG.cmake 1970-01-01 01:00:00.000000000 +0100 +++ misc/kdeedu4/files/patch-rm-cmake-modules-FindSBIG.cmake 2009-01-22 23:02:23.000000000 +0100 @@ -0,0 +1,27 @@ +diff -u ../cmake/modules/FindSBIG.cmake~ ../cmake/modules/FindSBIG.cmake +--- ../cmake/modules/FindSBIG.cmake~ 2008-01-05 00:56:03.000000000 +0100 ++++ ../cmake/modules/FindSBIG.cmake 2009-01-22 22:56:28.000000000 +0100 +@@ -10,23 +10,3 @@ + # Redistribution and use is allowed according to the terms of the BSD license. + # For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +-if (SBIG_LIBRARIES) +- +- # in cache already +- set(SBIG_FOUND TRUE) +- message(STATUS "Found SBIG: ${SBIG_LIBRARIES}") +- +-else (SBIG_LIBRARIES) +- +- find_library(SBIG_LIBRARIES NAMES sbigudrv +- PATHS +- ${_obLinkDir} +- ${GNUWIN32_DIR}/lib +- ) +- +- include(FindPackageHandleStandardArgs) +- FIND_PACKAGE_HANDLE_STANDARD_ARGS(SBIG DEFAULT_MSG SBIG_LIBRARIES ) +- +- mark_as_advanced(SBIG_LIBRARIES) +- +-endif (SBIG_LIBRARIES) >Release-Note: >Audit-Trail: >Unformatted: