You are not logged in.
I need to install package pcb2gcode which is no more under active development (stated here) and it needs package gerbv=2.0.6.
The problem is that in AUR there is no gerbv=2.6.0 only gerbv=2.6.1 so package pcb2gcode somehow lost its functionality. Is it possible to post a version gerbv=2.6.1 on the AUR? I found the source and I installed it
sudo wget [url]http://sourceforge.net/projects/gerbv/files/gerbv/gerbv-2.6.0/gerbv-2.6.0.tar.gz/download[/url] -O gerbv.tgz
tar xvzf gerbv.tgz
cd gerbv-2.6.0
./configure && make
sudo cp src/.libs/libgerbv.so.1.0.7 /usr/lib/libgerbv.so.1.0.7but there is a problem because pacman didn't register gerbv=2.6.0 as installed although I could use it. So I still can't install pcb2gcode. I tried to download the PKGBUID together with other source files from the newest gerbv package so that I coul'd use pacman to install it. Build I failed. I modified the PKGBUILD like this:
# $Id$
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Jared Casper <jaredcasper@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=gerbv
pkgver=2.6.0
pkgrel=2
pkgdesc="An open source Gerber file (RS-274X only) viewer"
#url="http://gerbv.gpleda.org/"
url="http://gerbv.geda-project.org/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('gtk2' 'shared-mime-info' 'hicolor-icon-theme')
optdepends=('gdk-pixbuf: export of images' 'cairo: for better graphics')
makedepends=('cvs' 'gettext')
# cvs for autopoint
install=$pkgname.install
source=("http://sourceforge.net/projects/gerbv/files/gerbv/gerbv-2.6.0/gerbv-2.6.0.tar.gz"
"reautopointissues.diff")
md5sums=('9a8af19574025fb15f987c3df610f8ae'
'55c3aac2af1f99a88dfa7b1508594e49')
build ()
{
cd "$srcdir/$pkgname-$pkgver"
# remove patches on 2.6.2
patch -Np1 -i ../reautopointissues.diff
./autogen.sh
sed -i 's|am_aux_dir=`cd $ac_aux_dir|am_aux_dir=`cd $srcdir|' configure
./configure --prefix=/usr \
--disable-update-desktop-database
make
}
package()
{
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}Then I did the makepkg -si and I got an md5sum error which I fixed with using command updpkgsums. Now I rebuilt it and got this error:
[ziga@ziga-cq56 gerbv-2.6.0]$ makepkg -si
==> Making package: gerbv 2.6.0-2 (Mon Mar 10 14:08:15 CET 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found gerbv-2.6.0.tar.gz
-> Found reautopointissues.diff
==> Validating source files with md5sums...
gerbv-2.6.0.tar.gz ... Passed
reautopointissues.diff ... Passed
==> Extracting sources...
-> Extracting gerbv-2.6.0.tar.gz with bsdtar
==> Starting build()...
patching file po/ru.po
patching file configure.ac
Hunk #1 succeeded at 34 with fuzz 2 (offset -6 lines).
patching file man/Makefile.am
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 35.
2 out of 2 hunks FAILED -- saving rejects to file man/Makefile.am.rej
patching file man/gerbv.ru.1.in.po
patching file autogen.sh
Hunk #1 succeeded at 54 (offset -26 lines).
patching file configure.ac
Hunk #1 succeeded at 26 with fuzz 1 (offset -1 lines).
==> ERROR: A failure occurred in build().
Aborting...Last edited by 71GA (2014-03-11 12:28:32)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
Have you tried building http://pastebin.com/3Hxtp1cH ?
Offline
Have you tried building http://pastebin.com/3Hxtp1cH ?
Thank you. How did you find this?
I used the gerbv.install file from the official repository and the PKGBUILD you provided. I will post them here just in case anyone else needs it:
PKGBUILD:
# Maintainer: Thomas Krug <phragment@htu.tugraz.at>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Jared Casper <jaredcasper@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=gerbv
pkgver=2.6.0
pkgrel=1
pkgdesc="An open source Gerber file (RS-274X only) viewer"
#url="http://gerbv.gpleda.org/"
url="http://gerbv.geda-project.org/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('gtk2' 'shared-mime-info' 'hicolor-icon-theme')
optdepends=('gdk-pixbuf: export of images' 'cairo: for better graphics')
makedepends=('cvs' 'gettext')
# cvs for autopoint
install=$pkgname.install
source=("http://downloads.sourceforge.net/gerbv/$pkgname-$pkgver.tar.gz")
md5sums=('44a37dd202bc60fab54cbc298a477572')
build ()
{
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
--disable-update-desktop-database
make
}
package()
{
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:gerbv.install:
post_install() {
if [ -x /usr/bin/gtk-update-icon-cache ]; then
echo Updating icon cache...
/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
fi
if [ -x /usr/bin/update-desktop-database ]; then
echo Updating desktop database..
/usr/bin/update-desktop-database /usr/share/applications
fi
}
post_upgrade() {
if [ -x /usr/bin/gtk-update-icon-cache ]; then
echo Updating icon cache...
/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
fi
if [ -x /usr/bin/update-desktop-database ]; then
echo Updating desktop database..
/usr/bin/update-desktop-database /usr/share/applications
fi
} Last edited by 71GA (2014-03-11 12:24:43)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
karol wrote:Have you tried building http://pastebin.com/3Hxtp1cH ?
Thank you. How did you find this?
It has been posted in the comments: https://aur.archlinux.org/packages/pcb2gcode by a user named 'phragment'.
Offline
Today it doesn't work anymore...
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...EDIT: This error occured because I renamed folder which held the PKGBUILD and gerbv.install from gerb-2.6.0 to 01-gerbv-2.6.0 (x64). Can anyone explain why would this affect the build?
Last edited by 71GA (2014-03-11 12:41:29)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
man PKGBUILDOffline