On 2022/03/14 21:18, Florian Viehweger wrote:
> Am Mon, 14 Mar 2022 14:01:03 -0600
> schrieb Tracey Emery <[email protected]>:
> 
> > On Sun, Mar 13, 2022 at 12:38:21AM +0100, Florian Viehweger wrote:
> > > Hi,
> > > 
> > > I saw that KiCad had a newer version than in ports, so I tried to
> > > update it.
> > > 
> > > In a quick test on amd64 with tigervnc KiCad seems to run. I did
> > > look at an example schematic, tried the board view and the
> > > respective 3D view.
> > > 
> > > I do not have any further experience with KiCad, I used this port to
> > > practice more on working with ports.
> > > 
> > > For cad/kicad-share portcheck, 'make lib-depends-check' and 'make
> > > test (no tests available) were fine.
> > > 
> > > Running 'make lib-depends-check' on cad/kicad reveals the following
> > > error:
> > > 
> > > --- snip ---
> > > openbsd-ports$ make port-lib-depends-check
> > >  
> > > 
> > > kicad-6.0.2v0(cad/kicad):
> > > Bogus WANTLIB: harfbuzz.16
> > > (/usr/local/lib/python3.9/site-packages/_pcbnew.so) (NOT REACHABLE)
> > > *** Error 1 in target 'port-lib-depends-check' (ignored) --- snap
> > > ---
> > > 
> > > Removing harfbuzz from WANTLIB does only state that harfbuzz is
> > > missing. I'm unsure how to proceed.
> > > 
> > > Feedback? Comments?
> > > 
> > > Thanks!
> > > 
> > > -- 
> > > greetings,
> > > 
> > > Florian Viehweger
> > 
> > Florian, thanks for the diffs. The kicad-share diff was incomplete,
> > but I fixed it up for you and committed the updates. Appreciate the
> > help.
> 
> Thank you!
> 
> I completely deleted my ports tree and it fixed the problem with
> harfbuzz.
> 
> After doing port work I run this command, which should clean out
> everything:
> 
> make clean && make clean=depends && make clean=dist && make clean=all && doas 
> pkg_delete -X -I -v -m && doas pkg_delete -a && doas pkg_add -v quirks 
> pkglocatedb

The only thing here removing locally built or cached packages is
"make clean=all" which will only remove those which match the version
number in the ports tree.

You may want to remove /usr/ports/packages/$ARCH/*/*.

Additionally (can't tell from what you've shown) but if you use
FETCH_PACKAGES and the mirror doesn't have pkgs matching your ports
tree (bearing in mind that for a recently updated port, they might
not have been _built_ at the time you run it, let alone propagated
to mirrors) then it can fail too.

> Additionally to that, before I start something new, this is my script
> to bring my system up to date:
> 
> ---
> #!/bin/sh
> pkg_delete -X -I -v -m
> pkg_delete -a
> sysupgrade -s -n -f
> echo 'pkg_add -v quirks pkglocatedb' >> /etc/rc.firsttime
> reboot
> ---

If something is messed up in /var/db/pkg (such as may happen after a
crash) this may still leave things.

fwiw, this is what I'm using these days to clean after a build:

pkg_delete -V -cqX /var/db/pkg/*-firmware-[0-9]*
rm -rf /usr/local/* /usr/obj/* /pobj/* /tmp/LibreOffice \
        /var/www/{bin/femail,pear,lib,xinha,rt3,conf/php*} \
        {/var,/var/spool,/etc}/postfix /etc/machine-id \
        /var/db/pkg/.[!.]*
mtree -qdef /etc/mtree/4.4BSD.dist -p / -U > /dev/null
mkdir -p /usr/local/lib/X11
ln -fs /etc/X11/app-defaults /usr/local/lib/X11/app-defaults
ldconfig -RU

Reply via email to