Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion fakeroot package() -> mkdir: cannot create directory : Permission denied

Received: by 10.50.207.35 with SMTP id lt3mr1865846igc.1.1330814194854;
        Sat, 03 Mar 2012 14:36:34 -0800 (PST)
X-BeenThere: arch-linux@googlegroups.com
Received: by 10.50.236.101 with SMTP id ut5ls1573682igc.4.canary; Sat, 03 Mar
 2012 14:36:34 -0800 (PST)
Received: by 10.50.10.137 with SMTP id i9mr1872823igb.2.1330814194767;
        Sat, 03 Mar 2012 14:36:34 -0800 (PST)
Received: by 10.50.10.137 with SMTP id i9mr1872822igb.2.1330814194757;
        Sat, 03 Mar 2012 14:36:34 -0800 (PST)
Return-Path: <arch-general-boun...@archlinux.org>
Received: from gerolde.archlinux.org (gerolde.archlinux.org. [66.211.214.132])
        by gmr-mx.google.com with ESMTP id aq5si878272igc.0.2012.03.03.14.36.34;
        Sat, 03 Mar 2012 14:36:34 -0800 (PST)
Received-SPF: pass (google.com: domain of arch-general-boun...@archlinux.org designates 66.211.214.132 as permitted sender) client-ip=66.211.214.132;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of arch-general-boun...@archlinux.org designates 66.211.214.132 as permitted sender) smtp.mail=arch-general-boun...@archlinux.org
Received: from gudrun.archlinux.org (gudrun.archlinux.org [66.211.214.131])
	by gerolde.archlinux.org (Postfix) with ESMTP id 5A938900E9;
	Sat,  3 Mar 2012 17:36:22 -0500 (EST)
Received: from gerolde.archlinux.org (gerolde.archlinux.org [66.211.214.132])
 by gudrun.archlinux.org (Postfix) with ESMTP id B7E127004C
 for <arch-gene...@archlinux.org>; Sat,  3 Mar 2012 17:36:19 -0500 (EST)
Received-SPF: none (suddenlinkmail.com: No applicable sender policy available)
 receiver=gerolde.archlinux.org; identity=mailfrom;
 envelope-from="drankina...@suddenlinkmail.com"; helo=txofep01.suddenlink.net;
 client-ip=208.180.40.71
Received: from txofep01.suddenlink.net (txofep01.suddenlink.net
 [208.180.40.71])
 by gerolde.archlinux.org (Postfix) with ESMTP id 69008900AA
 for <arch-gene...@archlinux.org>; Sat,  3 Mar 2012 17:36:18 -0500 (EST)
Received: from [192.168.6.102] (really [66.76.63.120])
 by txofep01.suddenlink.net
 (InterMail vM.8.04.00.01 201-2329-100-103-20120206) with ESMTP
 id <20120303223628.IQB15170.txofep01.suddenlink.net@[192.168.6.102]>
 for <arch-gene...@archlinux.org>; Sat, 3 Mar 2012 16:36:28 -0600
Message-ID: <4F529CEB.8020...@suddenlinkmail.com>
Date: Sat, 03 Mar 2012 16:36:27 -0600
From: "David C. Rankin" <drankina...@suddenlinkmail.com>
Organization: Rankin Law Firm, PLLC
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:10.0.2) Gecko/20120215 Thunderbird/10.0.2
MIME-Version: 1.0
To: Archlinux <arch-gene...@archlinux.org>
X-Enigmail-Version: 1.3.5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Cloudmark-Analysis: v=1.1 cv=OJ3X2YZuE3cef9yqXSBWhX958AbW/2vRs2WRKxXzZ+Y=
 c=1 sm=0 a=-BUvEAjSaHgA:10 a=wxTJNHGCHqAA:10 a=3164NE3r-yIA:10
 a=8nJEP1OIZ-IA:10 a=Br9LfDWDAAAA:8 a=Jl21X7VrAAAA:8 a=rh65lLR771udIvVg4IYA:9
 a=LwTfRh2cFLrj-kK-c08A:7 a=wPNLvfGTeEIA:10 a=ab7uur-qVvsA:10
 a=IrmJUiM_sinOlD1v:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
Subject: [arch-general] fakeroot package() -> mkdir: cannot create directory
 : Permission denied
X-BeenThere: arch-gene...@archlinux.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: General Discussion about Arch Linux <arch-gene...@archlinux.org>
List-Id: General Discussion about Arch Linux <arch-general.archlinux.org>
List-Unsubscribe: <http://mailman.archlinux.org/mailman/options/arch-general>, 
 <mailto:arch-general-requ...@archlinux.org?subject=unsubscribe>
List-Archive: <http://mailman.archlinux.org/pipermail/arch-general>
List-Post: <mailto:arch-gene...@archlinux.org>
List-Help: <mailto:arch-general-requ...@archlinux.org?subject=help>
List-Subscribe: <http://mailman.archlinux.org/mailman/listinfo/arch-general>, 
 <mailto:arch-general-requ...@archlinux.org?subject=subscribe>
Errors-To: arch-general-boun...@archlinux.org
Sender: arch-general-boun...@archlinux.org

Guys,

  This is the first time I've seen makepkg not be able to create the
$pkgdir/<dir> needed to package a file. I take it from the forum posts that this
usually means that makepkg is trying to create the file in the actual filesystem
instead of in the fakeroot $pkgdir. (eg:
https://bbs.archlinux.org/viewtopic.php?pid=999088)

  However, I cannot figure out what is causing it to do so on this simple
package. The actual error I receive is:

==> Packaging - tde-tqca-tls
mkdir: cannot create directory `/opt/tqt3/plugins/crypto/': Permission denied
make: *** [install_target] Error 1

  What has me puzzled is this is a simple little package. The entire
$srcdir/$pkgname after building is just:

16:24 nirvana:/mnt/nv1/home/chroot/david/build> l src/tqca-tls
total 388
drwxr-xr-x 2 nobody nobody   4096 Mar  3 16:22 .
drwxr-xr-x 3 nobody nobody   4096 Mar  3 16:22 ..
-rwxr-xr-x 1 nobody nobody  11839 Mar  3 16:22 configure
-rw-r--r-- 1 nobody nobody    436 Mar  3 16:22 conf.log
-rw-r--r-- 1 nobody nobody    128 Mar  3 16:22 conf.pri
-rw-r--r-- 1 nobody nobody  26430 Feb 16 11:55 COPYING
-rw-r--r-- 1 nobody nobody     74 Mar  3 16:22 extra.pri
-rwxr-xr-x 1 nobody nobody  98829 Mar  3 16:22 libqca-tls.so
-rw-r--r-- 1 nobody nobody   3557 Mar  3 16:22 Makefile
-rw-r--r-- 1 nobody nobody   1743 Feb 16 11:55 openssl.qcm
-rwxr-xr-x 1 nobody nobody     62 Feb 16 11:55 prepare
-rw-r--r-- 1 nobody nobody  10409 Feb 17 17:22 qca.h
-rw-r--r-- 1 nobody nobody   6028 Feb 16 11:55 qcaprovider.h
-rw-r--r-- 1 nobody nobody  29465 Feb 16 11:55 qca-tls.cpp
-rw-r--r-- 1 nobody nobody   1014 Feb 16 11:55 qca-tls.h
-rw-r--r-- 1 nobody nobody 143896 Mar  3 16:22 qca-tls.o
-rw-r--r-- 1 nobody nobody    478 Feb 16 11:55 qca-tls.pro
-rw-r--r-- 1 nobody nobody    148 Feb 16 11:55 qca-tls.qc
-rwxr-xr-x 1 nobody nobody    119 Feb 16 11:55 qcextra
-rw-r--r-- 1 nobody nobody    360 Feb 16 11:55 README

  Looking at the Makefile generate by configure, the install part of the
makefile is:

install_target: all
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/opt/tqt3/plugins/crypto/" || $(MKDIR)
"$(INSTALL_ROOT)/opt/tqt3/plugins/crypto/"
	-$(INSTALL_FILE) "$(TARGET)" "$(INSTALL_ROOT)/opt/tqt3/plugins/crypto/$(TARGET)"
	-strip --strip-unneeded "$(INSTALL_ROOT)/opt/tqt3/plugins/crypto/$(TARGET)"

  The complete makefile is:

http://www.3111skyline.com/dl/dt/trinity/arch/err/Makefile-tqca-tls.txt

  I'm not sure what makepkg needs to tell it to put the packages in the $pkgdir
from within the Makefile. Anyone else been bitten by this? Any quick fix?

-- 
David C. Rankin, J.D.,P.E.