pmonta / gerber2graphtec

Cut SMT stencils from gerber files using a Graphtec cutter
Other
107 stars 55 forks source link

pstoedit depends on Ghostscript, but dependency is broken by Ghostscript 9.22 #15

Open DavidOrDave opened 6 years ago

DavidOrDave commented 6 years ago

Greetings,

I came very close to getting this to work on my Silhouette Curio. But Ghostscript 9.22 depreciates the -dDELAYBIND flag which pstoedit depends on. The result is no output from pstoedit. pstoedit and this project haven't seen any development in while so I don't expect this will magically be fixed.

I'm testing this on a MacPorts and would love to find a solution.

Downgrading Ghostscript to 9.21 seems the logical answer, but it's not easy to do as MacPorts pretty much insists on installing the latest version of packages, and doesn't provide an easy way to downgrade.

I've already spent a lot of time troubleshooting and have become frustrated. I don't want to re-invent anything nor delve into debugging the open-source code any further. My goal is to get the stencil made, and I love the concept of going directly from gerber to the cutter that pmonta has developed. Has anyone else run into this or found a solution?

tuxedo0801 commented 6 years ago

same issue here: #16

tuxedo0801 commented 6 years ago

Downgrade-Instruction for Debian (Buster/Testing/...)

I had a look at the changelogs to find the date at which the issue appeared: http://metadata.ftp-master.debian.org/changelogs/main/g/ghostscript/ghostscript_9.22~dfsg-1_changelog ---> 04th of october 2017

Then I used snapshots debian archive (http://snapshot.debian.org/) to get the apt-repo just before this date. I added the following repository to /etc/apt/sources.list for my debian testing installation:

# for old ghostscript
deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20171003T000000Z/ testing main

Then I called

apt update
apt install ghostscript=9.21~dfsg-1 libgs9=9.21~dfsg-1 libgs9-common=9.21~dfsg-1

to update the repo infor and downgrade the required packages (the last two packages are dependencies of ghostscript that had to be downgraded too on my system. check out for yours...)

I then "pinned" this packages to this version/apt-repo by creating file

/etc/apt/preferences.d/preferences

with the following content:

Package: ghostscript
Pin: origin "snapshot.debian.org"
Pin-Priority: 1001

Package: libgs9*
Pin: origin "snapshot.debian.org"
Pin-Priority: 1001

Works for me so far.

Credits go to: https://hackedbellini.org/linux/downgrade-and-force-some-packages-on-debian-to-a-previous-version/