From owner-freebsd-ports@freebsd.org Tue Nov 7 03:27:14 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 862F8E709A6 for ; Tue, 7 Nov 2017 03:27:14 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51AD174962; Tue, 7 Nov 2017 03:27:14 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io0-x230.google.com with SMTP id f20so644894ioj.9; Mon, 06 Nov 2017 19:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wkPnUJUS4gJ4nFpaZMayu+2V4RV9thmZ6zVDLon87Hc=; b=qaPlurf5/iKxBsjm+zSVxgnQpg5jleZBJLBtNXnZ6vJTMurcFWKK7jHItGK0XT/s3A bgqf4ygiIFTAYa21Ou1wBbRibBYXNsdVw5nRegtP1AWdnRwD9FjO0qmwv6zDI6knlAO7 +CqU70NsIZjjQ83dEZAmq5OJO/dvBi7Dp106fm7XcvkvOiS1a9YMWuuOglrZJNT5qiLf QNsIL9n2sZFL6PQBPWEcjuRp3tngv9UarR19XXIaoNFt3Qw/9dOIft9T2RKgx8dm3QrN foOjpYPLC4V/zLJ7p7OI0gCa/Dd4nv87Q2FoMtgycDhCjO99aL2T4VZWF2Gns2JZ9YxO gk/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wkPnUJUS4gJ4nFpaZMayu+2V4RV9thmZ6zVDLon87Hc=; b=FsihUoryPY5AzNMjfCnkhNE2pEf4m0uJ0FPKdRCLbCO3pwQObil3ExWbXOtRMLH6+G e8APFQJkCuxWls17wPFSXb4q4eEJnxCeAL8QCIzCydPw2Qpj0sgn1F63YnKuUsP5WtIP CKiejxKNuipiVLD4NwVAfJqdOO2wOpm4a7c9F3Re3qnZ5MigEpukJc/e6jn/ktrsb/aq JXxr6xZUBndNg6GvUwhk27rQIFg59JhkGzUOmZQejSHyz34Dggt/6n5s0mNUK58eINSu VYB6Yyb8euZRgzY+AfYEHBU71Ec7ycrm+aLqohak9JxIzUFkJ4gsNBNAuQxRGFEHmxbM b0fA== X-Gm-Message-State: AMCzsaUwlKnoq+1VbokbL1bi4Mzm8i2zKk+woNYvY/plZkf945rbzeCa /HQKbIJElYcrO2B9obmSzGlqaeAjMpV8kJCKqUM= X-Google-Smtp-Source: ABhQp+Ro+OUPCamU820a+N+GJtSIFkDNrcIouhDep2yxsBJUY2vYJgvghcO+4618kZry6QgpD21EhWB6u7+ESP6tiqw= X-Received: by 10.107.104.12 with SMTP id d12mr21916353ioc.296.1510025233217; Mon, 06 Nov 2017 19:27:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Mon, 6 Nov 2017 19:27:12 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Tue, 7 Nov 2017 11:27:12 +0800 Message-ID: Subject: Re: devel/py3-gobject3 fails to build To: Mathieu Arnold Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2017 03:27:14 -0000 is this a problem with my setup or is this a bug in the port? Can anyone test it out and provide some assistance? On Tue, Nov 7, 2017 at 3:50 AM, blubee blubeeme wrote= : > I just did another test in a clean jail with no python installed. I went > into the /deve/py3-gobject3/ directory and ran make > > libtool: install: /usr/bin/install -c .libs/libxcb-render-util.a > /usr/ports/x11/xcb-util-renderutil/work/stage/usr/ > local/lib/libxcb-render-util.a > libtool: install: strip --strip-debug /usr/ports/x11/xcb-util- > renderutil/work/stage/usr/local/lib/libxcb-render-util.a > libtool: install: chmod 644 /usr/ports/x11/xcb-util- > renderutil/work/stage/usr/local/lib/libxcb-render-util.a > libtool: install: ranlib /usr/ports/x11/xcb-util- > renderutil/work/stage/usr/local/lib/libxcb-render-util.a > libtool: install: warning: remember to run `libtool --finish > /usr/local/lib' > /bin/mkdir -p '/usr/ports/x11/xcb-util-renderutil/work/stage/usr/ > local/libdata/pkgconfig' > install -m 0644 xcb-renderutil.pc '/usr/ports/x11/xcb-util- > renderutil/work/stage/usr/local/libdata/pkgconfig' > /bin/mkdir -p '/usr/ports/x11/xcb-util-renderutil/work/stage/usr/ > local/include/xcb' > install -m 0644 xcb_renderutil.h '/usr/ports/x11/xcb-util- > renderutil/work/stage/usr/local/include/xcb' > gmake[8]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9/renderutil' > gmake[7]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9/renderutil' > gmake[7]: Entering directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > gmake[8]: Entering directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > gmake[8]: Nothing to be done for 'install-exec-am'. > gmake[8]: Nothing to be done for 'install-data-am'. > gmake[8]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > gmake[7]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > gmake[6]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > gmake[5]: Leaving directory '/usr/ports/x11/xcb-util- > renderutil/work/xcb-util-renderutil-0.3.9' > =3D=3D=3D=3D> Compressing man pages (compress-man) > =3D=3D=3D> Installing for xcb-util-renderutil-0.3.9_1 > =3D=3D=3D> Checking if xcb-util-renderutil already installed > =3D=3D=3D> Registering installation for xcb-util-renderutil-0.3.9_1 as > automatic > [worker] Installing xcb-util-renderutil-0.3.9_1... > =3D=3D=3D> cairo-1.14.8_1,2 depends on file: /usr/local/libdata/pkgconf= ig/xcb-renderutil.pc > - found > =3D=3D=3D> Returning to build of cairo-1.14.8_1,2 > =3D=3D=3D> cairo-1.14.8_1,2 depends on package: pkgconf>=3D1.3.0_1 - fo= und > =3D=3D=3D> cairo-1.14.8_1,2 depends on file: /usr/local/lib/libGL.so - = not > found > =3D=3D=3D> mesa-libs-17.2.2 needs Python 2.7 at most, but 3.6 was specif= ied. > *** Error code 1 > > Stop. > make[4]: stopped in /usr/ports/graphics/mesa-libs > *** Error code 1 > > Stop. > make[3]: stopped in /usr/ports/graphics/cairo > *** Error code 1 > > Stop. > make[2]: stopped in /usr/ports/graphics/cairo > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/graphics/py3-cairo > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/py3-gobject3 > > This is the error that comes up when trying to compile devel/py3-gobject3 > port. mesa-libs needed by cairo cannot be built with python > 2.7 > > > On Tue, Nov 7, 2017 at 3:41 AM, blubee blubeeme > wrote: > >> I am porting an ibus library that needs >> Python >=3D 3.2 >> the Python 3 GObject bindings >> IBus >=3D 1.4.1 (note that its GObject-Introspection bindings must be >> enabled) >> >> I've done this to my makefile: >> PORTNAME=3D ibus-cangjie >> PORTVERSION=3D 2.4 >> DISTVERSIONPREFIX=3D v >> CATEGORIES=3D chinese >> >> MAINTAINER=3D hello@blubee.me >> COMMENT=3D Sophisticated software synthesizer >> >> LICENSE=3D GPLv2+ >> LICENSE_FILE=3D ${WRKSRC}/COPYING >> >> RUN_DEPENDS=3D ${PREFIX}/lib/python3.6/site- >> packages/cangjie/_core.so:chinese/pycangjie \ >> py3?-gobject3>=3D0:devel/py3-gobject3 >> >> LIB_DEPENDS=3D libibus-1.0.so:textproc/ibus >> >> USES=3D autoreconf gmake \ >> libtool pkgconfig \ >> python:2.7,build >> >> # USE_GNOME=3D glib20 gtk30 pygobject3 introspection:run #=3D=3D=3D= =3D#this >> fails because cairo requires <=3D py2.7 >> USE_GNOME=3D introspection >> >> GNU_CONFIGURE=3D yes >> USE_LDCONFIG=3D yes >> >> USE_GITHUB=3D yes >> GH_ACCOUNT=3D Cangjians >> GH_PROJECT=3D ibus-cangjie >> >> .include >> pre-configure: >> @(cd ${WRKSRC} && ./autogen.sh) >> .include >> >> >> This project doesn't build with python > 2.7 because ibus will fail, so = I >> added the run dependency but I don't know what to add to get the >> introspection, if I add USE_GNOME that pulls in cairo, which then fails >> because cairo needs python 2.7 or below. >> >> pycangjie makefile looks like this: >> BUILD_DEPENDS=3D cython3>0:lang/cython3 >> LIB_DEPENDS=3D libcangjie.so:chinese/libcangjie >> >> USES=3D autoreconf gmake \ >> libtool pkgconfig \ >> localbase python:3.6 \ >> sqlite >> >> BINARY_ALIAS=3D cython=3Dcython-3.6 >> GNU_CONFIGURE=3D yes >> USE_LDCONFIG=3D yes >> >> USE_GITHUB=3D yes >> GH_ACCOUNT=3D Cangjians >> GH_PROJECT=3D pycangjie >> >> .include >> pre-configure: >> @(cd ${WRKSRC} && ./autogen.sh) >> # post-build: >> post-install: >> (cd ${STAGEDIR}${PREFIX} \ >> && ${PYTHON_CMD} ${PYTHON_LIBDIR}/*.py \ >> -d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) >> @(${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PYT >> HON_VERSION}/site-packages/cangjie/*.so) >> >> .include >> >> I get this compilation error below >> >> checking for python3 platform... freebsd12 >> checking for python3 script directory... ${prefix}/lib/python3.6/site-p >> ackages >> checking for python3 extension module directory... >> ${exec_prefix}/lib/python3.6/site-packages >> checking the cangjie Python module... yes >> checking for pkg-config... /usr/local/bin/pkg-config >> checking pkg-config is at least version 0.9.0... yes >> checking for IBus... yes >> checking for IBus component dir... /usr/local/share/ibus/component >> checking the IBus introspection-based bindings... no >> configure: error: Please install the IBus introspection-based bindings >> *** Error code 1 >> >> I've been trying to get this to work from ports for the past two days an= d >> nothing that i've tried seems to work, especially since building and >> running requires 2 versions of python. >> >> how can I setup the introspection-based bindings? >> >> On Tue, Nov 7, 2017 at 3:30 AM, Mathieu Arnold wrote: >> >>> Le 06/11/2017 =C3=A0 19:53, blubee blubeeme a =C3=A9crit : >>> > When trying to build a port and including py3-gobject3 either through= : >>> > USE_GNOME=3D py3gobject3 >>> > or >>> > RUN_DEPENDS=3D py3-gobject3:devel/py3-gobject3 >>> > >>> > the build will fail because py3-gobject3 needs cairo but cairo cannot >>> build >>> > with python > 2.7 >>> > >>> > Is this a bug in the port or am I doing something wrong? >>> >>> As it all works fine for everybody else, I'm sure you must be doing >>> something wrong. graphics/cairo does not need python, py3-gobject3 >>> depends on py3-cairo which builds fine with Python 3. >>> >>> Please, provide logs of what you are doing, and where it fails, >>> otherwise, nobody can try to figure out what you are doing wrong. >>> >>> -- >>> Mathieu Arnold >>> >>> >>> >> >