tech-pkg archive

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

Re: "error: ... : world-writable file."



On Tue, 20 Aug 2019 19:09:24 +0200, Roland Illig wrote:
> Am 20.08.2019 um 16:20 schrieb Hauke Fath:
>> while the package builds fine (permissions correct) on netbsd-9. The
>> source tarball has several files with '0666' (built on a Mac? Wintel?).
>> 
>> What does NetBSD pkgsrc apply that the Illumos one is missing?
> 
> The umask.
> 
> I tried both NetBSD tar and GNU tar, and they both applied the umask to
> the extracted files.

Ah. So all I have is a case of SunOS, erm, "traditional userland"?

OTOH, mk/tools/tools.SunOS has

.if exists(/usr/bin/gtar)
TOOLS_PLATFORM.gtar?=           /usr/bin/gtar
TOOLS_PLATFORM.tar?=            /usr/bin/gtar
.elif exists(/usr/sfw/bin/gtar)
TOOLS_PLATFORM.gtar?=           /usr/sfw/bin/gtar
TOOLS_PLATFORM.tar?=            /usr/sfw/bin/gtar
.endif

where on omnios neither of the paths has a "gtar". There is 
/usr/sbin/tar. And there is /usr/gnu/bin, but it doesn't have a tar 
either.

I guess I might use

.if ${OPSYS} == "SunOS"
EXTRACT_USING= bsdtar
.endif

Cheerio,
hauke




-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index