From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 16:14:14 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B046E1065670 for ; Thu, 1 Dec 2011 16:14:14 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 868B48FC15 for ; Thu, 1 Dec 2011 16:14:14 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=imac.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1RW9Gx-0005nd-Oq; Thu, 01 Dec 2011 11:14:10 -0500 Received: from imac.entropy.prv (localhost [127.0.0.1]) by imac.entropy.prv (Postfix) with ESMTP id D024DC24FF6; Thu, 1 Dec 2011 11:14:10 -0500 (EST) Message-ID: <4ED7A7D2.1030500@FreeBSD.org> Date: Thu, 01 Dec 2011 11:14:10 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.24) Gecko/20111103 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: Bernt Hansson References: <4ED78337.1070601@bananmonarki.se> <4ED78AFE.4000402@FreeBSD.org> <4ED7A319.8020402@bananmonarki.se> In-Reply-To: <4ED7A319.8020402@bananmonarki.se> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: *** X-Spam-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: FreeBSD Questions Subject: Re: Weird stuff X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 16:14:14 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/1/11 10:54 AM, Bernt Hansson wrote: > 2011-12-01 15:11, Greg Larkin skrev: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On 12/1/11 8:37 AM, Bernt Hansson wrote: >>> Hello list! >>> >>> Trying to upgrade 3:d party stuff. >>> >>> Only get errors. What gives? >>> >>> ---> Upgrading 'jasper-1.900.1_9' to 'jasper-1.900.1_10' >>> (graphics/jasper) >>> ---> Building '/usr/ports/graphics/jasper' >>> ===> Cleaning for jasper-1.900.1_10 >>> cd /usr/home/bernt/disk8/ports/graphics/jasper&& make config; >>> ===> Cannot create , check permissions >>> *** Error code 1 >>> >>> Stop in /usr/home/bernt/disk8/ports/graphics/jasper. >>> *** Error code 1 >>> >>> Stop in /usr/home/bernt/disk8/ports/graphics/jasper. >>> ** Command failed [exit code 1]: /usr/bin/script -qa >>> /tmp/portupgrade20111130-48187-8vcb9-0 env UPGRADE_TOOL=portupgrade >>> UPGRADE_PORT=jasper-1.900.1_9 UPGRADE_PORT_VER=1.900.1_9 make >>> DEPENDS_TARGET=package >>> ** Fix the problem and try again. >>> >>> Permission is 777 >> >> Hi Bernt, >> >> Reading through /usr/ports/Mk/bsd.port.mk, the "check permissions" >> message is emitted when certain directories cannot be created. >> >> Are you running the upgrade as the root user? I would be interested in >> seeing the output of the following command sequence: >> >> cd /usr/ports/graphics/jasper >> make -V SU_CMD >> make -V UID >> make -V OPTIONSFILE > > %su - > Password: > testbox# cd /usr/ports/graphics/jasper > testbox# make -V SU_CMD > /usr/bin/su root -c > testbox# make -V UID > 0 > testbox# make -V OPTIONSFILE > /var/db/ports/jasper/options > >> >> Also, what happens if you simply do this: >> >> cd /usr/ports/graphics/jasper&& make config >> > > testbox# cd /usr/ports/graphics/jasper && make config > ===> Cannot create , check permissions > *** Error code 1 > > Stop in /usr/home/bernt/disk8/ports/graphics/jasper. > > I did this also, as root > > cd /usr/ports (it's a link) > mkdir 1 > > cd /usr/home/bernt/disk8/ports/graphics/jasper > > mkdir 1 > mkdir: 1: File exists > > Creating files/dirs don't seem to be a problem. > > /dev/ad0s2g 8.7G 8.3G -322M 104% /usr > /dev/ad14.eli 902G 126G 775G 14% /usr/home/bernt/disk8 > Does /usr/ports link directly to /usr/home/bernt/disk8/ports/graphics/jasper? I wouldn't expect that's the case, but that's what the transcript above implies. Does this problem happen with other ports as well or just graphics/jasper? Do you have an /etc/make.conf file, and if so, what are the contents? What is the output of the following commands? ls -l /var/db/ports/jasper cat /var/db/ports/jasper/options Regards, Greg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7Xp9IACgkQ0sRouByUApAwPgCfd00wf5oxpdSWQQoGw9H3DZb1 gosAn27BTLABAckWgIrJwmqhlOkFzAlP =Ymv+ -----END PGP SIGNATURE-----