Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#54094 closed submission (fixed)

Add xcb-util-xrm

Reported by: jenstroeger (Jens Troeger) Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: xorg-xcb-util-xrm

Description (last modified by mf2k (Frank Schima))

I’m trying to build i3 from source (there is no MacPort support for it, but ticket:52596) and that requires the xcb-util-xrm library. Considering there are already several xcb-util-* ports, it would make sense to add this one as well.

Attachments (4)

Portfile (1003 bytes) - added by mf2k (Frank Schima) 6 years ago.
Portfile.2 (1.1 KB) - added by mf2k (Frank Schima) 6 years ago.
patch-configure.ac.diff (279 bytes) - added by mf2k (Frank Schima) 6 years ago.
Portfile.3 (944 bytes) - added by jens-maus (Jens Maus) 6 years ago.
functional Portfile to compile xorg-xcb-util-xrm without any patches

Download all attachments as: .zip

Change History (18)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Port: xorg-xcb-util-xrm added

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile added

comment:3 Changed 6 years ago by mf2k (Frank Schima)

First attempt. Not configuring yet.

:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_x11_xorg-xcb-util-xrm/xorg-xcb-util-xrm/work/xcb-util-xrm-1.3" && autoreconf --install --verbose 
:info:configure autoreconf: Entering directory `.'
:info:configure autoreconf: configure.ac: not using Gettext
:info:configure autoreconf: running: /opt/local/bin/aclocal -I m4
:info:configure autoreconf: configure.ac: tracing
:info:configure autoreconf: configure.ac: not using Libtool
:info:configure autoreconf: running: /opt/local/bin/autoconf
:info:configure autoreconf: configure.ac: not using Autoheader
:info:configure autoreconf: running: /opt/local/bin/automake --add-missing --copy --no-force
:info:configure configure.ac:10: installing './compile'
:info:configure configure.ac:12: installing './install-sh'
:info:configure configure.ac:12: installing './missing'
:info:configure Makefile.am:24: error: Libtool library used but 'LIBTOOL' is undefined
:info:configure Makefile.am:24:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
:info:configure Makefile.am:24:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
:info:configure Makefile.am:24:   If 'LT_INIT' is in 'configure.ac', make sure
:info:configure Makefile.am:24:   its definition is in aclocal's search path.
:info:configure Makefile.am: installing './depcomp'
:info:configure Makefile.am:35: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
:info:configure Makefile.am:26: error: 'xcbinclude_HEADERS' is used but 'xcbincludedir' is undefined
:info:configure parallel-tests: installing './test-driver'
:info:configure autoreconf: /opt/local/bin/automake failed with exit status: 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_x11_xorg-xcb-util-xrm/xorg-xcb-util-xrm/work/xcb-util-xrm-1.3" && autoreconf --install --verbose 

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile.2 added

Changed 6 years ago by mf2k (Frank Schima)

Attachment: patch-configure.ac.diff added

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Updated Portfile attached that gets past the libtool error but hits another one.

comment:5 Changed 6 years ago by mf2k (Frank Schima)

:info:configure Makefile.am: installing './depcomp'
:info:configure Makefile.am:35: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
:info:configure Makefile.am:26: error: 'xcbinclude_HEADERS' is used but 'xcbincludedir' is undefined
:info:configure parallel-tests: installing './test-driver'
:info:configure autoreconf: /opt/local/bin/automake failed with exit status: 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_x11_xorg-xcb-util-xrm/xorg-xcb-util-xrm/work/xcb-util-xrm-1.3" && autoreconf --install --verbose 

comment:6 Changed 6 years ago by mf2k (Frank Schima)

Type: requestsubmission

Changed 6 years ago by jens-maus (Jens Maus)

Attachment: Portfile.3 added

functional Portfile to compile xorg-xcb-util-xrm without any patches

comment:7 Changed 6 years ago by jens-maus (Jens Maus)

I just worked on getting this i3 required library compiled with MacPorts myself. Please use the latest Profile to compile xorg-xcb-util-xrm out of the box without requiring any patches. Works here flawlessly.

comment:8 Changed 6 years ago by mf2k (Frank Schima)

Thanks. But please go back to using the GitHub portgroup like I did in my Portfile.2 attachment.

comment:9 Changed 6 years ago by jens-maus (Jens Maus)

No, with GitHub it breaks like you have experienced because you need to run autoconf because no ready-to-use configure file is supplied in the GitHub repository. IMHO it should be perfectly sufficient to use the official tar.bz2 released by the author of xcb-util-xrm.

comment:10 Changed 6 years ago by mf2k (Frank Schima)

You are missing the point of the GitHub portgroup. It will download official tar.bz2 releases. It just simplifies the process for you.

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)

comment:11 Changed 6 years ago by mf2k (Frank Schima)

If I get some spare time, I will convert it and verify that it works.

comment:12 Changed 6 years ago by joekiller (Joseph Lawson)

I was unable to get the GitHub portgroup version to work. Like @jens-maus I had to go with the dist tar.xz

comment:13 Changed 5 years ago by mf2k (Frank Schima)

Owner: set to mf2k
Resolution: fixed
Status: newclosed

In 21e2952204e3d4144c85b0c73b04bd95b6177029/macports-ports (master):

xorg-xcb-util-xrm: New port

Closes: #54094

comment:14 Changed 5 years ago by mf2k (Frank Schima)

Sorry for the long delay on this. I used the GitHub portgroup and found a missing dependency.

Note: See TracTickets for help on using tickets.