From owner-freebsd-ports@FreeBSD.ORG Sun Aug 3 18:26:54 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 812113E3 for ; Sun, 3 Aug 2014 18:26:54 +0000 (UTC) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "nyi.unixathome.org", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 526092F12 for ; Sun, 3 Aug 2014 18:26:53 +0000 (UTC) Received: from nyi.unixathome.org (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 7124E5089D for ; Sun, 3 Aug 2014 18:26:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by nyi.unixathome.org (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FDsHy3ODctm3 for ; Sun, 3 Aug 2014 18:26:42 +0000 (UTC) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id B4BCD50893 for ; Sun, 3 Aug 2014 18:26:42 +0000 (UTC) From: Dan Langille Content-Type: multipart/signed; boundary="Apple-Mail=_E84DBA61-6328-4497-A2D4-9113436BC4CC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: libraries with version numbers - sysutils/bacula Message-Id: Date: Sun, 3 Aug 2014 14:26:40 -0400 To: ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2014 18:26:54 -0000 --Apple-Mail=_E84DBA61-6328-4497-A2D4-9113436BC4CC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I=92m having trouble updating the sysutils/bacula-server port to 7.0.4. = This is a packaging issue, not a =91does it run=92 issue. Regression = testing is fine (see comment below). I have https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191311 nearly = finished. The blocking issue arises with = src/cats/install-default-backend.in which later stops the installation = of the right symlink files. short version: After bacula-server installs, we have this: [dan@testing /usr/local/lib]$ ls -l libbaccats* -rwxr-xr-x 1 root wheel 1010 Aug 3 18:20 libbaccats-postgresql.la lrwxr-xr-x 1 root wheel 26 Aug 3 18:20 libbaccats-postgresql.so = -> libbaccats-postgresql.so.7 -rwxr-xr-x 1 root wheel 42622 Aug 3 18:20 libbaccats-postgresql.so.7 -rwxr-xr-x 1 root wheel 944 Aug 3 18:20 libbaccats.la lrwxr-xr-x 1 root wheel 15 Aug 3 18:20 libbaccats.so -> = libbaccats.so.7 -rwxr-xr-x 1 root wheel 6376 Aug 3 18:20 libbaccats.so.7 libbaccats.so.7 should be a symlink to libbaccats-postgresql.so <=97 = this change is done by the install-default-backend postgresql script = (mentioned soon below). longer version: After installation, a grep gives this: # cd /var/ports/usr/ports/sysutils/bacula-server/work/bacula-7.0.4/src # grep -r install-default-backend * cats/Makefile: ./install-default-backend postgresql 5 = $(DESTDIR)$(libdir) cats/Makefile.in: ./install-default-backend @DEFAULT_DB_TYPE@ 5 = $(DESTDIR)$(libdir) cats/Makefile.in.orig: ./install-default-backend @DEFAULT_DB_TYPE@ = $(LIBBACCATS_LT_RELEASE) $(DESTDIR)$(libdir) See that 5? I think it should be a 7. I have no idea where the 5 is = coming from. It should be the value from LIBBACCATS_LT_RELEASE A grep for that gives (not all lines are included here): # grep -r LIBBACCATS_LT_RELEASE * cats/Makefile:LIBBACCATS_LT_RELEASE =3D 7.0.4 So I get confused and can=92t see why. Spending more hours on this seems = fruitless. I am also trying to understand the version numbers used in the Bacula = port. Bacula 5.2.12_6 installs these libraries: [dan@bacula:/usr/local/lib] $ ls -l libbac* -rwxr-xr-x 1 root wheel 900 Jul 5 22:12 libbac.la lrwxr-xr-x 1 root wheel 15 Jul 5 22:12 libbac.so -> = libbac.so.5.0.2 lrwxr-xr-x 1 root wheel 15 Jul 5 22:12 libbac.so.5 -> = libbac.so.5.0.2 -rwxr-xr-x 1 root wheel 434017 Jul 5 22:12 libbac.so.5.0.2 -rwxr-xr-x 1 root wheel 984 Jul 5 22:15 libbaccats-postgresql.la lrwxr-xr-x 1 root wheel 30 Jul 5 22:15 libbaccats-postgresql.so = -> libbaccats-postgresql.so.5.0.2 lrwxr-xr-x 1 root wheel 30 Jul 5 22:15 = libbaccats-postgresql.so.5 -> libbaccats-postgresql.so.5.0.2 -rwxr-xr-x 1 root wheel 42270 Jul 5 22:15 = libbaccats-postgresql.so.5.0.2 -rwxr-xr-x 1 root wheel 924 Jul 5 22:15 libbaccats.la lrwxr-xr-x 1 root wheel 19 Jul 5 22:15 libbaccats.so -> = libbaccats.so.5.0.2 lrwxr-xr-x 1 root wheel 24 Jul 5 22:15 libbaccats.so.5 -> = libbaccats-postgresql.so -rwxr-xr-x 1 root wheel 6576 Jul 5 22:15 libbaccats.so.5.0.2 =85 etc I think 5.0.2 is derived from 5.2.16 by this patch in = files/patch-src__cats__Makefile.in: - $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ = $(LIBBACSQL_LOBJS) -export-dynamic -rpath $(libdir) -release = $(LIBBACSQL_LT_RELEASE) $(DB_LIBS) + $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ = $(LIBBACSQL_LOBJS) -export-dynamic -rpath $(libdir) -version-info = $(LIBBACSQL_LT_RELEASE:S/./:/g:S/12/0/g) I didn=92t create that substitution and I do not understand why it is = useful. Can help me understand please? I suspect this approach was taken so minor upgrades do not require = reinstalling other apps. Thanks. =97=20 Dan Langille --Apple-Mail=_E84DBA61-6328-4497-A2D4-9113436BC4CC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlPefuAACgkQCgsXFM/7nTw0SgCg4JZU30RwglKYlfwWsCWHTkWb FXkAnA4VxEgLb/IfIZcPaG9PlsS7SLy4 =fomM -----END PGP SIGNATURE----- --Apple-Mail=_E84DBA61-6328-4497-A2D4-9113436BC4CC--