From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 8 22:10:14 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77C2916A4BF for ; Mon, 8 Sep 2003 22:10:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02FE043FF5 for ; Mon, 8 Sep 2003 22:10:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h895ABUp062065 for ; Mon, 8 Sep 2003 22:10:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h895ABad062064; Mon, 8 Sep 2003 22:10:11 -0700 (PDT) Resent-Date: Mon, 8 Sep 2003 22:10:11 -0700 (PDT) Resent-Message-Id: <200309090510.h895ABad062064@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, "John E. Hein" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C00316A4BF; Mon, 8 Sep 2003 22:01:16 -0700 (PDT) Received: from Daffy.timing.com (mx1.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D3BB43F85; Mon, 8 Sep 2003 22:01:13 -0700 (PDT) (envelope-from jhein@timing.com) Received: from Elmer.timing.com (elmer.timing.com [206.168.13.187]) by Daffy.timing.com (8.12.8p1/8.12.8) with ESMTP id h8951CGL017663; Mon, 8 Sep 2003 23:01:12 -0600 (MDT) (envelope-from jhein@timing.com) Received: from Elmer.timing.com (localhost.timing.com [127.0.0.1]) by Elmer.timing.com (8.12.8p1/8.11.6) with ESMTP id h8951Cnk000325; Mon, 8 Sep 2003 23:01:12 -0600 (MDT) (envelope-from jhein@Elmer.timing.com) Received: (from jhein@localhost) by Elmer.timing.com (8.12.8p1/8.12.8/Submit) id h8951BVQ000324; Mon, 8 Sep 2003 23:01:12 -0600 (MDT) Message-Id: <200309090501.h8951BVQ000324@Elmer.timing.com> Date: Mon, 8 Sep 2003 23:01:12 -0600 (MDT) From: "John E. Hein" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Octave maintainer Subject: ports/56621: bad link in octave when install package using pkg_add -p X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "John E. Hein" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 05:10:14 -0000 >Number: 56621 >Category: ports >Synopsis: bad link in octave when install package using pkg_add -p >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 08 22:10:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: John E. Hein >Release: FreeBSD 4.8-RELEASE i386 >Organization: Timing Solutions >Environment: System: FreeBSD Elmer.timing.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Wed Jan 2 03:24:03 MST 2002 root@Bugs.timing.com:/usr/src/sys/compile/LOCAL_MP i386 >Description: If you build a package for math/octave, then try to install the package to a non-default location using pkg_add -p (as you might if you were building a system under a different mount point, like a chroot), the lib/octave sym link will point to the wrong place. >How-To-Repeat: cd math/octave make package pkg_add -r /some/chroot octave-2.1.50.tgz ls -l /some/chroot/usr/local/lib/octave Observe that it points to /some/chroot/usr/local/lib/octave-2.1.50 which fails when in the chroot. >Fix: Don't sym link to an absolute path name; then it works in all cases. Here's the patch... --- math/octave/pkg-plist.orig Tue Aug 26 11:11:24 2003 +++ math/octave/pkg-plist Mon Sep 8 22:47:44 2003 @@ -306,7 +306,7 @@ lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so lib/octave-%%OCTAVE_VERSION%%/liboctinterp.so.%%OCTAVE_VERSION%% @unexec /bin/rm -f %D/lib/octave -@exec /bin/ln -sf %D/lib/octave-%%OCTAVE_VERSION%% %D/lib/octave +@exec /bin/ln -sf octave-%%OCTAVE_VERSION%% %D/lib/octave libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-info libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/info-emacs-octave-help libexec/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/airy.oct >Release-Note: >Audit-Trail: >Unformatted: