On 2022/11/16 19:29:17 +0000, Klemens Nanni <k...@openbsd.org> wrote:
> On Mon, Nov 14, 2022 at 07:41:01PM +0100, Omar Polo wrote:
> > Hello ports,
> > 
> > this updates picom to the latest release.  I've tested brieflily the
> > previous RCs too, seems to work fine here with the default config.
> > 
> > I had to disable the opengl backend because it fails to build due to
> > an undefined symbol glEGLImageTargetTexStorageEXT, no idea about it.
> > 
> > this updates also install an autostart.  i only use xenodm and cwm,
> > don't know how that works with DEs
> 
>       ===>  Building package for picom-10
>       ...
>       Error: 
> /usr/ports/pobj/picom-10/fake-amd64/usr/local/share/examples/picom/picom.desktop
>  does not exist
>       pkg_create: can't continue
> 
>       $ find `make show=WRKINST` -name \*.desktop
>       /usr/ports/pobj/picom-10/fake-amd64/etc/xdg/autostart/picom.desktop
>       
> /usr/ports/pobj/picom-10/fake-amd64/usr/local/share/applications/picom.desktop
> 
> Looks like the port installed it to the fake /etc itself.

yes, with this update it tries to install picom.desktop into
/etc/xdg/autostart.  I forgot to 'cvs add' a patch (that also neuters
some pointless git checking) before sending the email, sorry.

I haven't found another way other than patching.
MODMESON_CONFIGURE_ARGS already has --sysconfdir=${SYSCONFDIR} and
meson doesn't like this flag to be provided more than once.

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/x11/picom/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    11 Mar 2022 20:16:55 -0000      1.7
+++ Makefile    16 Nov 2022 21:17:15 -0000
@@ -2,14 +2,14 @@ COMMENT =     lightweight compositor for X11
 
 GH_ACCOUNT =   yshui
 GH_PROJECT =   picom
-GH_TAGNAME =   v9.1
+GH_TAGNAME =   v10
 
 CATEGORIES =   x11
 
 # MPL 2.0
 PERMIT_PACKAGE =       Yes
 
-WANTLIB += GL X11 X11-xcb c config dbus-1 ev m pcre pixman-1
+WANTLIB += X11 X11-xcb c config dbus-1 ev m pcre pixman-1
 WANTLIB += xcb-composite xcb-damage xcb-glx xcb-image xcb-present
 WANTLIB += xcb-randr xcb-render-util xcb-render xcb-shape xcb-sync
 WANTLIB += xcb-xfixes xcb-xinerama xcb
@@ -34,6 +34,13 @@ LIB_DEPENDS =                devel/libconfig \
 CONFIGURE_ARGS +=      -Dwith_docs=true \
                        -Dunittest=true \
                        -Dcompton=false
+
+# fails to build with:
+# ld: error: undefined symbol: glEGLImageTargetTexStorageEXT
+# >>> referenced by egl.c
+# >>>               src/picom.p/backend_gl_egl.c.o:(egl_bind_pixmap)
+CONFIGURE_ARGS +=      -Dopengl=false
+
 CONFIGURE_ENV  +=      CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
                        LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
 
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/x11/picom/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    14 Feb 2022 13:04:05 -0000      1.4
+++ distinfo    14 Nov 2022 18:31:05 -0000
@@ -1,2 +1,2 @@
-SHA256 (picom-9.1.tar.gz) = hwCscb1JbJEmLIV24pyzrs8rTvSMBDlKkpUJ08s3uH0=
-SIZE (picom-9.1.tar.gz) = 263924
+SHA256 (picom-10.tar.gz) = 6EAwTDKfB5cgWWMwKJTFXhHXfPUaIsCnIINEzm/Qojg=
+SIZE (picom-10.tar.gz) = 286728
Index: pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/x11/picom/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- pkg/PLIST   11 Mar 2022 20:16:55 -0000      1.3
+++ pkg/PLIST   12 Nov 2022 08:19:37 -0000
@@ -4,6 +4,8 @@ bin/picom-trans
 @man man/man1/picom.1
 share/applications/picom.desktop
 share/examples/picom/
+share/examples/picom/picom.desktop
+@sample ${SYSCONFDIR}/xdg/autostart/picom.desktop
 share/examples/picom/picom.sample.conf
 share/icons/hicolor/48x48/apps/picom.png
 share/icons/hicolor/scalable/apps/picom.svg
Index: patches/patch-meson_build
===================================================================
RCS file: patches/patch-meson_build
diff -N patches/patch-meson_build
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-meson_build   16 Nov 2022 21:30:15 -0000
@@ -0,0 +1,31 @@
+don't look for git
+install picom.desktop in share/examples
+
+Index: meson.build
+--- meson.build.orig
++++ meson.build
+@@ -6,15 +6,6 @@ cc = meson.get_compiler('c')
+ # use project version by default
+ version = 'v'+meson.project_version()
+ 
+-# use git describe if that's available
+-git = find_program('git', required: false)
+-if git.found()
+-      gitv = run_command('git', 'rev-parse', '--short=5', 'HEAD', check: 
false)
+-      if gitv.returncode() == 0
+-              version = 'vgit-'+gitv.stdout().strip()
+-      endif
+-endif
+-
+ add_global_arguments('-DPICOM_VERSION="'+version+'"', language: 'c')
+ 
+ if get_option('buildtype') == 'release'
+@@ -73,7 +64,7 @@ subdir('man')
+ 
+ install_data('bin/picom-trans', install_dir: get_option('bindir'))
+ install_data('picom.desktop', install_dir: 'share/applications')
+-install_data('picom.desktop', install_dir: get_option('sysconfdir') / 'xdg' / 
'autostart')
++install_data('picom.desktop', install_dir: 'share/examples/picom')
+ 
+ if get_option('compton')
+       install_data('compton.desktop', install_dir: 'share/applications')

Reply via email to