NetBSD Problem Report #52632

From martin@duskware.de  Fri Oct 20 15:04:44 2017
Return-Path: <martin@duskware.de>
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 ECFBD7A183
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 Oct 2017 15:04:43 +0000 (UTC)
Message-Id: <20171020150435.656D85CC761@emmas.aprisoft.de>
Date: Fri, 20 Oct 2017 17:04:35 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: devel/orc build fails
X-Send-Pr-Version: 3.95

>Number:         52632
>Category:       pkg
>Synopsis:       devel/orc build fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 20 15:05:00 +0000 2017
>Closed-Date:    Mon Oct 23 10:21:19 +0000 2017
>Last-Modified:  Mon Oct 23 10:21:19 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.4
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.4 NetBSD 8.99.4 (NIGHT-OWL) #543: Thu Oct 19 10:44:25 CEST 2017 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

The build of devel/orc fails for me:

 /usr/bin/install -c -o root -g wheel -m 644 ./html/right.png
 /usr/bin/install -c -o root -g wheel -m 644 ./html/style.css
 /usr/bin/install -c -o root -g wheel -m 644 ./html/up-insensitive.png
 /usr/bin/install -c -o root -g wheel -m 644 ./html/up.png
Traceback (most recent call last):
  File "/usr/pkg/bin/gtkdoc-rebase", line 56, in <module>
    sys.exit(rebase.run(options))
  File "/usr/pkg/share/gtk-doc/python/gtkdoc/rebase.py", line 66, in run
    dir = common.GetModuleDocDir('glib-2.0')
  File "/usr/pkg/share/gtk-doc/python/gtkdoc/common.py", line 104, in GetModuleDocDir
    path = subprocess.check_output([config.pkg_config, '--variable=prefix', module_name], universal_newlines=True)
  File "/usr/pkg/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['pkg-config', '--variable=prefix', 'glib-2.0']' returned non-zero exit status 1
Makefile:808: recipe for target 'install-data-local' failed
gmake[4]: *** [install-data-local] Error 1
gmake[4]: Leaving directory '/usr/pkgobj/devel/orc/work/orc-0.4.27/doc'
Makefile:544: recipe for target 'install-am' failed
gmake[3]: *** [install-am] Error 2
gmake[3]: Leaving directory '/usr/pkgobj/devel/orc/work/orc-0.4.27/doc'
Makefile:538: recipe for target 'install' failed
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory '/usr/pkgobj/devel/orc/work/orc-0.4.27/doc'
Makefile:515: recipe for target 'install-recursive' failed
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgobj/devel/orc/work/orc-0.4.27'
Makefile:811: recipe for target 'install' failed
gmake: *** [install] Error 2
*** Error code 2

Stop.
make[10]: stopped in /usr/pkgsrc/devel/orc


>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/52632: devel/orc build fails
Date: Fri, 20 Oct 2017 17:43:26 +0200

 Workaround: pkg_delete gtk-doc

 --disable-gtk-doc is no enough :(
  Thomas

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/52632: devel/orc build fails
Date: Fri, 20 Oct 2017 23:12:30 +0200

 Another workaround is adding pkg-config to USE_TOOLS, and including
 glib2/bl3.mk.

 Not acceptable either, since neither of those is really a dependency
 of orc itself.
  Thomas

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Sat, 21 Oct 2017 10:38:41 +0000
Responsible-Changed-Why:
Take, possible - hopefully acceptable kludge - found.


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52632: devel/orc build fails
Date: Sat, 21 Oct 2017 12:49:41 +0200

 Hello Martin and Thomas,

 martin@NetBSD.org writes:
 > >Number:         52632
 > >Category:       pkg
 > >Synopsis:       devel/orc build fails
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri Oct 20 15:05:00 +0000 2017
 > >Originator:     Martin Husemann
 > >Release:        NetBSD 8.99.4
 > >Organization:
 > The NetBSD Foundation, Inc.
 > >Environment:
 > [...]

 As Thomas already pointed out unfortunately that's due having
 gtk-doc package installed. Despite by default orc is configured
 via `--disable-gtk-doc' it still try to check some gtkdoc-* tools
 and try to run them uncoditionally.

 The following patch (it's really a kludge but hopefully an acceptable
 one) should fix this issue:

  <http://netbsd.org/~leot/pkgsrc-patches/orc-gtkdoc-kludge.patch>

 For completeness an attached version is also at the end of this email.

 Martin, can you please try it too and let me know if it fixes the
 problem for you too?


 Thank you!


 ---------------8<-----------------8<-----------------8<-----------------
 orc: Fix installation if gtk-doc package is already installed

 By default orc is configured with `--disable-gtk-doc'. However, despite th=
 at it
 will checks several `gtkdoc-*' tools anyway ending in an failure during th=
 e
 installation phase because only a couple of them are available.

 Add a kludge via CONFIGURE_ENV to avoid picking up gtkdoc-* tools.

 Pointed out by <martin> via PR pkg/52632.

 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/pkgsrc/devel/orc/Makefile,v
 retrieving revision 1.11
 diff -u -p -r1.11 Makefile
 --- Makefile	20 Jul 2017 13:18:42 -0000	1.11
 +++ Makefile	21 Oct 2017 10:39:00 -0000
 @@ -14,7 +14,16 @@ USE_LIBTOOL=3D		yes
  USE_TOOLS=3D		gmake
  GNU_CONFIGURE=3D		yes
  PKGCONFIG_OVERRIDE+=3D	orc.pc.in
 +
 +# XXX: Kludge to avoid uncoditionally pick up some gtkdoc-* tools if gtk-=
 doc
 +# XXX: package is installed and then fails in the installation phase.
 +CONFIGURE_ENV+=3D		ac_cv_prog_GTKDOC_CHECK=3D \
 +			ac_cv_path_GTKDOC_CHECK_PATH=3D \
 +			ac_cv_path_GTKDOC_REBASE=3D \
 +			ac_cv_path_GTKDOC_MKPDF=3D
 +
  TEST_TARGET=3D		check
  =

 +
  .include "../../mk/pthread.buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sat, 21 Oct 2017 11:12:13 +0000
State-Changed-Why:
Possible patch to fix^Wworkaround this issue proposed.


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org
Subject: Re: pkg/52632: devel/orc build fails
Date: Mon, 23 Oct 2017 10:13:23 +0200

 The patch works for me!

 Martin

From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52632 CVS commit: pkgsrc/devel/orc
Date: Mon, 23 Oct 2017 10:11:21 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Mon Oct 23 10:11:21 UTC 2017

 Modified Files:
 	pkgsrc/devel/orc: Makefile

 Log Message:
 orc: Fix installation if gtk-doc package is already installed

 By default orc is configured with `--disable-gtk-doc'. However, despite that,
 it will checks several `gtkdoc-*' tools anyway, ending in a failure during the
 installation phase because only a couple of them are available.

 Add a kludge via CONFIGURE_ENV to avoid picking up gtkdoc-* tools.

 Pointed out by <martin> via PR pkg/52632.


 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/orc/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 23 Oct 2017 10:21:19 +0000
State-Changed-Why:
Feedback provided and patch proposed applied.

Thank you Martin for the PR and the quick feedback!


>Unformatted:

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.