pkgsrc-Users archive

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

Re: clang builds and /var/tmp



Le 21/10/15 13:36, Tobias Nygren a écrit :
> On Wed, 21 Oct 2015 13:31:09 +0200
> Richard PALO <richard%netbsd.org@localhost> wrote:
> 
>>> I have issues with /var/tmp being used, in particular with libtool-base...
>>>
>>>> => Checking file permissions in libtool-base-2.4.2nb10
>>>> warning: /var/tmp: group-writable directory.
>>>> error: /var/tmp: world-writable directory.
>>>> 1 errors and 1 warnings.
>>>
>>> If I switch to /tmp/pkgbuild instead of /var/tmp/pkgbuild things work fine.
>>>
>>
>> never did take any more time to see what was up... perhaps the maintainer could take a look.
> 
> I know it can happen if the tmp directory for some reason has lost it's
> sticky bit (chmod 1777). Does this apply to your situation?
> 
> -Tobias
> 

I'll see about that...

In the meanwhile, for a quick test I tried quick and dirty:
> diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
> index 5119ccc..a94a6a8 100644
> --- a/mk/bsd.pkg.mk
> +++ b/mk/bsd.pkg.mk
> @@ -400,11 +400,12 @@ USE_LANGUAGES?=           # empty
>  #Fake up a home directory
>  WRAPPER_TARGETS+=      fake-home
>  FAKEHOMEDIR=           ${WRKDIR}/.home
> -ALL_ENV+=              HOME=${FAKEHOMEDIR}
> +ALL_ENV+=              HOME=${FAKEHOMEDIR} TMPDIR=${FAKEHOMEDIR}/tmp
>  .PHONY: fake-home
>  fake-home: ${FAKEHOMEDIR}
>  ${FAKEHOMEDIR}:
>         ${RUN} ${MKDIR} ${.TARGET}
> +       ${RUN} ${MKDIR} ${.TARGET}/tmp
>  
>  # Use C-based wrappers or legacy shell versions.
>  .if ${_USE_CWRAPPERS} == "yes"



and a bmake configure in clang shows it worked okay:
> configure:8876: found /tmp/pkgsrc/lang/clang/work/.buildlink/bin/xml2-config
> __crashreporter_info__              /tmp/pkgsrc/lang/clang/work/.home/tmp/ccHGqx5T.o
> strtoq                              /tmp/pkgsrc/lang/clang/work/.home/tmp/ccnyGy_T.o
> malloc_zone_statistics              /tmp/pkgsrc/lang/clang/work/.home/tmp/ccXDWX_T.o
> futimes                             /tmp/pkgsrc/lang/clang/work/.home/tmp/ccJ6ahbU.o
...

will try a bulk run tonight
-- 
Richard PALO



Home | Main Index | Thread Index | Old Index