pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46543: cad/pcb: Support for gcode and other build problem fixes



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 05 04:40:00 +0000 2012
>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



Home | Main Index | Thread Index | Old Index