tech-pkg archive

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

Re: TMPDIR and bsd.pkg.mk (was Re: clang builds and /var/tmp)



Le 22/10/15 19:24, Richard PALO a écrit :
> This failure is indeed due this TMPDIR patch above as apparently there is an issue with the workdir being referenced in the manpages... looks like a bug in ncurses.
> Here is the final message:
>> ERROR: *** The above files still have references to the build directory.
>> ERROR:     This is possibly an error that should be fixed by unwrapping
>> ERROR:     the files or adding missing tools to the package makefile!
>> *** Error code 1
> 
> 
> Just to prove it is an existing anomaly, try 'head -1 $PREFIX/man/man1/captinfo.1'...
>> $ head -1 /opt/local/man/man1/captoinfo.1 
>> .ds f. /tmp/man279042
> naturally this reference doesn't exist any longer.
> 
> I also noticed [later] warnings to the effect that .home is not empty, so I now simply 
> leave TMPDIR=${FAKEHOMEDIR} which saves a unnecessary directory creation anyway.
>> -ALL_ENV+=              HOME=${FAKEHOMEDIR}
>> +ALL_ENV+=              HOME=${FAKEHOMEDIR} TMPDIR=${FAKEHOMEDIR}
> 
> Anybody with any insight into this ncurses issue? 
> 

Turns out that groff tbl is *supposed* to be used, not native, because 
'diversions' are relied upon for tbl entries.  

Now the top of the manfile looks like:
> richard@omnis:/tmp/pkgsrc/devel/ncurses/work/ncurses-6.0$ head -4 ../.destdir/opt/local/man/man1/captoinfo.1 
> .if !\n(.g .ab GNU tbl requires GNU troff.
> .if !dTS .ds TS
> .if !dTE .ds TE
> .lf 1 /tmp/pkgsrc/devel/ncurses/work/.home/man675445

where the residual filename is an optional debug filename indication.

Given the context (tempfiles), seems these can be safely suppressed or simply 
ignored with 'CHECK_WRKREF_SKIP+= man/man?/*'.

Unfortunately building [pkgsrc] groff in ncurses generates a circular dependency,
that part will need to be left as is.

Here is the new result of bulk-small:
> pkgsrc bulk build report
> ========================
> 
> SunOS 5.11/i386
> Compiler: gcc
> 
> Build start: 2015-10-23 07:50
> Build end:   2015-10-23 08:55
> 
> Full report: http://ftp.netbsd.org/pub/pkgsrc/misc/richard/reports/20151023.0750/meta/report.html
> Machine readable version: http://ftp.netbsd.org/pub/pkgsrc/misc/richard/reports/20151023.0750/meta/report.xz
> 
> Total number of packages:        165
>   Successfully built:            164
>   Failed to build:                 1
>   Depending on failed package:     0
>   Explicitly broken or masked:     0
>   Depending on masked package:     0
> 
> Build failures
> 
> Package                               Breaks Maintainer
> -------------------------------------------------------------------------
> meta-pkgs/bulk-small                         dholland%NetBSD.org@localhost
> 
> 

the failure seems to be an unrelated conflict with jpeg... 


-- 
Richard PALO



Home | Main Index | Thread Index | Old Index