mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-17 18:16:13 +02:00
Merge pull request #180 from marineam/arm64
Pull in stable versions of gdb and gcc-config for arm64
This commit is contained in:
commit
9da3ff1fc1
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=Utility to change the gcc compiler being used
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!app-admin/eselect-compiler
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=7ffa07611d5cf67363d1426027a20454
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5-r1
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5-r1
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=Utility to change the gcc compiler being used
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -sparc-fbsd -x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!app-admin/eselect-compiler
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=41aa67c91560537730ddbc167da976e6
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5-r2
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5-r2
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=Utility to change the gcc compiler being used
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!app-admin/eselect-compiler
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=750ff540c188eb74d550b7b518cfa7b6
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5.1
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.5.1
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=Utility to change the gcc compiler being used
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!app-admin/eselect-compiler
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=c4dd8d4f4345bf199034778373325a2f
|
||||
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=Utility to change the gcc compiler being used
|
||||
HOMEPAGE=http://www.gentoo.org/
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!app-admin/eselect-compiler
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=b91eac442a9129e4da6878d2ff0c40ed
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.6
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.6
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.6.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.6.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=3699c05b9f7187fc3a3c169dc7e3e05f
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.7.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.7.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=07f41d4df96ee0aee3b752a1389b03e1
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7.1
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7.1
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.7.1.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.7.1.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=7f7216bebf1504a599e6494bbcb6a21f
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7.2
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.7.2
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.7.2.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.7.2.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=43bf2b38db57e9cae041dcacf579fc39
|
||||
@ -1,9 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.7.3.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.7.3.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=a592ef9d2e42f56645022b3505cc6a08
|
||||
_md5_=3af21fe42abd172adca1c35d88ab42a9
|
||||
|
||||
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.8
vendored
Normal file
9
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gcc-config-1.8
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
DEFINED_PHASES=compile install postinst unpack
|
||||
DESCRIPTION=utility to manage compilers
|
||||
HOMEPAGE=http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/gcc-config-1.8.tar.xz http://dev.gentoo.org/~vapier/dist/gcc-config-1.8.tar.xz
|
||||
_eclasses_=multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac unpacker f300a7ca9131b1024a79762e8edd3c52
|
||||
_md5_=94671c31b79248e2e22cef600679fc85
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=nls test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-6.6.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-6.6.tar.bz2 mirror://gentoo/gdb-6.6-patches-1.3.tar.bz2
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=09f832a7dc39d39d53b95afd2f3d1993
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=nls test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-6.7.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-6.7.1.tar.bz2 mirror://gentoo/gdb-6.7.1-patches-1.3.tar.bz2
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=8ec14abbeaad9a005d5775fb2fe0882e
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline || ( app-arch/xz-utils app-arch/lzma-utils ) test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=multitarget nls test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-6.8.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-6.8.tar.bz2 mirror://gentoo/gdb-6.8-patches-1.4.tar.lzma
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=bceb8a5518c2674822f645308f9a2bfa
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) || ( app-arch/xz-utils app-arch/lzma-utils ) test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls test vanilla
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-6.8.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-6.8.tar.bz2 mirror://gentoo/gdb-6.8-patches-1.5.tar.lzma
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=4b11d1c3cb9d54555dcd6615ef121429
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( dev-lang/python ) || ( app-arch/xz-utils app-arch/lzma-utils ) test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls python test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( dev-lang/python )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.0.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.0.1.tar.bz2 mirror://gentoo/gdb-7.0.1-patches-1.tar.lzma
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=fe3a468aa381d745244a99ee0a3dd4c9
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile install postinst test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( dev-lang/python ) || ( app-arch/xz-utils app-arch/lzma-utils ) test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls python test vanilla
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( dev-lang/python )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.1.tar.bz2 mirror://gentoo/gdb-7.1-patches-1.tar.lzma
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=1dec6ff2bd0486ad6311a06b47a94873
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls python test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd ~x64-macos ~x86-macos
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.2.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.2.tar.bz2 mirror://gentoo/gdb-7.2-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=ca5a6ce9bce5ef34cc63763e220cd594
|
||||
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test unpack
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) app-arch/xz-utils test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) >=app-arch/rpm2targz-9.0.0.3g
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls python test vanilla
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://fedora/development/source/SRPMS/gdb-7.2.50.20101117-4.fc15.src.rpm
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf rpm b94b54b44f14d6bee3e966c8f5c86fba toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac versionator cd0bcdb170807e4a1984115e9d53a26f
|
||||
_md5_=3eb16c16778f7c11a46208b3d31a250c
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls python test vanilla
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.3.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.3.tar.bz2 mirror://gentoo/gdb-7.3-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=36ac269aa38b5c06b36d1ff740f2b520
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=expat multitarget nls +python test vanilla
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=>=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.3.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.3.1.tar.bz2 mirror://gentoo/gdb-7.3.1-patches-2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=1d48601f9755d52fd20b0d95601c5df9
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.3.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.3.1.tar.bz2 mirror://gentoo/gdb-7.3.1-patches-2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=d5257d84c427a725c652bd1fb25110ea
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.4.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.4.tar.bz2 mirror://gentoo/gdb-7.4-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=49f3995dc81d0066cac106ae04de8a55
|
||||
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.4.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.4.1.tar.bz2 mirror://gentoo/gdb-7.4.1-patches-2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=14569ba59f964a31a0542291adc5a221
|
||||
@ -10,4 +10,4 @@ RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? (
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.5.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.5.tar.bz2 mirror://gentoo/gdb-7.5-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=e33451b2e7be686b380e2d4da5c3a3fd
|
||||
_md5_=cc6af28e38826365d4bf05e86dd2b7b6
|
||||
|
||||
@ -4,10 +4,10 @@ DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.5.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.5.1.tar.bz2 mirror://gentoo/gdb-7.5.1-patches-2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=838b5155c7587ead0bf25fbe107457fd
|
||||
_md5_=23c7588ee3fdca12ff4ceae8ac729c84
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.6.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.6.tar.bz2 mirror://gentoo/gdb-7.6-patches-2.tar.xz
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.6.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.6.tar.bz2 mirror://gentoo/gdb-7.6-patches-3.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=2e4fbbffae73cda6c61ec5015c7e553b
|
||||
_md5_=2163bfa1670bad78d4392131fda81674
|
||||
|
||||
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.6.1
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.6.1
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.6.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.6.1.tar.bz2 mirror://gentoo/gdb-7.6.1-patches-2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=1e9a8b024971f97a157668ed4e8b6b6b
|
||||
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.6.2
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.6.2
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.6.2.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.6.2.tar.bz2 mirror://gentoo/gdb-7.6.2-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=58da748c7aea13a14d0b5d0217365829
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.7-r1
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.7-r1
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.7.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.7.tar.bz2 mirror://gentoo/gdb-7.7-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=97f065c2f4442c85b3a9725b0f4fffca
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.7.1
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.7.1
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.7.1.tar.bz2 ftp://sourceware.org/pub/gdb/releases/gdb-7.7.1.tar.bz2 mirror://gentoo/gdb-7.7.1-patches-1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=4df1fd77eec6efb507e84e90e208d347
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.8.tar.xz ftp://sourceware.org/pub/gdb/releases/gdb-7.8.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=56e2807f397e5d722d5d8d9d35179534
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8.1
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8.1
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) ) app-arch/xz-utils client? ( virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) ) || ( client server )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.8.1.tar.xz ftp://sourceware.org/pub/gdb/releases/gdb-7.8.1.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=3606a737c7a2a96a4783a14e15d4bf9c
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8.2
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.8.2
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) ) app-arch/xz-utils client? ( virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) ) || ( client server )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.8.2.tar.xz ftp://sourceware.org/pub/gdb/releases/gdb-7.8.2.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=6a7b85744347900797f5126e75b83396
|
||||
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.9
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-devel/gdb-7.9
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install postinst prepare setup test
|
||||
DEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline:0= expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) ) app-arch/xz-utils client? ( virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) )
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline:0= expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) ) || ( client server )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gnu/gdb/gdb-7.9.tar.xz ftp://sourceware.org/pub/gdb/releases/gdb-7.9.tar.xz
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=939556a7a7fdeef12ef5b18cd5309791
|
||||
@ -1,11 +1,12 @@
|
||||
DEFINED_PHASES=configure install postinst prepare test unpack
|
||||
DEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib ) app-arch/xz-utils virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) dev-vcs/git
|
||||
DEFINED_PHASES=configure install postinst prepare setup test unpack
|
||||
DEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline:0= expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) ) app-arch/xz-utils client? ( virtual/yacc test? ( dev-util/dejagnu ) nls? ( sys-devel/gettext ) ) dev-vcs/git
|
||||
DESCRIPTION=GNU debugger
|
||||
EAPI=3
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sourceware.org/gdb/
|
||||
IUSE=+client expat multitarget nls +python +server test vanilla zlib
|
||||
IUSE=+client expat lzma multitarget nls +python +server test vanilla zlib python_targets_python3_3 python_targets_python3_4 python_targets_python2_7 python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7
|
||||
LICENSE=GPL-2 LGPL-2
|
||||
RDEPEND=!dev-util/gdbserver >=sys-libs/ncurses-5.2-r2 sys-libs/readline expat? ( dev-libs/expat ) python? ( =dev-lang/python-2* ) zlib? ( sys-libs/zlib )
|
||||
RDEPEND=server? ( !dev-util/gdbserver ) client? ( >=sys-libs/ncurses-5.2-r2 sys-libs/readline:0= expat? ( dev-libs/expat ) lzma? ( app-arch/xz-utils ) python? ( python_single_target_python3_3? ( >=dev-lang/python-3.3.2-r2:3.3 ) python_single_target_python3_4? ( dev-lang/python:3.4 ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) dev-lang/python-exec:=[python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_python2_7(-)?,-python_single_target_jython2_5(-),-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),python_single_target_python3_3(+)?,python_single_target_python3_4(+)?,python_single_target_python2_7(+)?] ) zlib? ( sys-libs/zlib ) )
|
||||
REQUIRED_USE=python? ( ^^ ( python_single_target_python3_3 python_single_target_python3_4 python_single_target_python2_7 ) python_single_target_python3_3? ( python_targets_python3_3 ) python_single_target_python3_4? ( python_targets_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) ) || ( client server )
|
||||
SLOT=0
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 git-2 e28f0d8a9b321431b1e699782851b827 multilib 3bf24e6abb9b76d9f6c20600f0b716bf toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=5f1a724c64038b405f92019e81c332f7
|
||||
_eclasses_=eutils 6faef4c127028ccbba3a11400d24ae34 flag-o-matic eda1c0b5ba85b3eeb555a071d69eb819 git-2 e28f0d8a9b321431b1e699782851b827 multilib 3bf24e6abb9b76d9f6c20600f0b716bf python-single-r1 cc5b6367244dc2070b496eb9a92d5b87 python-utils-r1 d5328656d500f65898a5f51634722f61 toolchain-funcs 0dfbfa13f57c6184f4728d12ac002aac
|
||||
_md5_=4a0a6387cfe91767d5c969655ce4b8dd
|
||||
|
||||
1081
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/ChangeLog
vendored
Normal file
1081
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/ChangeLog
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -1 +1,44 @@
|
||||
DIST gcc-config-1.7.3.tar.xz 15088 RMD160 398c3b36813d65580dc05fffb4bbe64746259f7d SHA1 08da2330e165c4fd0be71a6728339c4cff511bdc SHA256 2c6cca69a028f157dc54e19ea10efc240e0d26824cd223b22c294c003ce9325e
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX gcc-config-1.4.1 21715 SHA256 0b6fd9ff44350638b45875bf8e0c020c503a814270e2093733293d87e7ea26d6 SHA512 66d3bec15bb5b461001612ab8f13bb1c64f61aaa8f2a01b1f46b7b666ddbcfd20594825da13932465618b211a2b76dfc39cc9f7e7009fdc38af0f38ace00ee7b WHIRLPOOL 0f8ef9b8628762905d9d9eaad051af4522c498672fd506aa9f6c88812638d21f06674113ab5a2029e55e5cd2528dd733e963206721271783fbb2de06a6cd08f9
|
||||
AUX gcc-config-1.5 20085 SHA256 d35d9de2c3950c036a39c184dd5ef10777925d683b8b9c7a6ef6e33cecaddde9 SHA512 71945cce94fdb41bb8f88c3d1751380154a32aa3c5aecb8ef57e354e33d6dcfea29841ee2c5d6941d6e4d055ca1c87a2bd405d2b5591eacb03959d721d9b5914 WHIRLPOOL cf8961fb4c1f7823b654c78d8394bf95fab595bfc8bbbe99ae8c77576bb190a853dcc431c64484ed1f2bdd6ee3e093ab00fd712b929331c5095a0a3fb673fddf
|
||||
AUX gcc-config-1.5.1 21018 SHA256 383c0b113548e826191842d1b5eed83303eee142fbc77547021a915f8b2a9c12 SHA512 2010eead56780da69173ad2a289d1bf54937f355a38a355be568ede6f84e828c04b1edbb532b5855e16ffd3ebe9404f08023922faa6750bc83bb54d879bce24b WHIRLPOOL e62147fcc5b0ae07a0b47e94fa57242e712c7823bd6916b1fb70b586676018e971f91f0da159c2438ca10b664b1152f907868473910257e1fe3582217b3a6fec
|
||||
AUX wrapper-1.5.1.c 9788 SHA256 991981059fdcd0a9c76d73ff2ce576e553f37ae7d3b378b92ead553963f7339a SHA512 65a5bcae53163e7b46bfb863bb93e2d4b8b44eaa7eb5d0d9a749a1c1de05e790efe9477ff822916f5d3e806f3929512f26da40562d1a2cae330cefdfb8ea0ae7 WHIRLPOOL fc1f605d498e2b55690bda24effa6dd9356c3dae180f9e2ef1bb6c955d595cd2bad6dd7a4b81c7b39dd4570184d6a0dfae01976ef845c999f3ca235356c3f44c
|
||||
AUX wrapper-1.5.2.c 8021 SHA256 5ed07f88103ecea30f66a4415421f90d1ddfdd4a902aa34a346a7883cd947e36 SHA512 650497a0101536e06c7e8842267cabe4a9032032e54d6e208bbc09fce162a8fbf9e972a43f138ce7821599c98dc7cb41ecb58316c43f69dc80b1a059a3195032 WHIRLPOOL 7940635c2d6ccee80c2a4d0a1446df02543e12e2bdf99d4f5d915ee966b7c3f7e074589cd7308f438c93a1dd9a0423a46d0b2c2aaf76543ce1456fa932358404
|
||||
DIST gcc-config-1.6.tar.xz 14232 SHA256 ca6a94d685a60e9ae5b8ff32c3173929848455a123233709ca791e72b640bf77 SHA512 d44256f67ed398c997cd8ce7f0b6e9bf5e602ee214deef3f7d53affd27693230526645627f00126e8b3492e5b1c7360d771b6138fb7cbc8145467c3a7ba0839d WHIRLPOOL 1a612ee1f652b0b73b4110e956c1559a56083fb4d4813f63ab374c6bba071954a13710555ffa93eec3dee94257d8891baa86989a41c0b72f3aef0edfe43f2f02
|
||||
DIST gcc-config-1.7.1.tar.xz 14708 SHA256 5d69148957bc48db2bf107558724d8c40701f8d27d1cfc7636f02353e9c2f79a SHA512 ed4f8c188679969c3428409813c1e78ca9fbf86f81f9a3e42489eecffc5857352b7d1fc90433679890b7c89da458ff1e2607e7a6f3578c6f65d1beaf71194d00 WHIRLPOOL 5f96a64dad21ae755270000adc1933dc5d2ccd28f5e49ecd96c36da266b2d64cbf3772045e529ffe6fc15381de26757c7ef742093262593a05608d52f8a97a78
|
||||
DIST gcc-config-1.7.2.tar.xz 15004 SHA256 2d235dfc1ff749b46ae8342dc3d30d5628f22eecd1ea665d16f90e82da88e899 SHA512 3bc2964fa9ede507a778787434e3aa64ef691616063d7d55020878eab9a8bf08ed5a6530dd36e15348927db9ce2b7fe22fa2aeb0039549a6e69ca895c087169b WHIRLPOOL 2692bd8289ae224a3011fbef94e45e7b903138cfa11dad4e27eca7a239f67a682def5563745bdebdfe05359d909d3f49142b23bc13141d4fa8528085c3a19299
|
||||
DIST gcc-config-1.7.3.tar.xz 15088 SHA256 2c6cca69a028f157dc54e19ea10efc240e0d26824cd223b22c294c003ce9325e SHA512 88b585787b5ad79017b27e68dbca6b5de96784582ee657d18562b1994bc1c27a6609b3dfcbf30f39a02b0b2886a289a1ddc955281fc60fe974436d13aa685908 WHIRLPOOL a9a45b489e34756da66e4597ba9f4fa061b5431a82310317237293a0c519c72906d14d3c72b76483c1c674bf779ac606cf85f22a5e4a4065dd92b1b91215461a
|
||||
DIST gcc-config-1.7.tar.xz 14584 SHA256 b704cb3b98c7a8f478dcc932ae7e4ac4f4f8a847bebe35f97dc45fa7a29268ee SHA512 4ab78c662feab59bc55e40b9dc63b967c1551b6d084638e2a16866488510e7c34e0b30a0bedaeae9dd806c77f79d1e31ccb834c6112794e7fbb557756f59c43d WHIRLPOOL 50415916834dc9d097e78afbc09a32a023e3542dd6ebcf60cd6c12d0e8fc484a6d63f821c9d3acf958fdaf5ce209976521bf22d3adcd5d20fa522f1f2fd38bdb
|
||||
DIST gcc-config-1.8.tar.xz 15020 SHA256 2453e2a07521b12267ca62b9b860eb2d2bc606cad0f29bf42a1c9543673f5a1b SHA512 3b84af2d961a0527834759e047330dbab7bac0ff3d6aae103f14fca2d44bd612bd4a1005649e8b4198036231ed8a8319fb13326b4d2c40474826cf53f7bc0826 WHIRLPOOL 4899bc1da43a158cc486022f68661e5318db7e4e83afdb5d892fc7ce5098a4bdb059dbab3c50e632901e577cd8760b2386da3ee24f5e944db12d3e246d9c26b6
|
||||
EBUILD gcc-config-1.4.1-r1.ebuild 1645 SHA256 f19f05b52db8eb0816ad4953ecba68a28943a6c8948439edc35c56ce18761b1d SHA512 90ba4f69e7c29792920b24f710fad21c72ac4a978b6146ebe44b9fb243148444de28da8ec847fdeafa00f8b848b018e78f3ab39fe98737b269ee7693d1cb130b WHIRLPOOL b30217616b6a03688b98b573989448532530c8c4011620957bf8e83f3e6ba48a7725eb8bd80ad86fbfd93869b1001438f39c7697631a453bc0a45d2dc17f6731
|
||||
EBUILD gcc-config-1.5-r1.ebuild 1647 SHA256 96e9b0e83ac1ce0e194f839b0dbfa713beb3951c7c53619fe80afaacba8f0c7b SHA512 cbf3e02072fa2b1c71217f3411a6b5ccfe9cf3d9d275bad7e251d94134c0c1e1430b0e830d0841a143747f67b4272ca9a31b401ddde093a2bec9714c5eb3add0 WHIRLPOOL c2b0d3bab7f801fb94337fd56cb62d27273e43738967ffa0b5d92f26c66be47de0ce0fa6f258ebcd9c8377ba59f0348d7e6145dcab7fda2437661e548760f257
|
||||
EBUILD gcc-config-1.5-r2.ebuild 1633 SHA256 5ba1ed03cb6b03399ef4781d7092a004b7fa5fb30effb9c141da847acc63051a SHA512 577580e447073686cfda617b6fe11beeba48fb9956bfb8014bc96754607d1158fad630da2b62dc59e90290e5e30c4818611b7ced7561a8a04e9f149d016ab1d8 WHIRLPOOL dcb9ece15b494df9e98609b08ed057a2b9f00fc0a5f6e8aad80fbe7d1e057ab499f4bb2d4e85e8077c0d055f79063191bfe1de50ebf30028793e130d8a78160b
|
||||
EBUILD gcc-config-1.5.1-r1.ebuild 1647 SHA256 a7794c24c16349756f5d13f25899d94477069e89ecfa76ca4952f7073a61f058 SHA512 24133b50cb6cedbbde06fb829d2cdb554d543d9656c5ce2852d8fc210c13602fc0c93d7f9195d26d393e2386370b0d423b48f6b3a51ddab43b81860c8063f626 WHIRLPOOL 0e9311354c63403085b26587a9f6776a00de8227b851d7c8a79042b8b9b0355df1332677b9e855009d8fa333556903ac56d30df778d3b886a511137abab55bc8
|
||||
EBUILD gcc-config-1.5.1.ebuild 1644 SHA256 d608e32fe85c65266178acecd5be054230e78d0ecb85779974f524fe5d10d139 SHA512 98052baa412e8d0895b7aea9fa4ddfbbf3d7e287cedc3d89486303c73be485fcf08416a5bcb1d39385544a3d4737f7c0d27eb074ac2013e82305d60a11b6a2d9 WHIRLPOOL 946cab1f1b32ac34d4d55500b8c1986756a0e1f79c17a4d4daf44d12d58ee682ef6176fcc1e8ae30e3575fd141ce843c4c0bf059133ad17f3ce2437ff3382a35
|
||||
EBUILD gcc-config-1.6.ebuild 1219 SHA256 75c42a8eb44b158f178b4f80dc2512f45c8154e546033f8b788a8cf6f6780344 SHA512 51fa367da264420cffc9adc3c1269f9bc994f260c5550a5c9f1f113f15733dc6ec5df466dc01e904ac992e84404941971ec23fe4b87e5ffef256e9b547005e1e WHIRLPOOL 2fa8f3bc17876408af9d4bd9cd5bdbccf847371dfbb6bcc268da59a3ab227f09a6e6e00e6678bfc4ca900dc479392092acf5448734aa4f2a57b51473e59948b1
|
||||
EBUILD gcc-config-1.7.1.ebuild 1244 SHA256 7af82844612a8f9fbc03824b5ebfa3f8a172a6ea70212f6dc556d591223cf7db SHA512 139394d6b956bbc2641e2c3893ff88fb100bf16be77ec140846fb7d86455c9b82fa9e87d9df5c2e2f0ca2ffc6356957a2b85e52e34dbba6f06cfb559f1ce8742 WHIRLPOOL 0243b70d4549ed528f929c35d5c557835b6a7aa86b3358ce3fe734d56980e1b372e9b8c0691ce9ee32e752b211c0ada58f988f9c59e2c4867601477e49b00e9f
|
||||
EBUILD gcc-config-1.7.2.ebuild 1244 SHA256 c3722b59b29a99d951acf7805d774992ec2b83276738baa65b8ea40fb8c87592 SHA512 fae4f14a839ad64cff3990403e00acfce8577c5bed735c345126523804585412d23fca26fd8eb9b1934ee9f32dded6551728aec3c91e0fc2c2d0364ef72228bb WHIRLPOOL 048f056965d73ef843cb695e494c1449b6d95c2f82460fc752858eb812d314a2589f69ce5c3a12a3a249b5fbe5a0c3e905f2ec2ffc92821894e3c5ee13d4a84d
|
||||
EBUILD gcc-config-1.7.3.ebuild 1238 SHA256 44a8bb4f729f9c0eb1e4d0ad34f484f373fd62ee052bce27e055a84b4b081de3 SHA512 7c2595c05c5e6bea3b1d349c7645e9ec9d54bf2ade4179f3cbb12b770d9cd390322b4acdec11e3bec2605f53fe639870c74d550d11d8d2f65e0339c1bf7643a5 WHIRLPOOL 2c622c0f1b6786ef69c50ad3ac35f69e1e3781d8a80f123b91b38e326c3ebd5a9a0f405dd8a73bf92f180d2aed10ebfbc6a17c8c5bd2a3d480290e6550dd4ea6
|
||||
EBUILD gcc-config-1.7.ebuild 1244 SHA256 9f0f7d0fd0ef62c5d3b16db643575b6854d9b50327cc8dad6b486b73fb38fb1e SHA512 dbd109a77c533988f0bf9113ac7d07fc31136f35766b4ac69beafd01d75e6307da199569cfb759e14e367fd31d4fd3fd2c0e09a0d6da7e759998e45f3b37fcf4 WHIRLPOOL 4e00f684caaf031608225fbdf34e67194b8a925a4eb8675aaeef390d2e2b3f72c1e444b6bac3e59191aaf085f4be9988be98b97e2016b6be8515922ed94e2a31
|
||||
EBUILD gcc-config-1.8.ebuild 1249 SHA256 1b05db8c3da2e242f44cea0e5f497a1e09ea620012cc2083069f69f9b7029002 SHA512 9684d96b16fc5f6d888b36381c6c9343163ed56d80f6f189378622ee0219dfe6056af852c8aa3341a621ce012b5cf3042df90ae4025356829d97f565cc37da05 WHIRLPOOL cdd3fc5f7a24a773ffb80ac2e6f6e68091e387c860805f92fba2619db406ec7517e89b3d81f4c2144b79d146b598c6ea86e213a607b752096ba54d726283d5e5
|
||||
MISC ChangeLog 39343 SHA256 dd823b4ba36b485aa658b3fda33d8eb469b02a881652fe22b8acdbd46e515005 SHA512 27941a396e545e58d0caf437434d3a3ab92c6cb364266809c84264cd6592dfd6c822be18f6c668b38541a0ddb8212778c2e4c31fb5e73772b2d85c854f724f81 WHIRLPOOL 1b13c5c47edfa825f234e77e2a8b2e2a9a0b9453efe9c8c5d9e7e2423db463a227c1d72fbb81ae5a6d32881f925c92b036cfe54e8c39910a1c6f82f353cde839
|
||||
MISC metadata.xml 162 SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a SHA512 2a857e10b277827773a6c7967e070d7bfff23d75f44fa4d4fa8a7339df3225e6dba512a865d91c9c55bdb013dafdce85dface1b845acfbb5473e232666cdda45 WHIRLPOOL f7586c1570803b3e646f0be89ba6c767e82ec6889ef92d15f62a38f1410ed9d82c36892e5e83f694471959783d0d5ad667f1a39b7eb51f2080c269d5fa23d819
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJS2fA0AAoJEPGu1DbS6WIAiCMQAJg5+g/pXzVAcqPHKI0F5ReR
|
||||
D4TVBMfddt6Q6TeBy2w9aWF5LDpPhKUOD5vDbNZFJA/saBKel8UNPQbamVDOsAS6
|
||||
SNGvMU03WuN7b7PU7vEzRu4qh5Jm824Cgz10Rd/XDMc6IbE1CPbY6D6LmCy4ya3W
|
||||
kwGbx0Y3HfPnkBm0o1I8HrJd9P17WssEAB5XlQ8XFuOR0UotsgSsc7IaobX7f8dW
|
||||
F2xo1dzv1fGWQhs/4wSnVVpj3QhH/2f5TwB/ag89EBJ3K5bM0C6mlYeDwNeqpeyV
|
||||
vh6eOQhk1sbIKdPO4/E/3SYoYa7STInAr+abx3cfK9PrrKnyXpMb5NLTTqPcne7d
|
||||
mcCMF8fpTUZRExFnMhchQla1OuemGvyWiJ3MZv3Qndbjc02b11lNq16YVk20IKG/
|
||||
RHb4qbGnHhb8ljZ+zRnBdNL7WNneaPk/5VWiSqtfP2oiSIc1dN38X/FzYbyGQ81p
|
||||
n+e/tHtPngMy+zPSVQvbsqsAqf0krd01BXxh463SsHaC0VX9OB9IOlfRWcBBTaXg
|
||||
wYYXAwGGNa9ti6uOec5rJ9qzRhgdIPjBcFD7yoXN4323xWe0MVtcW9o/KWuEXRD+
|
||||
56Tr9cLELk0T9gUGYkCAg8YGD4cU9dTt3y/1N5gWSFNvDUkswrwhKSoxAZnZGM44
|
||||
wh9/+pJtBwf4J6YT++7L
|
||||
=07Sr
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
801
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.4.1
vendored
Normal file
801
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.4.1
vendored
Normal file
@ -0,0 +1,801 @@
|
||||
#!/bin/bash
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.1,v 1.12 2011/12/07 05:42:19 vapier Exp $
|
||||
|
||||
trap ":" INT QUIT TSTP
|
||||
|
||||
argv0=${0##*/}
|
||||
source /etc/init.d/functions.sh || {
|
||||
echo "${argv0}: Could not source /etc/init.d/functions.sh!"
|
||||
exit 1
|
||||
}
|
||||
esyslog() { :; }
|
||||
umask 022
|
||||
|
||||
# *BSD are plain stupid ... copy a GNU extension but don't just copy it,
|
||||
# change it so it works differently. Wish Darwin did selective evolution
|
||||
# on software developers.
|
||||
SED=$(type -P gsed)
|
||||
SED=${SED:-$(type -P sed)}
|
||||
|
||||
GENTOO_LIBDIR="@GENTOO_LIBDIR@"
|
||||
[[ ${GENTOO_LIBDIR} == @*@ ]] && GENTOO_LIBDIR="lib"
|
||||
|
||||
usage() {
|
||||
cat << "USAGE_END"
|
||||
Usage: gcc-config [options] [CC Profile]
|
||||
Change the current cc/gcc profile, or give info about profiles.
|
||||
|
||||
Options:
|
||||
-C, --nocolor Disable color output
|
||||
-O, --use-old Use the old profile if one was selected.
|
||||
-f, --force Make sure all config files are regenerated.
|
||||
-P, --use-portage-chost Only set to given profile if its CHOST is the
|
||||
same as that set for portage in /etc/make.conf
|
||||
(or one of other portage config files...).
|
||||
-c, --get-current-profile Print current used gcc profile.
|
||||
-l, --list-profiles Print a list of available profiles.
|
||||
-S, --split-profile Split profiles into their components
|
||||
-E, --print-environ Print environment that can be used to setup the
|
||||
current gcc profile, or a specified one.
|
||||
-B, --get-bin-path Print path where binaries of the given/current
|
||||
profile are located.
|
||||
-L, --get-lib-path Print path where libraries of the given/current
|
||||
profile are located.
|
||||
-X, --get-stdcxx-incdir Print path where g++ include files of the
|
||||
given/current profile are located.
|
||||
|
||||
Profile names are of the form: <CHOST>-<gcc version>
|
||||
For example: i686-pc-linux-gnu-3.2.1
|
||||
USAGE_END
|
||||
exit $1
|
||||
}
|
||||
[[ $# -lt 1 ]] && usage 1
|
||||
|
||||
try_real_hard_to_find_CHOST() {
|
||||
#
|
||||
# First we read make.conf
|
||||
#
|
||||
|
||||
local varname=${1:-CHOST}
|
||||
local conf=${ROOT}/etc/make.conf
|
||||
local ret=$(source "${conf}" 2>/dev/null ; echo ${!varname})
|
||||
if [[ -z ${ret} ]] ; then
|
||||
# newer portage supports spaces between the var and =
|
||||
# CHOST = "this-is-retarded"
|
||||
ret=$(eval $(
|
||||
sed -n \
|
||||
-e 's:[[:space:]]::g' \
|
||||
-e "/^${varname}=/p" \
|
||||
"${conf}"
|
||||
) ; echo ${!varname}
|
||||
)
|
||||
fi
|
||||
|
||||
if [[ -n ${ret} ]] ; then
|
||||
echo ${ret}
|
||||
return 0
|
||||
fi
|
||||
|
||||
#
|
||||
# Then we try /etc/env.d/gcc/config-${CTARGET}
|
||||
#
|
||||
if [[ -s ${ROOT}/etc/env.d/gcc/config-${CTARGET} ]] ; then
|
||||
ret=$(split_gcc_ver $(eval $(<"${ROOT}"/etc/env.d/gcc/config-${CTARGET}) ; echo ${CURRENT}))
|
||||
echo ${ret% *}
|
||||
fi
|
||||
}
|
||||
|
||||
get_real_chost() {
|
||||
[[ -n ${REAL_CHOST} ]] && return 0
|
||||
|
||||
# shortcut for switching compilers in a cross chroot
|
||||
if [[ -n ${CHOST} && ${ROOT} != "/" ]] ; then
|
||||
REAL_CHOST=${CHOST}
|
||||
return 0
|
||||
fi
|
||||
|
||||
# make sure portage isnt broken
|
||||
if python -V &>/dev/null ; then
|
||||
export REAL_CHOST=$(env -i portageq envvar CHOST 2>/dev/null)
|
||||
else
|
||||
ewarn "Python seems to be broken, attempting to locate CHOST ourselves ..."
|
||||
export REAL_CHOST=$(try_real_hard_to_find_CHOST)
|
||||
fi
|
||||
|
||||
if [[ -z ${REAL_CHOST} ]] ; then
|
||||
eerror "${argv0}: Could not get portage CHOST!"
|
||||
eerror "${argv0}: You should verify that CHOST is set in one of these places:"
|
||||
eerror "${argv0}: - ${ROOT}/etc/make.conf"
|
||||
eerror "${argv0}: - active environment"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_cross_compiler() {
|
||||
get_real_chost
|
||||
[[ ${CC_COMP/${REAL_CHOST}} == ${CC_COMP} ]]
|
||||
}
|
||||
|
||||
# bool files_exists(search_path, files)
|
||||
# Return shell true if the specified files exist.
|
||||
# Files with relative paths are searched for in search_path.
|
||||
# Both lists are : delimited.
|
||||
files_exist() {
|
||||
local p f ret old_IFS
|
||||
local paths=$1 files=$2
|
||||
|
||||
old_IFS=${IFS}
|
||||
export IFS=":"
|
||||
|
||||
ret=0
|
||||
for f in ${files} ; do
|
||||
if [[ ${f} == /* ]] ; then
|
||||
[[ ! -f ${f} ]] && ret=1 && break
|
||||
else
|
||||
# make sure the file exists in at least
|
||||
# one of the specified paths
|
||||
ret=1
|
||||
for p in ${paths} ; do
|
||||
[[ -f ${p}/${f} ]] && ret=0 && break
|
||||
done
|
||||
[[ ${ret} == 1 ]] && break
|
||||
fi
|
||||
done
|
||||
|
||||
export IFS=${old_IFS}
|
||||
if [[ ${ret} == 1 ]] ; then
|
||||
ewarn "Could not locate '${f}' in '${paths}'"
|
||||
fi
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
switch_profile() {
|
||||
local MY_LDPATH=
|
||||
local GCC_PROFILES=
|
||||
local OLD_CC_COMP=
|
||||
local GCC_PATH=
|
||||
|
||||
if [[ $(id -u) != "0" ]] ; then
|
||||
eerror "${argv0}: Must be root."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if is_cross_compiler ; then
|
||||
ebegin "Switching cross-compiler to ${CC_COMP}"
|
||||
else
|
||||
ebegin "Switching native-compiler to ${CC_COMP}"
|
||||
fi
|
||||
|
||||
if ! is_cross_compiler ; then
|
||||
# Order our profiles to have the default first ...
|
||||
# We do this so that we can have them ordered with default
|
||||
# first in /etc/ld.so.conf, as the logical is that all
|
||||
# compilers for default CHOST will be used to compile stuff,
|
||||
# and thus we want all their lib paths in /etc/ld.so.conf ...
|
||||
get_real_chost
|
||||
GCC_PROFILES=$(LC_ALL="C" ls -r ${GCC_ENV_D}/${REAL_CHOST}-*)
|
||||
GCC_PROFILES="${GCC_ENV_D}/${CC_COMP} ${GCC_PROFILES}"
|
||||
|
||||
# Extract all LDPATH's for our CHOST
|
||||
MY_LDPATH=""
|
||||
for x in ${GCC_PROFILES} ; do
|
||||
if [[ -f ${x} ]] ; then
|
||||
LDPATH=$(source "${x}"; echo ${LDPATH})
|
||||
|
||||
# Handle LDPATH's that have multiple directories
|
||||
local old_IFS=${IFS}
|
||||
export IFS=":"
|
||||
local sub_ldpath=
|
||||
for sub_ldpath in ${LDPATH} ; do
|
||||
if [[ -d ${sub_ldpath} ]] ; then
|
||||
if [[ ${MY_LDPATH/:${sub_ldpath}} == ${MY_LDPATH} ]] ; then
|
||||
MY_LDPATH="${MY_LDPATH}:${sub_ldpath}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
export IFS=${old_IFS}
|
||||
fi
|
||||
done
|
||||
MY_LDPATH="${MY_LDPATH:1}" # trim leading :
|
||||
fi
|
||||
|
||||
# Translate old PATH/ROOTPATH to GCC_PATH
|
||||
cp -p "${GCC_ENV_D}/${CC_COMP}" "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
GCC_PATH=$(
|
||||
unset GCC_PATH PATH ROOTPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo ${GCC_PATH:-${PATH:-${ROOTPATH}}}
|
||||
)
|
||||
${SED} -i \
|
||||
-e '/^PATH=/d' \
|
||||
-e '/^ROOTPATH=/d' \
|
||||
-e '/^GCC_PATH=/d' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
echo "GCC_PATH=\"${GCC_PATH}\"" >> "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
touch -r "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
rm -f "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
|
||||
# Setup things properly again for this profile
|
||||
unset GCC_SPECS LDPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
OLD_CC_COMP=$(get_current_profile)
|
||||
|
||||
# What kind of env.d entry are we going to generate ?
|
||||
if is_cross_compiler ; then
|
||||
echo "PATH=\"${GCC_PATH}\"" > "${ENV_D}/05gcc-${CTARGET}"
|
||||
echo "ROOTPATH=\"${GCC_PATH}\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
echo "CURRENT=${CC_COMP}" > "${GCC_ENV_D}/config-${CTARGET}"
|
||||
else
|
||||
# Pass all by default
|
||||
awk '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS|GCC_PATH)=/ {print $0}' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" > "${ENV_D}/05gcc-${CTARGET}"
|
||||
echo "LDPATH=\"${MY_LDPATH}\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
echo "PATH=\"${GCC_PATH}\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
echo "ROOTPATH=\"${GCC_PATH}\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
if [[ -n ${GCC_SPECS} ]] ; then
|
||||
if files_exist ${MY_LDPATH} ${GCC_SPECS} ; then
|
||||
echo "GCC_SPECS=\"${GCC_SPECS}\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
else
|
||||
echo
|
||||
ewarn "Your GCC spec configurations are broken."
|
||||
ewarn "Please re-emerge gcc."
|
||||
echo
|
||||
fi
|
||||
else
|
||||
# People need to rebuild their gcc or setting GCC_SPECS to
|
||||
# "" will cause issues again :(
|
||||
if [[ ${ROOT} != "/" ]] ; then
|
||||
echo "GCC_SPECS=\"\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
else
|
||||
if ! GCC_SPECS="" /usr/bin/gcc -v &>/dev/null ; then
|
||||
echo
|
||||
ewarn "Your gcc has a bug with GCC_SPECS."
|
||||
ewarn "Please re-emerge gcc."
|
||||
ewarn "http://bugs.gentoo.org/68395"
|
||||
echo
|
||||
else
|
||||
echo "GCC_SPECS=\"\"" >> "${ENV_D}/05gcc-${CTARGET}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "CURRENT=${CC_COMP}" > "${GCC_ENV_D}/config-${CTARGET}"
|
||||
|
||||
# Help out the gcc wrapper
|
||||
rm -f "${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE"
|
||||
ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
|
||||
|
||||
# Punt old files
|
||||
rm -f "${ENV_D}/05gcc"
|
||||
rm -f "${ENV_D}/05gcc-${CTARGET}"-*
|
||||
rm -f "${GCC_ENV_D}/config"
|
||||
rm -f "${GCC_ENV_D}/config-${CTARGET}"-*
|
||||
fi
|
||||
|
||||
# Find the bin wrapper
|
||||
local wrapper
|
||||
for wrapper in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do
|
||||
wrapper="${ROOT}usr/${wrapper}/misc/gcc-config"
|
||||
[[ -e ${wrapper} ]] && break
|
||||
done
|
||||
|
||||
# Update the wrappers for this profile
|
||||
for x in {,${CTARGET}-}{cpp,cc,gcc,c++,g++,f77,g77,gcj,gcjh,gcov,gdc,gdmd,gfortran} ; do
|
||||
# Obviously don't want to touch native stuff for cross-compilers
|
||||
[[ ${x} != ${CTARGET}-* ]] && is_cross_compiler && continue
|
||||
|
||||
# Make sure we have no stale wrappers
|
||||
rm -f "${ROOT}/usr/bin/${x}"
|
||||
[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \
|
||||
&& rm -f "${ROOT}/usr/bin/${x}"{32,64}
|
||||
|
||||
# Only install a wrapper if the binary exists ...
|
||||
# We want to figure out the 'reference file' for each
|
||||
# wrapper (the binary we're 'wrapping') so that we can
|
||||
# sync mtimes together. This makes things like ccache
|
||||
# happy. See Bug #70548 for more info.
|
||||
local ref
|
||||
case ${x} in
|
||||
cc) ref=${ROOT}/${GCC_PATH}/gcc;;
|
||||
f77) ref=${ROOT}/${GCC_PATH}/g77;;
|
||||
*) ref=${ROOT}/${GCC_PATH}/${x};;
|
||||
esac
|
||||
if [[ -x ${ref} ]] ; then
|
||||
cp -f "${wrapper}" "${ROOT}/usr/bin/${x}"
|
||||
touch -r "${ref}" "${ROOT}/usr/bin/${x}"
|
||||
|
||||
# Install 32bit and 64bit wrappers if need be
|
||||
# This should probably get folded back into the wrapper ...
|
||||
if [[ ${x:${#x}-3} == "gcc" ]] || [[ ${x:${#x}-3} == "g++" ]] ; then
|
||||
for bits in ${GCCBITS} ; do
|
||||
cp -f "${wrapper}" "${ROOT}/usr/bin/${x}${bits}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# legacy cruft, make sure we dont leave it laying around #143205
|
||||
rm -f "${ROOT}/usr/bin/${CTARGET}-cc"
|
||||
# Only install cpp if switching to a native one
|
||||
if ! is_cross_compiler && [[ ${CTARGET} != *-solaris* ]] ; then
|
||||
rm -f "${ROOT}/lib/cpp"
|
||||
cp -f "${wrapper}" "${ROOT}/lib/cpp"
|
||||
fi
|
||||
|
||||
# Relocate random crap
|
||||
if ! is_cross_compiler ; then
|
||||
if [[ -e ${ROOT}/usr/${GENTOO_LIBDIR}/pkgconfig/libgcj-${CC_COMP_VERSION}.pc ]] ; then
|
||||
local mver=${CC_COMP_VERSION:0:3}
|
||||
for x in "" "-${mver}" ; do
|
||||
x="${ROOT}/usr/lib/pkgconfig/libgcj${x}.pc"
|
||||
rm -f "${x}"
|
||||
ln -s libgcj-${CC_COMP_VERSION}.pc "${x}"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# We need to make sure that libgcc_s.so / libunwind.so make it into /lib.
|
||||
# On many systems (x86/amd64/etc...), this will probably never matter,
|
||||
# but on other systems (arm/mips/etc...), this is quite critical.
|
||||
# http://bugs.gentoo.org/60190
|
||||
#
|
||||
# The funky move magic is required for proper updating of in-use files.
|
||||
if ! is_cross_compiler ; then
|
||||
# Need to cut out extra paths in multilib case and pray the first path
|
||||
# is the "root" multilib path ... maybe some day change this to use
|
||||
# `gcc -print-file-name` ...
|
||||
LDPATH=${LDPATH%%:*}
|
||||
for multilib in $("${ROOT}/${GCC_PATH}"/gcc -print-multi-lib); do
|
||||
multiarg=${multilib#*;}
|
||||
multiarg=${multiarg/@/-}
|
||||
multilibdir=${multilib%;*}
|
||||
libdir="lib/"$("${ROOT}/${GCC_PATH}"/gcc ${multiarg} -print-multi-os-directory)
|
||||
if mkdir -p "${ROOT}/${libdir}"/.gcc.config.new ; then
|
||||
for gcclib in gcc_s unwind ; do
|
||||
if [[ -n $(ls "${ROOT}/${LDPATH}/${multilibdir}"/lib${gcclib}.so.* 2>/dev/null) ]]; then
|
||||
cp -pP "${ROOT}/${LDPATH}/${multilibdir}"/lib${gcclib}.so.* "${ROOT}/${libdir}"/.gcc.config.new/
|
||||
# no need to sanity remove this as the `mv` should take
|
||||
# care of it. we also need this step to be completly atomic
|
||||
# for systems that have even `mv` linked against libgcc_s.so.
|
||||
# http://bugs.gentoo.org/150257
|
||||
#rm -f "${ROOT}/${libdir}"/lib${gcclib}.so*
|
||||
mv -f "${ROOT}/${libdir}"/.gcc.config.new/* "${ROOT}/${libdir}"/
|
||||
fi
|
||||
done
|
||||
rmdir "${ROOT}/${libdir}"/.gcc.config.new
|
||||
fi
|
||||
done
|
||||
unset multilib
|
||||
unset multilibdir
|
||||
unset multiarg
|
||||
unset libdir
|
||||
fi
|
||||
|
||||
if [[ ${ROOT} == "/" ]] && [[ ${OLD_CC_COMP} != ${CC_COMP} || ${FORCE} == "yes" ]] ; then
|
||||
# in case python is broken ...
|
||||
if ! env-update ; then
|
||||
echo ""
|
||||
ewarn "env-update failed to work properly; making sure ld.so.conf paths"
|
||||
ewarn "are setup properly. Please rerun gcc-config with the -f option."
|
||||
echo ""
|
||||
grep -h ^LDPATH= "${ROOT}"/etc/env.d/05gcc-${CTARGET} \
|
||||
| sed -e 's:^LDPATH=::' -e 's:"::g' -e 's|:|\n|g' \
|
||||
>> /etc/ld.so.conf
|
||||
ldconfig
|
||||
fi
|
||||
fi
|
||||
|
||||
eend 0
|
||||
|
||||
if [[ ${ROOT} == "/" ]] && [[ ${OLD_CC_COMP} != ${CC_COMP} ]] ; then
|
||||
echo
|
||||
ewarn "If you intend to use the gcc from the new profile in an already"
|
||||
ewarn "running shell, please remember to do:"
|
||||
echo
|
||||
ewarn " . /etc/profile"
|
||||
echo
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
get_current_profile() {
|
||||
local conf="${GCC_ENV_D}/config"
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
conf="${GCC_ENV_D}/config-${CTARGET}"
|
||||
elif [[ -n ${CC_COMP} ]] && is_cross_compiler ; then
|
||||
conf="${conf}-${CC_COMP}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
CURRENT=$(source "${conf}"; echo ${CURRENT})
|
||||
|
||||
if [[ -z ${CURRENT} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
elif [[ ! -f ${GCC_ENV_D}/${CURRENT} ]] ; then
|
||||
eerror "${argv0}: Active gcc profile is invalid!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "${CURRENT}"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
list_profiles() {
|
||||
local i=0
|
||||
local filter=
|
||||
|
||||
if [[ ${ROOT} != "/" ]] ; then
|
||||
echo "Using gcc-config info in ${ROOT}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${GCC_ENV_D}/config-${CTARGET} ]] ; then
|
||||
if ! is_cross_compiler && [[ -e ${GCC_ENV_D}/config ]] ; then
|
||||
[[ -w ${GCC_ENV_D}/config ]] && mv ${GCC_ENV_D}/config ${GCC_ENV_D}/config-${CTARGET}
|
||||
else
|
||||
eerror "${argv0}: No gcc profile is active; please select one!"
|
||||
filter=${CTARGET}
|
||||
fi
|
||||
fi
|
||||
|
||||
eval $(grep -s ^CURRENT= "${GCC_ENV_D}"/config-${CTARGET})
|
||||
CURRENT_NATIVE=${CURRENT}
|
||||
local target=
|
||||
for x in "${GCC_ENV_D}"/* ; do
|
||||
if [[ -f ${x} ]] && [[ ${x/\/config} == ${x} ]] ; then
|
||||
CTARGET=$(unset CTARGET; source "${x}"; echo ${CTARGET})
|
||||
|
||||
((++i))
|
||||
|
||||
[[ -n ${filter} ]] && [[ ${filter} != ${CTARGET:-${REAL_CHOST}} ]] && continue
|
||||
|
||||
if [[ ${target} != ${CTARGET} ]] ; then
|
||||
[[ -n ${target} ]] && echo
|
||||
target=${CTARGET}
|
||||
CTARGET=""
|
||||
fi
|
||||
|
||||
x=${x##*/}
|
||||
if [[ ${x} == ${CURRENT_NATIVE} ]] ; then
|
||||
x="${x} ${GOOD}*${NORMAL}"
|
||||
elif [[ -e ${GCC_ENV_D}/config-${target} ]] ; then
|
||||
source "${GCC_ENV_D}/config-${target}"
|
||||
[[ ${x} == ${CURRENT} ]] && x="${x} ${HILITE}*${NORMAL}"
|
||||
fi
|
||||
echo " [${i}] ${x}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
print_environ() {
|
||||
local GCC_PATH=
|
||||
local ENV_CMD=
|
||||
local SET_ELEMENT=
|
||||
|
||||
GCC_PATH=$(source "${GCC_ENV_D}/${CC_COMP}"; echo ${GCC_PATH:-${PATH}})
|
||||
|
||||
case ${SHELL} in
|
||||
*/csh|*/tcsh)
|
||||
ENV_CMD="setenv"
|
||||
SET_ELEMENT=" "
|
||||
;;
|
||||
*)
|
||||
ENV_CMD="export"
|
||||
SET_ELEMENT="="
|
||||
;;
|
||||
esac
|
||||
|
||||
(
|
||||
PATH=${GCC_PATH}:${PATH}
|
||||
for var in PATH GCC_SPECS ; do
|
||||
echo "${ENV_CMD} ${var}${SET_ELEMENT}\"${!var}\""
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
get_bin_path() {
|
||||
if [[ -e ${GCC_ENV_D}/${CC_COMP} ]] ; then
|
||||
(
|
||||
unset PATH GCC_PATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo "${GCC_PATH:-${PATH}}"
|
||||
)
|
||||
else
|
||||
echo "no-config"
|
||||
echo "${GCC_ENV_D}/${CC_COMP} doesnt exist" 1>&2
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
get_lib_path() {
|
||||
if [[ -e ${GCC_ENV_D}/${CC_COMP} ]] ; then
|
||||
(
|
||||
unset LDPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo "${LDPATH}"
|
||||
)
|
||||
else
|
||||
echo "no-config"
|
||||
echo "${GCC_ENV_D}/${CC_COMP} doesnt exist" 1>&2
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
get_stdcxx_incdir() {
|
||||
# XXX: we should prob scrub this ...
|
||||
if [[ -e ${GCC_ENV_D}/${CC_COMP} ]] ; then
|
||||
(
|
||||
unset LDPATH STDCXX_INCDIR
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo "${LDPATH}/include/${STDCXX_INCDIR}"
|
||||
)
|
||||
else
|
||||
echo "no-config"
|
||||
echo "${GCC_ENV_D}/${CC_COMP} doesnt exist" 1>&2
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
split_gcc_ver() {
|
||||
# Split up the gcc profile into components:
|
||||
# TARGET-VER[-specs] -> TARGET VER [specs]
|
||||
# arm-linux-3.3.6 -> arm-linux 3.3.6
|
||||
# x86_64-linux-4.0.1-pre1234 -> x86_64-linux 4.0.1-pre1234
|
||||
# sh-linux-3.4.4-hardened -> sh-linux 3.4.4 hardened
|
||||
#
|
||||
# So below we will start at the end and run a small state machine ...
|
||||
# specs [3]
|
||||
# accept everything
|
||||
# specs -> version transition [3->2]
|
||||
# when we find a version component
|
||||
# version [2]
|
||||
# accept only version components (see the regex)
|
||||
# version -> target transition [2->1]
|
||||
# when we hit a non version component
|
||||
# target [1]
|
||||
# accept everything we have left
|
||||
#
|
||||
echo "$@" | awk -F- '
|
||||
function pushit(onme, pushee) {
|
||||
return (onme == "" ? pushee : pushee"-"onme);
|
||||
}
|
||||
{
|
||||
state=3
|
||||
targ=""
|
||||
ver=""
|
||||
spec=""
|
||||
for (i=NF; i > 0; --i) {
|
||||
if (state >= 2) {
|
||||
if ($i ~ /^(alpha|beta|pre|rc|p)?[[:digit:].]+$/) {
|
||||
ver=pushit(ver, $i)
|
||||
state=2
|
||||
} else if (state == 3)
|
||||
spec=pushit(spec, $i)
|
||||
else
|
||||
state=1
|
||||
}
|
||||
if (state == 1)
|
||||
targ = pushit(targ, $i)
|
||||
}
|
||||
|
||||
if (targ == "") {
|
||||
if (ver == "") {
|
||||
ver=spec
|
||||
spec=""
|
||||
}
|
||||
targ=ver
|
||||
ver=""
|
||||
}
|
||||
print targ " " ver (spec != "" ? " " spec : "")
|
||||
}'
|
||||
}
|
||||
chop_gcc_ver_spec() {
|
||||
local splitTED=$(split_gcc_ver $@) # target ver spec
|
||||
splitTED=${splitTED#* } # ver spec
|
||||
echo ${splitTED/ /-} # ver-spec
|
||||
}
|
||||
|
||||
SET_X=false
|
||||
NEED_ACTION="yes"
|
||||
DOIT="switch_profile"
|
||||
CHECK_CHOST="no"
|
||||
FORCE="no"
|
||||
|
||||
CC_COMP=
|
||||
[[ -z ${ROOT} ]] && ROOT="/"
|
||||
[[ ${ROOT:0-1} != "/" ]] && ROOT="${ROOT}/"
|
||||
ENV_D="${ROOT}etc/env.d"
|
||||
GCC_ENV_D="${ENV_D}/gcc"
|
||||
|
||||
for x in "$@" ; do
|
||||
case "${x}" in
|
||||
# Only use specified compiler if one is not already selected.
|
||||
-O|--use-old)
|
||||
CTARGET=${CTARGET:-$(try_real_hard_to_find_CHOST)}
|
||||
if get_current_profile &>/dev/null ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
else
|
||||
eerror "No profile selected, unable to utilize --use-old"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
-f|--force)
|
||||
FORCE="yes"
|
||||
;;
|
||||
-P|--use-portage-chost)
|
||||
CHECK_CHOST="yes"
|
||||
;;
|
||||
-c|--get-current-profile)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_current_profile"
|
||||
fi
|
||||
;;
|
||||
-l|--list-profiles)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="list_profiles"
|
||||
fi
|
||||
;;
|
||||
-S|--split-profile)
|
||||
if [[ ( $1 != "-S" && $1 != "--split-profile" ) || $# -eq 1 ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
shift # push -S out
|
||||
for x in "$@" ; do
|
||||
split_gcc_ver ${x}
|
||||
done
|
||||
exit 0
|
||||
;;
|
||||
-E|--print-environ)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="print_environ"
|
||||
fi
|
||||
;;
|
||||
-B|--get-bin-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_bin_path"
|
||||
fi
|
||||
;;
|
||||
-L|--get-lib-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_lib_path"
|
||||
fi
|
||||
;;
|
||||
-X|--get-stdcxx-incdir)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_stdcxx_incdir"
|
||||
fi
|
||||
;;
|
||||
-x|--debug)
|
||||
SET_X=true
|
||||
;;
|
||||
-C|--nocolor)
|
||||
# nothing to do; functions.sh parsed this for us
|
||||
;;
|
||||
-h|--help)
|
||||
usage 0
|
||||
;;
|
||||
-V|--version)
|
||||
rcsfile="$RCSfile: gcc-config-1.4.1,v $"
|
||||
rcsfile=${rcsfile#: }
|
||||
rcsfile=${rcsfile%,v*}
|
||||
cvsrev="$Revision: 1.12 $"
|
||||
cvsrev=${cvsrev#: }
|
||||
cvsdate="$Date: 2011/12/07 05:42:19 $"
|
||||
cvsdate=${cvsdate#: }
|
||||
echo "${rcsfile} (r${cvsrev% *} @ ${cvsdate% *})"
|
||||
exit 0
|
||||
;;
|
||||
-*)
|
||||
eerror "${argv0}: Invalid switch! Run ${argv0} without parameters for help."
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
${SET_X} && set -x
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
if [[ -z $(echo ${x} | tr -d '[:digit:]') ]] ; then
|
||||
# User gave us a # representing the profile
|
||||
i=1
|
||||
for y in "${GCC_ENV_D}"/* ; do
|
||||
[[ -f ${y} ]] || continue
|
||||
[[ ${y/\/config} != ${y} ]] && continue
|
||||
|
||||
if [[ -f ${y} ]] && [[ ${x} == ${i} ]] ; then
|
||||
CC_COMP=${y##*/}
|
||||
break
|
||||
fi
|
||||
((++i))
|
||||
done
|
||||
else
|
||||
# User gave us a full HOST-gccver
|
||||
x=${x##*/}
|
||||
if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \
|
||||
[[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]]
|
||||
then
|
||||
# Maybe they just gave us a gccver ...
|
||||
get_real_chost
|
||||
if [[ -f ${GCC_ENV_D}/${REAL_CHOST}-${x} ]] ; then
|
||||
x=${REAL_CHOST}-${x}
|
||||
else
|
||||
eerror "${argv0}: Could not locate '$x' in '${GCC_ENV_D}/' !"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
CC_COMP=${x}
|
||||
fi
|
||||
else
|
||||
eerror "${argv0}: Too many arguments! Run ${argv0} without parameters for help."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
${SET_X} && set -x
|
||||
|
||||
get_real_chost
|
||||
[[ ${DOIT} == "get_current_profile" ]] \
|
||||
&& CTARGET=${CTARGET:-${CC_COMP:-${REAL_CHOST}}} \
|
||||
|| CTARGET=${CTARGET:-${REAL_CHOST}}
|
||||
|
||||
if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
echo "${CC_COMP}"
|
||||
list_profiles
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${DOIT} != "get_current_profile" ]] ; then
|
||||
GCC_LIB=$(
|
||||
LDPATH=$(source "${GCC_ENV_D}/${CC_COMP}"; echo ${LDPATH})
|
||||
echo ${LDPATH} | awk -F/ '{ print "/"$2"/"$3"/"$4"/" }'
|
||||
)
|
||||
|
||||
CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
|
||||
CC_COMP_TARGET=${CC_COMP%-${CC_COMP_VERSION}*}
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then
|
||||
CC_COMP_VERSION=${CC_COMP_VERSION%-*}
|
||||
fi
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]] || \
|
||||
[[ ! -f ${GCC_ENV_D}/${CC_COMP} ]]
|
||||
then
|
||||
eerror "${argv0}: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2
|
||||
#exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${CHECK_CHOST} == "yes" ]] ; then
|
||||
# Chosen CHOST are not the same as the real CHOST according to
|
||||
# make.conf, and --use-portage-chost option was given, so do nothing
|
||||
get_real_chost
|
||||
CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
|
||||
CC_COMP_TARGET=${CC_COMP:0:${#CC_COMP}-${#CC_COMP_VERSION}-1}
|
||||
[[ ${CC_COMP_TARGET} != ${REAL_CHOST} ]] && exit 0
|
||||
fi
|
||||
|
||||
eval ${DOIT}
|
||||
|
||||
# vim:ts=4
|
||||
740
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.5
vendored
Executable file
740
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.5
vendored
Executable file
@ -0,0 +1,740 @@
|
||||
#!/bin/bash
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.5,v 1.7 2011/12/07 05:42:19 vapier Exp $
|
||||
|
||||
# Format of /etc/env.d/gcc/:
|
||||
# config-TARGET: CURRENT=version for TARGET
|
||||
# TARGET-VER: has a TARGET and VER variable
|
||||
|
||||
: ${ROOT:=/}
|
||||
[[ ${ROOT} != */ ]] && ROOT="${ROOT}/"
|
||||
[[ ${ROOT} != /* ]] && ROOT="${PWD}${ROOT}"
|
||||
|
||||
cd /
|
||||
|
||||
trap ":" INT QUIT TSTP
|
||||
|
||||
argv0=${0##*/}
|
||||
source /etc/init.d/functions.sh || {
|
||||
echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2
|
||||
exit 1
|
||||
}
|
||||
esyslog() { :; }
|
||||
umask 022
|
||||
|
||||
die_eerror() {
|
||||
eerror "${argv0}: $*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# *BSD are plain stupid ... copy a GNU extension but don't just copy it,
|
||||
# change it so it works differently. Wish Darwin did selective evolution
|
||||
# on software developers.
|
||||
SED=$(type -P gsed)
|
||||
: ${SED:=$(type -P sed)}
|
||||
|
||||
# Further pain: `tac` is not available everywhere #390179
|
||||
if ! type -P tac >/dev/null ; then
|
||||
tac() { ${SED} -e '1!G;h;$!d' "$@" ; }
|
||||
fi
|
||||
|
||||
GENTOO_LIBDIR="@GENTOO_LIBDIR@"
|
||||
[[ ${GENTOO_LIBDIR} == @*@ ]] && GENTOO_LIBDIR="lib"
|
||||
|
||||
usage() {
|
||||
cat << "USAGE_END"
|
||||
Usage: gcc-config [options] [CC Profile]
|
||||
Change the current cc/gcc profile, or give info about profiles.
|
||||
|
||||
Options:
|
||||
-C, --nocolor Disable color output
|
||||
-O, --use-old Use the old profile if one was selected.
|
||||
-f, --force Make sure all config files are regenerated.
|
||||
-P, --use-portage-chost Only set to given profile if its CHOST is the
|
||||
same as that set in /etc/portage/make.conf
|
||||
(or one of other portage config files...).
|
||||
-c, --get-current-profile Print current used gcc profile.
|
||||
-l, --list-profiles Print a list of available profiles.
|
||||
-S, --split-profile Split profiles into their components
|
||||
-E, --print-environ Print environment that can be used to setup the
|
||||
current gcc profile, or a specified one.
|
||||
-B, --get-bin-path Print path where binaries of the given/current
|
||||
profile are located.
|
||||
-L, --get-lib-path Print path where libraries of the given/current
|
||||
profile are located.
|
||||
|
||||
Profile names are of the form: <CHOST>-<gcc version>
|
||||
For example: i686-pc-linux-gnu-3.2.1
|
||||
USAGE_END
|
||||
exit ${1:-1}
|
||||
}
|
||||
[[ $# -lt 1 ]] && usage 1
|
||||
|
||||
# Usage: source_var <var> <file> [default value]
|
||||
source_var() {
|
||||
unset $1
|
||||
local val=$(source "$2"; echo ${!1})
|
||||
: ${val:=$3}
|
||||
eval $1=\"${val}\"
|
||||
}
|
||||
show_var() {
|
||||
source_var "$@"
|
||||
echo "${!1}"
|
||||
}
|
||||
|
||||
try_real_hard_to_find_CHOST() {
|
||||
#
|
||||
# First we read make.conf
|
||||
#
|
||||
|
||||
local varname=${1:-CHOST}
|
||||
local conf=${ROOT}/etc/portage/make.conf
|
||||
if [[ ! -e ${conf} && -e ${ROOT}/etc/make.conf ]] ; then
|
||||
conf=${ROOT}/etc/make.conf
|
||||
fi
|
||||
local ret=$(source "${conf}" 2>/dev/null ; echo ${!varname})
|
||||
if [[ -z ${ret} ]] ; then
|
||||
# newer portage supports spaces between the var and =
|
||||
# CHOST = "this-is-retarded"
|
||||
ret=$(eval $(
|
||||
sed -n \
|
||||
-e 's:[[:space:]]::g' \
|
||||
-e "/^${varname}=/p" \
|
||||
"${conf}"
|
||||
) ; echo ${!varname}
|
||||
)
|
||||
fi
|
||||
|
||||
if [[ -n ${ret} ]] ; then
|
||||
echo ${ret}
|
||||
return 0
|
||||
fi
|
||||
|
||||
#
|
||||
# Then we try /etc/env.d/gcc/config-${CTARGET}
|
||||
#
|
||||
if [[ -s ${ROOT}/etc/env.d/gcc/config-${CTARGET} ]] ; then
|
||||
ret=$(split_gcc_ver $(show_var CURRENT "${ROOT}"/etc/env.d/gcc/config-${CTARGET}))
|
||||
echo ${ret% *}
|
||||
fi
|
||||
}
|
||||
|
||||
get_real_chost() {
|
||||
[[ -n ${REAL_CHOST} ]] && return 0
|
||||
|
||||
# shortcut for switching compilers in a cross chroot
|
||||
if [[ -n ${CHOST} && ${ROOT} != "/" ]] ; then
|
||||
REAL_CHOST=${CHOST}
|
||||
return 0
|
||||
fi
|
||||
|
||||
# make sure portage isnt broken
|
||||
if python -V &>/dev/null ; then
|
||||
export REAL_CHOST=$(env -i portageq envvar CHOST 2>/dev/null)
|
||||
else
|
||||
ewarn "Python seems to be broken, attempting to locate CHOST ourselves ..."
|
||||
export REAL_CHOST=$(try_real_hard_to_find_CHOST)
|
||||
fi
|
||||
|
||||
if [[ -z ${REAL_CHOST} ]] ; then
|
||||
eerror "${argv0}: Could not get portage CHOST!"
|
||||
eerror "${argv0}: You should verify that CHOST is set in one of these places:"
|
||||
eerror "${argv0}: - ${ROOT}/etc/portage/make.conf"
|
||||
eerror "${argv0}: - active environment"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_cross_compiler() {
|
||||
get_real_chost
|
||||
[[ ${CC_COMP/${REAL_CHOST}} == ${CC_COMP} ]]
|
||||
}
|
||||
|
||||
convert_profile_paths() {
|
||||
# Older gcc's used PATH= and ROOTPATH= in the env.d files.
|
||||
# Newer one's only use GCC_PATH=. Convert old to new here.
|
||||
cp -p "${GCC_ENV_D}/${CC_COMP}" "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
GCC_PATH=$(
|
||||
unset GCC_PATH PATH ROOTPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo ${GCC_PATH:-${PATH:-${ROOTPATH}}}
|
||||
)
|
||||
${SED} -i \
|
||||
-e '/^PATH=/d' \
|
||||
-e '/^ROOTPATH=/d' \
|
||||
-e '/^GCC_PATH=/d' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
echo "GCC_PATH=\"${GCC_PATH}\"" >> "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
touch -r "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
rm -f "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
update_wrappers() {
|
||||
local CTARGET=$1
|
||||
|
||||
# Find the bin wrapper
|
||||
local wrapper
|
||||
for wrapper in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do
|
||||
wrapper="${ROOT}usr/${wrapper}/misc/gcc-config"
|
||||
[[ -e ${wrapper} ]] && break
|
||||
done
|
||||
|
||||
# Update the wrappers for this profile. We maintain this list
|
||||
# by hand as the tools that are available can come & go if the
|
||||
# user re-emerges gcc with dif USE flags. We need to clean out
|
||||
# the old wrappers if the functionality no longer exists.
|
||||
# XXX: Future work: save the list of wrappers we generated in
|
||||
# the generated env.d file so we can scrub things better.
|
||||
# After that, we can use a dynamic list based on what tools are
|
||||
# actually available in ${GCC_PATH}/.
|
||||
for x in {,${CTARGET}-}{cpp,cc,gcc,c++,g++,f77,g77,gcj,gcjh,gcov,gdc,gdmd,gfortran,gccgo} ; do
|
||||
# Obviously don't want to touch native stuff for cross-compilers
|
||||
[[ ${x} != ${CTARGET}-* ]] && is_cross_compiler && continue
|
||||
|
||||
# Make sure we have no stale wrappers
|
||||
rm -f "${ROOT}/usr/bin/${x}"
|
||||
[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \
|
||||
&& rm -f "${ROOT}/usr/bin/${x}"{32,64}
|
||||
|
||||
# Only install a wrapper if the binary exists ...
|
||||
# We want to figure out the 'reference file' for each
|
||||
# wrapper (the binary we're 'wrapping') so that we can
|
||||
# sync mtimes together. This makes things like ccache
|
||||
# happy. See Bug #70548 for more info.
|
||||
local ref
|
||||
case ${x} in
|
||||
cc) ref=gcc;;
|
||||
f77) ref=g77;;
|
||||
*) ref=${x};;
|
||||
esac
|
||||
ref="${ROOT}/${GCC_PATH}/${ref}"
|
||||
if [[ -x ${ref} ]] ; then
|
||||
cp -f "${wrapper}" "${ROOT}/usr/bin/${x}"
|
||||
touch -r "${ref}" "${ROOT}/usr/bin/${x}"
|
||||
fi
|
||||
done
|
||||
# legacy cruft, make sure we dont leave it laying around #143205
|
||||
rm -f "${ROOT}/usr/bin/${CTARGET}-cc"
|
||||
|
||||
# install the canonical cpp wrapper
|
||||
[[ ${CTARGET} == *-solaris* ]] && return 0
|
||||
if ! is_cross_compiler ; then
|
||||
cp -f "${wrapper}" "${ROOT}/lib/cpp"
|
||||
touch -r "${ROOT}/usr/bin/${CTARGET}-cpp" "${ROOT}/lib/cpp"
|
||||
fi
|
||||
}
|
||||
|
||||
mv_if_diff() {
|
||||
if cmp -s "$1" "$2" ; then
|
||||
rm -f "$1"
|
||||
return 0
|
||||
else
|
||||
mv -f "$1" "$2"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
switch_profile() {
|
||||
local MY_LDPATH=
|
||||
local GCC_PROFILES=
|
||||
local OLD_CC_COMP=
|
||||
local GCC_PATH=
|
||||
|
||||
[[ $(id -u) != "0" ]] && die_eerror "Must be root"
|
||||
|
||||
if is_cross_compiler ; then
|
||||
ebegin "Switching cross-compiler to ${CC_COMP}"
|
||||
else
|
||||
ebegin "Switching native-compiler to ${CC_COMP}"
|
||||
fi
|
||||
|
||||
if egrep -q '^(PATH|ROOTPATH)=' "${GCC_ENV_D}/${CC_COMP}" ; then
|
||||
convert_profile_paths "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
fi
|
||||
source_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}"
|
||||
|
||||
# Setup things properly again for this profile
|
||||
unset GCC_SPECS LDPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
# Ignore active profile errors here since we're switching away
|
||||
OLD_CC_COMP=$(get_current_profile 2>/dev/null)
|
||||
|
||||
# GCC_SPECS have long been stable, and people messing with
|
||||
# them know better than to install bad paths, so don't bother
|
||||
# with sanity checks.
|
||||
local envd="${ENV_D}/05gcc-${CTARGET}"
|
||||
cat <<-EOF > "${envd}.tmp"
|
||||
PATH="${GCC_PATH}"
|
||||
ROOTPATH="${GCC_PATH}"
|
||||
GCC_SPECS="${GCC_SPECS}"
|
||||
EOF
|
||||
echo "CURRENT=${CC_COMP}" > "${GCC_ENV_D}/config-${CTARGET}"
|
||||
if ! is_cross_compiler ; then
|
||||
# Order our profiles to have the default first ...
|
||||
# We do this so that we can have them ordered with default
|
||||
# first in /etc/ld.so.conf, as the logical is that all
|
||||
# compilers for default CHOST will be used to compile stuff,
|
||||
# and thus we want all their lib paths in /etc/ld.so.conf ...
|
||||
get_real_chost
|
||||
MY_LDPATH=$(${SED} -n \
|
||||
-e '/^LDPATH=/{s|LDPATH=||;s|"||g;s|:|\n|g;p}' \
|
||||
"${GCC_ENV_D}"/${REAL_CHOST}-* \
|
||||
"${GCC_ENV_D}"/${CC_COMP} | tac
|
||||
)
|
||||
|
||||
# Pass all by default
|
||||
awk '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS|GCC_PATH)=/ {print $0}' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" >> "${envd}.tmp"
|
||||
if [[ -d ${ROOT}/etc/ld.so.conf.d ]] ; then
|
||||
echo "${MY_LDPATH}" > "${ROOT}"/etc/ld.so.conf.d/05gcc-${CTARGET}.conf
|
||||
else
|
||||
echo "LDPATH=\"${MY_LDPATH}\"" >> "${envd}.tmp"
|
||||
fi
|
||||
|
||||
# Punt old files; maybe globs too much, but oh well
|
||||
rm -f \
|
||||
"${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE" \
|
||||
"${ENV_D}/05gcc" "${GCC_ENV_D}/config" \
|
||||
"${ENV_D}/05gcc-${CTARGET}"-* "${GCC_ENV_D}/config-${CTARGET}"-*
|
||||
|
||||
# Help out the gcc wrapper
|
||||
ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
|
||||
|
||||
|
||||
# Relocate random crap
|
||||
if [[ -e ${ROOT}/usr/${GENTOO_LIBDIR}/pkgconfig/libgcj-${CC_COMP_VERSION}.pc ]] ; then
|
||||
local mver=${CC_COMP_VERSION:0:3}
|
||||
for x in "" "-${mver}" ; do
|
||||
x="${ROOT}/usr/lib/pkgconfig/libgcj${x}.pc"
|
||||
rm -f "${x}"
|
||||
ln -s libgcj-${CC_COMP_VERSION}.pc "${x}"
|
||||
done
|
||||
fi
|
||||
|
||||
# We need to make sure that libgcc_s.so / libunwind.so make it into /lib.
|
||||
# On many systems (x86/amd64/etc...), this will probably never matter,
|
||||
# but on other systems (arm/mips/etc...), this is quite critical.
|
||||
# http://bugs.gentoo.org/60190
|
||||
#
|
||||
# The funky move magic is required for proper updating of in-use files.
|
||||
#
|
||||
# Need to cut out extra paths in multilib case and pray the first path
|
||||
# is the "root" multilib path ... maybe some day change this to use
|
||||
# `gcc -print-file-name` ...
|
||||
LDPATH=${LDPATH%%:*}
|
||||
for multilib in $("${ROOT}/${GCC_PATH}"/gcc -print-multi-lib); do
|
||||
multiarg=${multilib#*;}
|
||||
multiarg=${multiarg/@/-}
|
||||
multilibdir=${multilib%;*}
|
||||
libdir="lib/"$("${ROOT}/${GCC_PATH}"/gcc ${multiarg} -print-multi-os-directory)
|
||||
if mkdir -p "${ROOT}/${libdir}"/.gcc.config.new ; then
|
||||
for gcclib in gcc_s unwind ; do
|
||||
if [[ -n $(ls "${ROOT}/${LDPATH}/${multilibdir}"/lib${gcclib}.so.* 2>/dev/null) ]]; then
|
||||
cp -pP "${ROOT}/${LDPATH}/${multilibdir}"/lib${gcclib}.so.* "${ROOT}/${libdir}"/.gcc.config.new/
|
||||
# no need to sanity remove this as the `mv` should take
|
||||
# care of it. we also need this step to be completly atomic
|
||||
# for systems that have even `mv` linked against libgcc_s.so.
|
||||
# http://bugs.gentoo.org/150257
|
||||
#rm -f "${ROOT}/${libdir}"/lib${gcclib}.so*
|
||||
mv -f "${ROOT}/${libdir}"/.gcc.config.new/* "${ROOT}/${libdir}"/
|
||||
fi
|
||||
done
|
||||
rmdir "${ROOT}/${libdir}"/.gcc.config.new
|
||||
fi
|
||||
done
|
||||
unset multilib
|
||||
unset multilibdir
|
||||
unset multiarg
|
||||
unset libdir
|
||||
fi
|
||||
mv_if_diff "${envd}.tmp" "${envd}"
|
||||
local envd_changed=$?
|
||||
|
||||
update_wrappers ${CTARGET}
|
||||
|
||||
if [[ ${ROOT} == "/" ]] && \
|
||||
[[ ${OLD_CC_COMP} != ${CC_COMP} || ${FORCE} == "yes" ]] && \
|
||||
[[ ${envd_changed} -eq 1 ]]
|
||||
then
|
||||
# in case python is broken ...
|
||||
if ! env-update ; then
|
||||
echo ""
|
||||
ewarn "env-update failed to work properly; making sure ld.so.conf paths"
|
||||
ewarn "are setup properly. Please rerun gcc-config with the -f option."
|
||||
echo ""
|
||||
if [[ ! -d /etc/ld.so.conf.d ]] ; then
|
||||
show_var LDPATH "${ROOT}"/etc/env.d/05gcc-${CTARGET} \
|
||||
| sed -e 's|:|\n|g' >> /etc/ld.so.conf
|
||||
fi
|
||||
ldconfig
|
||||
fi
|
||||
else
|
||||
envd_changed=0
|
||||
fi
|
||||
|
||||
eend 0
|
||||
|
||||
if [[ ${envd_changed} -ne 0 ]] ; then
|
||||
echo
|
||||
ewarn "If you intend to use the gcc from the new profile in an already"
|
||||
ewarn "running shell, please remember to do:"
|
||||
echo
|
||||
ewarn " . /etc/profile"
|
||||
echo
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
get_current_profile() {
|
||||
local conf="${GCC_ENV_D}/config-${CTARGET}"
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
conf="${GCC_ENV_D}/config" # old name
|
||||
elif [[ -n ${CC_COMP} ]] && is_cross_compiler ; then
|
||||
conf="${conf}-${CC_COMP}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
source_var CURRENT "${conf}"
|
||||
|
||||
if [[ -z ${CURRENT} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
elif [[ ! -f ${GCC_ENV_D}/${CURRENT} ]] ; then
|
||||
eerror "${argv0}: Active gcc profile is invalid!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "${CURRENT}"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
list_profiles() {
|
||||
local i=0
|
||||
local filter=
|
||||
|
||||
if [[ ${ROOT} != "/" ]] ; then
|
||||
echo "Using gcc-config info in ${ROOT}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${GCC_ENV_D}/config-${CTARGET} ]] ; then
|
||||
if ! is_cross_compiler && [[ -e ${GCC_ENV_D}/config ]] ; then
|
||||
[[ -w ${GCC_ENV_D}/config ]] && mv ${GCC_ENV_D}/config ${GCC_ENV_D}/config-${CTARGET}
|
||||
else
|
||||
# get_current_profile already warns
|
||||
#eerror "${argv0}: No gcc profile is active; please select one!"
|
||||
filter=${CTARGET}
|
||||
fi
|
||||
fi
|
||||
|
||||
source_var CURRENT "${GCC_ENV_D}"/config-${CTARGET}
|
||||
CURRENT_NATIVE=${CURRENT}
|
||||
local target=
|
||||
for x in "${GCC_ENV_D}"/* ; do
|
||||
[[ -f ${x} ]] || continue
|
||||
[[ ${x} == */config* ]] && continue
|
||||
|
||||
source_var CTARGET "${x}"
|
||||
|
||||
((++i))
|
||||
|
||||
[[ -n ${filter} ]] && [[ ${filter} != ${CTARGET} ]] && continue
|
||||
|
||||
if [[ ${target} != ${CTARGET} ]] ; then
|
||||
[[ ${i} -gt 1 ]] && echo
|
||||
target=${CTARGET}
|
||||
CTARGET=""
|
||||
fi
|
||||
|
||||
x=${x##*/}
|
||||
if [[ ${x} == ${CURRENT_NATIVE} ]] ; then
|
||||
x="${x} ${GOOD}*${NORMAL}"
|
||||
elif [[ -e ${GCC_ENV_D}/config-${target} ]] ; then
|
||||
source "${GCC_ENV_D}/config-${target}"
|
||||
[[ ${x} == ${CURRENT} ]] && x="${x} ${HILITE}*${NORMAL}"
|
||||
fi
|
||||
echo " [${i}] ${x}"
|
||||
done
|
||||
}
|
||||
|
||||
print_environ() {
|
||||
local GCC_PATH=
|
||||
local ENV_CMD=
|
||||
local SET_ELEMENT=
|
||||
|
||||
source_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}" "${PATH}"
|
||||
|
||||
case ${SHELL} in
|
||||
*/csh|*/tcsh)
|
||||
ENV_CMD="setenv"
|
||||
SET_ELEMENT=" "
|
||||
;;
|
||||
*)
|
||||
ENV_CMD="export"
|
||||
SET_ELEMENT="="
|
||||
;;
|
||||
esac
|
||||
|
||||
(
|
||||
PATH=${GCC_PATH}:${PATH}
|
||||
for var in PATH GCC_SPECS ; do
|
||||
echo "${ENV_CMD} ${var}${SET_ELEMENT}\"${!var}\""
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
get_bin_path() { show_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}" ; }
|
||||
get_lib_path() { show_var LDPATH "${GCC_ENV_D}/${CC_COMP}" ; }
|
||||
|
||||
split_gcc_ver() {
|
||||
# Split up the gcc profile into components:
|
||||
# TARGET-VER[-specs] -> TARGET VER [specs]
|
||||
# arm-linux-3.3.6 -> arm-linux 3.3.6
|
||||
# x86_64-linux-4.0.1-pre1234 -> x86_64-linux 4.0.1-pre1234
|
||||
# sh-linux-3.4.4-hardened -> sh-linux 3.4.4 hardened
|
||||
#
|
||||
# So below we will start at the end and run a small state machine ...
|
||||
# specs [3]
|
||||
# accept everything
|
||||
# specs -> version transition [3->2]
|
||||
# when we find a version component
|
||||
# version [2]
|
||||
# accept only version components (see the regex)
|
||||
# version -> target transition [2->1]
|
||||
# when we hit a non version component
|
||||
# target [1]
|
||||
# accept everything we have left
|
||||
#
|
||||
echo "$@" | awk -F- '
|
||||
function pushit(onme, pushee) {
|
||||
return (onme == "" ? pushee : pushee"-"onme);
|
||||
}
|
||||
{
|
||||
state=3
|
||||
targ=""
|
||||
ver=""
|
||||
spec=""
|
||||
for (i=NF; i > 0; --i) {
|
||||
if (state >= 2) {
|
||||
if ($i ~ /^(alpha|beta|pre|rc|p)?[[:digit:].]+$/) {
|
||||
ver=pushit(ver, $i)
|
||||
state=2
|
||||
} else if (state == 3)
|
||||
spec=pushit(spec, $i)
|
||||
else
|
||||
state=1
|
||||
}
|
||||
if (state == 1)
|
||||
targ = pushit(targ, $i)
|
||||
}
|
||||
|
||||
if (targ == "") {
|
||||
if (ver == "") {
|
||||
ver=spec
|
||||
spec=""
|
||||
}
|
||||
targ=ver
|
||||
ver=""
|
||||
}
|
||||
print targ " " ver (spec != "" ? " " spec : "")
|
||||
}'
|
||||
}
|
||||
chop_gcc_ver_spec() {
|
||||
local splitTED=$(split_gcc_ver $@) # target ver spec
|
||||
splitTED=${splitTED#* } # ver spec
|
||||
echo ${splitTED/ /-} # ver-spec
|
||||
}
|
||||
|
||||
SET_X=false
|
||||
NEED_ACTION="yes"
|
||||
DOIT="switch_profile"
|
||||
CHECK_CHOST="no"
|
||||
FORCE="no"
|
||||
|
||||
CC_COMP=
|
||||
ENV_D="${ROOT}etc/env.d"
|
||||
GCC_ENV_D="${ENV_D}/gcc"
|
||||
|
||||
for x in "$@" ; do
|
||||
case "${x}" in
|
||||
# Only use specified compiler if one is not already selected.
|
||||
-O|--use-old)
|
||||
: ${CTARGET:=$(try_real_hard_to_find_CHOST)}
|
||||
if get_current_profile &>/dev/null ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
else
|
||||
die_eerror "No profile selected, unable to utilize --use-old"
|
||||
fi
|
||||
;;
|
||||
-f|--force)
|
||||
FORCE="yes"
|
||||
;;
|
||||
-P|--use-portage-chost)
|
||||
CHECK_CHOST="yes"
|
||||
;;
|
||||
-c|--get-current-profile)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_current_profile"
|
||||
fi
|
||||
;;
|
||||
-l|--list-profiles)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="list_profiles"
|
||||
fi
|
||||
;;
|
||||
-S|--split-profile)
|
||||
if [[ ( $1 != "-S" && $1 != "--split-profile" ) || $# -eq 1 ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
shift # push -S out
|
||||
for x in "$@" ; do
|
||||
split_gcc_ver ${x}
|
||||
done
|
||||
exit 0
|
||||
;;
|
||||
-E|--print-environ)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="print_environ"
|
||||
fi
|
||||
;;
|
||||
-B|--get-bin-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_bin_path"
|
||||
fi
|
||||
;;
|
||||
-L|--get-lib-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_lib_path"
|
||||
fi
|
||||
;;
|
||||
-x|--debug)
|
||||
SET_X=true
|
||||
;;
|
||||
-C|--nocolor)
|
||||
# nothing to do; functions.sh parsed this for us
|
||||
;;
|
||||
-h|--help)
|
||||
usage 0
|
||||
;;
|
||||
-V|--version)
|
||||
unset RCSfile Revision Date
|
||||
rcsfile="$RCSfile: gcc-config-1.5,v $"
|
||||
rcsfile=${rcsfile#: }
|
||||
rcsfile=${rcsfile%,v*}
|
||||
cvsrev="$Revision: 1.7 $"
|
||||
cvsrev=${cvsrev#: }
|
||||
cvsdate="$Date: 2011/12/07 05:42:19 $"
|
||||
cvsdate=${cvsdate#: }
|
||||
echo "${rcsfile} (r${cvsrev% *} @ ${cvsdate% *})"
|
||||
exit 0
|
||||
;;
|
||||
-*)
|
||||
die_eerror "Invalid switch! Run ${argv0} without parameters for help."
|
||||
;;
|
||||
*)
|
||||
${SET_X} && set -x
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
if [[ -z $(echo ${x} | tr -d '[:digit:]') ]] ; then
|
||||
# User gave us a # representing the profile
|
||||
i=1
|
||||
for y in "${GCC_ENV_D}"/* ; do
|
||||
[[ -f ${y} ]] || continue
|
||||
[[ ${y} == */config* ]] && continue
|
||||
|
||||
if [[ -f ${y} ]] && [[ ${x} == ${i} ]] ; then
|
||||
CC_COMP=${y##*/}
|
||||
break
|
||||
fi
|
||||
((++i))
|
||||
done
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
die_eerror "Could not locate profile #$x !"
|
||||
fi
|
||||
else
|
||||
# User gave us a full HOST-gccver
|
||||
x=${x##*/}
|
||||
if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \
|
||||
[[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]]
|
||||
then
|
||||
# Maybe they just gave us a gccver ...
|
||||
get_real_chost
|
||||
if [[ -f ${GCC_ENV_D}/${REAL_CHOST}-${x} ]] ; then
|
||||
x=${REAL_CHOST}-${x}
|
||||
else
|
||||
die_eerror "Could not locate '$x' in '${GCC_ENV_D}/' !"
|
||||
fi
|
||||
fi
|
||||
CC_COMP=${x}
|
||||
fi
|
||||
else
|
||||
die_eerror "Too many arguments! Run ${argv0} without parameters for help."
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
${SET_X} && set -x
|
||||
|
||||
if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
|
||||
get_real_chost
|
||||
[[ ${DOIT} == "get_current_profile" ]] \
|
||||
&& : ${CTARGET:=${CC_COMP:-${REAL_CHOST}}} \
|
||||
|| : ${CTARGET:=${REAL_CHOST}}
|
||||
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
echo "${CC_COMP}"
|
||||
list_profiles
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${DOIT} != "get_current_profile" ]] ; then
|
||||
GCC_LIB=$(
|
||||
show_var LDPATH "${GCC_ENV_D}/${CC_COMP}" | \
|
||||
awk -F/ '{ print "/"$2"/"$3"/"$4"/" }'
|
||||
)
|
||||
|
||||
CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
|
||||
CC_COMP_TARGET=${CC_COMP%-${CC_COMP_VERSION}*}
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then
|
||||
CC_COMP_VERSION=${CC_COMP_VERSION%-*}
|
||||
fi
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]] || \
|
||||
[[ ! -f ${GCC_ENV_D}/${CC_COMP} ]]
|
||||
then
|
||||
eerror "${argv0}: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2
|
||||
#exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${CHECK_CHOST} == "yes" ]] ; then
|
||||
# Chosen CHOST are not the same as the real CHOST according to
|
||||
# make.conf, and --use-portage-chost option was given, so do nothing
|
||||
get_real_chost
|
||||
CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
|
||||
CC_COMP_TARGET=${CC_COMP:0:${#CC_COMP}-${#CC_COMP_VERSION}-1}
|
||||
[[ ${CC_COMP_TARGET} != ${REAL_CHOST} ]] && exit 0
|
||||
fi
|
||||
|
||||
${DOIT}
|
||||
|
||||
# vim:ts=4
|
||||
763
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.5.1
vendored
Executable file
763
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/gcc-config-1.5.1
vendored
Executable file
@ -0,0 +1,763 @@
|
||||
#!/bin/bash
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.5.1,v 1.2 2012/03/15 01:16:44 vapier Exp $
|
||||
|
||||
# Format of /etc/env.d/gcc/:
|
||||
# config-TARGET: CURRENT=version for TARGET
|
||||
# TARGET-VER: has a TARGET and VER variable
|
||||
|
||||
: ${ROOT:=/}
|
||||
[[ ${ROOT} != */ ]] && ROOT="${ROOT}/"
|
||||
[[ ${ROOT} != /* ]] && ROOT="${PWD}${ROOT}"
|
||||
|
||||
cd /
|
||||
|
||||
trap ":" INT QUIT TSTP
|
||||
|
||||
argv0=${0##*/}
|
||||
source /etc/init.d/functions.sh || {
|
||||
echo "${argv0}: Could not source /etc/init.d/functions.sh!" 1>&2
|
||||
exit 1
|
||||
}
|
||||
esyslog() { :; }
|
||||
umask 022
|
||||
|
||||
die_eerror() {
|
||||
eerror "${argv0}: $*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# *BSD are plain stupid ... copy a GNU extension but don't just copy it,
|
||||
# change it so it works differently. Wish Darwin did selective evolution
|
||||
# on software developers.
|
||||
SED=$(type -P gsed)
|
||||
: ${SED:=$(type -P sed)}
|
||||
|
||||
# Further pain: `tac` is not available everywhere #390179
|
||||
if ! type -P tac >/dev/null ; then
|
||||
tac() { ${SED} -e '1!G;h;$!d' "$@" ; }
|
||||
fi
|
||||
|
||||
GENTOO_LIBDIR="@GENTOO_LIBDIR@"
|
||||
[[ ${GENTOO_LIBDIR} == @*@ ]] && GENTOO_LIBDIR="lib"
|
||||
|
||||
usage() {
|
||||
cat << "USAGE_END"
|
||||
Usage: gcc-config [options] [CC Profile]
|
||||
Change the current cc/gcc profile, or give info about profiles.
|
||||
|
||||
Options:
|
||||
-C, --nocolor Disable color output
|
||||
-O, --use-old Use the old profile if one was selected.
|
||||
-f, --force Make sure all config files are regenerated.
|
||||
-P, --use-portage-chost Only set to given profile if its CHOST is the
|
||||
same as that set in /etc/portage/make.conf
|
||||
(or one of other portage config files...).
|
||||
-c, --get-current-profile Print current used gcc profile.
|
||||
-l, --list-profiles Print a list of available profiles.
|
||||
-S, --split-profile Split profiles into their components
|
||||
-E, --print-environ Print environment that can be used to setup the
|
||||
current gcc profile, or a specified one.
|
||||
-B, --get-bin-path Print path where binaries of the given/current
|
||||
profile are located.
|
||||
-L, --get-lib-path Print path where libraries of the given/current
|
||||
profile are located.
|
||||
|
||||
Profile names are of the form: <CHOST>-<gcc version>
|
||||
For example: i686-pc-linux-gnu-3.2.1
|
||||
USAGE_END
|
||||
exit ${1:-1}
|
||||
}
|
||||
[[ $# -lt 1 ]] && usage 1
|
||||
|
||||
# Usage: source_var <var> <file> [default value]
|
||||
source_var() {
|
||||
unset $1
|
||||
local val=$(source "$2"; echo "${!1}")
|
||||
: ${val:=$3}
|
||||
eval $1=\"${val}\"
|
||||
}
|
||||
show_var() {
|
||||
source_var "$@"
|
||||
echo "${!1}"
|
||||
}
|
||||
|
||||
try_real_hard_to_find_CHOST() {
|
||||
#
|
||||
# First we read make.conf
|
||||
#
|
||||
|
||||
local varname=${1:-CHOST}
|
||||
local conf=${ROOT}/etc/portage/make.conf
|
||||
if [[ ! -e ${conf} && -e ${ROOT}/etc/make.conf ]] ; then
|
||||
conf=${ROOT}/etc/make.conf
|
||||
fi
|
||||
local ret=$(source "${conf}" 2>/dev/null ; echo ${!varname})
|
||||
if [[ -z ${ret} ]] ; then
|
||||
# newer portage supports spaces between the var and =
|
||||
# CHOST = "this-is-retarded"
|
||||
ret=$(eval $(
|
||||
sed -n \
|
||||
-e 's:[[:space:]]::g' \
|
||||
-e "/^${varname}=/p" \
|
||||
"${conf}"
|
||||
) ; echo ${!varname}
|
||||
)
|
||||
fi
|
||||
|
||||
if [[ -n ${ret} ]] ; then
|
||||
echo ${ret}
|
||||
return 0
|
||||
fi
|
||||
|
||||
#
|
||||
# Then we try /etc/env.d/gcc/config-${CTARGET}
|
||||
#
|
||||
if [[ -s ${ROOT}/etc/env.d/gcc/config-${CTARGET} ]] ; then
|
||||
ret=$(split_gcc_ver $(show_var CURRENT "${ROOT}"/etc/env.d/gcc/config-${CTARGET}))
|
||||
echo ${ret% *}
|
||||
fi
|
||||
}
|
||||
|
||||
get_real_chost() {
|
||||
[[ -n ${REAL_CHOST} ]] && return 0
|
||||
|
||||
# shortcut for switching compilers in a cross chroot
|
||||
if [[ -n ${CHOST} && ${ROOT} != "/" ]] ; then
|
||||
REAL_CHOST=${CHOST}
|
||||
return 0
|
||||
fi
|
||||
|
||||
# make sure portage isnt broken
|
||||
if python -V &>/dev/null ; then
|
||||
export REAL_CHOST=$(env -i portageq envvar CHOST 2>/dev/null)
|
||||
else
|
||||
ewarn "Python seems to be broken, attempting to locate CHOST ourselves ..."
|
||||
export REAL_CHOST=$(try_real_hard_to_find_CHOST)
|
||||
fi
|
||||
|
||||
if [[ -z ${REAL_CHOST} ]] ; then
|
||||
eerror "${argv0}: Could not get portage CHOST!"
|
||||
eerror "${argv0}: You should verify that CHOST is set in one of these places:"
|
||||
eerror "${argv0}: - ${ROOT}/etc/portage/make.conf"
|
||||
eerror "${argv0}: - active environment"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
is_cross_compiler() {
|
||||
get_real_chost
|
||||
[[ ${CC_COMP/${REAL_CHOST}} == ${CC_COMP} ]]
|
||||
}
|
||||
|
||||
convert_profile_paths() {
|
||||
# Older gcc's used PATH= and ROOTPATH= in the env.d files.
|
||||
# Newer one's only use GCC_PATH=. Convert old to new here.
|
||||
cp -p "${GCC_ENV_D}/${CC_COMP}" "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
GCC_PATH=$(
|
||||
unset GCC_PATH PATH ROOTPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
echo ${GCC_PATH:-${PATH:-${ROOTPATH}}}
|
||||
)
|
||||
${SED} -i \
|
||||
-e '/^PATH=/d' \
|
||||
-e '/^ROOTPATH=/d' \
|
||||
-e '/^GCC_PATH=/d' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
echo "GCC_PATH=\"${GCC_PATH}\"" >> "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
touch -r "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
rm -f "${GCC_ENV_D}/${CC_COMP}.gcc-config-ref" || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
update_wrappers() {
|
||||
local CTARGET=$1
|
||||
|
||||
# Find the bin wrapper
|
||||
local wrapper
|
||||
for wrapper in ${GENTOO_LIBDIR} lib lib64 lib32 lib ; do
|
||||
wrapper="${ROOT}usr/${wrapper}/misc/gcc-config"
|
||||
[[ -e ${wrapper} ]] && break
|
||||
done
|
||||
|
||||
# Update the wrappers for this profile. We maintain this list
|
||||
# by hand as the tools that are available can come & go if the
|
||||
# user re-emerges gcc with dif USE flags. We need to clean out
|
||||
# the old wrappers if the functionality no longer exists.
|
||||
# XXX: Future work: save the list of wrappers we generated in
|
||||
# the generated env.d file so we can scrub things better.
|
||||
# After that, we can use a dynamic list based on what tools are
|
||||
# actually available in ${GCC_PATH}/.
|
||||
for x in {,${CTARGET}-}{cpp,cc,gcc,c++,g++,f77,g77,gcj,gcjh,gcov,gdc,gdmd,gfortran,gccgo} ; do
|
||||
# Obviously don't want to touch native stuff for cross-compilers
|
||||
[[ ${x} != ${CTARGET}-* ]] && is_cross_compiler && continue
|
||||
|
||||
# Make sure we have no stale wrappers
|
||||
rm -f "${ROOT}/usr/bin/${x}"
|
||||
[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \
|
||||
&& rm -f "${ROOT}/usr/bin/${x}"{32,64}
|
||||
|
||||
# Only install a wrapper if the binary exists ...
|
||||
# We want to figure out the 'reference file' for each
|
||||
# wrapper (the binary we're 'wrapping') so that we can
|
||||
# sync mtimes together. This makes things like ccache
|
||||
# happy. See Bug #70548 for more info.
|
||||
local ref
|
||||
case ${x} in
|
||||
cc) ref=gcc;;
|
||||
f77) ref=g77;;
|
||||
*) ref=${x};;
|
||||
esac
|
||||
ref="${ROOT}/${GCC_PATH}/${ref}"
|
||||
if [[ -x ${ref} ]] ; then
|
||||
cp -f "${wrapper}" "${ROOT}/usr/bin/${x}"
|
||||
touch -r "${ref}" "${ROOT}/usr/bin/${x}"
|
||||
fi
|
||||
done
|
||||
# legacy cruft, make sure we dont leave it laying around #143205
|
||||
rm -f "${ROOT}/usr/bin/${CTARGET}-cc"
|
||||
|
||||
# install the canonical cpp wrapper
|
||||
[[ ${CTARGET} == *-solaris* ]] && return 0
|
||||
if ! is_cross_compiler ; then
|
||||
cp -f "${wrapper}" "${ROOT}/lib/cpp"
|
||||
touch -r "${ROOT}/usr/bin/${CTARGET}-cpp" "${ROOT}/lib/cpp"
|
||||
fi
|
||||
}
|
||||
|
||||
mv_if_diff() {
|
||||
if cmp -s "$1" "$2" ; then
|
||||
rm -f "$1"
|
||||
return 0
|
||||
else
|
||||
mv -f "$1" "$2"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
switch_profile() {
|
||||
local GCC_PROFILES=
|
||||
local OLD_CC_COMP=
|
||||
local GCC_PATH=
|
||||
|
||||
[[ $(id -u) != "0" ]] && die_eerror "Must be root"
|
||||
|
||||
if is_cross_compiler ; then
|
||||
ebegin "Switching cross-compiler to ${CC_COMP}"
|
||||
else
|
||||
ebegin "Switching native-compiler to ${CC_COMP}"
|
||||
fi
|
||||
|
||||
if egrep -q '^(PATH|ROOTPATH)=' "${GCC_ENV_D}/${CC_COMP}" ; then
|
||||
convert_profile_paths "${GCC_ENV_D}/${CC_COMP}" || return 1
|
||||
fi
|
||||
source_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}"
|
||||
|
||||
# Setup things properly again for this profile
|
||||
unset GCC_SPECS LDPATH
|
||||
source "${GCC_ENV_D}/${CC_COMP}"
|
||||
# Ignore active profile errors here since we're switching away
|
||||
OLD_CC_COMP=$(get_current_profile 2>/dev/null)
|
||||
|
||||
# GCC_SPECS have long been stable, and people messing with
|
||||
# them know better than to install bad paths, so don't bother
|
||||
# with sanity checks.
|
||||
local envd="${ENV_D}/05gcc-${CTARGET}"
|
||||
cat <<-EOF > "${envd}.tmp"
|
||||
PATH="${GCC_PATH}"
|
||||
ROOTPATH="${GCC_PATH}"
|
||||
GCC_SPECS="${GCC_SPECS}"
|
||||
EOF
|
||||
echo "CURRENT=${CC_COMP}" > "${GCC_ENV_D}/config-${CTARGET}"
|
||||
if ! is_cross_compiler ; then
|
||||
# Regardless of the profile selected, keep the runtime lookup
|
||||
# paths stable. Otherwise, all the apps that were built with
|
||||
# a new compiler will start trying to use older versions of
|
||||
# the libs, and life gets sad. We work off the assumption
|
||||
# that every shared library gcc ships is ABI compatible (as
|
||||
# is the point of SONAMEs). We don't have to worry about
|
||||
# static libraries here as gcc itself will take care of
|
||||
# linking against its own internal paths first. #297685
|
||||
local MY_LDPATH
|
||||
get_real_chost
|
||||
MY_LDPATH=$(${SED} -n \
|
||||
-e '/^LDPATH=/{s|LDPATH=||;s|"||g;s|:|\n|g;p}' \
|
||||
"${GCC_ENV_D}"/${REAL_CHOST}-* | tac
|
||||
)
|
||||
|
||||
# Pass all by default
|
||||
awk '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS|GCC_PATH)=/ {print $0}' \
|
||||
"${GCC_ENV_D}/${CC_COMP}" >> "${envd}.tmp"
|
||||
if [[ -d ${ROOT}/etc/ld.so.conf.d ]] ; then
|
||||
echo "${MY_LDPATH}" > "${ROOT}"/etc/ld.so.conf.d/05gcc-${CTARGET}.conf
|
||||
else
|
||||
echo "LDPATH=\"${MY_LDPATH}\"" >> "${envd}.tmp"
|
||||
fi
|
||||
|
||||
# Punt old files; maybe globs too much, but oh well
|
||||
rm -f \
|
||||
"${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE" \
|
||||
"${ENV_D}/05gcc" "${GCC_ENV_D}/config" \
|
||||
"${ENV_D}/05gcc-${CTARGET}"-* "${GCC_ENV_D}/config-${CTARGET}"-*
|
||||
|
||||
# Help out the gcc wrapper
|
||||
ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
|
||||
|
||||
# Relocate random crap
|
||||
if [[ -e ${ROOT}/usr/${GENTOO_LIBDIR}/pkgconfig/libgcj-${CC_COMP_VERSION}.pc ]] ; then
|
||||
local mver=${CC_COMP_VERSION:0:3}
|
||||
for x in "" "-${mver}" ; do
|
||||
x="${ROOT}/usr/lib/pkgconfig/libgcj${x}.pc"
|
||||
rm -f "${x}"
|
||||
ln -s libgcj-${CC_COMP_VERSION}.pc "${x}"
|
||||
done
|
||||
fi
|
||||
|
||||
# We need to make sure that libgcc_s.so / libunwind.so make it into /lib.
|
||||
# On many systems (x86/amd64/etc...), this will probably never matter,
|
||||
# but on other systems (arm/mips/etc...), this is quite critical.
|
||||
# http://bugs.gentoo.org/60190
|
||||
#
|
||||
# The funky move magic is required for proper updating of in-use files.
|
||||
#
|
||||
# XXX: This fails when configuring the native target in a cross-compiled
|
||||
# ROOT. Only way around that is to store the multilib configuration
|
||||
# in the gcc profile when we compiled it and then read that instead
|
||||
# of executing the gcc. Some day.
|
||||
#
|
||||
# We use the same ordering logic as mentioned in the MY_LDPATH setup.
|
||||
# We get the libs from the latest version available.
|
||||
local LATEST_GCC_PATH gcc LATEST_GCC_LDPATH
|
||||
|
||||
LATEST_GCC_PATH=$(gawk -F= '
|
||||
$1 == "GCC_PATH" {
|
||||
p = gensub("\"","","g",$2)
|
||||
}
|
||||
END { print p }
|
||||
' "${GCC_ENV_D}"/${REAL_CHOST}-*
|
||||
)
|
||||
gcc="${ROOT}${LATEST_GCC_PATH}/gcc"
|
||||
|
||||
local multilib
|
||||
for multilib in $("${gcc}" -print-multi-lib); do
|
||||
local multiarg=${multilib#*;}
|
||||
multiarg=${multiarg/@/-}
|
||||
local multilibdir=${multilib%;*}
|
||||
local libdir="${ROOT}lib/"$("${gcc}" ${multiarg} -print-multi-os-directory)
|
||||
|
||||
mkdir -p "${libdir}"/.gcc.config.new || continue # !?!?!
|
||||
|
||||
local gcclib
|
||||
for gcclib in gcc_s unwind ; do
|
||||
# This assumes that we always have the .so symlink,
|
||||
# but for now, that should be safe ...
|
||||
gcclib=$("${gcc}" -print-file-name="lib${gcclib}.so")
|
||||
if [[ ${gcclib} == */* ]] ; then
|
||||
cp -pP "${ROOT}${gcclib}".* "${libdir}"/.gcc.config.new/
|
||||
# no need to sanity remove this as the `mv` should take
|
||||
# care of it. we also need this step to be completly atomic
|
||||
# for systems that have even `mv` linked against libgcc_s.so.
|
||||
# http://bugs.gentoo.org/150257
|
||||
#rm -f "${libdir}"/lib${gcclib}.so*
|
||||
mv -f "${libdir}"/.gcc.config.new/* "${libdir}"/
|
||||
fi
|
||||
done
|
||||
rmdir "${libdir}"/.gcc.config.new
|
||||
done
|
||||
fi
|
||||
mv_if_diff "${envd}.tmp" "${envd}"
|
||||
local envd_changed=$?
|
||||
|
||||
update_wrappers ${CTARGET}
|
||||
|
||||
if [[ ${ROOT} == "/" ]] && \
|
||||
[[ ${OLD_CC_COMP} != ${CC_COMP} || ${FORCE} == "yes" ]] && \
|
||||
[[ ${envd_changed} -eq 1 ]]
|
||||
then
|
||||
# in case python is broken ...
|
||||
if ! env-update ; then
|
||||
echo ""
|
||||
ewarn "env-update failed to work properly; making sure ld.so.conf paths"
|
||||
ewarn "are setup properly. Please rerun gcc-config with the -f option."
|
||||
echo ""
|
||||
if [[ ! -d /etc/ld.so.conf.d ]] ; then
|
||||
show_var LDPATH "${ROOT}"/etc/env.d/05gcc-${CTARGET} \
|
||||
| sed -e 's|:|\n|g' >> /etc/ld.so.conf
|
||||
fi
|
||||
ldconfig
|
||||
fi
|
||||
else
|
||||
envd_changed=0
|
||||
fi
|
||||
|
||||
eend 0
|
||||
|
||||
if [[ ${envd_changed} -ne 0 ]] ; then
|
||||
echo
|
||||
ewarn "If you intend to use the gcc from the new profile in an already"
|
||||
ewarn "running shell, please remember to do:"
|
||||
echo
|
||||
ewarn " . /etc/profile"
|
||||
echo
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
get_current_profile() {
|
||||
local conf="${GCC_ENV_D}/config-${CTARGET}"
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
conf="${GCC_ENV_D}/config" # old name
|
||||
elif [[ -n ${CC_COMP} ]] && is_cross_compiler ; then
|
||||
conf="${conf}-${CC_COMP}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${conf} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
source_var CURRENT "${conf}"
|
||||
|
||||
if [[ -z ${CURRENT} ]] ; then
|
||||
eerror "${argv0}: No gcc profile is active!"
|
||||
return 1
|
||||
elif [[ ! -f ${GCC_ENV_D}/${CURRENT} ]] ; then
|
||||
eerror "${argv0}: Active gcc profile is invalid!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "${CURRENT}"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
list_profiles() {
|
||||
local i=0
|
||||
local filter=
|
||||
|
||||
if [[ ${ROOT} != "/" ]] ; then
|
||||
echo "Using gcc-config info in ${ROOT}"
|
||||
fi
|
||||
|
||||
if [[ ! -f ${GCC_ENV_D}/config-${CTARGET} ]] ; then
|
||||
if ! is_cross_compiler && [[ -e ${GCC_ENV_D}/config ]] ; then
|
||||
[[ -w ${GCC_ENV_D}/config ]] && mv ${GCC_ENV_D}/config ${GCC_ENV_D}/config-${CTARGET}
|
||||
else
|
||||
# get_current_profile already warns
|
||||
#eerror "${argv0}: No gcc profile is active; please select one!"
|
||||
filter=${CTARGET}
|
||||
fi
|
||||
fi
|
||||
|
||||
source_var CURRENT "${GCC_ENV_D}"/config-${CTARGET}
|
||||
CURRENT_NATIVE=${CURRENT}
|
||||
local target=
|
||||
for x in "${GCC_ENV_D}"/* ; do
|
||||
[[ -f ${x} ]] || continue
|
||||
[[ ${x} == */config* ]] && continue
|
||||
|
||||
source_var CTARGET "${x}"
|
||||
|
||||
((++i))
|
||||
|
||||
[[ -n ${filter} ]] && [[ ${filter} != ${CTARGET} ]] && continue
|
||||
|
||||
if [[ ${target} != ${CTARGET} ]] ; then
|
||||
[[ ${i} -gt 1 ]] && echo
|
||||
target=${CTARGET}
|
||||
CTARGET=""
|
||||
fi
|
||||
|
||||
x=${x##*/}
|
||||
if [[ ${x} == ${CURRENT_NATIVE} ]] ; then
|
||||
x="${x} ${GOOD}*${NORMAL}"
|
||||
elif [[ -e ${GCC_ENV_D}/config-${target} ]] ; then
|
||||
source "${GCC_ENV_D}/config-${target}"
|
||||
[[ ${x} == ${CURRENT} ]] && x="${x} ${HILITE}*${NORMAL}"
|
||||
fi
|
||||
echo " [${i}] ${x}"
|
||||
done
|
||||
}
|
||||
|
||||
print_environ() {
|
||||
local ENV_CMD SET_ELEMENT
|
||||
case ${SHELL} in
|
||||
*/csh|*/tcsh)
|
||||
ENV_CMD="setenv"
|
||||
SET_ELEMENT=" "
|
||||
;;
|
||||
*)
|
||||
ENV_CMD="export"
|
||||
SET_ELEMENT="="
|
||||
;;
|
||||
esac
|
||||
|
||||
local var
|
||||
for var in GCC_SPECS GCC_PATH ; do
|
||||
local ${var}
|
||||
source_var ${var} "${GCC_ENV_D}/${CC_COMP}"
|
||||
done
|
||||
|
||||
(
|
||||
[[ -n ${GCC_PATH} ]] && PATH=${GCC_PATH}:${PATH}
|
||||
for var in PATH GCC_SPECS ; do
|
||||
echo "${ENV_CMD} ${var}${SET_ELEMENT}\"${!var}\""
|
||||
done
|
||||
)
|
||||
}
|
||||
|
||||
get_bin_path() { show_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}" ; }
|
||||
get_lib_path() { show_var LDPATH "${GCC_ENV_D}/${CC_COMP}" ; }
|
||||
|
||||
split_gcc_ver() {
|
||||
# Split up the gcc profile into components:
|
||||
# TARGET-VER[-specs] -> TARGET VER [specs]
|
||||
# arm-linux-3.3.6 -> arm-linux 3.3.6
|
||||
# x86_64-linux-4.0.1-pre1234 -> x86_64-linux 4.0.1-pre1234
|
||||
# sh-linux-3.4.4-hardened -> sh-linux 3.4.4 hardened
|
||||
#
|
||||
# So below we will start at the end and run a small state machine ...
|
||||
# specs [3]
|
||||
# accept everything
|
||||
# specs -> version transition [3->2]
|
||||
# when we find a version component
|
||||
# version [2]
|
||||
# accept only version components (see the regex)
|
||||
# version -> target transition [2->1]
|
||||
# when we hit a non version component
|
||||
# target [1]
|
||||
# accept everything we have left
|
||||
#
|
||||
echo "$@" | awk -F- '
|
||||
function pushit(onme, pushee) {
|
||||
return (onme == "" ? pushee : pushee"-"onme);
|
||||
}
|
||||
{
|
||||
state=3
|
||||
targ=""
|
||||
ver=""
|
||||
spec=""
|
||||
for (i=NF; i > 0; --i) {
|
||||
if (state >= 2) {
|
||||
if ($i ~ /^(alpha|beta|pre|rc|p)?[[:digit:].]+$/) {
|
||||
ver=pushit(ver, $i)
|
||||
state=2
|
||||
} else if (state == 3)
|
||||
spec=pushit(spec, $i)
|
||||
else
|
||||
state=1
|
||||
}
|
||||
if (state == 1)
|
||||
targ = pushit(targ, $i)
|
||||
}
|
||||
|
||||
if (targ == "") {
|
||||
if (ver == "") {
|
||||
ver=spec
|
||||
spec=""
|
||||
}
|
||||
targ=ver
|
||||
ver=""
|
||||
}
|
||||
print targ " " ver (spec != "" ? " " spec : "")
|
||||
}'
|
||||
}
|
||||
chop_gcc_ver_spec() {
|
||||
local splitTED=$(split_gcc_ver "$@") # target ver spec
|
||||
splitTED=${splitTED#* } # ver spec
|
||||
echo ${splitTED/ /-} # ver-spec
|
||||
}
|
||||
|
||||
SET_X=false
|
||||
NEED_ACTION="yes"
|
||||
DOIT="switch_profile"
|
||||
CHECK_CHOST="no"
|
||||
FORCE="no"
|
||||
|
||||
CC_COMP=
|
||||
ENV_D="${ROOT}etc/env.d"
|
||||
GCC_ENV_D="${ENV_D}/gcc"
|
||||
|
||||
for x in "$@" ; do
|
||||
case "${x}" in
|
||||
# Only use specified compiler if one is not already selected.
|
||||
-O|--use-old)
|
||||
: ${CTARGET:=$(try_real_hard_to_find_CHOST)}
|
||||
if get_current_profile &>/dev/null ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
else
|
||||
die_eerror "No profile selected, unable to utilize --use-old"
|
||||
fi
|
||||
;;
|
||||
-f|--force)
|
||||
FORCE="yes"
|
||||
;;
|
||||
-P|--use-portage-chost)
|
||||
CHECK_CHOST="yes"
|
||||
;;
|
||||
-c|--get-current-profile)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_current_profile"
|
||||
fi
|
||||
;;
|
||||
-l|--list-profiles)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="list_profiles"
|
||||
fi
|
||||
;;
|
||||
-S|--split-profile)
|
||||
if [[ ( $1 != "-S" && $1 != "--split-profile" ) || $# -eq 1 ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
shift # push -S out
|
||||
for x in "$@" ; do
|
||||
split_gcc_ver ${x}
|
||||
done
|
||||
exit 0
|
||||
;;
|
||||
-E|--print-environ)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="print_environ"
|
||||
fi
|
||||
;;
|
||||
-B|--get-bin-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_bin_path"
|
||||
fi
|
||||
;;
|
||||
-L|--get-lib-path)
|
||||
if [[ ${NEED_ACTION} == "yes" ]] ; then
|
||||
NEED_ACTION="no"
|
||||
DOIT="get_lib_path"
|
||||
fi
|
||||
;;
|
||||
-x|--debug)
|
||||
SET_X=true
|
||||
;;
|
||||
-C|--nocolor)
|
||||
# nothing to do; functions.sh parsed this for us
|
||||
;;
|
||||
-h|--help)
|
||||
usage 0
|
||||
;;
|
||||
-V|--version)
|
||||
unset RCSfile Revision Date
|
||||
rcsfile="$RCSfile: gcc-config-1.5.1,v $"
|
||||
rcsfile=${rcsfile#: }
|
||||
rcsfile=${rcsfile%,v*}
|
||||
cvsrev="$Revision: 1.2 $"
|
||||
cvsrev=${cvsrev#: }
|
||||
cvsdate="$Date: 2012/03/15 01:16:44 $"
|
||||
cvsdate=${cvsdate#: }
|
||||
echo "${rcsfile} (r${cvsrev% *} @ ${cvsdate% *})"
|
||||
exit 0
|
||||
;;
|
||||
-*)
|
||||
die_eerror "Invalid switch! Run ${argv0} without parameters for help."
|
||||
;;
|
||||
*)
|
||||
${SET_X} && set -x
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
if [[ -z $(echo ${x} | tr -d '[:digit:]') ]] ; then
|
||||
# User gave us a # representing the profile
|
||||
i=1
|
||||
for y in "${GCC_ENV_D}"/* ; do
|
||||
[[ -f ${y} ]] || continue
|
||||
[[ ${y} == */config* ]] && continue
|
||||
|
||||
if [[ -f ${y} ]] && [[ ${x} == ${i} ]] ; then
|
||||
CC_COMP=${y##*/}
|
||||
break
|
||||
fi
|
||||
((++i))
|
||||
done
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
die_eerror "Could not locate profile #$x !"
|
||||
fi
|
||||
else
|
||||
# User gave us a full HOST-gccver
|
||||
x=${x##*/}
|
||||
if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \
|
||||
[[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]]
|
||||
then
|
||||
# Maybe they just gave us a gccver ...
|
||||
get_real_chost
|
||||
if [[ -f ${GCC_ENV_D}/${REAL_CHOST}-${x} ]] ; then
|
||||
x=${REAL_CHOST}-${x}
|
||||
else
|
||||
die_eerror "Could not locate '$x' in '${GCC_ENV_D}/' !"
|
||||
fi
|
||||
fi
|
||||
CC_COMP=${x}
|
||||
fi
|
||||
else
|
||||
die_eerror "Too many arguments! Run ${argv0} without parameters for help."
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
${SET_X} && set -x
|
||||
|
||||
if [[ ${DOIT} == "switch_profile" ]] && [[ -z ${CC_COMP} ]] ; then
|
||||
usage 1
|
||||
fi
|
||||
|
||||
get_real_chost
|
||||
[[ ${DOIT} == "get_current_profile" ]] \
|
||||
&& : ${CTARGET:=${CC_COMP:-${REAL_CHOST}}} \
|
||||
|| : ${CTARGET:=${REAL_CHOST}}
|
||||
|
||||
if [[ -z ${CC_COMP} ]] ; then
|
||||
CC_COMP=$(get_current_profile)
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
echo "${CC_COMP}"
|
||||
list_profiles
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${DOIT} != "get_current_profile" ]] ; then
|
||||
GCC_LIB=$(get_lib_path | awk -F/ '{ print "/"$2"/"$3"/"$4"/" }')
|
||||
|
||||
# For people who insist on using funky version strings ("4.6.x"
|
||||
# rather than "4.6.2"), allow them to manually specify it.
|
||||
source_var GCC_VER "${GCC_ENV_D}/${CC_COMP}"
|
||||
|
||||
CC_COMP_VERSION=${GCC_VER:-$(chop_gcc_ver_spec ${CC_COMP})}
|
||||
CC_COMP_TARGET=$(show_var CTARGET "${GCC_ENV_D}/${CC_COMP}")
|
||||
if [[ -z ${CC_COMP_TARGET} ]] ; then
|
||||
# Native configs don't have CTARGET in there.
|
||||
CC_COMP_TARGET=${CC_COMP%-${CC_COMP_VERSION}*}
|
||||
fi
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then
|
||||
CC_COMP_VERSION=${CC_COMP_VERSION%-*}
|
||||
fi
|
||||
|
||||
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]] || \
|
||||
[[ ! -f ${GCC_ENV_D}/${CC_COMP} ]]
|
||||
then
|
||||
eerror "${argv0}: Profile does not exist or invalid setting for ${GCC_ENV_D}/${CC_COMP}" 1>&2
|
||||
#exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${CHECK_CHOST} == "yes" ]] ; then
|
||||
# Chosen CHOST are not the same as the real CHOST according to
|
||||
# make.conf, and --use-portage-chost option was given, so do nothing
|
||||
get_real_chost
|
||||
CC_COMP_VERSION=$(chop_gcc_ver_spec ${CC_COMP})
|
||||
CC_COMP_TARGET=${CC_COMP:0:${#CC_COMP}-${#CC_COMP_VERSION}-1}
|
||||
[[ ${CC_COMP_TARGET} != ${REAL_CHOST} ]] && exit 0
|
||||
fi
|
||||
|
||||
${DOIT}
|
||||
|
||||
# vim:ts=4
|
||||
372
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/wrapper-1.5.1.c
vendored
Normal file
372
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/wrapper-1.5.1.c
vendored
Normal file
@ -0,0 +1,372 @@
|
||||
/*
|
||||
* Copyright 1999-2008 Gentoo Foundation
|
||||
* Distributed under the terms of the GNU General Public License v2
|
||||
* $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.5.1.c,v 1.2 2009/01/02 00:43:32 vapier Exp $
|
||||
* Author: Martin Schlemmer <azarah@gentoo.org>
|
||||
* az's lackey: Mike Frysinger <vapier@gentoo.org>
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
# define USE_DEBUG 1
|
||||
#else
|
||||
# define USE_DEBUG 0
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define GCC_CONFIG "/usr/bin/gcc-config"
|
||||
#define ENVD_BASE "/etc/env.d/05gcc"
|
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0]))
|
||||
|
||||
/* basename(3) is allowed to modify memory */
|
||||
#undef basename
|
||||
#define basename(path) \
|
||||
({ \
|
||||
char *__path = path; \
|
||||
char *__ret = strrchr(__path, '/'); \
|
||||
__ret ? __ret + 1 : __path; \
|
||||
})
|
||||
|
||||
struct wrapper_data {
|
||||
char *name, *fullname, *bin, *path;
|
||||
};
|
||||
|
||||
static const struct {
|
||||
char *alias;
|
||||
char *target;
|
||||
} wrapper_aliases[] = {
|
||||
{ "cc", "gcc" },
|
||||
{ "f77", "g77" },
|
||||
};
|
||||
|
||||
#define wrapper_warn(fmt, ...) fprintf(stderr, "%s" fmt "\n", "gcc-config: ", ## __VA_ARGS__)
|
||||
#define wrapper_err(fmt, ...) ({ wrapper_warn("%s" fmt, "error: ", ## __VA_ARGS__); exit(1); })
|
||||
#define wrapper_errp(fmt, ...) wrapper_err(fmt ": %s", ## __VA_ARGS__, strerror(errno))
|
||||
#define wrapper_dbg(fmt, ...) ({ if (USE_DEBUG) wrapper_warn(fmt, ## __VA_ARGS__); })
|
||||
|
||||
#define xmemwrap(func, proto, use) \
|
||||
static void *x ## func proto \
|
||||
{ \
|
||||
void *ret = func use; \
|
||||
if (!ret) \
|
||||
wrapper_err(#func "%s", ": out of memory"); \
|
||||
return ret; \
|
||||
}
|
||||
xmemwrap(malloc, (size_t size), (size))
|
||||
xmemwrap(calloc, (size_t nemb, size_t size), (nemb, size))
|
||||
xmemwrap(strdup, (const char *s), (s))
|
||||
|
||||
/* check_for_target checks in path for the file we are seeking
|
||||
* it returns 1 if found (with data->bin setup), 0 if not and
|
||||
* negative on error
|
||||
*/
|
||||
static int check_for_target(char *path, struct wrapper_data *data)
|
||||
{
|
||||
struct stat sbuf;
|
||||
char str[PATH_MAX + 1];
|
||||
size_t path_len = strlen(path);
|
||||
size_t len = path_len + strlen(data->name) + 2;
|
||||
|
||||
if (sizeof(str) < len)
|
||||
wrapper_warn("path too long: %s", path);
|
||||
|
||||
strcpy(str, path);
|
||||
str[path_len] = '/';
|
||||
str[path_len+1] = '\0';
|
||||
strcat(str, data->name);
|
||||
|
||||
/* Stat possible file to check that
|
||||
* 1) it exist and is a regular file, and
|
||||
* 2) it is not the wrapper itself, and
|
||||
* 3) it is in a /gcc-bin/ directory tree
|
||||
*/
|
||||
if (strcmp(str, data->fullname) != 0 &&
|
||||
strstr(str, "/gcc-bin/") != NULL &&
|
||||
stat(str, &sbuf) == 0 &&
|
||||
(S_ISREG(sbuf.st_mode) || S_ISLNK(sbuf.st_mode)))
|
||||
{
|
||||
wrapper_dbg("%s: found in %s", data->name, path);
|
||||
data->bin = xstrdup(str);
|
||||
return 1;
|
||||
}
|
||||
|
||||
wrapper_dbg("%s: did not find in %s", data->name, path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int find_target_in_path(struct wrapper_data *data)
|
||||
{
|
||||
char *token = NULL, *state;
|
||||
char *str;
|
||||
|
||||
if (data->path == NULL)
|
||||
return 0;
|
||||
|
||||
/* Make a copy since strtok_r will modify path */
|
||||
str = xstrdup(data->path);
|
||||
|
||||
/* Find the first file with suitable name in PATH. The idea here is
|
||||
* that we do not want to bind ourselfs to something static like the
|
||||
* default profile, or some odd environment variable, but want to be
|
||||
* able to build something with a non default gcc by just tweaking
|
||||
* the PATH ... */
|
||||
token = strtok_r(str, ":", &state);
|
||||
while (token != NULL) {
|
||||
if (check_for_target(token, data))
|
||||
return 1;
|
||||
token = strtok_r(NULL, ":", &state);
|
||||
}
|
||||
|
||||
wrapper_dbg("%s: did not find in PATH", data->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* find_target_in_envd parses /etc/env.d/05gcc, and tries to
|
||||
* extract PATH, which is set to the current profile's bin
|
||||
* directory ...
|
||||
*/
|
||||
static int find_target_in_envd(struct wrapper_data *data, int cross_compile)
|
||||
{
|
||||
FILE *envfile = NULL;
|
||||
char *token = NULL, *state;
|
||||
char str[PATH_MAX + 1];
|
||||
char *strp = str;
|
||||
char envd_file[PATH_MAX + 1];
|
||||
|
||||
if (!cross_compile) {
|
||||
/* for the sake of speed, we'll keep a symlink around for
|
||||
* the native compiler. #190260
|
||||
*/
|
||||
snprintf(envd_file, sizeof(envd_file)-1, "/etc/env.d/gcc/.NATIVE");
|
||||
} else {
|
||||
char *ctarget, *end = strrchr(data->name, '-');
|
||||
if (end == NULL)
|
||||
return 0;
|
||||
ctarget = xstrdup(data->name);
|
||||
ctarget[end - data->name] = '\0';
|
||||
snprintf(envd_file, PATH_MAX, "%s-%s", ENVD_BASE, ctarget);
|
||||
free(ctarget);
|
||||
}
|
||||
|
||||
envfile = fopen(envd_file, "r");
|
||||
if (envfile == NULL)
|
||||
return 0;
|
||||
|
||||
while (fgets(strp, PATH_MAX, envfile) != NULL) {
|
||||
/* Keep reading ENVD_FILE until we get a line that
|
||||
* starts with 'GCC_PATH=' ... keep 'PATH=' around
|
||||
* for older gcc versions.
|
||||
*/
|
||||
if (strncmp(strp, "GCC_PATH=", strlen("GCC_PATH=")) &&
|
||||
strncmp(strp, "PATH=", strlen("PATH=")))
|
||||
continue;
|
||||
|
||||
token = strtok_r(strp, "=", &state);
|
||||
if ((token != NULL) && token[0])
|
||||
/* The second token should be the value of PATH .. */
|
||||
token = strtok_r(NULL, "=", &state);
|
||||
else
|
||||
goto bail;
|
||||
|
||||
if ((token != NULL) && token[0]) {
|
||||
strp = token;
|
||||
/* A bash variable may be unquoted, quoted with " or
|
||||
* quoted with ', so extract the value without those ..
|
||||
*/
|
||||
token = strtok(strp, "\n\"\'");
|
||||
|
||||
while (token != NULL) {
|
||||
if (check_for_target(token, data)) {
|
||||
fclose(envfile);
|
||||
return 1;
|
||||
}
|
||||
|
||||
token = strtok(NULL, "\n\"\'");
|
||||
}
|
||||
}
|
||||
|
||||
strp = str;
|
||||
}
|
||||
|
||||
bail:
|
||||
fclose(envfile);
|
||||
return (cross_compile ? 0 : find_target_in_envd(data, 1));
|
||||
}
|
||||
|
||||
static void find_wrapper_target(struct wrapper_data *data)
|
||||
{
|
||||
if (find_target_in_path(data))
|
||||
return;
|
||||
|
||||
if (find_target_in_envd(data, 0))
|
||||
return;
|
||||
|
||||
/* Only our wrapper is in PATH, so get the CC path using
|
||||
* gcc-config and execute the real binary in there ...
|
||||
*/
|
||||
FILE *inpipe = popen(GCC_CONFIG " --get-bin-path", "r");
|
||||
if (inpipe == NULL)
|
||||
wrapper_errp("could not open pipe");
|
||||
|
||||
char str[PATH_MAX + 1];
|
||||
if (fgets(str, PATH_MAX, inpipe) == 0)
|
||||
wrapper_errp("could not get compiler binary path");
|
||||
|
||||
/* chomp! */
|
||||
size_t plen = strlen(str);
|
||||
if (str[plen-1] == '\n')
|
||||
str[plen-1] = '\0';
|
||||
|
||||
data->bin = xmalloc(plen + 1 + strlen(data->name) + 1);
|
||||
sprintf(data->bin, "%s/%s", str, data->name);
|
||||
|
||||
pclose(inpipe);
|
||||
}
|
||||
|
||||
/* This function modifies PATH to have gcc's bin path appended */
|
||||
static void modify_path(struct wrapper_data *data)
|
||||
{
|
||||
char *newpath = NULL, *token = NULL, *state;
|
||||
char dname_data[PATH_MAX + 1], str[PATH_MAX + 1];
|
||||
char *str2 = dname_data, *dname = dname_data;
|
||||
size_t len = 0;
|
||||
|
||||
if (data->bin == NULL)
|
||||
return;
|
||||
|
||||
if (data->path == NULL)
|
||||
return;
|
||||
|
||||
snprintf(str2, PATH_MAX + 1, "%s", data->bin);
|
||||
|
||||
if ((dname = dirname(str2)) == NULL)
|
||||
return;
|
||||
|
||||
/* Make a copy since strtok_r will modify path */
|
||||
snprintf(str, PATH_MAX + 1, "%s", data->path);
|
||||
|
||||
token = strtok_r(str, ":", &state);
|
||||
|
||||
/* Check if we already appended our bin location to PATH */
|
||||
if ((token != NULL) && token[0])
|
||||
if (!strcmp(token, dname))
|
||||
return;
|
||||
|
||||
len = strlen(dname) + strlen(data->path) + 2 + strlen("PATH") + 1;
|
||||
|
||||
newpath = xmalloc(len);
|
||||
memset(newpath, 0, len);
|
||||
|
||||
snprintf(newpath, len, "PATH=%s:%s", dname, data->path);
|
||||
putenv(newpath);
|
||||
}
|
||||
|
||||
static char *abi_flags[] = {
|
||||
"-m32", "-m64", "-mabi",
|
||||
};
|
||||
static char **build_new_argv(char **argv, const char *newflags_str)
|
||||
{
|
||||
#define MAX_NEWFLAGS 32
|
||||
char *newflags[MAX_NEWFLAGS];
|
||||
char **retargv;
|
||||
unsigned int argc, i;
|
||||
char *state, *flags_tokenized;
|
||||
|
||||
retargv = argv;
|
||||
|
||||
/* make sure user hasn't specified any ABI flags already ...
|
||||
* if they have, lets just get out of here ... this of course
|
||||
* is by no means complete, it's merely a hack that works most
|
||||
* of the time ...
|
||||
*/
|
||||
for (argc = 0; argv[argc]; ++argc)
|
||||
for (i = 0; i < ARRAY_SIZE(abi_flags); ++i)
|
||||
if (!strncmp(argv[argc], abi_flags[i], strlen(abi_flags[i])))
|
||||
return retargv;
|
||||
|
||||
/* Tokenize the flag list and put it into newflags array */
|
||||
flags_tokenized = xstrdup(newflags_str);
|
||||
i = 0;
|
||||
newflags[i] = strtok_r(flags_tokenized, " \t\n", &state);
|
||||
while (newflags[i] != NULL && i < MAX_NEWFLAGS-1)
|
||||
newflags[++i] = strtok_r(NULL, " \t\n", &state);
|
||||
|
||||
/* allocate memory for our spiffy new argv */
|
||||
retargv = xcalloc(argc + i + 1, sizeof(char*));
|
||||
/* start building retargv */
|
||||
retargv[0] = argv[0];
|
||||
/* insert the ABI flags first so cmdline always overrides ABI flags */
|
||||
memcpy(retargv+1, newflags, i * sizeof(char*));
|
||||
/* copy over the old argv */
|
||||
if (argc > 1)
|
||||
memcpy(retargv+1+i, argv+1, (argc-1) * sizeof(char*));
|
||||
|
||||
return retargv;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct wrapper_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
if (getenv("PATH"))
|
||||
data.path = xstrdup(getenv("PATH"));
|
||||
|
||||
/* What should we find ? */
|
||||
data.name = basename(argv[0]);
|
||||
|
||||
/* Allow for common compiler names like cc->gcc */
|
||||
size_t i;
|
||||
for (i = 0; i < ARRAY_SIZE(wrapper_aliases); ++i)
|
||||
if (!strcmp(data.name, wrapper_aliases[i].alias))
|
||||
data.name = wrapper_aliases[i].target;
|
||||
|
||||
/* What is the full name of our wrapper? */
|
||||
data.fullname = xmalloc(strlen(data.name) + sizeof("/usr/bin/") + 1);
|
||||
sprintf(data.fullname, "/usr/bin/%s", data.name);
|
||||
|
||||
find_wrapper_target(&data);
|
||||
|
||||
modify_path(&data);
|
||||
|
||||
free(data.path);
|
||||
data.path = NULL;
|
||||
|
||||
/* Set argv[0] to the correct binary, else gcc can't find internal headers
|
||||
* http://bugs.gentoo.org/8132
|
||||
*/
|
||||
argv[0] = data.bin;
|
||||
|
||||
/* If $ABI is in env, add appropriate env flags */
|
||||
char **newargv = argv;
|
||||
if (getenv("ABI")) {
|
||||
char envvar[50];
|
||||
|
||||
/* We use CFLAGS_${ABI} for gcc, g++, g77, etc as the flags that would
|
||||
* be in there are the same no matter which compiler we are using.
|
||||
*/
|
||||
snprintf(envvar, sizeof(envvar), "CFLAGS_%s", getenv("ABI"));
|
||||
envvar[sizeof(envvar)-1] = '\0';
|
||||
|
||||
if (getenv(envvar))
|
||||
newargv = build_new_argv(argv, getenv(envvar));
|
||||
}
|
||||
|
||||
/* Ok, lets do it one more time ... */
|
||||
execv(data.bin, newargv);
|
||||
|
||||
/* shouldn't have made it here if things worked ... */
|
||||
wrapper_err("could not run/locate '%s'", data.name);
|
||||
|
||||
return 123;
|
||||
}
|
||||
315
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/wrapper-1.5.2.c
vendored
Normal file
315
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/files/wrapper-1.5.2.c
vendored
Normal file
@ -0,0 +1,315 @@
|
||||
/*
|
||||
* Copyright 1999-2011 Gentoo Foundation
|
||||
* Distributed under the terms of the GNU General Public License v2
|
||||
* $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.5.2.c,v 1.2 2011/06/18 18:46:23 vapier Exp $
|
||||
* Author: Martin Schlemmer <azarah@gentoo.org>
|
||||
* az's lackey: Mike Frysinger <vapier@gentoo.org>
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
# define USE_DEBUG 1
|
||||
#else
|
||||
# define USE_DEBUG 0
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define GCC_CONFIG "/usr/bin/gcc-config"
|
||||
#define ENVD_BASE "/etc/env.d/05gcc"
|
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0]))
|
||||
|
||||
/* basename(3) is allowed to modify memory */
|
||||
#undef basename
|
||||
#define basename(path) \
|
||||
({ \
|
||||
char *__path = path; \
|
||||
char *__ret = strrchr(__path, '/'); \
|
||||
__ret ? __ret + 1 : __path; \
|
||||
})
|
||||
|
||||
struct wrapper_data {
|
||||
const char *name;
|
||||
char *fullname, *bin, *path;
|
||||
};
|
||||
|
||||
static const struct {
|
||||
const char *alias;
|
||||
const char *target;
|
||||
} wrapper_aliases[] = {
|
||||
{ "cc", "gcc" },
|
||||
{ "f77", "gfortran" },
|
||||
{ "f95", "gfortran" },
|
||||
};
|
||||
|
||||
#define wrapper_warn(fmt, ...) fprintf(stderr, "%s" fmt "\n", "gcc-config: ", ## __VA_ARGS__)
|
||||
#define wrapper_err(fmt, ...) ({ wrapper_warn("%s" fmt, "error: ", ## __VA_ARGS__); exit(1); })
|
||||
#define wrapper_errp(fmt, ...) wrapper_err(fmt ": %s", ## __VA_ARGS__, strerror(errno))
|
||||
#define wrapper_dbg(fmt, ...) ({ if (USE_DEBUG) wrapper_warn(fmt, ## __VA_ARGS__); })
|
||||
|
||||
#define xmemwrap(func, proto, use) \
|
||||
static void *x ## func proto \
|
||||
{ \
|
||||
void *ret = func use; \
|
||||
if (!ret) \
|
||||
wrapper_err(#func "%s", ": out of memory"); \
|
||||
return ret; \
|
||||
}
|
||||
xmemwrap(malloc, (size_t size), (size))
|
||||
xmemwrap(strdup, (const char *s), (s))
|
||||
|
||||
/* check_for_target checks in path for the file we are seeking
|
||||
* it returns 1 if found (with data->bin setup), 0 if not and
|
||||
* negative on error
|
||||
*/
|
||||
static int check_for_target(char *path, struct wrapper_data *data)
|
||||
{
|
||||
struct stat sbuf;
|
||||
char str[PATH_MAX + 1];
|
||||
size_t path_len = strlen(path);
|
||||
size_t len = path_len + strlen(data->name) + 2;
|
||||
|
||||
if (sizeof(str) < len)
|
||||
wrapper_warn("path too long: %s", path);
|
||||
|
||||
strcpy(str, path);
|
||||
str[path_len] = '/';
|
||||
str[path_len+1] = '\0';
|
||||
strcat(str, data->name);
|
||||
|
||||
/* Stat possible file to check that
|
||||
* 1) it exist and is a regular file, and
|
||||
* 2) it is not the wrapper itself, and
|
||||
* 3) it is in a /gcc-bin/ directory tree
|
||||
*/
|
||||
if (strcmp(str, data->fullname) != 0 &&
|
||||
strstr(str, "/gcc-bin/") != NULL &&
|
||||
stat(str, &sbuf) == 0 &&
|
||||
(S_ISREG(sbuf.st_mode) || S_ISLNK(sbuf.st_mode)))
|
||||
{
|
||||
wrapper_dbg("%s: found in %s", data->name, path);
|
||||
data->bin = xstrdup(str);
|
||||
return 1;
|
||||
}
|
||||
|
||||
wrapper_dbg("%s: did not find in %s", data->name, path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int find_target_in_path(struct wrapper_data *data)
|
||||
{
|
||||
char *token = NULL, *state = NULL;
|
||||
char *str;
|
||||
|
||||
if (data->path == NULL)
|
||||
return 0;
|
||||
|
||||
/* Make a copy since strtok_r will modify path */
|
||||
str = xstrdup(data->path);
|
||||
|
||||
/* Find the first file with suitable name in PATH. The idea here is
|
||||
* that we do not want to bind ourselfs to something static like the
|
||||
* default profile, or some odd environment variable, but want to be
|
||||
* able to build something with a non default gcc by just tweaking
|
||||
* the PATH ... */
|
||||
token = strtok_r(str, ":", &state);
|
||||
while (token != NULL) {
|
||||
if (check_for_target(token, data))
|
||||
return 1;
|
||||
token = strtok_r(NULL, ":", &state);
|
||||
}
|
||||
|
||||
wrapper_dbg("%s: did not find in PATH", data->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* find_target_in_envd parses /etc/env.d/05gcc, and tries to
|
||||
* extract PATH, which is set to the current profile's bin
|
||||
* directory ...
|
||||
*/
|
||||
static int find_target_in_envd(struct wrapper_data *data, int cross_compile)
|
||||
{
|
||||
FILE *envfile = NULL;
|
||||
char *token = NULL, *state;
|
||||
char str[PATH_MAX + 1];
|
||||
char *strp = str;
|
||||
char envd_file[PATH_MAX + 1];
|
||||
|
||||
if (!cross_compile) {
|
||||
/* for the sake of speed, we'll keep a symlink around for
|
||||
* the native compiler. #190260
|
||||
*/
|
||||
snprintf(envd_file, sizeof(envd_file)-1, "/etc/env.d/gcc/.NATIVE");
|
||||
} else {
|
||||
char *ctarget, *end = strrchr(data->name, '-');
|
||||
if (end == NULL)
|
||||
return 0;
|
||||
ctarget = xstrdup(data->name);
|
||||
ctarget[end - data->name] = '\0';
|
||||
snprintf(envd_file, PATH_MAX, "%s-%s", ENVD_BASE, ctarget);
|
||||
free(ctarget);
|
||||
}
|
||||
|
||||
envfile = fopen(envd_file, "r");
|
||||
if (envfile == NULL)
|
||||
return 0;
|
||||
|
||||
while (fgets(strp, PATH_MAX, envfile) != NULL) {
|
||||
/* Keep reading ENVD_FILE until we get a line that
|
||||
* starts with 'GCC_PATH=' ... keep 'PATH=' around
|
||||
* for older gcc versions.
|
||||
*/
|
||||
if (strncmp(strp, "GCC_PATH=", strlen("GCC_PATH=")) &&
|
||||
strncmp(strp, "PATH=", strlen("PATH=")))
|
||||
continue;
|
||||
|
||||
token = strtok_r(strp, "=", &state);
|
||||
if ((token != NULL) && token[0])
|
||||
/* The second token should be the value of PATH .. */
|
||||
token = strtok_r(NULL, "=", &state);
|
||||
else
|
||||
goto bail;
|
||||
|
||||
if ((token != NULL) && token[0]) {
|
||||
strp = token;
|
||||
/* A bash variable may be unquoted, quoted with " or
|
||||
* quoted with ', so extract the value without those ..
|
||||
*/
|
||||
token = strtok(strp, "\n\"\'");
|
||||
|
||||
while (token != NULL) {
|
||||
if (check_for_target(token, data)) {
|
||||
fclose(envfile);
|
||||
return 1;
|
||||
}
|
||||
|
||||
token = strtok(NULL, "\n\"\'");
|
||||
}
|
||||
}
|
||||
|
||||
strp = str;
|
||||
}
|
||||
|
||||
bail:
|
||||
fclose(envfile);
|
||||
return (cross_compile ? 0 : find_target_in_envd(data, 1));
|
||||
}
|
||||
|
||||
static void find_wrapper_target(struct wrapper_data *data)
|
||||
{
|
||||
if (find_target_in_path(data))
|
||||
return;
|
||||
|
||||
if (find_target_in_envd(data, 0))
|
||||
return;
|
||||
|
||||
/* Only our wrapper is in PATH, so get the CC path using
|
||||
* gcc-config and execute the real binary in there ...
|
||||
*/
|
||||
FILE *inpipe = popen(GCC_CONFIG " --get-bin-path", "r");
|
||||
if (inpipe == NULL)
|
||||
wrapper_errp("could not open pipe");
|
||||
|
||||
char str[PATH_MAX + 1];
|
||||
if (fgets(str, PATH_MAX, inpipe) == 0)
|
||||
wrapper_errp("could not get compiler binary path");
|
||||
|
||||
/* chomp! */
|
||||
size_t plen = strlen(str);
|
||||
if (str[plen-1] == '\n')
|
||||
str[plen-1] = '\0';
|
||||
|
||||
data->bin = xmalloc(plen + 1 + strlen(data->name) + 1);
|
||||
sprintf(data->bin, "%s/%s", str, data->name);
|
||||
|
||||
pclose(inpipe);
|
||||
}
|
||||
|
||||
/* This function modifies PATH to have gcc's bin path appended */
|
||||
static void modify_path(struct wrapper_data *data)
|
||||
{
|
||||
char *newpath = NULL, *token = NULL, *state;
|
||||
char dname_data[PATH_MAX + 1], str[PATH_MAX + 1];
|
||||
char *str2 = dname_data, *dname = dname_data;
|
||||
size_t len = 0;
|
||||
|
||||
if (data->bin == NULL)
|
||||
return;
|
||||
|
||||
if (data->path == NULL)
|
||||
return;
|
||||
|
||||
snprintf(str2, PATH_MAX + 1, "%s", data->bin);
|
||||
|
||||
if ((dname = dirname(str2)) == NULL)
|
||||
return;
|
||||
|
||||
/* Make a copy since strtok_r will modify path */
|
||||
snprintf(str, PATH_MAX + 1, "%s", data->path);
|
||||
|
||||
token = strtok_r(str, ":", &state);
|
||||
|
||||
/* Check if we already appended our bin location to PATH */
|
||||
if ((token != NULL) && token[0])
|
||||
if (!strcmp(token, dname))
|
||||
return;
|
||||
|
||||
len = strlen(dname) + strlen(data->path) + 2 + strlen("PATH") + 1;
|
||||
|
||||
newpath = xmalloc(len);
|
||||
memset(newpath, 0, len);
|
||||
|
||||
snprintf(newpath, len, "PATH=%s:%s", dname, data->path);
|
||||
putenv(newpath);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct wrapper_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
if (getenv("PATH"))
|
||||
data.path = xstrdup(getenv("PATH"));
|
||||
|
||||
/* What should we find ? */
|
||||
data.name = basename(argv[0]);
|
||||
|
||||
/* Allow for common compiler names like cc->gcc */
|
||||
size_t i;
|
||||
for (i = 0; i < ARRAY_SIZE(wrapper_aliases); ++i)
|
||||
if (!strcmp(data.name, wrapper_aliases[i].alias))
|
||||
data.name = wrapper_aliases[i].target;
|
||||
|
||||
/* What is the full name of our wrapper? */
|
||||
data.fullname = xmalloc(strlen(data.name) + sizeof("/usr/bin/") + 1);
|
||||
sprintf(data.fullname, "/usr/bin/%s", data.name);
|
||||
|
||||
find_wrapper_target(&data);
|
||||
|
||||
modify_path(&data);
|
||||
|
||||
free(data.path);
|
||||
data.path = NULL;
|
||||
|
||||
/* Set argv[0] to the correct binary, else gcc can't find internal headers
|
||||
* http://bugs.gentoo.org/8132
|
||||
*/
|
||||
argv[0] = data.bin;
|
||||
|
||||
/* Ok, lets do it one more time ... */
|
||||
execv(data.bin, argv);
|
||||
|
||||
/* shouldn't have made it here if things worked ... */
|
||||
wrapper_err("could not run/locate '%s'", data.name);
|
||||
|
||||
return 123;
|
||||
}
|
||||
59
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild
vendored
Normal file
59
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild,v 1.1 2011/04/28 23:27:02 halcy0n Exp $
|
||||
|
||||
inherit flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Version of .c wrapper to use
|
||||
W_VER="1.5.1"
|
||||
|
||||
DESCRIPTION="Utility to change the gcc compiler being used"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!app-admin/eselect-compiler"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
|
||||
sed -i \
|
||||
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
|
||||
"${D}"/usr/bin/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/misc
|
||||
newexe wrapper gcc-config || die "install wrapper"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler
|
||||
fi
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
if gcc-config --get-current-profile &>/dev/null ; then
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
|
||||
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
|
||||
gcc-config $(/usr/bin/gcc-config --get-current-profile)
|
||||
fi
|
||||
}
|
||||
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5-r1.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5-r1.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.5-r1.ebuild,v 1.3 2011/11/11 12:15:40 aballier Exp $
|
||||
|
||||
inherit flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Version of .c wrapper to use
|
||||
W_VER="1.5.2"
|
||||
|
||||
DESCRIPTION="Utility to change the gcc compiler being used"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -sparc-fbsd -x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!app-admin/eselect-compiler"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
|
||||
sed -i \
|
||||
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
|
||||
"${D}"/usr/bin/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/misc
|
||||
newexe wrapper gcc-config || die "install wrapper"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler
|
||||
fi
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
|
||||
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
}
|
||||
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5-r2.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5-r2.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.5-r2.ebuild,v 1.7 2012/03/15 15:45:05 vapier Exp $
|
||||
|
||||
inherit flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Version of .c wrapper to use
|
||||
W_VER="1.5.2"
|
||||
|
||||
DESCRIPTION="Utility to change the gcc compiler being used"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!app-admin/eselect-compiler"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
|
||||
sed -i \
|
||||
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
|
||||
"${D}"/usr/bin/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/misc
|
||||
newexe wrapper gcc-config || die "install wrapper"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler
|
||||
fi
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
|
||||
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
}
|
||||
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5.1-r1.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5.1-r1.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.5.1-r1.ebuild,v 1.1 2012/03/15 01:16:44 vapier Exp $
|
||||
|
||||
inherit flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Version of .c wrapper to use
|
||||
W_VER="1.5.2"
|
||||
|
||||
DESCRIPTION="Utility to change the gcc compiler being used"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!app-admin/eselect-compiler"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
|
||||
sed -i \
|
||||
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
|
||||
"${D}"/usr/bin/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/misc
|
||||
newexe wrapper gcc-config || die "install wrapper"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler
|
||||
fi
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
|
||||
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
}
|
||||
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5.1.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.5.1.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.5.1.ebuild,v 1.1 2012/02/29 20:16:56 vapier Exp $
|
||||
|
||||
inherit flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Version of .c wrapper to use
|
||||
W_VER="1.5.2"
|
||||
|
||||
DESCRIPTION="Utility to change the gcc compiler being used"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!app-admin/eselect-compiler"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() {
|
||||
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-flags
|
||||
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
|
||||
sed -i \
|
||||
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
|
||||
"${D}"/usr/bin/${PN}
|
||||
|
||||
exeinto /usr/$(get_libdir)/misc
|
||||
newexe wrapper gcc-config || die "install wrapper"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler
|
||||
fi
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
|
||||
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
}
|
||||
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.6.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.6.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.6.ebuild,v 1.9 2012/07/08 15:39:00 armin76 Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="utility to manage compilers"
|
||||
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PV="${PV}" \
|
||||
SUBLIBDIR="$(get_libdir)" \
|
||||
install || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler &
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config &
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
rm -f "${ROOT}"/usr/include/g++{,-v3} &
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
|
||||
wait
|
||||
}
|
||||
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.1.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.1.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.1.ebuild,v 1.1 2012/05/13 20:14:06 vapier Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="utility to manage compilers"
|
||||
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PV="${PV}" \
|
||||
SUBLIBDIR="$(get_libdir)" \
|
||||
install || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler &
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config &
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
rm -f "${ROOT}"/usr/include/g++{,-v3} &
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
|
||||
wait
|
||||
}
|
||||
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.2.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.2.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.2.ebuild,v 1.1 2012/05/31 04:32:38 vapier Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="utility to manage compilers"
|
||||
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PV="${PV}" \
|
||||
SUBLIBDIR="$(get_libdir)" \
|
||||
install || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler &
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config &
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
rm -f "${ROOT}"/usr/include/g++{,-v3} &
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
|
||||
wait
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.3.ebuild,v 1.1 2012/06/10 04:03:13 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.3.ebuild,v 1.8 2014/01/18 03:08:29 vapier Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
@ -11,7 +11,7 @@ SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
|
||||
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.7.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.ebuild,v 1.2 2012/04/26 12:30:41 aballier Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="utility to manage compilers"
|
||||
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PV="${PV}" \
|
||||
SUBLIBDIR="$(get_libdir)" \
|
||||
install || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler &
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config &
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
rm -f "${ROOT}"/usr/include/g++{,-v3} &
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
|
||||
wait
|
||||
}
|
||||
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.8.ebuild
vendored
Normal file
47
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/gcc-config-1.8.ebuild
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.8.ebuild,v 1.2 2014/01/18 03:08:29 vapier Exp $
|
||||
|
||||
inherit unpacker toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="utility to manage compilers"
|
||||
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
PV="${PV}" \
|
||||
SUBLIBDIR="$(get_libdir)" \
|
||||
install || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Scrub eselect-compiler remains
|
||||
rm -f "${ROOT}"/etc/env.d/05compiler &
|
||||
|
||||
# Make sure old versions dont exist #79062
|
||||
rm -f "${ROOT}"/usr/sbin/gcc-config &
|
||||
|
||||
# We not longer use the /usr/include/g++-v3 hacks, as
|
||||
# it is not needed ...
|
||||
rm -f "${ROOT}"/usr/include/g++{,-v3} &
|
||||
|
||||
# Do we have a valid multi ver setup ?
|
||||
local x
|
||||
for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
|
||||
gcc-config ${x}
|
||||
done
|
||||
|
||||
wait
|
||||
}
|
||||
5
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/metadata.xml
vendored
Normal file
5
sdk_container/src/third_party/portage-stable/sys-devel/gcc-config/metadata.xml
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>toolchain</herd>
|
||||
</pkgmetadata>
|
||||
@ -1,6 +1,236 @@
|
||||
# ChangeLog for sys-devel/gdb
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.241 2013/06/23 02:16:26 vapier Exp $
|
||||
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.295 2015/04/04 18:28:46 vapier Exp $
|
||||
|
||||
04 Apr 2015; Mike Frysinger <vapier@gentoo.org> gdb-7.9.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Depend on a specific readline SLOT.
|
||||
|
||||
22 Mar 2015; Rick Farina <zerochaos@gentoo.org> gdb-7.7-r1.ebuild,
|
||||
gdb-7.7.1.ebuild, gdb-7.8.1.ebuild, gdb-7.8.2.ebuild, gdb-7.8.ebuild:
|
||||
python-single-r1 no longer supports eapi 4 due to metadata varience. this
|
||||
tested QA fix allows gdb to be buildable. Please do not revert gdb to an
|
||||
unbuiltable state.
|
||||
|
||||
14 Mar 2015; Mike Frysinger <vapier@gentoo.org> -gdb-6.6-r2.ebuild,
|
||||
-gdb-6.7.1-r3.ebuild, -gdb-6.8-r1.ebuild, -gdb-6.8-r2.ebuild,
|
||||
-gdb-7.0.1.ebuild, -gdb-7.1.ebuild, -gdb-7.2.50.20101117.4.15.ebuild,
|
||||
-gdb-7.2.ebuild, -gdb-7.3.1-r1.ebuild, -gdb-7.3.1.ebuild, -gdb-7.3.ebuild,
|
||||
-gdb-7.4.1.ebuild, -gdb-7.4.ebuild:
|
||||
Move old ebuilds to toolchain overlay.
|
||||
|
||||
14 Mar 2015; Mike Frysinger <vapier@gentoo.org> gdb-7.9.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Upgrade to EAPI=5 as gdb is not needed to update an old system #543178 by
|
||||
Michał Górny.
|
||||
|
||||
28 Feb 2015; <tgall@gentoo.org> gdb-7.8.2.ebuild:
|
||||
stable on arm64
|
||||
|
||||
27 Feb 2015; Mike Frysinger <vapier@gentoo.org> gdb-6.6-r2.ebuild,
|
||||
gdb-6.7.1-r3.ebuild, gdb-6.8-r1.ebuild, gdb-6.8-r2.ebuild, gdb-7.0.1.ebuild,
|
||||
gdb-7.1.ebuild, gdb-7.2.50.20101117.4.15.ebuild, gdb-7.2.ebuild,
|
||||
gdb-7.3.1-r1.ebuild, gdb-7.3.1.ebuild, gdb-7.3.ebuild, gdb-7.4.1.ebuild,
|
||||
gdb-7.4.ebuild, gdb-7.5.1.ebuild, gdb-7.5.ebuild, gdb-7.6.1.ebuild,
|
||||
gdb-7.6.2.ebuild, gdb-7.6.ebuild, gdb-7.7-r1.ebuild, gdb-7.7.1.ebuild,
|
||||
gdb-7.8.1.ebuild, gdb-7.8.2.ebuild, gdb-7.8.ebuild, gdb-7.9.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Use more readable CTARGET setup logic.
|
||||
|
||||
*gdb-7.9 (20 Feb 2015)
|
||||
|
||||
20 Feb 2015; Mike Frysinger <vapier@gentoo.org> +gdb-7.9.ebuild:
|
||||
Version bump.
|
||||
|
||||
20 Feb 2015; Mike Frysinger <vapier@gentoo.org> gdb-6.6-r2.ebuild,
|
||||
gdb-6.7.1-r3.ebuild, gdb-6.8-r1.ebuild, gdb-6.8-r2.ebuild, gdb-7.0.1.ebuild,
|
||||
gdb-7.1.ebuild, gdb-7.2.50.20101117.4.15.ebuild, gdb-7.2.ebuild,
|
||||
gdb-7.3.1-r1.ebuild, gdb-7.3.1.ebuild, gdb-7.3.ebuild, gdb-7.4.1.ebuild,
|
||||
gdb-7.4.ebuild, gdb-7.5.1.ebuild, gdb-7.5.ebuild, gdb-7.6.1.ebuild,
|
||||
gdb-7.6.2.ebuild, gdb-7.6.ebuild, gdb-7.7-r1.ebuild, gdb-7.7.1.ebuild,
|
||||
gdb-7.8.1.ebuild, gdb-7.8.2.ebuild, gdb-7.8.ebuild, gdb-9999.ebuild:
|
||||
Fix USE=vanilla and PATCH_VER interaction #540698 by David Kredba.
|
||||
|
||||
17 Feb 2015; Mike Frysinger <vapier@gentoo.org> gdb-9999.ebuild:
|
||||
Update weekly snapshot to use xz.
|
||||
|
||||
*gdb-7.8.2 (15 Feb 2015)
|
||||
|
||||
15 Feb 2015; Mike Frysinger <vapier@gentoo.org> +gdb-7.8.2.ebuild:
|
||||
Version bump.
|
||||
|
||||
13 Feb 2015; Mike Frysinger <vapier@gentoo.org> gdb-7.8.1.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Put deps behind USE=server and USE=client as appropriate #539832 by
|
||||
tschwinger.
|
||||
|
||||
13 Feb 2015; Mike Frysinger <vapier@gentoo.org> gdb-7.8.1.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Reject USE="-client -server" builds.
|
||||
|
||||
11 Nov 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for ia64, wrt bug #526376
|
||||
|
||||
04 Nov 2014; Markus Meier <maekke@gentoo.org> gdb-7.7.1.ebuild:
|
||||
arm stable, bug #526376
|
||||
|
||||
04 Nov 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for sparc, wrt bug #526376
|
||||
|
||||
02 Nov 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for alpha, wrt bug #526376
|
||||
|
||||
01 Nov 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for ppc, wrt bug #526376
|
||||
|
||||
31 Oct 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for ppc64, wrt bug #526376
|
||||
|
||||
30 Oct 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for x86, wrt bug #526376
|
||||
|
||||
*gdb-7.8.1 (30 Oct 2014)
|
||||
|
||||
30 Oct 2014; Mike Frysinger <vapier@gentoo.org> +gdb-7.8.1.ebuild:
|
||||
Version bump.
|
||||
|
||||
29 Oct 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for amd64, wrt bug #526376
|
||||
|
||||
25 Oct 2014; Jeroen Roovers <jer@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Stable for HPPA (bug #526376).
|
||||
|
||||
04 Aug 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.8.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Install gdb datafiles for cross-gdbs too as they need their own
|
||||
python/xml/etc... files since they can be different versions than the native
|
||||
gdb.
|
||||
|
||||
01 Aug 2014; Raúl Porcel <armin76@gentoo.org> gdb-7.6.2.ebuild:
|
||||
sparc stable wrt #501528
|
||||
|
||||
*gdb-7.8 (30 Jul 2014)
|
||||
|
||||
30 Jul 2014; Mike Frysinger <vapier@gentoo.org> +gdb-7.8.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Version bump.
|
||||
|
||||
14 Jun 2014; Mike Frysinger <vapier@gentoo.org> metadata.xml:
|
||||
Add upstream CPE tag (security info).
|
||||
|
||||
09 May 2014; Fabian Groffen <grobian@gentoo.org> gdb-7.7.1.ebuild:
|
||||
Reapply python-config fix for Darwin
|
||||
|
||||
*gdb-7.7.1 (08 May 2014)
|
||||
|
||||
08 May 2014; Mike Frysinger <vapier@gentoo.org> +gdb-7.7.1.ebuild:
|
||||
Version bump.
|
||||
|
||||
27 Apr 2014; Mike Gilbert <floppym@gentoo.org> gdb-7.7-r1.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Add python3.4.
|
||||
|
||||
18 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.7-r1.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Fix by Jonathan Callen for USE=-python handling #504830.
|
||||
|
||||
*gdb-7.7-r1 (14 Mar 2014)
|
||||
|
||||
14 Mar 2014; Mike Frysinger <vapier@gentoo.org> +gdb-7.7-r1.ebuild,
|
||||
-gdb-7.7.ebuild:
|
||||
Add fix from upstream for handling of autoloading python printers #502108 by
|
||||
Dennis Schridde.
|
||||
|
||||
14 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.7.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Add epatch_user support.
|
||||
|
||||
14 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.6.2.ebuild:
|
||||
Mark alpha/ia64/m68k/ppc64/s390 stable #501528.
|
||||
|
||||
09 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.7.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Convert python support to use python-single-r1 and allow python 2.7 and 3.3
|
||||
versions #503852 by Nikoli.
|
||||
|
||||
08 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.6.1.ebuild,
|
||||
gdb-7.6.2.ebuild, gdb-7.6.ebuild, gdb-7.7.ebuild, gdb-9999.ebuild:
|
||||
Clean up sysroot handling a bit -- no real functional changes.
|
||||
|
||||
08 Mar 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.6.1.ebuild,
|
||||
gdb-7.6.2.ebuild, gdb-7.6.ebuild, gdb-7.7.ebuild, gdb-9999.ebuild,
|
||||
metadata.xml:
|
||||
Add USE=lzma to control lzma linkage support #503850 by Nikoli.
|
||||
|
||||
05 Mar 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.6.2.ebuild:
|
||||
Stable for ppc, wrt bug #501528
|
||||
|
||||
04 Mar 2014; Agostino Sarubbo <ago@gentoo.org> gdb-7.6.2.ebuild:
|
||||
Stable for x86, wrt bug #501528
|
||||
|
||||
02 Mar 2014; Pacho Ramos <pacho@gentoo.org> gdb-7.6.2.ebuild:
|
||||
amd64 stable, bug #501528
|
||||
|
||||
28 Feb 2014; Markus Meier <maekke@gentoo.org> gdb-7.6.2.ebuild:
|
||||
arm stable, bug #501528
|
||||
|
||||
17 Feb 2014; Jeroen Roovers <jer@gentoo.org> gdb-7.6.2.ebuild:
|
||||
Stable for HPPA (bug #501528).
|
||||
|
||||
*gdb-7.7 (06 Feb 2014)
|
||||
|
||||
06 Feb 2014; Mike Frysinger <vapier@gentoo.org> +gdb-7.7.ebuild:
|
||||
Version bump.
|
||||
|
||||
06 Feb 2014; Mike Frysinger <vapier@gentoo.org> gdb-9999.ebuild:
|
||||
Update to EAPI=4.
|
||||
|
||||
18 Jan 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.6.2.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Add arm64 love.
|
||||
|
||||
14 Jan 2014; Mike Frysinger <vapier@gentoo.org> gdb-9999.ebuild:
|
||||
Disable readline explicitly since we use the system one #498008 by octoploid.
|
||||
|
||||
14 Jan 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.6.1.ebuild,
|
||||
gdb-7.6.2.ebuild, gdb-7.6.ebuild, gdb-9999.ebuild:
|
||||
Re-add m68k keywords.
|
||||
|
||||
14 Jan 2014; Mike Frysinger <vapier@gentoo.org> gdb-9999.ebuild:
|
||||
Disable binutils subdirs due to combined git tree #498008 by octoploid.
|
||||
|
||||
*gdb-7.6.2 (09 Dec 2013)
|
||||
|
||||
09 Dec 2013; Mike Frysinger <vapier@gentoo.org> +gdb-7.6.2.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Version bump.
|
||||
|
||||
20 Nov 2013; Mike Frysinger <vapier@gentoo.org> gdb-7.3.1-r1.ebuild,
|
||||
gdb-7.3.1.ebuild, gdb-7.3.ebuild, gdb-7.4.1.ebuild, gdb-7.4.ebuild,
|
||||
gdb-7.5.1.ebuild, gdb-7.5.ebuild, gdb-7.6.1.ebuild, gdb-7.6.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Update gdb git repo #490566 by octoploid.
|
||||
|
||||
29 Sep 2013; Mike Frysinger <vapier@gentoo.org> gdb-7.6.1.ebuild:
|
||||
Add fix from upstream for building btrace on older systems #473522 by William
|
||||
Throwe.
|
||||
|
||||
15 Sep 2013; Fabian Groffen <grobian@gentoo.org> gdb-7.6.1.ebuild,
|
||||
gdb-9999.ebuild:
|
||||
Fix configure on Darwin by using our own provided python-config iso gdb-
|
||||
provided copy
|
||||
|
||||
*gdb-7.6.1 (03 Sep 2013)
|
||||
|
||||
03 Sep 2013; Mike Frysinger <vapier@gentoo.org> +gdb-7.6.1.ebuild:
|
||||
Version bump.
|
||||
|
||||
15 Aug 2013; Mike Frysinger <vapier@gentoo.org> gdb-7.5.1.ebuild:
|
||||
Mark m68k stable #457796.
|
||||
|
||||
15 Aug 2013; Mike Frysinger <vapier@gentoo.org> gdb-7.6.ebuild:
|
||||
Redo cpuid patch to work with older versions of patch (and not require up-to-
|
||||
date git format support) #477276 by Another Mortal.
|
||||
|
||||
23 Jun 2013; Mike Frysinger <vapier@gentoo.org> gdb-7.6.ebuild:
|
||||
Apply fix from upstream for cpuid on x86 on hardened systems #467806.
|
||||
|
||||
@ -1,67 +1,52 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST gdb-6.6-patches-1.3.tar.bz2 15697 SHA256 7911134ce63ede4e1a45488481cf7cdc1b69ab00c8b3a432983344ff95a0051e SHA512 05f479ad62b4a92ef888f760f07c77f69eeffabb3f8cadc17cd72774e3f3c7c59fd44821cff107639986e0af54626dd8bf0f4ed64bffc5fc0c1f4dd2ed83d186 WHIRLPOOL d2dfc5631e7367baaffdac15bf84af0f3087a95c1bb18ba71a8f7df8e3efb9bc5d4d657bd0ac258abd8e6bf139ee483437c309659fde5af3a68315231bb85634
|
||||
DIST gdb-6.6.tar.bz2 14535755 SHA256 6e602987298db5ddb479bbb84ce653eabd9c304957a49552245f65cdc70d43bd SHA512 e3f75bd4fd788021564f09069c7872fe1c9f6fc4262f3b0b12829f55cb9e1df20ee1fb708efed01cfe4a069245ef3c3766dc6ddbb57bf43f5bc7d1fd7f38d10b WHIRLPOOL 97cdbf237f8d37a5394ea4e8b7707e4b6a3533d5da4230f26bfe58c7ff390631bbcd6a87c28f09b24eadae8e1f6226152b290e0d4efca4fee580b242dee8a0ae
|
||||
DIST gdb-6.7.1-patches-1.3.tar.bz2 109192 SHA256 8d614d6ecdb343310904e293bc86f154550829cb45c5b5bd3bff9c26543f9132 SHA512 dd7577a8a900ca35e0a8d1b16c900350dea63bff989529d01697917dc51065f4438ed77386e53c6deffebad8a7bf1acdde1b79eec63268e12223b82ef0a66c3e WHIRLPOOL bbc8bf4df2166d9296df79d4c919d8e42823305a20f59018023d2151605dd9b3e536a9d147ec747f30e8ac6535f5894a1073b0d2057e6c6c5f6330773c11a783
|
||||
DIST gdb-6.7.1.tar.bz2 15080950 SHA256 f98cec38420f4f1ce3da2f16e6045f086d24dfcf05996b2d74f8620691442f62 SHA512 16a69765e138a95427dfa27f89c851cc88a39c925b66596a6506f67c69fbec4c5cccf0b9c36d88df59ef48e30e3b03e37c22cab8f1f3672cfd3877315741b3e7 WHIRLPOOL 14c12bbf0aabb3288989d3688a9453d3c42fc21973c55665efe47dd4d0ec7c88a013c36927324aa68e10b2589118c06547fe4a037b97bc0bb75cb619f23d5ba5
|
||||
DIST gdb-6.8-patches-1.4.tar.lzma 122922 SHA256 83121b238df52e4556ea197112f6103b34965b8e1773ab1af2949baf53f8dde4 SHA512 1f7b17a44049b37a0f056382c0604a2f96cfba29f5ec1233b00ae005b42d1812272e2346e958d7503cd53b06017c96a9f7969ec766bc378afccfc43307cb7dac WHIRLPOOL acb6ee4ccbb15e57de4ffad9342ae5efe580856810d93754e3e5d38683d5dce9c50d767a3e7b24c885aa56e5ea037d05f24c6a67c3bc0c165e927f6a520efc9b
|
||||
DIST gdb-6.8-patches-1.5.tar.lzma 125348 SHA256 e503204a517992595b37f49e6cb115bcb1c210845197d54d974ffd53bc55647b SHA512 c7b9c81bad82b347b5ec5d87652434553f1ad97c84b977e09340e193f0b85b71bfcf8e374bcfe573adedfccda9dc7e780495009708049e58d6b9fd95ba4d5212 WHIRLPOOL 266b3461ec44c4bb4a44af78f7fc9237466b6c797faa7a777a2e9a58f790db701502d22606de3868adafa22a30dc5a6d96dc2928df54d74c23fe7d4ac00dba75
|
||||
DIST gdb-6.8.tar.bz2 15581509 SHA256 eedffd586bf41cf2ae2f77e6819545d6eb1e5062052320a27332fdfaaebdf818 SHA512 c4647142e712d19b8d032e14e09a2293f8f3a75199d7139f2a1d856d335a50d6dd630cd032d5928cbe76906b801aa314cc817476ab889966113efc3a866e02d8 WHIRLPOOL 3e4aac4fe7511a6f0e0800da5747dfa4dbd6d9c9b241b0e58948bee4b7a9b9abbd608d0cc9af41d4c1d41d6cb27e9660f611d2b6074bfce4fcd92c7499cf121a
|
||||
DIST gdb-7.0.1-patches-1.tar.lzma 11216 SHA256 711d6fb705a0ede2ede6adb036def73f8c7c4fbc9b5a4f27d829800af4d84292 SHA512 65ed2b8b9e793e399d915c8c48cfa8f4ce59f5902dfd8e13729189d959ba3ad7fe06bcae4749d395e500d51b04ae93b11a187cd6c35ffa609c0236d20feccfc4 WHIRLPOOL e29df6569d192a2a0b7768cd979d832a6b6d4faf3bbf35545896746a8ffbb61190cc91cf0376708132355b46964cb38b0bbfb5f1d3f6cc587d9c97305a09c567
|
||||
DIST gdb-7.0.1.tar.bz2 17614682 SHA256 560c3fd0053ade6549e71bd045f70282feb88db73b35e401bbad601a311e3c1b SHA512 358abaf38614d16505a8a3b11c87384788affedf6c10ad0f818a22d8803a00e0b366fc6dbad047384291fc249a23d539b050aafbb48acca83cb559ad83c6f776 WHIRLPOOL 4ddf7dc9e721ba455feb38f1c17d93bbb48a8c7b7154b54213cd545787fbf7489b24300a97c3b6e3f98ed2c297314f950ba37c1c54bd4625b986775bbd74c607
|
||||
DIST gdb-7.1-patches-1.tar.lzma 9207 SHA256 d2efe1ee66110e4e0c55bbe4365380bdb6e159c45ea849a1e329ac293b4e7e3c SHA512 a181a44b55c62f9c8f9d1a006182c0a09f75517f5d3e47e07afba97da5220c9e01be79f6fb9c2dc525ca8a80a4e6b9b92517ced61e1681a5b81558227701cd00 WHIRLPOOL 6a5e6896f72d98e07e3921df781c3360c86f0c0202465270affea6ff5e99ed9bc38d9d1ba328fd81a830534d24c8ebd306d52ee2ccbebbb82d5189a3daa40e6a
|
||||
DIST gdb-7.1.tar.bz2 17977195 SHA256 142c27d7970a4e652dc225d61d887777ae00cf22fdd75cd1e8e4e13bfbd85352 SHA512 5edf1568c268e5f94c392bb031d134b89692f265e4e121f29c19c371b96dd835dbb1ab18fdc99bb29da811797187cef87f5a0cacb8a05e8b5a90bcfc673b3d89 WHIRLPOOL 6aeb05f33a54cdb06138d086fd853323ad0fa56b862f5ff66a87ca95fcdcf859ff3416ffeec40eea15580fbc9166663b1f679b5c46f417279079bf4b45ad2e82
|
||||
DIST gdb-7.2-patches-1.tar.xz 8908 SHA256 c091d46b869aec70ea507d93936d85e134002766808e38cc29d0a6f1f4898fab SHA512 2daf753acffc20f470050e326c3b11650bd7833d23f5b4b6c011646ab9afe5cbc90d98525d62188947880990e20a08f6b656bdc55f47346661d030630c0d2459 WHIRLPOOL e26bdb93c9ac54d14dc15d8e9ece0871c0f3e3082b89b32afc2d4b4107a104c8a29e6e4839d120403983161d9f959280d7d1762ed067e29f9ec704b60a5f471c
|
||||
DIST gdb-7.2.50.20101117-4.fc15.src.rpm 20026108 SHA256 7af3cc31317cc4fcc7530ac23d86baa570309095a7c4e8a7999a830ff6f07ca7
|
||||
DIST gdb-7.2.tar.bz2 18530613 SHA256 bf444b88ab845243364c3d410be9e3f43a57f96ff594d65a37842ea03c3410f0 SHA512 af453ea7b1dbaf9eca35bd58fbe72f09e24e2b467af1d0d883c222310a81f8f96c288bb476a9c96a129c487ceadca858031f3440cad6a9b11a964058140f0dd1 WHIRLPOOL 0056b41be90a0a9c3c0f91e3245c4a421b03fe744f63531eb78d6d0e6e095f2ef4b1035e3ffcea8c21af01eb9bf0f90b62ead5fad200653a36cb847eef118caf
|
||||
DIST gdb-7.3-patches-1.tar.xz 8192 SHA256 9b6cd79b0a769a1c3575830702c151859f1188d162699edaf4779e54dc13b6ed SHA512 0a09811a27fe534d98fe1123d8891b738f5283cda57d46c81dc0fffef0cab1f7b72c0bc0854ce8c20a44867dc2956f5b37e94b9bbc5e0e3a9506abb91160bcec WHIRLPOOL 9ed7389900cd57b4fc932071b4f353528c7fd8a2e53ad76d3eefe47ee514dfb853216dcc6bcd1bd9f8ac2ab755c4fa856f0b6a98f05b048da97de2f7edef3b57
|
||||
DIST gdb-7.3.1-patches-2.tar.xz 17344 SHA256 8dc91c665025faaa716a47404a1645086c5a9db3ee6b38beb564607fa0ef6e69 SHA512 9ab6cfed095128333883b3e8ebfffc724dba21116940397c87107a6eec90b5765e8fb94e5756eac85aaed3b5c2bdd7dcccf4f9b10301cc9196bcace9791f3ecb WHIRLPOOL ac0221711239c49bb0c9ddb620e1ac328a7f570ef62b1d08a25ce0653d3989a47db35d8f784547a6521f918f063a477356c06f32d62d151903f5b5924043cc60
|
||||
DIST gdb-7.3.1.tar.bz2 19500995 SHA256 6d7bff716fde98d03866a1b747c0929ee7dba49bca13e01d975e0b0fa9b33a28 SHA512 69d7318a3f6bf3c95804e6526d886348333d85c4f63c19e7575052792851a296073e36e1b54c63151c2db8ca0bfead36693f4513f2fd9dec962870408e8e71d9 WHIRLPOOL 5332eb8bd5a24cac710c39c6948e1d2373939c647ddfb1cae893cafef910e346c880e2ee4f9fa10211e60319fd648176e36362f9a5f3fdd6db7fb967500a0d5f
|
||||
DIST gdb-7.3.tar.bz2 19091650 SHA256 f9edc83ed921660b77aa2b2fc168b81639aab0f49a94d4b38f2f01bf51d5d2ba SHA512 b7195913c652243f4577bac58adfe80dc90ec9d68fbf316830b1394d13248734178182ba5649ef317411145f57b32a35004b52bcec14886917da340cdf9a2b87 WHIRLPOOL de7b49ad1c09a58c6a5556ab12479729695aa5ffd47b941cb8e834057495835b0ecf3dd063dfb65a75fbb59977034e2dfa168a3b19715ff2e0d7c0b4509d426f
|
||||
DIST gdb-7.4-patches-1.tar.xz 8192 SHA256 c4349847c80f314c603dd9465b90cda2b3565cac4f8024a4287f756eda9d138b SHA512 936e921ab523bd74e8c8b300346f3d861d3dbc11ec6e659b0eb08c45dc91f98bc4ff9140459f663ffb91d67e2cc51d65891a25a79d5565ff9031ba579dca4282 WHIRLPOOL 86d245c25edaa72d6eca9bd83059cf74eca7da86e137b927b7a44abe4bef3f8322430a27bd44c7de53e37f5c86fcc121e758b8e3242cc3bce69738ed46e34d45
|
||||
DIST gdb-7.4.1-patches-2.tar.xz 10944 SHA256 2c57b6edcc3f1cb3915e0bd88f2789eec2a773bb7d115abfc98aa8d55ca03b02 SHA512 4455f68aa345ac04a61547a10f87f11874912227a4e46d836fe1e78bb7754d6bf778b3f52c8bce15492625aac0b238996234fcbff4549c523354187b2729def2 WHIRLPOOL 9b24f6af94266747eb8711fd4b189d9b7a4990a3a19b68561b00c38704a9cb8e7e76ac47d40131619e466cb67cde06f2cee9da248bbfafc53adbeb285464b781
|
||||
DIST gdb-7.4.1.tar.bz2 20619200 SHA256 a081343c017732ab4dd30a4730da83667aa01b0b37d1ad3700c3f05a5da0f9f6 SHA512 86a2f19f161da558afdb5b6179ba11e9124651b5e10915dd3e703fc8e54cf68dba5ffa86f5c3c3c595bc8841728e220741c9fa20889f548725dbd034f3456114 WHIRLPOOL 3de6e0b4e3d17a7d97cb804a6ca49761197d9e1230fb686ec84b8c5d68b6bc578ade873493cc8545d2f96f0f7061fedd9cdc7c42dc5d1cd279025dc4f4cb2069
|
||||
DIST gdb-7.4.tar.bz2 20614020 SHA256 de7e2db7f0475eca7f9ffa9251abaddd3d37e0eed0b3759f71abfd810a3fd20f SHA512 9a5e8b04be6e8a746cb0e6a8b524ec0fa1fa3a971633c54646d722d2ff9200304e36f80cdf30d5a8ba69b5d188f7c1b2baad40d11881c416a3a54e7dee8cc724 WHIRLPOOL f8b0a046071da405194d2bd07007b044e2fd037852493ba6ab6f9fc81400b85583f36b6d6c13d4f1f04e5dafc7d324404606b235e1b962ea7f80b955141cd6c2
|
||||
DIST gdb-7.5-patches-1.tar.xz 9208 SHA256 07d2e5cd96c3acf64710d3cd1098684aa7db7e9e448b5a49775650c2abcb9daf SHA512 775c4b5953e7f02a0bfdc1801fa220e3446bf5cc2153e49cbba7dc883740e64604fde1bd04b6916f47530c94ab6a5351e4d4151a5b1f6f3f3d15f42e9210c196 WHIRLPOOL 69d4079327dce6e8fa8522c155b1a55687a1e14949d6812700512efcc99b51bb1a2becb4c0562b0b5bbc2ee87718d89ea278fa7f7166fa8c88b346cd5968f636
|
||||
DIST gdb-7.5.1-patches-2.tar.xz 8720 SHA256 7b93f737eb90c981685b6eab8ab7cda7ee0a3637b0110450efa5900486cca9dc SHA512 ab04daff6c83738fb7dc96f3444d8b6ab0bc52dd380ee6079676ba9507201c4e19bf8a8dd092705c968e4109d0080216020ad4a03c963b15cd37c6da3e8804ac WHIRLPOOL 8c520dbfb3288ff19a8978f2c1e7687467e2362fa0385d1f62beb1b2081264b597b4ca45b16d0d658cfba7bd754e10f219d84bedcb8acd0c2be4d5c64b201aca
|
||||
DIST gdb-7.5.1.tar.bz2 21349391 SHA256 070b808d289fa8f0291738eeaccc0cd7700d476998781f572856155240d29d20 SHA512 23b240f0ca9376dfc2fdeb79e725a3784841d1f787db9f7ca62a5e2f824ddd8b2d5fb3450e19dd8fee79589e3b0a5fe638eaa35966363c78c82711731c26dc47 WHIRLPOOL b1bb3d5133efcdd3e842ba03bf2f8ebcd01f4cbda8333a6725cd4160604b592fb991c02c17b725ffbcea0b7e37de9ade380079d903541124b4b76fcbd5f9e754
|
||||
DIST gdb-7.5.tar.bz2 21327195 SHA256 d178c45c328369ae4f24f9a0ec53b7d009e2bfa1d41b7027280b24f58ae61932 SHA512 fcedba8a8ba50470e8c032801e99a43dae7fcaf7885b55beaf2d47bfb7b0b666cb5e3bb40d0b67e9a3ba50bd88faba0a255474ab38c2a0272e880d5c668e0506 WHIRLPOOL fa2d238380508cfe8c1ca9a0906e87d539b0470230da407c5c6a02cd9f2b63c727586a9651943ee9328bb44d782a66bb9fae7dd27e9bd31fd5cbd0161cc3514d
|
||||
DIST gdb-7.6-patches-2.tar.xz 12912 SHA256 216684f7fac011a7bebb2dfc772801a3ac7673fc8375f1cfb83a152e6b3c8048 SHA512 e40559523100a0154289bf250f3326d6a427d49d84d50b24b33d5f6772a131f25406b6a7b80ff92f10d3aa83ab60474f4f39f511b2144a61a4a2653faaaeb18d WHIRLPOOL 4c1f6269397bed476ac6d800db44c6d6514adf78df0f0d4b8e91de18e4404b721782f3cdb01c47f67077f2347ef83a50cb6d5016aa5647b4d7c87b3b7703dcf4
|
||||
DIST gdb-7.6-patches-3.tar.xz 13644 SHA256 5ec83531a6bab75d9e3a67431d724b936cadb06862810b3182ac13f8d9b0cd22 SHA512 23a6e597629ecc544f8646eda5a637752b04cb5ecb7797f88d342e0c38f0680419a3656d8718722e8eeb7165e9aa7696c2e5b889049e5b405415bb7c391fa350 WHIRLPOOL 5a9f5cc513768c3218353ee74605ae224d556a72b557763370cc059e75fc31d438b57521df2e9d8eb5d713bbfb8d308d6b2cdf7dbdb7838343b12afc9d81e619
|
||||
DIST gdb-7.6.1-patches-2.tar.xz 14136 SHA256 327948403616d1376cca2bfb0ff174b93bf0494390708864ef54bdd98bc4729f SHA512 f1364d5cc70ea3c131e48ec5cc7275bcf0f875b0dcbe663f507b0f5d082e7db38636fd9036db3da7b2e9794dbc7d42b24126d91fde9447f6f10fcc8b3aea7817 WHIRLPOOL aa738854e26da8469ae98fb681552a7f25777809027761bb788a42db73bfd7852a09e82a8bacb2870ffc52a5953bc398adc4e098c6d36f331cd23a9a9a75c6ed
|
||||
DIST gdb-7.6.1.tar.bz2 24338919 SHA256 e3dfa38a14a5457f9b8b26f7b5080ba5491bd10ae4d69bfe357cea87b7d162e4 SHA512 ca42f003073d35cde42b43efe12f42888b39f2fc4b55f7df9faca2c8381a9329f19bf9366fff0af3ae59711aafaf9b4a33a15cb73a531c0c046b8ada98ed774b WHIRLPOOL 0489854f52e5d3e8fa36f4deb629e9aa7e83fd0ce80fe9aef6a9284e348e52e5d71e655d403a856911b868891ee2ba07bacc707326ef68d68052b557d5aef963
|
||||
DIST gdb-7.6.2-patches-1.tar.xz 14136 SHA256 aeb45e64c4d1f70cf97cd89e66dfe72d219b140e583f602720f29b5fa6ea5145 SHA512 d56e8a613ca0f33ebe203aa85a39881b10a0a15c56ea51c7633b6f032628e207d31d1adfc8f0b7e83754da729baead0acbc83893f1d480c41ce02cad38b6b4ff WHIRLPOOL e9f5482619653c54ad95f4c9eb5310320345ef3b825e373b629b320b9d11f6acfe88e5d713faf98927da77f05d5a37edef61bfce09a4a3990c20135945930a2c
|
||||
DIST gdb-7.6.2.tar.bz2 24269334 SHA256 2f6a0e2ce1c66c9dedeb7f58a8d1298ad602ddcdaf15d23104e1f7832b96d0e8 SHA512 e72e9c2abb58cc08c38841380270fe783f26baf62798171d21cf0843e6c9a81d285f424dc6229ea7b1c6c957d999c8aa75c2bd15076817abb9caab28c4eb7666 WHIRLPOOL bff0c9b33401b5efdf9c87408b4e4ee635509b536f371b4104895844a86256451d684412d0fab6dfb8e5ea2108ac2e4e383a33f2966ed2a32c4dbbbf54a280f4
|
||||
DIST gdb-7.6.tar.bz2 24333590 SHA256 a410e8f35ee70cce83dbbf1da9e2a8373f271ac0e4b71db4336ae293fc7bdf1b SHA512 3b4f7f25ab8a8014a339966fd165dac6ac63df7d6403c338bbd38737bc0033d7e6461cdea2cd6dd095335a9d2a0ecd9d694e862b8d54d269dae577402e2b3ffe WHIRLPOOL c519955a9b6246e90b979783e5745e49de36b6fcd5b17360ae8db92283efb63117a592a03b92e173a11f986dfcc587e2d5c26f3aea49634f317f554ffe2f0e72
|
||||
EBUILD gdb-6.6-r2.ebuild 1948 SHA256 e32a884423df64a81c05033f0a48ad26d9015cc3cc5834e4ea1a7f406156b4c5 SHA512 e9e701cd991d20a9a680eb93939a14ac8c34dec4ebad714d3272f1b14e63dfd90c4f516ff488ad8f6193bb3f5195edc8f097c6f420ceacb17c13b02b9de16230 WHIRLPOOL 087d7651b75c90783ba540b1a4d27bd43cb4abf642ade3bd2fd21c1c234c8d29eb2c5f93ae37ff067bd45a1cbabd4a7ce7c00090476bfc2e5e8bf6810a018ded
|
||||
EBUILD gdb-6.7.1-r3.ebuild 2040 SHA256 9b1fc62f6128421bfc572e2709e4d76cc69c7a3dae024668094d5b61622b5216 SHA512 c807d690d3ad755ecdd83a5288f8370ea9b7a9354788a9ae6584b5abf350fc194d786509e7fb10e05d2a6862d2528174c4f8999cb0677fa0e0d69028ff7aacd8 WHIRLPOOL 30123c76166799a481015b3809c6f79f9e8a0914175ec1a5f5d5456d311c7e24efe05d514f66600b363cb3e1588084c3f4cd2e4d16247081c2e1e1e5e5bb2e35
|
||||
EBUILD gdb-6.8-r1.ebuild 2199 SHA256 c24f328508b2281205305c4e58158a5ab1c56c13eda0ed0fa627585bb3b1b415 SHA512 e6cf548f889fd838e169d70b4282d4993c958e82e7704071bcd4292d882423af5a27cfc4287226d1d6ff682a1b209a0a53b8900034adb036230d87c6fbdd05ff WHIRLPOOL 5648ca0f3eb59cbcd34af9dc2bc966970a70f29141a915c0fdb327fa9581d08346871148fcfc151bddb5f5e90667be3707c4aa1967a7bab3deea1abf45668e65
|
||||
EBUILD gdb-6.8-r2.ebuild 2263 SHA256 acf665983df56c3e248e78ab79aa872016d6d952021ffe18227ccd21ccca3fc6 SHA512 3a9a71ca41cf7312f2d2160f422f099fa825551e56851d4415fbf6efae9799ec29a96f81c2486643e49665efa9d3ad8e189ab85e19d4c3cd8da99ef663f95f7a WHIRLPOOL ed72c14764c64cfc27b7354b6dc4fbd9b47dbcee8676bef967e0da4b153d3ad9ef771a993b4932088215c82ea7d90ff1fc6e0346f5ebed4c67ecaa803905fdcf
|
||||
EBUILD gdb-7.0.1.ebuild 2645 SHA256 6aac00d4cb39a7801dd8550db59f8a73b29c4d1dfab54acf20c073643135c242 SHA512 3457c907353ac67334e66fbbfe714799feeee8b2f744bffdad60bf423fb06fc4d7b145391d9c60168d857738895783370d2db5a1f95b02dcc0faf2aa6efb1658 WHIRLPOOL ab77cf26e395b67006cb105bdf487e323d0b9338f7760b581f8c2e1507b927525db7e7abb6f5cb76e3bed9ad45c32207a5440cb5c27122eb478ad8835b271fb2
|
||||
EBUILD gdb-7.1.ebuild 2603 SHA256 e9210f5950d156a32fa8218dea0940b018d4231fe7cf00addafe353596cacdc3 SHA512 4d6fc9091c0f856683b8613efd4b3a3273f87315dedc1a447b56532c4c53f1b06588a1cb23ccaa54a069777be3909c8d7fd42390524de570117d85f038151153 WHIRLPOOL aa5516ab2f6ea277aa9d2da0b07fd36f52d85bcd8d360702350808a588c1a4d6077f6eacc5ae4ded0e04fc005470dd9913b44255764852fe0af91666860bcde3
|
||||
EBUILD gdb-7.2.50.20101117.4.15.ebuild 3054 SHA256 ed1bb0e10b29fabf715bc98a7befb5db631bc8dc849c699e6314700757f6c746 SHA512 cd916a631f65f915b4922c5cefd475f18db11f094080a8444ddc8c9ae773bc5d6e7056e064b1cdfdd085ce2162e56e7f9b5ca6decf9120f2e46097afd1585a16 WHIRLPOOL caa5b1c27617ebe86186bda4be1ef471d3f6c42c12d6445bb39973cfe2df793dc1da94b0ef7b186d17d1e1bd0cc8260eb1dde72b32c9faba068367c864d76880
|
||||
EBUILD gdb-7.2.ebuild 3479 SHA256 48cc60470ee8fa7b59294a1b4e2826e6389fc92f202be98047bf9033487211e4 SHA512 21edce9bec6def9d3c5a0884319bd5e8ccd164a75c937a87d4e2b252065dfd8523aeea45162466479e081032b79e728756eec61e19c2dabd70a36a17ab06a54f WHIRLPOOL 0ea49ef9ba66275b7e8653100ea622ae65f7ff4ecbc9c25754e69dd6e7bc4a895fdcadb7da9215daa0ac0499b1a6dd4b7fe0012d3797797c539e73c0b1de259d
|
||||
EBUILD gdb-7.3.1-r1.ebuild 5119 SHA256 878eb0b192d2617eb57a49a4e58eaa3d58cbdab19f6ccc697bc4924c008e7926 SHA512 69fd4549f45eec7954158bd3846f2ccd66abb9c6bb201a0bc3d2965d032754334e9816923a52fd9d62907cab5662e9268c0da884fbc741b60ce5f51ad94b1823 WHIRLPOOL 1164968a96cd88b116bf1f91c724dae955d43a45cd51aa291d96f6f2c33a03360194f6f5acd670989f9b68d8933aafa76d90d9a9770cbc80c65c74a6b43db755
|
||||
EBUILD gdb-7.3.1.ebuild 3867 SHA256 9863d553b927f91bf1ce51f9d15f0442108cd2d2b2a6f5bd81ca6a09640fe694 SHA512 f2d2ec47b44c1098886e15d418cd5c9e5c745d7a60f59af99125b4289ac047cb63a86f66653d37364d25341a6fcd4368ea3586675a240b617dd2c381e1a9183b WHIRLPOOL e60a743e6e359b39547a0aac8a4aedf3b40f2676c899c4419754c5255608a72fd8aa99c3dbdfdc5d5bf952f1445523b506216d28c141de2d11e5889ccfba8c49
|
||||
EBUILD gdb-7.3.ebuild 3782 SHA256 2782a80910202f4eece75e63f57e816f0add6116b8f94f2935e6492548567083 SHA512 7c4794964ef4a0e985f949f1ce848c6365212f3eae8b63db0843a525d3a989e4f5926623c12edfd5f8a6db08e77dcf824b4a6147dcad21dd035e6c586b43b006 WHIRLPOOL 231b9e7a51a7f6bc4a935707298702c4e9e98ae01632c5df2b3bfa4eeb46b117c7a3e66dacf8ad287c9dfec58b7d019e0badfbe04d86f1fca56add98b88b694c
|
||||
EBUILD gdb-7.4.1.ebuild 5221 SHA256 9023833ab8820e115943c39b0692e253ed805acd98b1531f5ea6d00a50c32dc0 SHA512 a2175f2ccf4c4f34b441cb7836bacb04adc29fef94f40f1492c5e8d74ff9636676fde8ff65dd422091bd177592639262e93a02be687790bb9213bbcd459c6fa5 WHIRLPOOL ed21e3ef41f3c96e396f8f6a02080f62bef659c21382c8af87d6aa17c0406fa0720bb55a8c4e8430babd92a31ce3b6b9093f4d5e6c534a93ad9f15cb889258c1
|
||||
EBUILD gdb-7.4.ebuild 5207 SHA256 fbcd9929e8a16b34d640fc970b788bbd10c18d00fd0a731198e92a0c69160396 SHA512 d3ea2485aa925343230c8217931c013d0aba25a52888c080aa2ba0daf7930b3c7dfe3947ab1e84aa785480586c6d8ebf52f2b4825017795d07d18cb9aff65474 WHIRLPOOL c90088d15847499d93bf5bb82b348ce73667e0e017d7898531d5672c27dd317493c9d0ae65ff62e8b1b6c4e77e10dd1d54a9a0115a63bc6ee7bb26a683ae1255
|
||||
EBUILD gdb-7.5.1.ebuild 5220 SHA256 43fb339b1b7ad96043e56f66e06a82ed74595656dbf09936c84bcc5b1addbad3 SHA512 fbffcdc0d1076c66af8ad900f626123251eb8589afb6dd39c900e4d4bc9f67ea3071c6be319b8e867f71e255d6ee14b47a372dd11163729b1970b57d2a674473 WHIRLPOOL ef920d670a0682edc354d4801340daab2441e602f42121aadf4e8f81e1c396333e9f0753abdf2ad81e0ec9156dbe70008b5905c5e414faa6bd8a1ecdc1707ef3
|
||||
EBUILD gdb-7.5.ebuild 5210 SHA256 a1c54a09ffb28e92290b51af07206e7f40c0273c90bc2beebf5339776dbd829c SHA512 50ce9fb465d102f0d66c5d7fa45c5242b2d6cac646446100c0f71f7d467d50d72a32850ab949f77d9af1182f8c9a54b3a845c4176e4fbf792fe968d22588d403 WHIRLPOOL d0f83a7b75220acd853d5f868e66edc39af76363f778abf05ae31206f84238627e9c3c028ba7ec9c069808827b1991ac3810da1cba70fabd45e0399eec160321
|
||||
EBUILD gdb-7.6.ebuild 5230 SHA256 fb121679a827fb750af4d32d6f52e3474d91edb4abe6393720dd5265214c878a SHA512 81727039692765ed6bf9456a5cb6941759308c3b582b74c978764b16d83c8affa91102921f66696e49217dfe77b1df5c2321c681ee1e0657b1b48252ef747e42 WHIRLPOOL 5fea35696e87ce7e8043bc104aca2d070e33dcec8faef76cecc6ab08141783cc5871af05325b755ba92d1a2c20dda5627769b5b9f5a4315bbf8eb2ab5c6c4fab
|
||||
EBUILD gdb-9999.ebuild 5220 SHA256 66a692fb608a88b1c02ee91f5865a197783491c136bd7c2ee05ead4aab2920fe SHA512 7a33cce209695329437e0cec17d97f9ab1baeb471b7c90e12d7342004c079035503d238a062a07c9d9fcd3b1a680bd46b7bef0cdf62744963a99d3c4d7d4bd71 WHIRLPOOL 32e8a7261b2693675552f8a0f7961ecc25d5369b64ce03f90929862f03a9c018335adcb2d0ef373f8cbbdb5ba3db953cd433767903f812f5f63dd42270d89633
|
||||
MISC ChangeLog 31820 SHA256 16d270d72135e4f0a442312a61be41b53eadff7a53d8c39a701cc192980a62aa SHA512 c48f90f987e53969a9b582be68fea3a4368af5e6bb7810bdaa75cf780f1d07159b58e5022af45568432a15af7d5f6f7581d02ae3dba4fe41cb97d5a1bb63fadf WHIRLPOOL 982962d191e8a6c06be9ae20c8d87f60181d56b2a387ec33db507f387426d2c006dce4711233ea7025c89ea5613cdd7e5cb192a01cc834d2e1f7d5220e41ccb8
|
||||
MISC metadata.xml 552 SHA256 e86791dadf315a7a079e460854bcc4a28d7c69a93694efc85014b325824b81cf SHA512 bb4901b011b63137fb7e359ff657fbe8aa2bd7d36a78be397c163a0bd37486a32bddf4929ab5a2a3b7b7d52f3c2edd69ce18d4bb5e2f56b45d43bb59cb54f686 WHIRLPOOL 214e51279eed4230ed8cba15e42581213428ff06c32ad7832b17c1af6c2eae351a843aae51d78a99486b5bbfea2369faa4aaa4b99cae1ce7a41da5748d8e2211
|
||||
DIST gdb-7.7-patches-1.tar.xz 9368 SHA256 89fd4da18dec37773121d8f0cb5403c7edb1b9ad81ccaa5bcf9cfc389e60ed83 SHA512 1afac04f426e8bda4def8694bf9aee7783a55681c06c823527ae6c2b9237fc9a20d4854a1fc2452b4c72bd8eb0e7b991d66167bbad76bb36334bda76d6d7d5d1 WHIRLPOOL 93766c32540223e81b54573aede9cd7995a28f80d2ded70fac519c310b3a9e7413028942d3a70bcd3ea831e4ee2c00da8547def64accf890b651d89c712068ce
|
||||
DIST gdb-7.7.1-patches-1.tar.xz 8600 SHA256 336cdcb2c90da0ca970dc21dc0285a8cb1fbcf81af63c49ee3f3d45c0aef7200 SHA512 427aba554e77ccfe9cdf5b0a833a1d64f1882e8f9e37d1288c5f2510cc63d154b4c22054a2a653d156e37044d7655937dee4a1a9cd0f9768abaafc8c34ae1cc0 WHIRLPOOL d5db4b874475724ac62bae9f1b33c566192570dd68195fe1c2065b7502a36b06f5a64079a88c63a965392d87e9b7a8eb0c709578297d6692fdce1ee933a867f4
|
||||
DIST gdb-7.7.1.tar.bz2 24849503 SHA256 0dbd5260406f1b0c70fcf027c6488527fadde0cd9bb574593491fe076eb03aa5 SHA512 887b9b726dae8f6e3e5e41574460a67e4f9002b0d47bc985dcf63bdf3518397a90b6a208cb5b19e5ed2341715ad75cfeed4df4fb423f39f74218e36bc87f1cab WHIRLPOOL 3b726d5f519167105248eb3a400be0d9bc70f72dbce9a04aa56a765b6c2ed9fc00a7c2e6ec72d0372f87bada1d74a40fc998c10a5322e2f3b5c8ea53c7ba6aa4
|
||||
DIST gdb-7.7.tar.bz2 24846320 SHA256 0404d1c6ee6b3ddd811722b5197944758d37b4591c216030effbac204f5a6c23 SHA512 42c8d312c0ca1042d1df7e115c541abc7453c20813b3f4f1fe52c62bc04b85d9116539d245e6404fa556260ba13f78f9a2ac35424eb7fd8ef9954cdbfc9581e0 WHIRLPOOL 8f1610e7f2023a5f273c15cdca6da40e22527d61f694e841c55c696d14e55d6abc3aa4144ffb995fe78448e69c50ea7ac9854aaab1ef2e2b8d551b975d35e8b7
|
||||
DIST gdb-7.8.1.tar.xz 17669136 SHA256 497722b58386f4428c3474281eb3ef1c872404998b6ace907edb3bba1fabdc35 SHA512 c40775e727a665300b45ec5d375424565671768cb73eee6793285a5b9a29db66072fc55d56bc1b4189cd38e0590573554e283661e4fbec23e4ad3d5b90542a87 WHIRLPOOL 845988be5a667eae2ca2f433399d51af3bf8219a692385477f6f7f37bae000a017f39db271f28cf101a0b92eb4b48fe79c7edd1da1b84a83f3a612e49b96e265
|
||||
DIST gdb-7.8.2.tar.xz 17678568 SHA256 605954d5747d5f08ea4b7f48e958d1ebbf39265e18f7f36738deeabb83744485 SHA512 face5bf1b4ce144fc8604fc84620beed956177a11fd632b4e41906fc7f632910b2b43a50e6cfdfd6cbd876ee527c813bddab8df29dc560a6c36694cdb8edc4e4 WHIRLPOOL b0e5adc8e98c8363c25b86a8f47d07863a97f215c74b4fe2fcce4e72ce82867bafea60cb51d26f3814e895a93e047ca962b19fb2557e9c74a0ab3d88b1e6ee1d
|
||||
DIST gdb-7.8.tar.xz 17664316 SHA256 49c4abe174f79f54e1f9e75210ffb590d9b497d5b5200b5398c0e073a4ecb875 SHA512 e3977393c3a9bc2860d845928f457f4696a87106ccf30569cb69a82893deeab9b05fd1cffa4316cc5cfdfd3ad11a2d5660ed07a9965fa3d696a0ec604702557f WHIRLPOOL fb97f1fbee170fccf462d25fd6b4a218a8126b75465b59e21322ff2cacf2707d6b037d593663a4f52ae293c72d012a69a65377ee6827de18da80159c829b672d
|
||||
DIST gdb-7.9.tar.xz 17859428 SHA256 9b315651a16528f7af8c7d8284699fb0c965df316cc7339bb0b7bae335848392 SHA512 850202a477b486a75dc8196efead79c95bc675e348064a5eefee2a50215d40f62e9e052e9b8df29f997f91430f6e7454883652c701f5b1e688d9e2c575876c83 WHIRLPOOL 597cbe8b8c9da7e2188f6d207738fd9679c3a841fec9483f67ff91156d7886636b1da61bf1255155115655d87648278a0670ad381afde931c7c6ab6e762a9ecd
|
||||
EBUILD gdb-7.5.1.ebuild 5228 SHA256 0beb95618c0ba45f5face62961d85997a79d0596353fab978df76e78e4b63d7f SHA512 6ce1415fef7faea18b07f39a7bc80dbf2cae49095e40c722c33ec8c69bcf46e3b639363c0ef575b444bbd2c92856a54c45946657682633ddb8aacf5e878abb22 WHIRLPOOL b27ed2406bdb210b1cda613840c7c8a792c04928fb40cbe0aa767408e798dfccde497e8f16eeb385402244bb3d7b15aa95ec02721c8df21e007ca5e3577809de
|
||||
EBUILD gdb-7.5.ebuild 5210 SHA256 07bed64a562e9a1865fb9f6309a5496606f0c901634ae849fcc8a513ce93f887 SHA512 9bbb7db567d8ee1552cc33aeeede91f3905acf96d46e288496a98511f3ed8f56dc49c26261f12a21261d82da3f0601691cfaa777e7303135808c1d950a05c7c1 WHIRLPOOL cf16cd6e0512a3ec11fe783c5ef248134fed2bb5e1c8b7223339ac664c4836977781c6dc28fae49a0a325f5772f18b0cc1d19ef8a7ff4b69ac00bce07822809a
|
||||
EBUILD gdb-7.6.1.ebuild 5750 SHA256 007cc7e1be2deb9ee26327d282be16007efb411aec92dbc601f9997d536290b8 SHA512 53afc07e9f5d02a003a065803d14396dfe31569f7b3ab17c057b2183ea11a76489b33364f24d718a148f586cd63209e2cf60136ab281add48dfb564aacecefc7 WHIRLPOOL 2d60fe5eaa5e2dad3f8627e2c86d364a7d24373560b46b443f6daa5ad5b7ccaa4fdf6e97274480e4bd2d632c595d478b958254a081bb9871fcced5b61d770fcf
|
||||
EBUILD gdb-7.6.2.ebuild 5746 SHA256 8da036ff1cb7e6a9dea33fe05535c676739365ad0aba6eb49b80307fe10f797b SHA512 08aa373d88e1510b2439fdf64a60530be2776716b568fe8dc79324e30fd30489e698e478587dfa6a209c5314d903ad5f5183b10886736ad8178c66a0e0342155 WHIRLPOOL 3b4ff811f2e9310a348a15b198ca16e3c4588141145803403b235542e91c49cfd76e4a61961ba7ccd3734c584d40cce4409bc11ea779ffe0653fbb7944938b8a
|
||||
EBUILD gdb-7.6.ebuild 5288 SHA256 15e5ab12515b07a5064108cee515c6a99fa50ec8dc0b2f56fd5344f4cd979fc6 SHA512 686c36bb47a30154be5a8c8d8c3de39baaf0289859dacfa1fc489efd1fe98353ad35ce20184f445d17e73fe94842b93a806dd47643eb62e5fa6bbd1fd9cff417 WHIRLPOOL 7d55abec2e2d837057838538a576ddb63251f42ef4d44f29f69fe16550cf7b9cd4904ad0f295a9f97f7bbc2d8c2d4cb3611f3c3c23b04bdc36128a957dc40f1b
|
||||
EBUILD gdb-7.7-r1.ebuild 5643 SHA256 85f0df8db0812b346ea91514fbac8275ed4e4669cb97285da359f116e7c79829 SHA512 58a929b750441bf127933d3af003e9132665e192c9dca7a972f179a1cadb8291da62625b8103c1d6ee95c3a3a24601a2edb365aee4ddf7ac88acf45761c8a3e7 WHIRLPOOL bcf8549edd489da9ecce4f6520f0bec342ac96e87fa5040e37061632772f8eff69053fd264f3be15b208b6116d34cc4d64f7d32b673811ebe2a9927b85725f25
|
||||
EBUILD gdb-7.7.1.ebuild 6066 SHA256 8f99581101dfec4d9c40fd54e2a77509a2390d1d91715ea581f787117e714471 SHA512 390188bfb03deb4cd8089845e9c8f101ef762fce0ed44c6a85fd7a5276af038cf91f415f44f71a957b08725713c62da68b09044f4ae08225a4ffb763734353db WHIRLPOOL 529b2752717cacb14e5e9678d0ee3bdd357078083883d9bff3afad52e2f682bbd3e9698b6b7a1c521175c55b27158b37298107754f2476161b02330e868d58c8
|
||||
EBUILD gdb-7.8.1.ebuild 5941 SHA256 5fc0def700111f4827a07618ba0f7ca08e582d8148e5b8cb71c6901cd90c8d9f SHA512 13af6c666816950f2a4d05a5dedac7da7e11b07c8e4fd370855e9e19ef88d1c490707e866183b466329385ef8a5405419b27cd2b4b63203e9b89a3e686949af5 WHIRLPOOL 8cab915b469d55c6ebfb46a7002720f4a838d3e94f0058c833b8c214294fe8a70ab2449b031f36c0acb9316857cfbb2840acb193ce4df080cebd45b5ed89adb3
|
||||
EBUILD gdb-7.8.2.ebuild 5940 SHA256 005df1ff958b4cbc98dbee4a510e9e79cb2a5c291ad9e1231119eec1a0c1b8ae SHA512 503e3b80e2499afe8ce8c295418a3d816cc10ebd85894e9f9d51ff1082dbaf89404966eb65827ff3d782bd9662c3c3f75890812343b23b2e8f61ec906cbf6f32 WHIRLPOOL b4e12bc1b54cfd234651b3021777096100966b4a2cb71e1127ea4fc32f7b58246b0578ddc9107b653b05eab7baffa0b0390064a7086f7e77f74bbcb2794a0fe3
|
||||
EBUILD gdb-7.8.ebuild 5865 SHA256 37a02706df2759c4a796cd0df64e3bb7f504c5c7d42ddebf9f4556023c59ca74 SHA512 2aad02c5f66a0a9377adb5d731af2c089fadf38085ceaea39c400fe31dc22fe69a516b2bc95dd166b2675103e927eaa10ef48e1f0514a74a73f92ce8499e5a66 WHIRLPOOL 760f525513170bb423d7405a4f4dfe85f4ae37545a9d22ebc1620d91300ce9bb1ecf29adefb0cf09d92079cb0d7232a6395de5849aace86128b5ab9451beb499
|
||||
EBUILD gdb-7.9.ebuild 5938 SHA256 f2e7eb9c04e3a23af5f2fdc55fd357da7553b1b284a69fe28c0e42bcfe12d8b7 SHA512 45036d9d6c7edf2c641f2a5ea0f7e5a7e469f45d54c8db6a1e64ffa4d4b21114c963106fa880bbf9f668d834e365bab08bdd70053d744d069f679f75da91b9b5 WHIRLPOOL b2edaeb912aa0793ab14b04de1f0251345d1449154c88f32a547fc1a79fcf0b81af4deda0151185cfa0c4417b295a6ba668c0011ba8814583a82baf801fd582d
|
||||
EBUILD gdb-9999.ebuild 5940 SHA256 8526ba991570198f5cceff60ee8fb54bf5796601741b124be13a8894bba07b21 SHA512 a1f76e29c55a151e2e53209340e954b08da1066abe7ae0f3c6dd3052a46b318206cf89490d071dec8ae05c66535fa588678a347e8b9a5a404b15380d39612e29 WHIRLPOOL 7f0305b1e01d0c0e2b64011dc8196f53e96f1f5dad13d6498c6496a1dab509d311a5ea164ad7d3ae6065dda174e4c83bcaa989e6783395d74297568c6a1eda8d
|
||||
MISC ChangeLog 40148 SHA256 d8fb676ff4579b6b53cfe124ae9df9486937fe5e9376491afdd07549c8c12025 SHA512 3c82d7d92d569093d77d601186d19cf3447ad583d5634220db0cc63a88def6a298a26b18ef7ad0ae8e1d0c8568a9f5f4806262d7daf325d42b910fa585ede5fe WHIRLPOOL 723d74b419061e715c164afc503764d897a35a5f65422ef9d675aa025f8c4cfc145413d3e37f12207c94bdfbfdd1ee1e597641f8c384b353ae59a1bd4e9cecb8
|
||||
MISC metadata.xml 694 SHA256 32f59a7ff4c58911e613a5cafeb79fa23d4cced2be2553ddd0eb6395f2853d21 SHA512 521fa566e1dcaaf5c363edf0643e9bbd9374559d01be24875451163bf4b72ec44341b5c390730727950d3af38782850c203da55248e22153d713e34eeed1a07e WHIRLPOOL 76a4ae0a5fb0efa769fb676b21c13fae274775a0bee3f95281e0f9df46d67652e2afe2e3ed1da88e64d3f39d77fb89c7fcf3c19535b6ce90290ff8d01b06ec5f
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
Version: GnuPG v2
|
||||
|
||||
iQIcBAEBCAAGBQJRxlqBAAoJELEHsLL7fEFWEuMP/3gXyjoohXsCa2F/4lFqxNnY
|
||||
ISUiY+RP/eOrhTgjx3+tMJZkeHtwSM+pAjnsmEn08AeuROVbFDPIdSxr7HOzhRv8
|
||||
mFs5B0zHzMcuHoogbjFXxDeZmuNOssIo4v+eIy7OlEoDgkkp2F0+Dr6fTzI81BQE
|
||||
gYk4piU32h9a2/A8cD8I/7bdKJRVBW+ce0356qhMlMq+599FBj/WQcKTb9h42fzW
|
||||
uo1TgYwdh8yptjtESPQ/XOWk5+SqaGX2N6N4tXF6h3ZnXZ3vDsVEuy0yoTLjSCyZ
|
||||
n4bbgvjyb1FEtdji0Tv7Lg6E7gYF1Q0Ibjq+A913+/eQ+tbJQVP7x26/C6i2czHV
|
||||
XAv1h9XjJUHXA4ENBjq8idQFmPBQkQAMCcuLe+gYXjpjJtSMpcqpM6R+nvgifXs7
|
||||
dv3f2qOFyn8KxOq/4JbKkDoHgNuzeoVooskVb4F+yngPTuW2/Mp30QOqYigmrh3Y
|
||||
5AY5uUYCplIbYRixWinzoEiyVfhKsUu7/12EYmfM2SCzezc7LMmRNZIQ+2gN/AzV
|
||||
9Nly+ounQHc7D0aOFln0lpCljMCLuSTiA5907zdKM0e6I0pkmc+VR7iAqVtvyis3
|
||||
kmEETsw7cZpXNLyu+jCoiHZNo7evLFFnvN0NO6lu56SP7ia+QzL+ML7G/KGKzq9X
|
||||
8sWi3jCOsDkuHRiJU3iw
|
||||
=frRT
|
||||
iQIcBAEBCAAGBQJVIC1fAAoJEPGu1DbS6WIAMsYP/06nMamM48/uyzbAGsURwbAW
|
||||
qs7xmqItJXxeRGONbOyVyL9MqZ27JvovOA5H+wcgFqlCrG+HLD+y1PC5Yl6AA1KN
|
||||
qdrRNeOmq87l42OqQ2RfyVFmzX8ED4op45K/e/+l0D0fSp8p5I3vdNzsfeWYmzcH
|
||||
I/P4NzwP/mRa7o27XF9cYKITeb/NWZ58ZOenlWrk2A5bMNyxUuBPPZQQoVqDi9lh
|
||||
k7tB83UzD3RgCYJPDxr+yWLafg5NfZ6/fnPh0QI/Dc5A0z0up8z3w3FUsc1dCDBs
|
||||
vwETIlz9YJP/Z+6jRTCGhligK3ci8/H26lfu6W8dZrsUOmMFvJ+pQJqla0nQNWZI
|
||||
rHExmaM8Ay7I2pAeDzK/i5QOEUILZAo2p1S/yJGqIP1X6TiBbCrLrfbWmY3BDvEX
|
||||
0HTODnuTejMUbew/Bj9h0TYq5irZW0sj3tmzCZHG9YnnlUQdcKlhpbqCEUDFktjG
|
||||
UfZuc8+06DEaxDtBzLYnYKYK4Us/H9wceoPLGZZTlOhJR1aTjcaV/AoMCxjoaV91
|
||||
0B4oBcftcdFuoNEAx/Wj9BPm/i/FORVi3pIhAHcVAg1jW3DC9o2A1LZ8DHUuVkv0
|
||||
Q5nf68JTyPTnPHZhvJmcAXbCeFIkjbGsoGNvUZ8BjIpqPgLnVvRBFHM2bUEWbgUP
|
||||
FpEbn8Knm9cPPuIj2JaA
|
||||
=irQt
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.6-r2.ebuild,v 1.15 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
PATCH_VER="1.3"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
[[ ${CTARGET} != ${CHOST} ]] \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd"
|
||||
IUSE="nls test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
replace-flags -O? -O2
|
||||
econf \
|
||||
--disable-werror \
|
||||
$(use_enable nls) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
make check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme includedir=/nukeme \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,84 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.7.1-r3.ebuild,v 1.11 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
PATCH_VER="1.3"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
[[ ${CTARGET} != ${CHOST} ]] \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd"
|
||||
IUSE="nls test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--disable-werror \
|
||||
--with-system-readline \
|
||||
$(use_enable nls) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
make check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.8-r1.ebuild,v 1.13 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
PATCH_VER="1.4"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
[[ ${CTARGET} != ${CHOST} ]] \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd"
|
||||
IUSE="multitarget nls test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--disable-werror \
|
||||
$(has_version '=sys-libs/readline-5*:0' && echo --with-system-readline) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,88 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.8-r2.ebuild,v 1.7 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
|
||||
PATCH_VER="1.5"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
[[ ${CTARGET} != ${CHOST} ]] \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="expat multitarget nls test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--disable-werror \
|
||||
$(has_version '=sys-libs/readline-5*:0' && echo --with-system-readline) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with expat) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.0.1.ebuild,v 1.10 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd"
|
||||
IUSE="expat multitarget nls python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( dev-lang/python )"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
$(has_version '=sys-libs/readline-5*:0' && echo --with-system-readline) \
|
||||
$(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.1.ebuild,v 1.4 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2
|
||||
${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.lzma}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="expat multitarget nls python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( dev-lang/python )"
|
||||
DEPEND="${RDEPEND}
|
||||
|| ( app-arch/xz-utils app-arch/lzma-utils )
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
--with-system-readline \
|
||||
$(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python) \
|
||||
|| die
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.2.50.20101117.4.15.ebuild,v 1.3 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
if [[ ${PV} == *.*.*.*.*.* ]] ; then
|
||||
inherit versionator rpm
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
else
|
||||
MY_PV=${PV}
|
||||
RPM=
|
||||
fi
|
||||
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
if [[ -n ${RPM} ]] ; then
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
else
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
fi
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="expat multitarget nls python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
$(has_version '=sys-libs/readline-5*:0' && echo --with-system-readline) \
|
||||
$(is_cross && echo --with-sysroot=/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${D}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
}
|
||||
@ -1,129 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.2.ebuild,v 1.16 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
if [[ ${PV} == *.*.*.*.*.* ]] ; then
|
||||
inherit versionator rpm
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
else
|
||||
MY_PV=${PV}
|
||||
RPM=
|
||||
fi
|
||||
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
if [[ -n ${RPM} ]] ; then
|
||||
SRC_URI="http://mirrors.kernel.org/fedora/development/source/SRPMS/${RPM}"
|
||||
else
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
fi
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
IUSE="expat multitarget nls python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--with-system-readline \
|
||||
$(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
libdir=/nukeme/pretty/pretty/please includedir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.1.ebuild,v 1.14 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER="2"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="expat multitarget nls +python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--with-system-readline \
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug \
|
||||
$(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
{include,lib}dir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
@ -1,145 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.ebuild,v 1.8 2013/02/09 04:38:58 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
is_cross \
|
||||
&& SLOT="${CTARGET}" \
|
||||
|| SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
fi
|
||||
IUSE="expat multitarget nls python test vanilla"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
econf \
|
||||
--with-pkgversion="$(gdb_branding)" \
|
||||
--with-bugurl='http://bugs.gentoo.org/' \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--with-system-readline \
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug \
|
||||
$(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET}) \
|
||||
$(use_with expat) \
|
||||
$(use_enable nls) \
|
||||
$(use multitarget && echo --enable-targets=all) \
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
{include,lib}dir=/nukeme/pretty/pretty/please \
|
||||
install || die
|
||||
rm -r "${D}"/nukeme || die
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
|
||||
dodoc README
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
docinto sim
|
||||
dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${ROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.5.1.ebuild,v 1.14 2013/04/12 15:07:59 jer Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.5.1.ebuild,v 1.18 2015/02/27 08:14:05 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
@ -8,8 +8,8 @@ inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +31,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -50,7 +50,7 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
|
||||
@ -70,7 +70,7 @@ S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.5.ebuild,v 1.11 2013/02/09 04:38:58 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.5.ebuild,v 1.14 2015/02/27 08:14:05 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
@ -8,8 +8,8 @@ inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +31,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -70,7 +70,7 @@ S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.4.1.ebuild,v 1.5 2013/02/09 04:38:58 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.6.1.ebuild,v 1.9 2015/02/27 08:14:05 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
@ -8,8 +8,8 @@ inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +31,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -50,14 +50,15 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( =dev-lang/python-2* )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
@ -70,8 +71,19 @@ S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# make sure we have a python-config that matches our install,
|
||||
# such that the python check doesn't fail just because the
|
||||
# gdb-provided copy isn't quite what our python installed
|
||||
# version is
|
||||
rm -f "${S}"/gdb/python/python-config.py || die
|
||||
pushd "${S}"/gdb/python > /dev/null || die
|
||||
ln -s "${EROOT}"/usr/bin/$(eselect python show --python2)-config \
|
||||
python-config.py || die
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
@ -86,14 +98,15 @@ gdb_branding() {
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local sysroot="${EPREFIX}"/usr/${CTARGET}
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
$(is_cross && echo \
|
||||
--with-sysroot="${sysroot}" \
|
||||
--includedir="${sysroot}/usr/include")
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
@ -120,6 +133,7 @@ src_configure() {
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.4.ebuild,v 1.5 2013/02/09 04:38:58 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.6.2.ebuild,v 1.14 2015/02/27 08:14:05 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
@ -8,8 +8,8 @@ inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +31,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -50,14 +50,15 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( =dev-lang/python-2* )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
@ -70,8 +71,19 @@ S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# make sure we have a python-config that matches our install,
|
||||
# such that the python check doesn't fail just because the
|
||||
# gdb-provided copy isn't quite what our python installed
|
||||
# version is
|
||||
rm -f "${S}"/gdb/python/python-config.py || die
|
||||
pushd "${S}"/gdb/python > /dev/null || die
|
||||
ln -s "${EROOT}"/usr/bin/$(eselect python show --python2)-config \
|
||||
python-config.py || die
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
@ -86,14 +98,15 @@ gdb_branding() {
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local sysroot="${EPREFIX}"/usr/${CTARGET}
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
$(is_cross && echo \
|
||||
--with-sysroot="${sysroot}" \
|
||||
--includedir="${sysroot}/usr/include")
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
@ -120,6 +133,7 @@ src_configure() {
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.6.ebuild,v 1.2 2013/06/23 02:16:26 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.6.ebuild,v 1.9 2015/02/27 08:14:05 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
@ -8,8 +8,8 @@ inherit flag-o-matic eutils
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +31,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -42,7 +42,7 @@ case ${PV} in
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER="2"
|
||||
PATCH_VER="3"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
@ -50,14 +50,15 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( =dev-lang/python-2* )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
@ -70,7 +71,7 @@ S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
@ -86,14 +87,15 @@ gdb_branding() {
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local sysroot="${EPREFIX}"/usr/${CTARGET}
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
$(is_cross && echo \
|
||||
--with-sysroot="${sysroot}" \
|
||||
--includedir="${sysroot}/usr/include")
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
@ -120,6 +122,7 @@ src_configure() {
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
|
||||
@ -1,15 +1,16 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.3.1-r1.ebuild,v 1.8 2013/02/09 04:38:58 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.7-r1.ebuild,v 1.6 2015/03/22 03:14:14 zerochaos Exp $
|
||||
|
||||
EAPI="3"
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -31,7 +32,7 @@ case ${PV} in
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
@ -42,7 +43,7 @@ case ${PV} in
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER="2"
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
@ -50,15 +51,17 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
@ -68,15 +71,20 @@ DEPEND="${RDEPEND}
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
@ -90,7 +98,13 @@ src_configure() {
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
$(is_cross && echo --with-sysroot="${EPREFIX}"/usr/${CTARGET})
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
@ -114,12 +128,16 @@ src_configure() {
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
@ -128,13 +146,13 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
emake DESTDIR="${D}" install || die
|
||||
use client && { find "${ED}"/usr -name libiberty.a -delete || die ; }
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
@ -146,9 +164,8 @@ src_install() {
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && { dobin gdb/gdbserver/gdbreplay || die ; }
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
dodoc README
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
210
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.7.1.ebuild
vendored
Normal file
210
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.7.1.ebuild
vendored
Normal file
@ -0,0 +1,210 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.7.1.ebuild,v 1.14 2015/03/22 03:14:14 zerochaos Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER="1"
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# make sure we have a python-config that matches our install,
|
||||
# such that the python check doesn't fail just because the
|
||||
# gdb-provided copy isn't quite what our python installed
|
||||
# version is
|
||||
rm -f "${S}"/gdb/python/python-config.py || die
|
||||
pushd "${S}"/gdb/python > /dev/null || die
|
||||
ln -s "${T}"/${EPYTHON}/bin/python-config python-config.py || die
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
# just configure+build in the gdbserver subdir to speed things up
|
||||
cd gdb/gdbserver
|
||||
myconf+=( --program-transform-name='' )
|
||||
else
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on.
|
||||
is_cross \
|
||||
&& myconf+=( --disable-gdbserver ) \
|
||||
|| myconf+=( $(use_enable server gdbserver auto) )
|
||||
fi
|
||||
|
||||
if ! ( use server && ! use client ) ; then
|
||||
# if we are configuring in the top level, then use all
|
||||
# the additional global options
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
fi
|
||||
docinto sim
|
||||
dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdb/gdbserver/{ChangeLog,README}
|
||||
fi
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.1.ebuild
vendored
Normal file
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.1.ebuild
vendored
Normal file
@ -0,0 +1,214 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.8.1.ebuild,v 1.6 2015/03/22 03:14:14 zerochaos Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.xz
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
|| ( client server )
|
||||
"
|
||||
|
||||
RDEPEND="server? ( !dev-util/gdbserver )
|
||||
client? (
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
client? (
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
# just configure+build in the gdbserver subdir to speed things up
|
||||
cd gdb/gdbserver
|
||||
myconf+=( --program-transform-name='' )
|
||||
else
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on.
|
||||
is_cross \
|
||||
&& myconf+=( --disable-gdbserver ) \
|
||||
|| myconf+=( $(use_enable server gdbserver auto) )
|
||||
fi
|
||||
|
||||
if ! ( use server && ! use client ) ; then
|
||||
# if we are configuring in the top level, then use all
|
||||
# the additional global options
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share/{doc,info,locale}
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
fi
|
||||
docinto sim
|
||||
dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdb/gdbserver/{ChangeLog,README}
|
||||
fi
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.2.ebuild
vendored
Normal file
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.2.ebuild
vendored
Normal file
@ -0,0 +1,214 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.8.2.ebuild,v 1.5 2015/03/22 03:14:14 zerochaos Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.xz
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
|| ( client server )
|
||||
"
|
||||
|
||||
RDEPEND="server? ( !dev-util/gdbserver )
|
||||
client? (
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
client? (
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
# just configure+build in the gdbserver subdir to speed things up
|
||||
cd gdb/gdbserver
|
||||
myconf+=( --program-transform-name='' )
|
||||
else
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on.
|
||||
is_cross \
|
||||
&& myconf+=( --disable-gdbserver ) \
|
||||
|| myconf+=( $(use_enable server gdbserver auto) )
|
||||
fi
|
||||
|
||||
if ! ( use server && ! use client ) ; then
|
||||
# if we are configuring in the top level, then use all
|
||||
# the additional global options
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share/{doc,info,locale}
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
fi
|
||||
docinto sim
|
||||
dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdb/gdbserver/{ChangeLog,README}
|
||||
fi
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
207
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.ebuild
vendored
Normal file
207
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.8.ebuild
vendored
Normal file
@ -0,0 +1,207 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.8.ebuild,v 1.5 2015/03/22 03:14:14 zerochaos Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.xz
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
# just configure+build in the gdbserver subdir to speed things up
|
||||
cd gdb/gdbserver
|
||||
myconf+=( --program-transform-name='' )
|
||||
else
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on.
|
||||
is_cross \
|
||||
&& myconf+=( --disable-gdbserver ) \
|
||||
|| myconf+=( $(use_enable server gdbserver auto) )
|
||||
fi
|
||||
|
||||
if ! ( use server && ! use client ) ; then
|
||||
# if we are configuring in the top level, then use all
|
||||
# the additional global options
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share/{doc,info,locale}
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
fi
|
||||
docinto sim
|
||||
dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdb/gdbserver/{ChangeLog,README}
|
||||
fi
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.9.ebuild
vendored
Normal file
214
sdk_container/src/third_party/portage-stable/sys-devel/gdb/gdb-7.9.ebuild
vendored
Normal file
@ -0,0 +1,214 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.9.ebuild,v 1.4 2015/04/04 18:28:46 vapier Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
|
||||
RPM=
|
||||
MY_PV=${PV}
|
||||
case ${PV} in
|
||||
*.*.*.*.*.*)
|
||||
# fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm
|
||||
inherit versionator rpm
|
||||
gvcr() { get_version_component_range "$@"; }
|
||||
MY_PV=$(gvcr 1-4)
|
||||
RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm"
|
||||
SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}"
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.xz
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
|
||||
;;
|
||||
esac
|
||||
|
||||
PATCH_VER=""
|
||||
DESCRIPTION="GNU debugger"
|
||||
HOMEPAGE="http://sourceware.org/gdb/"
|
||||
SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
|| ( client server )
|
||||
"
|
||||
|
||||
RDEPEND="server? ( !dev-util/gdbserver )
|
||||
client? (
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline:0=
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
client? (
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
gdb_branding() {
|
||||
printf "Gentoo ${PV} "
|
||||
if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then
|
||||
printf "p${PATCH_VER}"
|
||||
else
|
||||
printf "vanilla"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
# just configure+build in the gdbserver subdir to speed things up
|
||||
cd gdb/gdbserver
|
||||
myconf+=( --program-transform-name='' )
|
||||
else
|
||||
# gdbserver only works for native targets (CHOST==CTARGET).
|
||||
# it also doesn't support all targets, so rather than duplicate
|
||||
# the target list (which changes between versions), use the
|
||||
# "auto" value when things are turned on.
|
||||
is_cross \
|
||||
&& myconf+=( --disable-gdbserver ) \
|
||||
|| myconf+=( $(use_enable server gdbserver auto) )
|
||||
fi
|
||||
|
||||
if ! ( use server && ! use client ) ; then
|
||||
# if we are configuring in the top level, then use all
|
||||
# the additional global options
|
||||
myconf+=(
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share/{doc,info,locale}
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
gdb/NEWS gdb/ChangeLog gdb/PROBLEMS
|
||||
fi
|
||||
docinto sim
|
||||
dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING}
|
||||
if use server ; then
|
||||
docinto gdbserver
|
||||
dodoc gdb/gdbserver/{ChangeLog,README}
|
||||
fi
|
||||
|
||||
if [[ -n ${PATCH_VER} ]] ; then
|
||||
dodoc "${WORKDIR}"/extra/gdbinit.sample
|
||||
fi
|
||||
|
||||
# Remove shared info pages
|
||||
rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# portage sucks and doesnt unmerge files in /etc
|
||||
rm -vf "${EROOT}"/etc/skel/.gdbinit
|
||||
|
||||
if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
|
||||
ewarn "gdb is unable to get a mach task port when installed by Prefix"
|
||||
ewarn "Portage, unprivileged. To make gdb fully functional you'll"
|
||||
ewarn "have to perform the following steps:"
|
||||
ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb"
|
||||
ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb"
|
||||
fi
|
||||
}
|
||||
@ -1,15 +1,16 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.13 2013/02/21 03:21:28 zmedico Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.36 2015/04/04 18:28:46 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit flag-o-matic eutils
|
||||
inherit flag-o-matic eutils python-single-r1
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
if [[ ${CTARGET} == ${CHOST} ]] ; then
|
||||
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
|
||||
export CTARGET=${CATEGORY/cross-}
|
||||
if [[ ${CATEGORY} == cross-* ]] ; then
|
||||
export CTARGET=${CATEGORY#cross-}
|
||||
fi
|
||||
fi
|
||||
is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
|
||||
@ -27,18 +28,18 @@ case ${PV} in
|
||||
;;
|
||||
*.*.50.*)
|
||||
# weekly snapshots
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2"
|
||||
SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
|
||||
;;
|
||||
9999*)
|
||||
# live git tree
|
||||
EGIT_REPO_URI="git://sourceware.org/git/gdb.git"
|
||||
EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
|
||||
inherit git-2
|
||||
SRC_URI=""
|
||||
;;
|
||||
*)
|
||||
# Normal upstream release
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.bz2
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2"
|
||||
SRC_URI="mirror://gnu/gdb/${P}.tar.xz
|
||||
ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -50,27 +51,41 @@ SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.x
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
IUSE="+client expat multitarget nls +python +server test vanilla zlib"
|
||||
IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib"
|
||||
REQUIRED_USE="
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
|| ( client server )
|
||||
"
|
||||
|
||||
RDEPEND="!dev-util/gdbserver
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline
|
||||
expat? ( dev-libs/expat )
|
||||
python? ( =dev-lang/python-2* )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="server? ( !dev-util/gdbserver )
|
||||
client? (
|
||||
>=sys-libs/ncurses-5.2-r2
|
||||
sys-libs/readline:0=
|
||||
expat? ( dev-libs/expat )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
zlib? ( sys-libs/zlib )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/xz-utils
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )"
|
||||
client? (
|
||||
virtual/yacc
|
||||
test? ( dev-util/dejagnu )
|
||||
nls? ( sys-devel/gettext )
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${PN}-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec
|
||||
use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
! use vanilla && [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
|
||||
epatch_user
|
||||
strip-linguas -u bfd/po opcodes/po
|
||||
}
|
||||
|
||||
@ -86,14 +101,18 @@ gdb_branding() {
|
||||
src_configure() {
|
||||
strip-unsupported-flags
|
||||
|
||||
local sysroot="${EPREFIX}"/usr/${CTARGET}
|
||||
local myconf=(
|
||||
--with-pkgversion="$(gdb_branding)"
|
||||
--with-bugurl='http://bugs.gentoo.org/'
|
||||
--disable-werror
|
||||
$(is_cross && echo \
|
||||
--with-sysroot="${sysroot}" \
|
||||
--includedir="${sysroot}/usr/include")
|
||||
# Disable modules that are in a combined binutils/gdb tree. #490566
|
||||
--disable-{binutils,etc,gas,gold,gprof,ld}
|
||||
)
|
||||
local sysroot="${EPREFIX}/usr/${CTARGET}"
|
||||
is_cross && myconf+=(
|
||||
--with-sysroot="${sysroot}"
|
||||
--includedir="${sysroot}/usr/include"
|
||||
--with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
|
||||
)
|
||||
|
||||
if use server && ! use client ; then
|
||||
@ -117,12 +136,16 @@ src_configure() {
|
||||
--enable-64-bit-bfd
|
||||
--disable-install-libbfd
|
||||
--disable-install-libiberty
|
||||
# This only disables building in the readline subdir.
|
||||
# For gdb itself, it'll use the system version.
|
||||
--disable-readline
|
||||
--with-system-readline
|
||||
--with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
|
||||
$(use_with expat)
|
||||
$(use_with lzma)
|
||||
$(use_enable nls)
|
||||
$(use multitarget && echo --enable-targets=all)
|
||||
$(use_with python python "${EPREFIX}/usr/bin/python2")
|
||||
$(use_with python python "${EPYTHON}")
|
||||
$(use_with zlib)
|
||||
)
|
||||
fi
|
||||
@ -131,27 +154,32 @@ src_configure() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check || ewarn "tests failed"
|
||||
nonfatal emake check || ewarn "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use server && ! use client && cd gdb/gdbserver
|
||||
emake DESTDIR="${D}" install || die
|
||||
use client && { find "${ED}"/usr -name libiberty.a -delete || die ; }
|
||||
default
|
||||
use client && find "${ED}"/usr -name libiberty.a -delete
|
||||
cd "${S}"
|
||||
|
||||
# Don't install docs when building a cross-gdb
|
||||
if [[ ${CTARGET} != ${CHOST} ]] ; then
|
||||
rm -r "${ED}"/usr/share
|
||||
rm -r "${ED}"/usr/share/{doc,info,locale}
|
||||
local f
|
||||
for f in "${ED}"/usr/share/man/*/* ; do
|
||||
if [[ ${f##*/} != ${CTARGET}-* ]] ; then
|
||||
mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
fi
|
||||
# Install it by hand for now:
|
||||
# http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html
|
||||
# Only install if it exists due to the twisted behavior (see
|
||||
# notes in src_configure above).
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && { dobin gdb/gdbserver/gdbreplay || die ; }
|
||||
[[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay
|
||||
|
||||
dodoc README
|
||||
if use client ; then
|
||||
docinto gdb
|
||||
dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
|
||||
|
||||
@ -4,8 +4,12 @@
|
||||
<herd>toolchain</herd>
|
||||
<use>
|
||||
<flag name='client'>Install the main "gdb" program (most people want this)</flag>
|
||||
<flag name='lzma'>Support lzma compression in ELF debug info</flag>
|
||||
<flag name='multitarget'>Support all known targets in one gdb binary</flag>
|
||||
<flag name='python'>Enable support for the new internal scripting language, as well as extended pretty printers</flag>
|
||||
<flag name='server'>Install the "gdbserver" program (useful for embedded/remote targets)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="cpe">cpe:/a:gnu:gdb</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user