Friday, October 26, 2018

Re: Question on Python3 runtime option for jgmenu/pmenu

"NOT REACHABLE" means you don't have a LIB_DEPENDS path to reach a library
used in WANTLIB. Start by adding x11/gnome/librsvg and then see how it looks.

menu-cache has an entry in WANTLIB, it should be moved from RUN_DEPENDS to
LIB_DEPENDS.

Replace this

V= 1.4
CATEGORIES= x11
DISTNAME= jgmenu-${V}
GH_ACCOUNT= johanmalm
GH_PROJECT= jgmenu
GH_TAGNAME= v${V}

With this

CATEGORIES= x11
GH_ACCOUNT= johanmalm
GH_PROJECT= jgmenu
GH_TAGNAME= v1.4


--
Sent from a phone, apologies for poor formatting.

On 25 October 2018 23:22:27 "Heppler, J. Scott" <shep971@centurylink.net>
wrote:

> CONFIGURE_STYLE= none solved the main problem. It should be ready to
> test once lib_depends/WANTLIBS are resolved.
>
> I'm getting mixed messages on the WANTLIBs
> Tigger# make port-lib-depends-check
>
> jgmenu-1.4(x11/jgmenu): Bogus WANTLIB: cairo.13
> (/usr/local/lib/jgmenu/jgmenu) (NOT REACHABLE) Bogus WANTLIB:
> pango-1.0.3800 (/usr/local/lib/jgmenu/jgmenu) (NOT REACHABLE) Bogus
> WANTLIB: pangocairo-1.0.3800 (/usr/local/lib/jgmenu/jgmenu) (NOT
> REACHABLE) Bogus WANTLIB: rsvg-2.39 (/usr/local/lib/jgmenu/jgmenu) (NOT
> REACHABLE) *** Error 1 in target 'port-lib-depends-check' (ignored)
> Tigger# make print-package-args -P
> devel/desktop-file-utils:desktop-file-utils-*:desktop-file-utils-0.23p9
> -P
> x11/gtk+3,-guic:gtk-update-icon-cache-*:gtk-update-icon-cache-3.22.30p1
> -P x11/menu-cache:menu-cache-*:menu-cache-1.1.0p0 -P
> lang/python/3.6,-main:python->=3.6,<3.7:python-3.6.6p1 Missing library
> for cairo>=0.0 Missing library for pango-1.0>=0.0 Missing library for
> pangocairo-1.0>=0.0 Missing library for rsvg-2>=0.0 *** Error 1 in
> /usr/ports/x11/jgmenu (/usr/ports/infrastructure/mk/bsd.port.mk:3286
> 'port-wantlib-args')
>
> Which one to believe and which is fake-news?
>
> Makefile for reference:
>
> # $OpenBSD: Makefile.template,v 1.78 2018/07/09 15:00:06 jca Exp $
>
> COMMENT= freedesktop-compliant menu for openbox and tint2
>
> V= 1.4
> CATEGORIES= x11
> DISTNAME= jgmenu-${V}
> GH_ACCOUNT= johanmalm
> GH_PROJECT= jgmenu
> GH_TAGNAME= v${V}
>
> # GPLv2 only
> PERMIT_PACKAGE_CDROM= Yes
>
> MODULES= lang/python
> MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
> MODPY_SETUPTOOLS= No
> MODPY_BUILDDEP= No
>
> WANTLIB+= X11 Xrandr c cairo gdk_pixbuf-2.0 gio-2.0
> WANTLIB+= glib-2.0 gobject-2.0 iconv intl lzma m
> WANTLIB+= menu-cache pango-1.0 pangocairo-1.0 png
> WANTLIB+= pthread rsvg-2 xml2 z
>
> BUILD_DEPENDS= x11/menu-cache
>
> USE_GMAKE= Yes
>
> CONFIGURE_STYLE= None
>
> RUN_DEPENDS= devel/desktop-file-utils \
> x11/gtk+3,-guic \
> x11/menu-cache
>
> .include <bsd.port.mk>
>
> Scott H.
>
> On Oct 25, 2018: 20:28, Stuart Henderson wrote:
>> On 2018/10/25 20:33, Klemens Nanni wrote:
>>> On Thu, Oct 25, 2018 at 09:43:02AM -0700, Heppler, J. Scott wrote:
>>>> Upstream tagged 1.4 and I'm still struggling with the python3 rdep.
>>>>
>>>>
>>>> MODULES= lang/python
>>>> MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
>>>>
>>>>
>>>> stops "make build" with the error: can't find ./setup.py
>>>>
>>>>
>>>> No setup.py exists in the upstream code.
>>> See port-modules(5) where MODPY_SETUPTOOLS is documented.
>>>
>>>> python3 is not a build dependency and is only needed if
>>>> "jgmenurc pmenu" is invoked.
>>>> https://github.com/johanmalm/jgmenu/blob/master/INSTALL.md#dependencies
>>> MODPY_BUILDDEP
>>>
>>>> Johan Malm tells me that python3 is just used to produce text output.
>>>>
>>>>
>>>> My understanding is that "MODULES" appends to BUILD_DEPENDS,
>>>> RUN_DEPENDS, LIB_DEPENDS and WANTLIB but for this port only RUN_DEPENDS
>>>> is needed. Would the most concise way to deal with the RUN_DEPENDS be
>>>> to fully specify lang/python3 in RUN_DEPENDS. I've looked at other
>>>> recent, python based ports and have not found a similar, python3
>>>> RUN_DEPENDS. The closest seems to be productivity/calcurse.
>>>>
>>>>
>>>> Or use MODULES and disable the appending of BUILD_DEPENDS, LIB_DEPENDS
>>>> and WANTLIB?
>>>>
>>>>
>>>> What I have currently:
>>>>
>>>>
>>>> # $OpenBSD: Makefile.template,v 1.78 2018/07/09 15:00:06 jca Exp $
>>>>
>>>>
>>>> COMMENT= freedesktop-complaint menu for openbox and tint2
>>>>
>>>>
>>>> V= 1.4
>>>> CATEGORIES= x11
>>>> DISTNAME= jgmenu-${V}
>>>> HOMEPAGE= https://github.com/johanmalm/jgmenu
>>>> GH_ACCOUNT= johanmalm
>>>> GH_PROJECT= jgmenu
>>> Just set GH_TAG=v1.4 instead of V, HOMEPAGE and MASTER_SITES.
>>
>> Oh yes I missed that. It's GH_TAGNAME though, and here it will also replace
>> DISTNAME.

No comments:

Post a Comment