From owner-freebsd-ports@freebsd.org Mon Nov 6 19:41:15 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 7C2AFE66352 for ; Mon, 6 Nov 2017 19:41:15 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (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 427108099A; Mon, 6 Nov 2017 19:41:15 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id p138so6779165itp.2; Mon, 06 Nov 2017 11:41:15 -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=h5OhAqkwRJsFlrZy6lDjzcKN/krn28EjBu11Js9hI0c=; b=j/7mWw+Ec7Z6Tfe5kQkT/mWgHbZN/9cCGyrMF5jH5NYH2E+hetUZ+T6fLWwaJAkAnx sDCH8y/dUKqKNp/AlVOeSHGApaNGWKX8TzcfCYqVsxXDgZ5nj+b0/JgTxGvURk1vTNLg gcwDgDVIUECXYntN+bUSPrvqsO+HFZlmqLtC5OeOxYGCLAXH82lGsRfHnsiysvQKe6Gv P+vLwEqEPRA/v6rvABXlhPJZ17u0eC1KpjMuOZKt8m9XjK3GODRoWoxY4XEK04K0GnQJ EtjtML7OM6ku2frzM5tY1s4uMJNRbZ46RnRYgIbRqm39KxuerBOxrdXn12Lsu7m5H+Ef L8eA== 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=h5OhAqkwRJsFlrZy6lDjzcKN/krn28EjBu11Js9hI0c=; b=Rpjp5qLPt0lb6mdhQy/nMvmDNMEB2m1v9aUIOqLfO6Sa6kEws8+gpLW8PyRvLR9W1x 1UsgBHNqPLL0ZeXkqrDLKWAH8DcapvkAaEO/hvFParwXRqT7P7h5dpDzsBXenB2Tf569 QOBIMYJcFQU09tbV7HbAMnhnef3UUGdlBEhgfi55fofLz9FVhcAwGFmCsfx119yp4vtZ x+oWsvqMkCMAksh5JaBlcsoB1JburVck3wKG3cFNP3gr//zkb2R0yRpNkLXPfIRFsKsv 51IVSawCPA9t54UtYU4nr820aayuZRXSLaLbpOTNx2fQuxr7drw6B46j5TT6BPozhVO8 c/IQ== X-Gm-Message-State: AJaThX4zFNCOXDDmyH0yih00vhNGHO6RMz85n8nyTlRtUD6iF5RhUIQM p6R8lJ6SByVK2OUrC+SZh0/YatEVbq1ZrlFAYL/S3A== X-Google-Smtp-Source: ABhQp+SbjooCsZvlrMUiLNPCgV+ubIxZI6if5CcznTp+Yu/V6iRD+Z5I+dcppl3veXiJoX+tgibKsqHcetqAnqQzBIM= X-Received: by 10.36.139.130 with SMTP id g124mr11413144ite.100.1509997274132; Mon, 06 Nov 2017 11:41:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.8.66 with HTTP; Mon, 6 Nov 2017 11:41:13 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Tue, 7 Nov 2017 03:41:13 +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: Mon, 06 Nov 2017 19:41:15 -0000 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 enabl= ed) 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/${ PYTHON_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- packages 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 and 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 > > >