NetBSD Problem Report #52916

From www@NetBSD.org  Tue Jan  9 04:50:32 2018
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 094B07A0F8
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  9 Jan 2018 04:50:32 +0000 (UTC)
Message-Id: <20180109045023.7047E7A21A@mollari.NetBSD.org>
Date: Tue,  9 Jan 2018 04:50:23 +0000 (UTC)
From: jun@soum.co.jp
Reply-To: jun@soum.co.jp
To: gnats-bugs@NetBSD.org
Subject: shotwell make failed with libgee-0.18.0nb4
X-Send-Pr-Version: www-1.0

>Number:         52916
>Category:       pkg
>Synopsis:       shotwell make failed with libgee-0.18.0nb4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 09 04:55:00 +0000 2018
>Last-Modified:  Wed Jan 10 00:00:00 +0000 2018
>Originator:     Jun Ebihara
>Release:        pkgsrc-current 20180109
>Organization:
SOUM Corporation
>Environment:
NetBSD amibase.soum.co.jp 8.99.10 NetBSD 8.99.10 (GENERIC) #0: Wed Jan  3 09:46:41 UTC 2018  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
# make
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for shotwell-0.22.0nb17
/usr/pkg/bin/valac-0.38 -c -g --enable-checking --target-glib=2.32 --thread --fatal-warnings --enable-experimental --enable-deprecated  --define WITH_GPHOTO_25  --vapidir=plugins/ -X -DGETTEXT_PACKAGE='"shotwell"' -X -I. --pkg=gobject-2.0 --pkg=glib-2.0 --pkg=gdk-3.0 --pkg=gtk+-3.0 --pkg=gee-0.8 --includedir=plugins --vapi=plugins/shotwell-plugin-dev-1.0.vapi --header=plugins/shotwell-plugin-dev-1.0.h src/plugins/SpitInterfaces.vala src/plugins/TransitionsInterfaces.vala src/plugins/PublishingInterfaces.vala src/plugins/DataImportsInterfaces.vala
gee-0.8.vapi:278.3-278.31: error: overriding method `Gee.HashSet.foreach' is incompatible with base method `Gee.AbstractCollection.foreach': incompatible type of parameter 1.
                public override bool @foreach (Gee.ForallFunc f);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gee-0.8.vapi:278.3-278.31: error: Gee.HashSet.foreach: no suitable method found to override
                public override bool @foreach (Gee.ForallFunc f);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gee-0.8.vapi:368.3-368.31: error: overriding method `Gee.PriorityQueue.foreach' is incompatible with base method `Gee.AbstractCollection.foreach': incompatible type of parameter 1.
                public override bool @foreach (Gee.ForallFunc f);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gee-0.8.vapi:368.3-368.31: error: Gee.PriorityQueue.foreach: no suitable method found to override
                public override bool @foreach (Gee.ForallFunc f);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 4 error(s), 0 warning(s)
src/plugins/mk/interfaces.mk:26: recipe for target 'plugins/shotwell-plugin-dev-1.0.vapi' failed
gmake: *** [plugins/shotwell-plugin-dev-1.0.vapi] Error 1
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/graphics/shotwell
*** Error code 1


>How-To-Repeat:
with NetBSD 8.99.10:
cd /usr/pkgsrc/graphics/shotwell
make
sed -i "s/static const/const/g" `find . -name "*.vala"`
make
>Fix:
1. sed -i "s/static const/const/g" `find . -name "*.vala"`
2. CircleEffect.vala
work/shotwell-0.22.0/plugins/shotwell-transitions/CircleEffect.vala
        int radius = (int)((alpha) * Math.fmax(width,height));
->
        int radius = (int)(alpha * Math.fmax(width,height));

3. Resources.vala
        ../common/Resources.vala GalleryConnector.vala shotwell-publishing-extras.vala YandexPublishing.vala TumblrPublishing.vala RajcePublishing.vala ../../src/util/string.vala ../common/RESTSupport.vala
TumblrPublishing.vala:309.33-310.88: error: Too few arguments for specified format
TumblrPublishing.vala:319.29-320.84: error: Too few arguments for specified format

4. system.vala
src/util/system.vala:39.15-39.20: error: The type name `status' could not be found
    return (((status) & 0xff00) >> 8);
->
    return ((status & 0xff00) >> 8);

5. update libgee-0.20.0 
6. and more

>Audit-Trail:
From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52916: shotwell make failed with libgee-0.18.0nb4
Date: Tue, 9 Jan 2018 22:52:26 +0100

 >>Fix:
 > 1. sed -i "s/static const/const/g" `find . -name "*.vala"`

 [...]

 Did you report this upstream, or is this a problem on pkgsrc only?

 -- 
 Benny

From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@NetBSD.org, bsiegert@gmail.com
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52916: shotwell make failed with libgee-0.18.0nb4
Date: Wed, 10 Jan 2018 08:56:18 +0900 (JST)

 From: Benny Siegert <bsiegert@gmail.com>
 Subject: Re: pkg/52916: shotwell make failed with libgee-0.18.0nb4
 Date: Tue,  9 Jan 2018 21:55:01 +0000 (UTC)

 >  >>Fix:
 >  > 1. sed -i "s/static const/const/g" `find . -name "*.vala"`
 >  Did you report this upstream, or is this a problem on pkgsrc only?

 December 11th, 2017: Shotwell 0.27.2 now available. 

 otherwize,pkgsrc version has 0.22.0

 # $NetBSD: Makefile,v 1.88 2017/11/30 16:45:27 adam Exp $
 DISTNAME=               shotwell-0.22.0

 so check 0.27.2 first.(not yet)
 --
 Jun Ebihara

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.