From: trondd@kagu-tsuchi.com Subject: Re: net/gpodder: fix Exec= path in .desktop files To: ports@openbsd.org Date: Thu, 8 Feb 2024 09:55:54 -0500 > From kn@openbsd.org Thu Feb 8 05:47:58 2024 > > __PREFIX__ expands to PREFIX which includes WRKDIR during fake. > > One easy fix is to replace it with TRUEPREFIX aka. /usr/local > after the fact; that fixes startup via desktop menu entries. > > I did not see an easy way to pass the proper prefix to just those > .desktop.in files as they seem to be handled during general setup.py > install along with all other files. > > Feedback? OK? Ah, thanks. I don't use a DE and never use these files. Looks like this does the job. The change is fine by me. I'll try to remember to keep an eye on these on future updates. Tim. > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/net/gpodder/Makefile,v > diff -u -p -r1.39 Makefile > --- Makefile 9 Jan 2024 01:21:47 -0000 1.39 > +++ Makefile 8 Feb 2024 10:55:16 -0000 > @@ -1,6 +1,7 @@ > COMMENT= media aggregator and podcast client > > MODPY_EGG_VERSION= 3.11.4 > +REVISION= 0 > > GH_ACCOUNT= gpodder > GH_PROJECT= gpodder > @@ -51,6 +52,8 @@ TEST_TARGET= unittest > do-install: > cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DESTDIR=/ ${MAKE_PROGRAM} \ > -f ${MAKE_FILE} install > + sed -i s,${PREFIX},${TRUEPREFIX}, \ > + ${PREFIX}/share/applications/*.desktop > ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \ > ${PREFIX}/share/gpodder/extensions/ > > > >