NetBSD Problem Report #50775
From www@NetBSD.org Sat Feb 6 21:15:21 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id C8C0B7ABF7
for <gnats-bugs@gnats.NetBSD.org>; Sat, 6 Feb 2016 21:15:21 +0000 (UTC)
Message-Id: <20160206211520.A00917ABFA@mollari.NetBSD.org>
Date: Sat, 6 Feb 2016 21:15:20 +0000 (UTC)
From: dvoich@optonline.net
Reply-To: dvoich@optonline.net
To: gnats-bugs@NetBSD.org
Subject: graphics/graphite2 will not compile
X-Send-Pr-Version: www-1.0
>Number: 50775
>Category: pkg
>Synopsis: graphics/graphite2 will not compile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: ryoon
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Sat Feb 06 21:20:00 +0000 2016
>Closed-Date: Sat Sep 22 14:36:59 +0000 2018
>Last-Modified: Sat Sep 22 14:36:59 +0000 2018
>Originator: Vlad Markov
>Release: current
>Organization:
>Environment:
Linux grumpy 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
>Description:
CMake Error at src/CMakeLists.txt:129 (nolib_test):
Unknown CMake command "nolib_test".
>How-To-Repeat:
run bmake
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 06 Feb 2016 23:11:33 +0000
Responsible-Changed-Why:
pkgsrc on Linux problem.
Responsible-Changed-From-To: linux-pkg-people->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Sun, 07 Feb 2016 01:04:51 +0000
Responsible-Changed-Why:
Take this.
State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Sun, 07 Feb 2016 01:06:59 +0000
State-Changed-Why:
Please try latest graphite2. Thank you.
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50775 CVS commit: pkgsrc/graphics/graphite2
Date: Sun, 7 Feb 2016 01:05:11 +0000
Module Name: pkgsrc
Committed By: ryoon
Date: Sun Feb 7 01:05:11 UTC 2016
Modified Files:
pkgsrc/graphics/graphite2: distinfo
pkgsrc/graphics/graphite2/patches: patch-src_CMakeLists.txt
Log Message:
PR pkg/50775. Fix build under Linux.
pkgsrc removes Graphite.cmake inclusion and nolib_test function is
defined in it. Remove it for Linux.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/graphics/graphite2/distinfo
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/graphics/graphite2/patches/patch-src_CMakeLists.txt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Vlad D. Markov" <dvoich@optonline.net>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Sun, 07 Feb 2016 15:05:27 -0500
On Sun, Feb 07, 2016 at 01:07:00AM +0000, ryoon@NetBSD.org wrote:
> Synopsis: graphics/graphite2 will not compile
>
> State-Changed-From-To: open->feedback
> State-Changed-By: ryoon@NetBSD.org
> State-Changed-When: Sun, 07 Feb 2016 01:06:59 +0000
> State-Changed-Why:
> Please try latest graphite2. Thank you.
>
>
>
1st problem fixed, now I get this:
/usr/pkgsrc/graphics/graphite2/work/graphite2-1.3.5/tests/examples/freetype.c:5:22: fatal error: ft2build.h: No such file or directory
#include "ft2build.h"
Thanks
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 15 Feb 2016 23:25:18 +0000
State-Changed-Why:
one down, another to go
From: "Vlad D. Markov" <dvoich@optonline.net>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
dholland@NetBSD.org
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Mon, 15 Feb 2016 19:58:22 -0500
On Mon, Feb 15, 2016 at 11:25:18PM +0000, dholland@NetBSD.org wrote:
> Synopsis: graphics/graphite2 will not compile
>
> State-Changed-From-To: feedback->open
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Mon, 15 Feb 2016 23:25:18 +0000
> State-Changed-Why:
> one down, another to go
>
>
>
/usr/pkgsrc/graphics/graphite2/work/graphite2-1.3.5/tests/examples/freetype.c:5:22:
fatal error: ft2build.h: No such file or directory
#include "ft2build.h"
From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Thu, 08 Sep 2016 16:55:31 +0200
This is a multi-part message in MIME format.
--------------060709040905030401070309
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Le 16/02/16 02:00, Vlad D. Markov a écrit :
> The following reply was made to PR pkg/50775; it has been noted by GNATS.
>
> From: "Vlad D. Markov" <dvoich@optonline.net>
> To: gnats-bugs@NetBSD.org
> Cc: ryoon@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
> dholland@NetBSD.org
> Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
> Date: Mon, 15 Feb 2016 19:58:22 -0500
>
> On Mon, Feb 15, 2016 at 11:25:18PM +0000, dholland@NetBSD.org wrote:
> > Synopsis: graphics/graphite2 will not compile
> >
> > State-Changed-From-To: feedback->open
> > State-Changed-By: dholland@NetBSD.org
> > State-Changed-When: Mon, 15 Feb 2016 23:25:18 +0000
> > State-Changed-Why:
> > one down, another to go
> >
> >
> >
> /usr/pkgsrc/graphics/graphite2/work/graphite2-1.3.5/tests/examples/freetype.c:5:22:
> fatal error: ft2build.h: No such file or directory
> #include "ft2build.h"
>
>
I propose the attached patch which solves the build for Linux and
allows testing. Is it okay to leave test requires as build requires
for now?
--
Richard PALO
--------------060709040905030401070309
Content-Type: text/x-patch;
name="0001-Fix-Linux-build-with-freetype2-bl3-and-enable-test-f.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0001-Fix-Linux-build-with-freetype2-bl3-and-enable-test-f.pa";
filename*1="tch"
From 8b5130a959584b7b68bdf5595d0b59ca090d6714 Mon Sep 17 00:00:00 2001
From: Richard PALO <richard@NetBSD.org>
Date: Thu, 8 Sep 2016 16:54:03 +0200
Subject: [PATCH] Fix Linux build with freetype2 bl3, and enable test for all
platforms
---
graphics/graphite2/Makefile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/graphics/graphite2/Makefile b/graphics/graphite2/Makefile
index 026e85e..ada5197 100644
--- a/graphics/graphite2/Makefile
+++ b/graphics/graphite2/Makefile
@@ -14,4 +14,21 @@ USE_LANGUAGES= c c++
USE_CMAKE= yes
USE_LIBTOOL= yes
+TEST_TARGET= test
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+# Linux seems to need this to build by default, but apparently it is
+# only used for test, so for now use 'build' dependency
+BUILDLINK_DEPMETHOD.freetype2?= build
+.include "../../graphics/freetype2/buildlink3.mk"
+.endif
+
+# python and py-fonttools seem to be used only during test,
+# so for now use 'build' dependency
+PYTHON_FOR_BUILD_ONLY?= tool
+.include "../../lang/python/tool.mk"
+BUILD_DEPENDS+= ${PYPKGPREFIX}-fonttools-[0-9]*:../../fonts/py-fonttools/
+
.include "../../mk/bsd.pkg.mk"
--
2.9.3
--------------060709040905030401070309--
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
dvoich@optonline.net
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Thu, 8 Sep 2016 17:35:34 +0200
On Thu, Sep 08, 2016 at 03:00:02PM +0000, Richard PALO wrote:
> I propose the attached patch which solves the build for Linux and
> allows testing. Is it okay to leave test requires as build requires
> for now?
Those are quite heavy dependencies for something most users won't care
about, even if it is "just" for building.
Joerg
From: Richard PALO <richard@netbsd.org>
To: Joerg Sonnenberger <joerg@bec.de>, gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Thu, 08 Sep 2016 17:57:34 +0200
Le 08/09/16 17:35, Joerg Sonnenberger a écrit :
> On Thu, Sep 08, 2016 at 03:00:02PM +0000, Richard PALO wrote:
>> I propose the attached patch which solves the build for Linux and
>> allows testing. Is it okay to leave test requires as build requires
>> for now?
>
> Those are quite heavy dependencies for something most users won't care
> about, even if it is "just" for building.
>
> Joerg
>
This is why I proposed first.
It has been recommended prior to use BUILD_DEPENDS
in anticipation of TEST_DEPENDS someday.
So I comment out all the test biz excepting the Linux specific
freetype2 for now? I don't have much time to jockey around..
--
Richard PALO
From: Joerg Sonnenberger <joerg@bec.de>
To: Richard PALO <richard@netbsd.org>
Cc: Joerg Sonnenberger <joerg@bec.de>, gnats-bugs@netbsd.org
Subject: Re: pkg/50775 (graphics/graphite2 will not compile)
Date: Thu, 8 Sep 2016 18:43:16 +0200
On Thu, Sep 08, 2016 at 05:57:34PM +0200, Richard PALO wrote:
> Le 08/09/16 17:35, Joerg Sonnenberger a écrit :
> > On Thu, Sep 08, 2016 at 03:00:02PM +0000, Richard PALO wrote:
> >> I propose the attached patch which solves the build for Linux and
> >> allows testing. Is it okay to leave test requires as build requires
> >> for now?
> >
> > Those are quite heavy dependencies for something most users won't care
> > about, even if it is "just" for building.
> >
> > Joerg
> >
>
> This is why I proposed first.
>
> It has been recommended prior to use BUILD_DEPENDS
> in anticipation of TEST_DEPENDS someday.
>
> So I comment out all the test biz excepting the Linux specific
> freetype2 for now? I don't have much time to jockey around..
Yeah, that sounds better.
Joerg
From: "Richard PALO" <richard@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50775 CVS commit: pkgsrc/graphics/graphite2
Date: Thu, 8 Sep 2016 17:32:50 +0000
Module Name: pkgsrc
Committed By: richard
Date: Thu Sep 8 17:32:49 UTC 2016
Modified Files:
pkgsrc/graphics/graphite2: Makefile
Log Message:
add freetype2 bl3 to fix build on Linux even if it is only used for testing
PR pkg/50775
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/graphics/graphite2/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 22 Sep 2018 14:36:59 +0000
State-Changed-Why:
It sounds like the commits by ryoon and richard have fixed this. I'd put it in feedback, but I don't want to trouble you with testing a 2 year old bug report. Feel free to reply if you are having problems or report a new bug.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.