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
fakeroot package() -> mkdir: cannot create directory : Permission denied
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David C. Rankin  
View profile  
 More options Mar 3 2012, 5:36 pm
From: "David C. Rankin" <drankina...@suddenlinkmail.com>
Date: Sat, 03 Mar 2012 16:36:27 -0600
Local: Sat, Mar 3 2012 5:36 pm
Subject: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jesse Jaara  
View profile  
 More options Mar 3 2012, 5:39 pm
From: Jesse Jaara <jesse.ja...@gmail.com>
Date: Sun, 4 Mar 2012 00:39:19 +0200
Local: Sat, Mar 3 2012 5:39 pm
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
Make INSTALL_ROOT=$pkgdir install
4.3.2012 0.36 "David C. Rankin" <drankina...@suddenlinkmail.com> kirjoitti:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Allan McRae  
View profile  
 More options Mar 3 2012, 5:39 pm
From: Allan McRae <al...@archlinux.org>
Date: Sun, 04 Mar 2012 08:39:27 +1000
Local: Sat, Mar 3 2012 5:39 pm
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
On 04/03/12 08:36, David C. Rankin wrote:

make INSTALL_ROOT=$pkdir install

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David C. Rankin  
View profile  
 More options Mar 3 2012, 6:01 pm
From: "David C. Rankin" <drankina...@suddenlinkmail.com>
Date: Sat, 03 Mar 2012 17:01:01 -0600
Local: Sat, Mar 3 2012 6:01 pm
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
On 03/03/2012 04:39 PM, Allan McRae wrote:

> make INSTALL_ROOT=$pkdir install

Allan, Jesse,

  Thank you for your quick response!  I've tried the fix, but I'm still getting
the exact same error:

==> Packaging - tde-tqca-tls
mkdir: cannot create directory `/opt/tqt3/plugins/crypto/': Permission denied
make: *** [install_target] Error 1
==> ERROR: A failure occurred in package().

  I updated the PKGBUILD with your suggestion:

package() {
  msg "Packaging - $pkgname"
  cd ${srcdir}/${pkgname#*-}
#   make DESTDIR="${pkgdir}" install
  make INSTALL_ROOT=$pkdir install

}

  Is there something else I can try like patching the 'configure' file that
would help? This build is in a chroot -- I don't know if that makes a difference
in the way makepkg behaves? The configure file is here:
http://www.3111skyline.com/dl/dt/trinity/arch/err/configure-tqca-tls.txt

  Any other thoughts on the issue are always appreciated. I'll try building
another package that builds and installs fine in the chroot and see what it has
in the Makefile. Weird issue :)

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marshall@brooklandsand.co .uk  
View profile  
 More options Mar 3 2012, 6:10 pm
From: "marsh...@brooklandsand.co.uk" <marsh...@brooklandsand.co.uk>
Date: Sat, 3 Mar 2012 23:10:04 +0000 (GMT)
Local: Sat, Mar 3 2012 6:10 pm
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied

On 03 March 2012 at 23:01 "David C. Rankin" <drankina...@suddenlinkmail.com>
wrote:

Typo?  make INSTALL_ROOT=$pkdir install

surely it should be

make INSTALL_ROOT=$pkgdir install

-timttmy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David C. Rankin  
View profile  
 More options Mar 3 2012, 6:34 pm
From: "David C. Rankin" <drankina...@suddenlinkmail.com>
Date: Sat, 03 Mar 2012 17:34:44 -0600
Local: Sat, Mar 3 2012 6:34 pm
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
On 03/03/2012 04:39 PM, Allan McRae wrote:

>>   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?

> make INSTALL_ROOT=$pkdir install

What determines whether you need:

  make DESTDIR="${pkgdir}" install

or

  make INSTALL_ROOT="${pkgdir}" install

??

Can you grep something before building and tell?

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jérôme M. Berger  
View profile  
 More options Mar 4 2012, 1:52 am
From: "Jérôme M. Berger" <jeber...@free.fr>
Date: Sun, 04 Mar 2012 07:52:48 +0100
Local: Sun, Mar 4 2012 1:52 am
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied

        A lot of software uses the GNU autotools to generate the makefiles.
You can tell by the presence of the files configure.ac (or
configure.in) and Makefile.am. For most of those DESTDIR should work
(unless the developer added some custom rules that don't follow the
usual practice).

        For other software, there is no easy way to tell. I have seen
DESTDIR, DEST_DIR and INSTALL_ROOT among others (plus some software
does not have a way to install like that and you need to change the
prefix and cross your fingers that it will work).

                Jerome
--
mailto:jeber...@free.fr
http://jeberger.free.fr
Jabber: jeber...@jabber.fr

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
baho Utot  
View profile  
 More options Mar 4 2012, 9:59 am
From: baho Utot <baho-u...@columbus.rr.com>
Date: Sun, 04 Mar 2012 09:59:55 -0500
Local: Sun, Mar 4 2012 9:59 am
Subject: Re: [arch-general] fakeroot package() -> mkdir: cannot create directory : Permission denied
On 03/03/2012 06:34 PM, David C. Rankin wrote:

The Makefile....

I just find it's easier to just let it puke and then have a look at the
Makefile

BTW how is trinity going?

I haven't looked at trinity for some time, as I dropped out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »