分类: LINUX
2009-12-30 00:20:11
insight 6.8-1
A graphical interface to the GNU debugger
unsupported :: devel
Maintainer: robbel
Votes: 23
License: GPL
Last Updated: Wed, 04 Jun 2008 18:10:02 +0000
First Submitted: Mon, 26 Feb 2007 17:50:40 +0000
:: ::
This package has been flagged out of date.
Dependencies
Modify line 1644 of gdb/eval.c
int subscript_array[MAX_FORTRAN_DIMS] = {0};
Now it will compile successfully
I know it's bad form to reference a cvs snapshot in a static way like this, but if you need the package this PKGBUILD will work when paired with the existing insight.install and insight.profile.
pkgname=insight
pkgver=6.8.50
pkgrel=1
pkgdesc="A graphical interface to the GNU debugger"
arch=('i686')
url=""
license=('GPL')
depends=('libx11')
install=('insight.install')
source=(ftp://sourceware.org/pub/insight/snapshots/current/insight-weekly-6.8.50-20090427-tar.bz2 insight.profile)
build() {
cd $startdir/src/src
sed -ie '/@include/d' gdb/doc/all-cfg.texi
cat >>gdb/doc/all-cfg.texi <@set GDBVN 6.8.50.20090427-cvs
@set VERSION_PACKAGE (GDB)
@set BUGURL @uref{}
@set BUGURL_DEFAULT
EOF
./configure --prefix=/opt/insight --mandir=/opt/insight/share/man --infodir=/opt/insight/share/info
make || return 1
make prefix=$startdir/pkg/opt/insight mandir=$startdir/pkg/opt/insight/share/man infodir=$startdir/pkg/opt/insight/share/info install || return 1
rm -rf $startdir/pkg/opt/insight/share/info
# environment variables
mkdir -p $startdir/pkg/etc/profile.d
install -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
}
Getting this error:
cc1: warnings being treated as errors
eval.c: In function ‘evaluate_subexp_standard’:
eval.c:1705: error: ‘subscript_array’ may be used uninitialized in this function
make[2]: *** [eval.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/tmp/yaourt-tmp-joephantom/aur-insight/insight/src/insight-6.8/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-joephantom/aur-insight/insight/src/insight-6.8'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build insight package.
In order to work with the new xproto 7.0.14 it needs some patching.
tk.h.patch:
--- tk.h.old 2003-01-21 22:24:42.000000000 +0200
+++ insight-6.8/tk/generic/tk.h 2008-12-06 19:16:28.000000000 +0200
@@ -650,17 +650,18 @@
*
*---------------------------------------------------------------------------
*/
-#define VirtualEvent (LASTEvent)
-#define ActivateNotify (LASTEvent + 1)
-#define DeactivateNotify (LASTEvent + 2)
-#define MouseWheelEvent (LASTEvent + 3)
-#define TK_LASTEVENT (LASTEvent + 4)
+#if (TK_MAJOR_VERSION > 8)
+#error Maintenance todo: Fix GenericEvent/VirtualEvent clash. [Bug 2010422]
+#endif
+#define VirtualEvent (MappingNotify + 1)
+#define ActivateNotify (MappingNotify + 2)
+#define DeactivateNotify (MappingNotify + 3)
+#define MouseWheelEvent (MappingNotify + 4)
+#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L << 28)
-
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
-#define TK_LASTEVENT (LASTEvent + 4)
/*
The PKGBUILD I used:
# Contributor: Philipp Robbel
pkgname=insight
pkgver=6.8
pkgrel=1
pkgdesc="A graphical interface to the GNU debugger"
arch=('i686')
url=""
license=('GPL')
depends=('libx11')
install=('insight.install')
source=(ftp://sourceware.org/pub/insight/releases/$pkgname-$pkgver.tar.bz2 insight.profile tk.h.patch)
md5sums=('b403972b35520399663c7054e8132ca9' '16dddd252c8d64a1f4757626ee895b03'
'9D7A03AC50431B5F5C2AC3250567332C')
build() {
cd $startdir/src/
patch -p0 -i tk.h.patch
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/insight --mandir=/opt/insight/share/man --infodir=/opt/insight/share/info
make || return 1
make prefix=$startdir/pkg/opt/insight mandir=$startdir/pkg/opt/insight/share/man infodir=$startdir/pkg/opt/insight/share/info install || return 1
rm -rf $startdir/pkg/opt/insight/share/info
# environment variables
mkdir -p $startdir/pkg/etc/profile.d
install -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
}
i get a error:
"can't create dir “/home/guoxi/src/insight/pkg/opt/insight/share/itcl3.2â€: file exist"
the original error message is chinese, i translate it into english.
Thank you~~~
Version bump to 6.8
Version bump to 6.7.1
Initial release.