Re: fakeroot package() -> mkdir: cannot create directory : Permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Make INSTALL_ROOT=$pkgdir install
4.3.2012 0.36 "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx> kirjoitti:

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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux