Re: PKGBUILD: mkdir or install?

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



On Mon, 2009-04-06 at 15:25 +0200, Ali H. Caliskan wrote:
> Hello fellow Arch Linux devels and users,
> 
> I'm wondering if it's inappropriate to use "mkdir -p" in PKGBUILD instead of
> "install". I've seen quite many official PKGBUILDs that use mkdir instead of
> install, whose very structure I've adopted and applied in my various
> PKBUILDs. Does it matter if it's mkdir or install, and why?
> 
> Kind regards,
> Ali

Usually it doesn't matter, but I prefer to use install -d instead of
mkdir. Some users like to have umask set to something completely
non-default, which breaks permissions with mkdir -p. With install -m755
-d I can specifiy the correct permissions explicit instead of hoping the
user doesn't have umask set.



[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