NetBSD Problem Report #46543

From www@NetBSD.org  Tue Jun  5 04:36:06 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id D43D363BEE1
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  5 Jun 2012 04:36:06 +0000 (UTC)
Message-Id: <20120605043605.EBCC263BA27@www.NetBSD.org>
Date: Tue,  5 Jun 2012 04:36:05 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: cad/pcb: Support for gcode and other build problem fixes
X-Send-Pr-Version: www-1.0

>Number:         46543
>Category:       pkg
>Synopsis:       cad/pcb: Support for gcode and other build problem fixes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 05 04:40:00 +0000 2012
>Closed-Date:    Fri Jan 22 22:01:45 +0000 2016
>Last-Modified:  Fri Jan 22 22:01:45 +0000 2016
>Originator:     Nat Sloss
>Release:        NetBSD 5.0.1
>Organization:
>Environment:
NetBSD beast 5.0.1 NetBSD 5.0.1 (LOCKDEBUG) #61: Tue Jun  5 02:04:25 EST 2012  build@beast:/usr/src/sys/arch/i386/compile/LOCKDEBUG i386
>Description:
Hi I have noticed that pkgsrcs' pcb doesn't support gcode and it is supported by pcb.  Also I was having build problems relating to undefined maths function references and undefined references for pixman functions for cairo.
>How-To-Repeat:
Build cad/pcb and you may have an unsuccessful build relating to undefined references whilst linking.  If successful you will find that you cant export to gcode.
>Fix:
To fix the problem I patched the makefile with linker flags and added gcode to the exporters list:

Index: pcb/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/cad/pcb/Makefile,v
retrieving revision 1.60
diff -u -r1.60 Makefile
--- pcb/Makefile        3 Mar 2012 00:12:47 -0000       1.60
+++ pcb/Makefile        5 Jun 2012 04:20:46 -0000
@@ -33,7 +33,7 @@
 USE_TOOLS+=            bison gm4:run gmake intltool lex wish:run pkg-config
 USE_PKGLOCALEDIR=      yes
 INFO_FILES=            yes
-LDFLAGS+=              -lstdc++  # direct link as required by ld v2.22
+LDFLAGS+=              -lstdc++ -lm # direct link as required by ld v2.22

 USE_LANGUAGES=         c c++

@@ -46,6 +46,8 @@
 .include "../../mk/bsd.prefs.mk"
 .include "../../mk/bsd.options.mk"

+CONFIGURE_ENV+=                CAIRO_LIBS=-lpixman-1
+
 .if !empty(PKG_OPTIONS:Mmotif)
 .include "../../mk/motif.buildlink3.mk"
 CONFIGURE_ARGS+=       --with-gui=lesstif
@@ -65,7 +67,7 @@
 .include "../../sysutils/dbus/buildlink3.mk"
 .endif

-EXPORTERS=     bom gerber ps
+EXPORTERS=     bom gerber ps gcode
 .if !empty(PKG_OPTIONS:Mpng)
 EXPORTERS+=    png
 .include "../../graphics/gd/buildlink3.mk"


Note: This patch is my own work which I submit under the NetBSD license.

Regards,

Nat

>Release-Note:

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46543: cad/pcb: Support for gcode and other build problem
 fixes
Date: Tue, 5 Jun 2012 18:21:45 +0000

 On Tue, Jun 05, 2012 at 04:40:00AM +0000, nathanialsloss@yahoo.com.au wrote:
  > @@ -46,6 +46,8 @@
  >  .include "../../mk/bsd.prefs.mk"
  >  .include "../../mk/bsd.options.mk"
  > 
  > +CONFIGURE_ENV+=                CAIRO_LIBS=-lpixman-1
  > +
  >  .if !empty(PKG_OPTIONS:Mmotif)
  >  .include "../../mk/motif.buildlink3.mk"
  >  CONFIGURE_ARGS+=       --with-gui=lesstif

 This should not be required any more; see graphics/cairo/hacks.mk.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: dmcmahill@NetBSD.org
State-Changed-When: Fri, 22 Jan 2016 22:01:45 +0000
State-Changed-Why:
gcode export enabled, pcb updated to latest snapshot.


>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.