Solved Attempting to port a few libxcb utilities and windowmanagers

Trying to port fswm (full screen window manager from https://github.com/pbizopoulos/fswm) and other XCB window managers and programs. I got through many steps, but get errors after a successful make stage.

It fails on make install. The previous error of pkg-static: Unable to access file /opt/fswm/work/stage/bin/fswm:No such file or directory was fixed by correcting the location under PLIST_FILES.

I get an unexpected operator error on this and trying to compile other ports:
Code:
[: =: unexpected operator
, and it still fails on make install.

Here's updated Makefile:
Code:
PORTNAME=       fswm
DISTVERSION=    g20230808
CATEGORIES=     x11-wm

MAINTAINER=
COMMENT=        Full screen XCB window manager
WWW=            https://github.com/pbizopoulos

LICENSE=        MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libxcb-keysyms.so:x11/xcb-util-keysyms
USES=           xorg localbase
USE_GITHUB=     yes
GH_ACCOUNT=     pbizopoulos
GH_TAGNAME=     ce007a8
USE_XORG=       xcb
#OPTIONS_DEFINE=        DOCS
#PORTDOCS=      ${WRKSRC}/README

#HAS_CONFIG=    yes
MAKE_ARGS=      PREFIX=${PREFIX}

PLIST_FILES=    usr/local/bin/${PORTNAME}

do-build:
        ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/fswm.c -lxcb -lxcb-keysyms

do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>

Full error from make install:
Code:
===>  Installing for fswm-g20230808
===>  Checking if fswm is already installed
[: =: unexpected operator
===>   Registering installation for fswm-g20230808
[libxcb] Installing fswm-g20230808...
pkg-static: Invalid package: object has missing property prefix
pkg-static: the package is not valid
pkg-static: sqlite error while executing ROLLBACK TRANSACTION  in file pkgdb.c:1144: cannot rollback - no transaction is active
*** Error code 1

Stop.
make: stopped in /opt/fswm

This is in a Bastille jail, and I don't have anything in make.conf. I tried to see if it was environment settings, but when I moved other Makefiles into a custom location for building, they build correctly.
 
Last edited:
Back
Top