On Wed, Nov 19, 2025 at 01:20:49PM -0700, Stuart Henderson wrote:
> CVSROOT:      /cvs
> Module name:  ports
> Changes by:   [email protected]   2025/11/19 13:20:49
> 
> Modified files:
>       net/unifi/main : Makefile distinfo 
>       net/unifi/main/pkg: PLIST 
> 
> Log message:
> update to unifi-10.0.156
> 
> fix dir of snappy-java when overriding with a version built for
> OpenBSD/amd64; it moved a while ago upstream but I didn't notice.
> if you had any problems with APs not adopting this may be why.

Something is not quite right with this update. If I run "make update" in
/usr/ports/net/unifi/main, I get an error when building the package.

===>  Building package for unifi-10.0.156
Create /usr/ports/packages/amd64/all/unifi-10.0.156.tgz
Creating package unifi-10.0.156
checksumming|***                                                                
                                   | 3%
Error: 
/usr/ports/pobj/unifi-10.0.156/fake-amd64/usr/local/share/unifi/lib/local/snappy-java-1.1.10.5-jdk17-libc++.12.0.jar
 does not exist
Warning: symlink(s) point to non-existent 
/usr/ports/pobj/unifi-10.0.156/fake-amd64/usr/local/bin/mongod
        
/usr/ports/pobj/unifi-10.0.156/fake-amd64/usr/local/share/unifi/bin/mongod
Warning: symlink(s) point to non-existent 
/usr/ports/pobj/unifi-10.0.156/fake-amd64/var/log/unifi
        /usr/ports/pobj/unifi-10.0.156/fake-amd64/usr/local/share/unifi/logs
pkg_create: can't continue
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2247 
'/usr/ports/packages/amd64/all/unifi-10.0.156.tgz': @trap "cd /usr/ports/pac...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2731 
'_internal-package': @case X${_DEPENDS_CACHE} in  X) _DEPENDS_CACHE=$( mktem...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2269 
'/usr/ports/update/amd64/unifi-10.0.156': @cd /usr/ports/net/unifi/main && P...)
*** Error 2 in /usr/ports/net/unifi/main 
(/usr/ports/infrastructure/mk/bsd.port.mk:2710 'update': @lock=unifi-10.0.156;  
export _LOCKS_HELD=...)


Manually doing:

cp /usr/ports/distfiles/snappy-java-1.1.10.5-jdk17-libc++.12.0.jar
/usr/ports/pobj/unifi-10.0.156/fake-amd64/usr/local/share/unifi/lib/local/

And then running "make update" again allows the package to be built. I'm
not sure how to cause that copy to happen automatically in ports but
that seems to be the issue. The snappy-java file was properly downloaded
as it was in distfiles but did not end up in the right place.

Bryan

Reply via email to