summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Asplund <peter.azp@gmail.com>2012-01-29 23:33:42 +0100
committerPeter Asplund <peter.azp@gmail.com>2012-01-29 23:33:42 +0100
commit60beb2f7369075c4addd798301392fc305079a24 (patch)
tree8c96d67886ddb0a5edf4fbbfbf46923ce2b25293 /dev-util
parentAdd initial files (subspace_battle) and profile (diff)
downloadAzP-60beb2f7369075c4addd798301392fc305079a24.tar.gz
AzP-60beb2f7369075c4addd798301392fc305079a24.tar.bz2
AzP-60beb2f7369075c4addd798301392fc305079a24.zip
Add insight version that builds and runs in current portage.
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/insight/Manifest6
-rw-r--r--dev-util/insight/files/99insight3
-rw-r--r--dev-util/insight/files/insight-6.8-DESTDIR.patch187
-rw-r--r--dev-util/insight/files/insight-6.8-burn-paths.patch11
-rw-r--r--dev-util/insight/files/tkImgGIF.patch63
-rw-r--r--dev-util/insight/insight-6.8_p1.ebuild79
6 files changed, 349 insertions, 0 deletions
diff --git a/dev-util/insight/Manifest b/dev-util/insight/Manifest
new file mode 100644
index 0000000..c006d4b
--- /dev/null
+++ b/dev-util/insight/Manifest
@@ -0,0 +1,6 @@
+AUX 99insight 70 RMD160 52fcaed6d1e98148a618831a70244e0ff7ff20e2 SHA1 279361aa99e14f091277c23e31922a9fa75a0b02 SHA256 3d2b493b8b7879f26b8189b3d424aeefa39f9eba1784b34c6741882eff9c1e78
+AUX insight-6.8-DESTDIR.patch 7362 RMD160 f3ea5ca1d9dc2cabe1507c079c4af0427ef7867b SHA1 981f91bd340a1ab84d96c37f74de636ff17ea2a3 SHA256 3a8680c762b3d3fd75a02662dc5d0fac262e30aa91407b7cf553abd201b6d0a0
+AUX insight-6.8-burn-paths.patch 446 RMD160 e2ec981c7effaadf4ea2fc5382349e246d441dd1 SHA1 f021a3fc73ffcd3cd416a824b2f09b06dc442b7c SHA256 c80421818de4f7daaf1b8fde2251a06dc97b8de1fa38d6ef77aecabd301bf182
+AUX tkImgGIF.patch 2577 RMD160 ac6e4f4632bdf2ca8047a65238b691cbc063b8a2 SHA1 9aca848bbd3228325e1172ee409c1f8dac063636 SHA256 cd43fc8520b42f0c4a4b82cc89ae5b980f08426d1aa9936de28312e1e1f5b9d9
+DIST insight-6.8-1.tar.bz2 23635162 RMD160 fb2c95fe408070c4f4eb13c5684634ca1d854c50 SHA1 e9e16ed221180a4afb7a03bc967d8f2f67846cc4 SHA256 7d0a80fa11637b885226e029903eaf29486679c978e55b13112553304498e5e6
+EBUILD insight-6.8_p1.ebuild 1978 RMD160 6036f615862ac3abaa3fda14c5bb97d773dbbc12 SHA1 88f0d9bffaed968639f581ce907996693809d4d8 SHA256 6cbd180935f2076f29962eb228d428bd0ea69e76599bc615d142322c8638f44b
diff --git a/dev-util/insight/files/99insight b/dev-util/insight/files/99insight
new file mode 100644
index 0000000..07f191f
--- /dev/null
+++ b/dev-util/insight/files/99insight
@@ -0,0 +1,3 @@
+PATH=/opt/insight/bin
+LDPATH=/opt/insight/lib
+MANPATH=/opt/insight/man \ No newline at end of file
diff --git a/dev-util/insight/files/insight-6.8-DESTDIR.patch b/dev-util/insight/files/insight-6.8-DESTDIR.patch
new file mode 100644
index 0000000..50db957
--- /dev/null
+++ b/dev-util/insight/files/insight-6.8-DESTDIR.patch
@@ -0,0 +1,187 @@
+Index: itcl/itcl/Makefile.in
+===================================================================
+RCS file: /cvs/src/src/itcl/itcl/Makefile.in,v
+retrieving revision 1.5
+diff -u -p -r1.5 Makefile.in
+--- itcl/itcl/Makefile.in 1 Sep 2005 05:32:08 -0000 1.5
++++ itcl/itcl/Makefile.in 7 Mar 2007 23:26:29 -0000
+@@ -272,16 +272,16 @@ install-binaries: binaries install-lib-b
+ #========================================================================
+
+ install-libraries: libraries
+- $(mkinstalldirs) $(includedir)
+- @echo "Installing header files in $(includedir)"
++ $(mkinstalldirs) $(DESTDIR)$(includedir)
++ @echo "Installing header files in $(DESTDIR)$(includedir)"
+ @for i in $(GENERIC_HDRS) ; do \
+ echo "Installing $$i" ; \
+- $(INSTALL_DATA) $$i $(includedir) ; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(includedir) ; \
+ done;
+- @echo "Installing library files in $(ITCL_LIBRARY)"
++ @echo "Installing library files in $(DESTDIR)$(ITCL_LIBRARY)"
+ @for i in $(srcdir)/library/*.tcl ; do \
+ echo "Installing $$i" ; \
+- $(INSTALL_DATA) $$i $(ITCL_LIBRARY) ; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(ITCL_LIBRARY) ; \
+ done;
+
+ #========================================================================
+@@ -290,14 +290,14 @@ install-libraries: libraries
+ #========================================================================
+
+ install-doc: doc
+- $(mkinstalldirs) $(mandir)/mann
+- @echo "Installing man pages in $(mandir)"
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/mann
++ @echo "Installing man pages in $(DESTDIR)$(mandir)"
+ @cd $(srcdir)/doc; for i in *.n; \
+ do \
+ echo "Installing $$i"; \
+ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
+- $$i > $(mandir)/mann/$$i; \
+- chmod 444 $(mandir)/mann/$$i; \
++ $$i > $(DESTDIR)$(mandir)/mann/$$i; \
++ chmod 444 $(DESTDIR)$(mandir)/mann/$$i; \
+ done
+
+ test: $(TCLSH_PROG)
+@@ -447,7 +447,7 @@ install-lib-binaries: installdirs
+ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
+ else :; fi; \
+ done
+- $(INSTALL_DATA) pkgIndex.tcl $(pkglibdir)
++ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
+
+ #========================================================================
+ # Install binary executables (e.g. .exe files)
+@@ -485,7 +485,7 @@ installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
+- $(mkinstalldirs) $(ITCL_LIBRARY)
++ $(mkinstalldirs) $(DESTDIR)$(ITCL_LIBRARY)
+
+ .PHONY: all binaries clean depend distclean doc install installdirs \
+ libraries test
+Index: itcl/itk/Makefile.in
+===================================================================
+RCS file: /cvs/src/src/itcl/itk/Makefile.in,v
+retrieving revision 1.5
+diff -u -p -r1.5 Makefile.in
+--- itcl/itk/Makefile.in 1 Sep 2005 05:32:09 -0000 1.5
++++ itcl/itk/Makefile.in 7 Mar 2007 23:26:29 -0000
+@@ -267,16 +267,16 @@ install-binaries: binaries install-lib-b
+ #========================================================================
+
+ install-libraries: libraries
+- $(mkinstalldirs) $(includedir)
+- @echo "Installing header files in $(includedir)"
++ $(mkinstalldirs) $(DESTDIR)$(includedir)
++ @echo "Installing header files in $(DESTDIR)$(includedir)"
+ @for i in $(GENERIC_HDRS) ; do \
+ echo "Installing $$i" ; \
+- $(INSTALL_DATA) $$i $(includedir) ; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(includedir) ; \
+ done;
+- @echo "Installing library files in $(ITK_LIBRARY)"
++ @echo "Installing library files in $(DESTDIR)$(ITK_LIBRARY)"
+ @for i in $(srcdir)/library/*.* $(srcdir)/library/tclIndex ; do \
+ echo "Installing $$i" ; \
+- $(INSTALL_DATA) $$i $(ITK_LIBRARY) ; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(ITK_LIBRARY) ; \
+ done;
+
+ #========================================================================
+@@ -285,14 +285,14 @@ install-libraries: libraries
+ #========================================================================
+
+ install-doc: doc
+- $(mkinstalldirs) $(mandir)/mann
+- @echo "Installing man pages in $(mandir)"
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/mann
++ @echo "Installing man pages in $(DESTDIR)$(mandir)"
+ @cd $(srcdir)/doc; for i in *.n; \
+ do \
+ echo "Installing $$i info $(mandir)/mann"; \
+ sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
+- $$i > $(mandir)/mann/$$i; \
+- chmod 444 $(mandir)/mann/$$i; \
++ $$i > $(DESTDIR)$(mandir)/mann/$$i; \
++ chmod 444 $(DESTDIR)$(mandir)/mann/$$i; \
+ done
+
+ test: $(TCLSH_PROG)
+@@ -421,7 +421,7 @@ install-lib-binaries: installdirs
+ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
+ else :; fi; \
+ done
+- $(INSTALL_DATA) pkgIndex.tcl $(pkglibdir)
++ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
+
+ #========================================================================
+ # Install binary executables (e.g. .exe files)
+@@ -459,7 +459,7 @@ installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
+ $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
+- $(mkinstalldirs) $(ITK_LIBRARY)
++ $(mkinstalldirs) $(DESTDIR)$(ITK_LIBRARY)
+
+ .PHONY: all binaries clean depend distclean doc install installdirs \
+ libraries test
+Index: itcl/iwidgets/Makefile.in
+===================================================================
+RCS file: /cvs/src/src/itcl/iwidgets/Makefile.in,v
+retrieving revision 1.2
+diff -u -p -r1.2 Makefile.in
+--- itcl/iwidgets/Makefile.in 25 Feb 2003 00:42:12 -0000 1.2
++++ itcl/iwidgets/Makefile.in 7 Mar 2007 23:26:29 -0000
+@@ -36,13 +36,13 @@ bindir = @bindir@
+ # to be different than those used for actually reference files at
+ # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
+ # when installing files.
+-INSTALL_ROOT =
++INSTALL_ROOT = $(DESTDIR)
+
+ # Path name to use when installing library scripts:
+
+ # REDHAT LOCAL
+ #SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/lib/iwidgets$(IWIDGETS_VERSION)
+-SCRIPT_INSTALL_DIR = @datadir@/iwidgets$(IWIDGETS_VERSION)
++SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)@datadir@/iwidgets$(IWIDGETS_VERSION)
+ # END REDHAT LOCAL
+
+ # Directory in which to install the archive libtcl.a:
+Index: tcl/unix/Makefile.in
+===================================================================
+RCS file: /cvs/src/src/tcl/unix/Makefile.in,v
+retrieving revision 1.7
+diff -u -p -r1.7 Makefile.in
+--- tcl/unix/Makefile.in 21 Jan 2003 19:40:18 -0000 1.7
++++ tcl/unix/Makefile.in 7 Mar 2007 23:26:29 -0000
+@@ -38,7 +38,7 @@ mandir = @mandir@
+ # to be different than those used for actually reference files at
+ # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
+ # when installing files.
+-INSTALL_ROOT =
++INSTALL_ROOT = $(DESTDIR)
+
+ # Path for the platform independent Tcl scripting libraries:
+ # REDHAT LOCAL
+Index: tk/unix/Makefile.in
+===================================================================
+RCS file: /cvs/src/src/tk/unix/Makefile.in,v
+retrieving revision 1.8
+diff -u -p -r1.8 Makefile.in
+--- tk/unix/Makefile.in 21 Jan 2003 20:24:51 -0000 1.8
++++ tk/unix/Makefile.in 7 Mar 2007 23:26:30 -0000
+@@ -41,7 +41,7 @@ mandir = @mandir@
+ # to be different than those used for actually reference files at
+ # run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
+ # when installing files.
+-INSTALL_ROOT =
++INSTALL_ROOT = $(DESTDIR)
+
+ # Directory from which applications will reference the library of Tcl
+ # scripts (note: you can set the TK_LIBRARY environment variable at
diff --git a/dev-util/insight/files/insight-6.8-burn-paths.patch b/dev-util/insight/files/insight-6.8-burn-paths.patch
new file mode 100644
index 0000000..2613706
--- /dev/null
+++ b/dev-util/insight/files/insight-6.8-burn-paths.patch
@@ -0,0 +1,11 @@
+--- tcl/unix/Makefile.in.orig 2007-03-07 19:36:22.000000000 -0500
++++ tcl/unix/Makefile.in 2007-03-07 19:36:36.000000000 -0500
+@@ -1051,7 +1051,7 @@
+ # END REDHAT LOCAL
+
+ tclUnixInit.o: $(UNIX_DIR)/tclUnixInit.c $(GENERIC_DIR)/tclInitScript.h tclConfig.sh
+- $(CC) -c $(CC_SWITCHES) -DTCL_LIBRARY=\"\" \
++ $(CC) -c $(CC_SWITCHES) -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
+ -DTCL_PACKAGE_PATH="\"${TCL_PACKAGE_PATH}\"" \
+ $(UNIX_DIR)/tclUnixInit.c
+
diff --git a/dev-util/insight/files/tkImgGIF.patch b/dev-util/insight/files/tkImgGIF.patch
new file mode 100644
index 0000000..e8a81f3
--- /dev/null
+++ b/dev-util/insight/files/tkImgGIF.patch
@@ -0,0 +1,63 @@
+Index: generic/tkImgGIF.c
+===================================================================
+RCS file: /cvsroot/tktoolkit/tk/generic/tkImgGIF.c,v
+retrieving revision 1.24.2.5
+diff -u -r1.24.2.5 tkImgGIF.c
+--- generic/tkImgGIF.c 11 Sep 2007 18:01:45 -0000 1.24.2.5
++++ generic/tkImgGIF.c 25 Jan 2008 19:23:01 -0000
+@@ -826,6 +826,12 @@
+ Tcl_PosixError(interp), (char *) NULL);
+ return TCL_ERROR;
+ }
++
++ if (initialCodeSize > MAX_LWZ_BITS) {
++ Tcl_SetResult(interp, "malformed image", TCL_STATIC);
++ return TCL_ERROR;
++ }
++
+ if (transparent != -1) {
+ cmap[transparent][CM_RED] = 0;
+ cmap[transparent][CM_GREEN] = 0;
+Index: tests/imgPhoto.test
+===================================================================
+RCS file: /cvsroot/tktoolkit/tk/tests/imgPhoto.test,v
+retrieving revision 1.15.2.5
+diff -u -r1.15.2.5 imgPhoto.test
+--- tests/imgPhoto.test 11 Sep 2007 18:01:46 -0000 1.15.2.5
++++ tests/imgPhoto.test 25 Jan 2008 19:23:01 -0000
+@@ -681,6 +681,35 @@
+ image delete $i
+ }
+
++test imgPhoto-14.4 {GIF buffer overflow} -setup {
++ set i [image create photo]
++} -body {
++ # This crashes Tk up to 8.4.17 and 8.5.0
++ $i configure -data {
++ R0lGODlhCgAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/
++ AP//AAAA//8A/wD//////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
++ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
++ AAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBm
++ mQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/
++ AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMz
++ mTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPM
++ ADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/mTP/zDP//2YAAGYAM2YAZmYA
++ mWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZmzGZm/2aZ
++ AGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/
++ mWb/zGb//5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lm
++ AJlmM5lmZplmmZlmzJlm/5mZAJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnM
++ mZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwAM8wAZswAmcwAzMwA/8wz
++ AMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZZsyZ
++ mcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8A
++ AP8AM/8AZv8Amf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9m
++ mf9mzP9m//+ZAP+ZM/+ZZv+Zmf+ZzP+Z///MAP/MM//MZv/Mmf/MzP/M////
++ AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAKAAoAABUSAAD/HEiwoMGD
++ CBMqXMiwYcKAADs=
++ }
++} -cleanup {
++ image delete $i
++} -returnCodes error -result {malformed image}
++
+ test imgPhoto-15.1 {photo images can fail to allocate memory gracefully} \
+ {nonPortable} {
+ # This is not portable to very large machines with more around
diff --git a/dev-util/insight/insight-6.8_p1.ebuild b/dev-util/insight/insight-6.8_p1.ebuild
new file mode 100644
index 0000000..1564ed2
--- /dev/null
+++ b/dev-util/insight/insight-6.8_p1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/insight/insight-6.8.ebuild,v 1.1 2008/07/12 12:21:10 tester Exp $
+
+inherit eutils flag-o-matic
+
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+DESCRIPTION="A graphical interface to the GNU debugger"
+HOMEPAGE="http://sourceware.org/insight/"
+MY_PV=${PV/_p/-}
+MY_P="${PN}-${MY_PV}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+SRC_URI="ftp://sources.redhat.com/pub/${PN}/releases/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="nls"
+
+RDEPEND="sys-libs/ncurses
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-6.8-DESTDIR.patch
+ epatch "${FILESDIR}"/${PN}-6.8-burn-paths.patch
+
+ cd "${S}/tk"
+ epatch "${FILESDIR}"/tkImgGIF.patch
+}
+
+src_compile() {
+ append-flags -fno-strict-aliasing # tcl code sucks
+ strip-linguas -u bfd/po opcodes/po
+ econf \
+ --disable-werror \
+ $(use_enable nls) \
+ --enable-gdbtk \
+ --disable-tui \
+ --datadir=/usr/share/${PN} \
+ || die
+ emake || die
+}
+
+src_install() {
+ # the tcl-related subdirs are not parallel safe
+ emake -j1 DESTDIR="${D}" install || die
+
+ # Don't install docs when building a cross-insight
+ if [[ ${CTARGET} == ${CHOST} ]] ; then
+ dodoc gdb/gdbtk/{README,TODO}
+ fi
+
+ # the gui tcl code does not consider any of the configure
+ # options given it ... instead, it requires the path to
+ # be /usr/share/redhat/...
+ mv "${D}"/usr/share/${PN}/redhat "${D}"/usr/share/ || die
+
+ # scrub all the cruft we dont want
+ local x
+ cd "${D}"/usr/bin
+ for x in * ; do
+ [[ ${x} != *insight ]] && rm -f ${x}
+ done
+ cd "${D}"
+ rm -rf usr/{include,man,share/{info,locale,man}}
+ rm -rf usr/lib*
+}