Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Dec 2022 00:07:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 268133] x11-clocks/wmclockmon: patch to port , change in Makefile to work with gtk20
Message-ID:  <bug-268133-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268133

            Bug ID: 268133
           Summary: x11-clocks/wmclockmon: patch to port , change in
                    Makefile to work with gtk20
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: list@understudy.net

Created attachment 238495
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238495&action=
=3Dedit
Updated Makefile

Short notes:
replacing gtkconfig w/ gtk20 pkgconfig
linux build against gtk 2 patch=20
edit Makefile to gtk20 and added cflags -fcommon
post patch 2 lines

Long Notes
GTK20 was installed separately as port.=20
A linux patch from:=20
https://salsa.debian.org/wmaker-team/wmclockmon/-/blob/master/debian/patche=
s/build_against_gtk2.patch
was added.=20

The Makefile was modified to use gtk20 and we added a CFLAGS=3D-fcommon
The post patch of the Makefile was added to have this:
post-patch:
        @${REINPLACE_CMD} -e 's|gtk-config|pkgconf gtk+-2.0 --cflags|g'\
                ${WRKSRC}/wmclockmon-config/Makefile.in
         @${REINPLACE_CMD} -e 's|gtk-config|pkgconf gtk+-2.0 --cflags|g'\
                ${WRKSRC}/wmclockmon-cal/Makefile.in

# pwd
/usr/ports/x11-clocks/wmclockmon
# cp ~/Downloads/build_against_gtk2.patch /usr/ports/x11-clocks/wmclockmon/
# cd work/wmclockmon-0.8.1/
# patch -p1 -b < ../../build_against_gtk2.patch
# cd ../
# make makepatch
# cd files
# ls -a
# cd ../
# make VERBOSE=3DYES MAKE_JOBS_NUMBER=3D1 WITH_DEBUG=3DYES build
# make install

The port is still marked as BROKEN because this as I was informed was simil=
ar
to getting it to work with bandages and duct tape. Further suggestions for
improvement are welcome.=20

Contributions and Thanks to Discord FreeBSD users jsm and Shaw for their
assistance with this.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268133-7788>