Stuart Henderson <s...@spacehopper.org> writes:

[...]

> As part of the "quirks" package build, the update.db cache is built
> which provides information used by pkg_add -u to speed up updates.
> In a bulk build DPB takes care to build this at the end of the
> run, so that it has information about all packages available.
>
> This is based on the packages in the local build dir (e.g.
> /usr/ports/packages/$ARCH/all by default).
>
> To avoid the failure you need to build some other packages first
> (it doesn't matter which. math/moo is a good quick-to-build simple
> package if you need one).

Hi and thanks,

I don't understand what is going on here but here is what I've just did:

$ cd /usr/ports/
$ rm -rf packages
$ cd math/moo
$ make package
===> Building from scratch moo-1.5p0
install: /usr/ports/pobj: Operation not permitted
===>  Checking files for moo-1.5p0
`/usr/ports/distfiles/moo-1.5.tar.gz' is up to date.
>> (SHA256) moo-1.5.tar.gz: OK
===>  Verifying specs:  c
===>  found c.97.1
===>  Extracting for moo-1.5p0
===>  Patching for moo-1.5p0
===>   Applying OpenBSD patch patch-Makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: Makefile
|--- Makefile.orig
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 1.
done
===>   Applying OpenBSD patch patch-scan_l
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: scan.l
|--- scan.l.orig
|+++ scan.l
--------------------------
Patching file scan.l using Plan A...
Hunk #1 succeeded at 8.
done
===>  Compiler link: clang -> /usr/bin/clang
===>  Compiler link: clang++ -> /usr/bin/clang++
===>  Compiler link: cc -> /usr/bin/cc
===>  Compiler link: c++ -> /usr/bin/c++
===>  Generating configure for moo-1.5p0
===>  Configuring for moo-1.5p0
===>  Building for moo-1.5p0
yacc -d -o moo.c moo.y
lex  -o scan.c scan.l
cc -O2 -pipe -Wall -W -Wno-unused -Wshadow -pedantic -std=c99 -MD -MP  
-I/usr/ports/pobj/moo-1.5/moo-1.5 -nostdinc -idirafter /usr/include -c moo.c
cc -O2 -pipe -Wall -W -Wno-unused -Wshadow -pedantic -std=c99 -MD -MP  
-I/usr/ports/pobj/moo-1.5/moo-1.5 -nostdinc -idirafter /usr/include -c scan.c
cc   -o moo moo.o scan.o 
===>  Faking installation for moo-1.5p0
install -c -s  -o root -g bin  -m 755 moo 
/usr/ports/pobj/moo-1.5/fake-amd64/usr/local/bin/moo
install -c -o root -g bin -m 644  moo.1 
/usr/ports/pobj/moo-1.5/fake-amd64/usr/local/man/man1/moo.1
===>  Building package for moo-1.5p0
Create /usr/ports/packages/amd64/all/moo-1.5p0.tgz
Creating package moo-1.5p0
Link to /usr/ports/packages/amd64/ftp/moo-1.5p0.tgz
$ cd /usr/ports/devel/quirks/
$ make package
===> Building from scratch quirks-6.198
install: /usr/ports/pobj: Operation not permitted
===>  Checking files for quirks-6.198
>> No DISTFILES nor PATCHFILES.
===>  Extracting for quirks-6.198
===>  Patching for quirks-6.198
===>  Compiler link: clang -> /usr/bin/clang
===>  Compiler link: clang++ -> /usr/bin/clang++
===>  Compiler link: cc -> /usr/bin/cc
===>  Compiler link: c++ -> /usr/bin/c++
===>  Generating configure for quirks-6.198
===>  Configuring for quirks-6.198
===>  Building for quirks-6.198
perl -Mlib=/usr/ports/devel/quirks/files /usr/ports/devel/quirks/files/t 
>/usr/ports/pobj/quirks-6.198/result
cmp /usr/ports/pobj/quirks-6.198/result /usr/ports/devel/quirks/files/reference
perl /usr/ports/devel/quirks/files/list_update_info -o 
/usr/ports/pobj/quirks-6.198/update.list  /usr/ports/packages/amd64/all
Scanning: ok
===>  Faking installation for quirks-6.198
/usr/ports/pobj/quirks-6.198/bin/install -d -m 755 
/usr/ports/pobj/quirks-6.198/fake-amd64/usr/local/libdata/perl5/site_perl/OpenBSD/Quirks
/usr/ports/pobj/quirks-6.198/bin/install -c -m 644 
/usr/ports/devel/quirks/files/Quirks.pm 
/usr/ports/pobj/quirks-6.198/fake-amd64/usr/local/libdata/perl5/site_perl/OpenBSD/Quirks.pm
/usr/libexec/locate.mklocatedb </usr/ports/pobj/quirks-6.198/update.list 
>/usr/ports/pobj/quirks-6.198/fake-amd64/usr/local/share/update.db
locate.code: bigram array too small to build db, index more files
*** Error 1 in . (Makefile:29 'do-install')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3139 
'/usr/ports/pobj/quirks-6.198/fake-amd64/.fake_done': @cd /usr/ports/devel/q...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2233 
'/usr/ports/packages/amd64/no-arch/quirks-6.198.tgz': @cd /usr/ports/devel/q...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2723 
'_internal-package': @case X${_DEPENDS_CACHE} in  X) _DEPENDS_CACHE=$( mktem...)
*** Error 2 in /usr/ports/devel/quirks 
(/usr/ports/infrastructure/mk/bsd.port.mk:2702 'package': @lock=quirks-6.198;  
export _LOCKS_HELD=" q...)
-- 
Manuel Giraud

Reply via email to