From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 9 21:40:03 2005 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 3794316A4EA for ; Mon, 9 May 2005 21:40:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E707E43D6E for ; Mon, 9 May 2005 21:40:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j49Le2a4091741 for ; Mon, 9 May 2005 21:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j49Le2gW091740; Mon, 9 May 2005 21:40:02 GMT (envelope-from gnats) Resent-Date: Mon, 9 May 2005 21:40:02 GMT Resent-Message-Id: <200505092140.j49Le2gW091740@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, KOMATSU Shinichiro Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E494416A4EA for ; Mon, 9 May 2005 21:34:48 +0000 (GMT) Received: from ksta.ms.u-tokyo.ac.jp (ksta.ms.u-tokyo.ac.jp [157.82.17.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A9143D3F for ; Mon, 9 May 2005 21:34:48 +0000 (GMT) (envelope-from koma2@ksta.ms.u-tokyo.ac.jp) Received: by ksta.ms.u-tokyo.ac.jp (Postfix, from userid 1003) id C1B7756445; Tue, 10 May 2005 06:34:47 +0900 (JST) Message-Id: <20050509213447.C1B7756445@ksta.ms.u-tokyo.ac.jp> Date: Tue, 10 May 2005 06:34:47 +0900 (JST) From: KOMATSU Shinichiro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/80837: x11-toolkits/linux-gtk: cannot install by non-root user on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: KOMATSU Shinichiro List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 21:40:03 -0000 >Number: 80837 >Category: ports >Synopsis: x11-toolkits/linux-gtk: cannot install by non-root user on amd64 >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: Mon May 09 21:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: KOMATSU Shinichiro >Release: FreeBSD 5.3-RELEASE-p5 amd64 >Organization: >Environment: FreeBSD 5.3-RELEASE-p5 amd64 >Description: On amd64, when "make install" is run by non-root user, installation of x11-toolkits/linux-gtk finishes with success but nothing is really installed. % make install ...(snip)... ===> Installing for linux-gtk-1.2_4 ===> linux-gtk-1.2_4 depends on file: /compat/linux/usr/X11R6/lib/libX11.so.6 - found ===> Generating temporary packing list ===> Checking if x11-toolkits/linux-gtk already installed ===> Switching to root credentials for 'install' target gtk+-1.2.9-4.i386.rpm package gtk+-1.2.9-4 is for a different architecture ===> Registering installation for linux-gtk-1.2_4 ===> Returning to user credentials % pkg_info -qL linux-gtk-1.2_4 | xargs ls -l ls: /compat/linux/etc/gtk/gtkrc: No such file or directory ls: /compat/linux/etc/gtk/gtkrc.az: No such file or directory ...(snip)... When installed by root, everything is successful. This is because a separate make process is run (with ${SU_CMD}) when "install" target is executed by non-root user, and ${ARCH}, which is overwritten to "i386" by the 1st make process, is passed to the 2nd make, and the following part of the Makefile is not interpreted. .if (${ARCH} == "amd64") ARCH= i386 RPMFLAGS+= --ignorearch .endif This is the same problem as ports/80679 (so portupgrade also fails), and the same fix should be applied. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/x11-toolkits/linux-gtk/Makefile,v retrieving revision 1.30 diff -u -r1.30 Makefile --- Makefile 1 Mar 2005 21:51:48 -0000 1.30 +++ Makefile 9 May 2005 21:29:40 -0000 @@ -27,7 +27,7 @@ .include -.if (${ARCH} == "amd64") +.if (${MACHINE_ARCH} == "amd64") ARCH= i386 RPMFLAGS+= --ignorearch .endif >Release-Note: >Audit-Trail: >Unformatted: