Files
chromebrew/packages/gdb.rb
chromebrew-actions[bot] 38439537ab gparted -> 1.8.1 in updater-gparted-1.8.1 — gparted: 1.8.0 → 1.8.1 (#15055)
* gparted -> 1.8.1 in updater-gparted-1.8.1

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* updater-gparted-1.8.1: Package File Update Run on linux/arm/v7 container.

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* Cleanup gparted.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update dependencies to use :executable instead of :executable_only

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2026-03-19 00:13:29 +00:00

71 lines
2.4 KiB
Ruby

# Adapted from Arch Linux gdb PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/gdb/trunk/PKGBUILD
require 'buildsystems/autotools'
class Gdb < Autotools
description 'The GNU Debugger'
homepage 'https://www.gnu.org/software/gdb/'
version "17.1-#{CREW_GCC_VER}-#{CREW_PY_VER}"
license 'GPL3'
compatibility 'all'
source_url "https://ftp.gnu.org/gnu/gdb/gdb-#{version.split('-').first}.tar.xz"
source_sha256 '14996f5f74c9f68f5a543fdc45bca7800207f91f92aeea6c2e791822c7c6d876'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '74988a13afd23cf7a83bbf12ebeb449527674a87c817a953a75fc7388fe91084',
armv7l: '74988a13afd23cf7a83bbf12ebeb449527674a87c817a953a75fc7388fe91084',
i686: 'a82689691f10191896b421fa6995a9b7a26052ee2361f43c38b7d1236d83f24b',
x86_64: '4d7587b2b4c4f3c5c89db024d03e7fe7785d6c0d8f93bf74b577d74ac5a7513d'
})
depends_on 'binutils' => :executable
depends_on 'boost' => :executable
depends_on 'elfutils' # R
depends_on 'expat' => :executable
depends_on 'gcc_lib' => :executable
depends_on 'glibc' # R
depends_on 'gmp' => :executable
depends_on 'mpfr' => :executable
depends_on 'ncurses' => :executable
depends_on 'python3' => :executable
depends_on 'readline' => :executable
depends_on 'source_highlight' => :executable
depends_on 'texinfo' => :build
depends_on 'xxhash' => :executable
depends_on 'xzutils' => :executable
depends_on 'zlib' # R
depends_on 'zstd' # R
conflicts_ok # binutils conflicts
autotools_configure_options "--disable-binutils \
--disable-ld \
--disable-nls \
--enable-64-bit-bfd \
--enable-install-libbfd \
--enable-host-shared \
--enable-lto \
--enable-shared \
--enable-sim \
--enable-source-highlight \
--enable-tui \
--with-curses \
--with-lzma \
--with-pkgversion=Chromebrew \
--with-python=python3 \
--with-system-gdbinit=#{CREW_PREFIX}/etc/gdb/gdbinit \
--with-system-readline \
--with-system-zlib \
#{'--with-x' unless ARCH == 'i686'}"
def self.install
system "make -C gdb DESTDIR=#{CREW_DEST_DIR} install"
system "make -C bfd DESTDIR=#{CREW_DEST_DIR} install"
system "make -C gdb/data-directory DESTDIR=#{CREW_DEST_DIR} install"
system "make -C gdbserver DESTDIR=#{CREW_DEST_DIR} install"
FileUtils.rm_f "#{CREW_DEST_LIB_PREFIX}/libinproctrace.so"
end
end