Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: fix lumina build on sparc64
To:
Theo Buehler <tb@theobuehler.org>
Cc:
ports@openbsd.org
Date:
Tue, 27 Jan 2026 14:16:16 +0100

Download raw body.

Thread
Le Tue, Jan 27, 2026 at 02:02:54PM +0100, Theo Buehler a écrit :
> On Tue, Jan 27, 2026 at 01:51:55PM +0100, Claudio Jeker wrote:
> > x11/lumina does not build on sparc64 because the configure scripts use the
> > wrong compiler and fail. The problem is that the PATH variable does not
> > include the ports bin dir with the compiler links.
> > 
> > I came up with this diff which works for me.
> > I guess the pre-configure hunk is not needed since it only uses sed.
> > I'm a bit surprised that the PATH needs to be manually set like this.
> 
> I think it's because the custom do-configure doesn't include the
> default environment. See below.
> 
> > 
> > -- 
> > :wq Claudio
> > 
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvs/ports/x11/lumina/Makefile,v
> > diff -u -p -r1.41 Makefile
> > --- Makefile	14 Mar 2025 15:31:28 -0000	1.41
> > +++ Makefile	27 Jan 2026 12:47:38 -0000
> > @@ -42,11 +42,13 @@ FAKE_FLAGS=		INSTALL_ROOT=${DESTDIR}/
> >  NO_TEST=		Yes
> >  
> >  pre-configure:
> > +	@PATH=${PORTPATH};			\
> >  	sed -i -e "s,!!LOCALBASE!!,${LOCALBASE}," \
> >  		-e "s,!!SYSCONFDIR!!,${SYSCONFDIR}," \
> >  		${WRKSRC}/src-qt5/OS-detect.pri
> >  
> >  do-configure:
> > +	@PATH=${PORTPATH};			\
> >  	cd ${WRKSRC} && ${LOCALBASE}/bin/qmake-qt5 \
> 
> It'll take some time for me to test this, but I'd expect this to work:
> 
>   	cd ${WRKSRC} && env -i ${MAKE_ENV} ${LOCALBASE}/bin/qmake-qt5 \

yeah that's the more correct variant, or even ${SETENV} ${MAKE_ENV}