[Pkg-electronics-devel] Bug#683980: pcb-gtk: Use 64-bits for coordinates on all systems

Keith Packard keithp at debian.org
Sun Aug 5 23:28:44 UTC 2012


Package: pcb-gtk
Version: 20110918-6
Severity: normal
Tags: patch

Because pcb uses a high resolution coordinate space, 32-bit
coordinates can only cover board dimensions up to about 20cm. Attempts
to use coordinates beyond that results in erroneous .cnc file output.

By default, pcb uses 'long' values for coordinates, which are 32-bits
on 32-bit installs and 64-bits on 64-bit installs. However, pcb has an
option to always use 64-bit coordinates which means that the package
will behave similarly on 32-bit and 64-bit installs.

This patch enables that option:

diff --git a/debian/rules b/debian/rules
index db38cd9..36778b0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 
 package = pcb
 
-CONFIGURE_OPTS=--disable-rpath --enable-dbus --disable-update-desktop-database --disable-update-mime-database --enable-dependency-tracking LDFLAGS="$(LDFLAGS) -Wl,--as-needed"
+CONFIGURE_OPTS=--disable-rpath --enable-dbus --disable-update-desktop-database --disable-update-mime-database --enable-dependency-tracking LDFLAGS="$(LDFLAGS) -Wl,--as-needed" --enable-coord64
 
 %:
 	dh $@


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.5.0-00001-g569863c-dirty (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pcb-gtk depends on:
ii  libc6                     2.13-33
ii  libcairo2                 1.12.2-2
ii  libdbus-1-3               1.6.0-1
ii  libgd2-xpm                2.0.36~rc1~dfsg-6.1
ii  libgdk-pixbuf2.0-0        2.26.1-1
ii  libgl1-mesa-glx [libgl1]  8.0.3-1
ii  libglib2.0-0              2.32.3-1
ii  libglu1-mesa [libglu1]    8.0.3-1
ii  libgtk2.0-0               2.24.10-1
ii  libgtkglext1              1.2.0-2
ii  pcb-common                20110918-6

pcb-gtk recommends no packages.

pcb-gtk suggests no packages.

-- no debconf information



More information about the Pkg-electronics-devel mailing list