From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 23 08:40:08 2011 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 28A291065674 for ; Thu, 23 Jun 2011 08:40:08 +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 0CB5B8FC0A for ; Thu, 23 Jun 2011 08:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5N8e7u6082017 for ; Thu, 23 Jun 2011 08:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5N8e7NV082016; Thu, 23 Jun 2011 08:40:07 GMT (envelope-from gnats) Resent-Date: Thu, 23 Jun 2011 08:40:07 GMT Resent-Message-Id: <201106230840.p5N8e7NV082016@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, Matthias Andree Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id BADCA106564A; Thu, 23 Jun 2011 08:30:26 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mandree by apollo.emma.line.org with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1QZfHR-000MqH-LW; Thu, 23 Jun 2011 10:28:53 +0200 Message-Id: Date: Thu, 23 Jun 2011 10:28:53 +0200 From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: sbz@FreeBSD.org Subject: ports/158195: [PATCH] security/libssh2: fix Version in pkg-config .pc file 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: Thu, 23 Jun 2011 08:40:08 -0000 >Number: 158195 >Category: ports >Synopsis: [PATCH] security/libssh2: fix Version in pkg-config .pc file >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: Thu Jun 23 08:40:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 8.2-STABLE amd64 >Organization: >Environment: System: FreeBSD apollo.emma.line.org 8.2-STABLE FreeBSD 8.2-STABLE #3: Tue Jun 21 01:06:57 CEST 2011 >Description: Sofian, please approve of my committing this patch, or commit yourself. This fixes the Version in the pkg-config file, which is currently "-" rather than 1.2.8, breaking, for instance, the libpwmd build. This fix is taken from the upstream repo, see , and can probably be reverted for future releases. Added file(s): - files/patch-version Port maintainer (sbz@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- libssh2-1.2.8_1,2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/security/libssh2/Makefile,v retrieving revision 1.29 diff -u -u -r1.29 Makefile --- Makefile 13 Apr 2011 11:45:03 -0000 1.29 +++ Makefile 23 Jun 2011 08:23:50 -0000 @@ -7,6 +7,7 @@ PORTNAME= libssh2 PORTVERSION= 1.2.8 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= security devel MASTER_SITES= http://www.libssh2.org/download/ @@ -18,8 +19,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING USE_OPENSSL= yes +USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes USE_LDCONFIG= yes +PATCH_STRIP= -p1 OPTIONS= GCRYPT "Use libgcrypt instead of OpenSSL" off \ TRACE "Enable debug packet traces" off \ Index: files/patch-version =================================================================== RCS file: files/patch-version diff -N files/patch-version --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-version 23 Jun 2011 08:25:31 -0000 @@ -0,0 +1,60 @@ +From: Daniel Stenberg +Date: Wed, 6 Apr 2011 10:03:11 +0000 (+0200) +Subject: configure: fix $VERSION +X-Git-Url: http://git.libssh2.org/?p=libssh2.git;a=commitdiff_plain;h=f0a37bdadc311b83fcb2ccafad4827016abe5d18;js=1 + +configure: fix $VERSION + +Stop using the $VERSION variable as it seems to be magically used by +autoconfig itself and thus gets set to the value set in AC_INIT() +without us wanting that. $LIBSSH2VER is now the libssh2 version as +detected. + +Reported by: Paul Howarth +Bug: http://www.libssh2.org/mail/libssh2-devel-archive-2011-04/0008.shtml +--- + +diff --git a/configure.ac b/configure.ac +index 9bdf3b9..46c6cfa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -15,12 +15,14 @@ if test "x$SED" = "xsed-was-not-found-by-configure"; then + fi + + dnl figure out the libssh2 version +-VERSION=`$SED -ne 's/^#define LIBSSH2_VERSION *"\(.*\)"/\1/p' ${srcdir}/include/libssh2.h` ++LIBSSH2VER=`$SED -ne 's/^#define LIBSSH2_VERSION *"\(.*\)"/\1/p' ${srcdir}/include/libssh2.h` + AM_INIT_AUTOMAKE + AC_MSG_CHECKING([libssh2 version]) +-AC_MSG_RESULT($VERSION) ++AC_MSG_RESULT($LIBSSH2VER) + +-AB_VERSION=$VERSION ++AC_SUBST(LIBSSH2VER) ++ ++AB_VERSION=$LIBSSH2VER + + AB_INIT + +@@ -289,7 +291,7 @@ AC_OUTPUT + + AC_MSG_NOTICE([summary of build options: + +- version: ${VERSION} ++ version: ${LIBSSH2VER} + Host type: ${host} + Install prefix: ${prefix} + Compiler: ${CC} +diff --git a/libssh2.pc.in b/libssh2.pc.in +index 013e6bf..eaef88b 100644 +--- a/libssh2.pc.in ++++ b/libssh2.pc.in +@@ -10,7 +10,7 @@ includedir=@includedir@ + Name: libssh2 + URL: http://www.libssh2.org/ + Description: Library for SSH based connunication +-Version: @VERSION@ ++Version: @LIBSSH2VER@ + Libs: -L${libdir} -lssh2 @LDFLAGS@ @LIBS@ + Libs.private: @LIBS@ + Cflags: -I${includedir} --- libssh2-1.2.8_1,2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: