Projects
home:pandora:RobinOS23
gdb
_service:download_src_package:gdb.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:gdb.spec of Package gdb
%define anolis_release 3 %global _python_bytecompile_extra 0 %global librpmso librpm.so.9 Name: gdb Version: 11.2 Release: %{anolis_release}%{?dist} Summary: GNU Project debugger License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL URL: https://gnu.org/software/gdb/ Source0: https://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.xz Source1: gdb-gstack.man Source2: gdbinit Patch001: gdb-6.3-rh-testversion-20041202.patch Patch002: gdb-6.3-gstack-20050411.patch Patch003: gdb-6.3-test-dtorfix-20050121.patch Patch004: gdb-6.3-test-movedir-20050125.patch Patch005: gdb-6.3-threaded-watchpoints2-20050225.patch Patch006: gdb-6.3-inheritancetest-20050726.patch Patch007: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch Patch008: gdb-6.5-sharedlibrary-path.patch Patch009: gdb-6.5-BEA-testsuite.patch Patch010: gdb-6.5-last-address-space-byte-test.patch Patch011: gdb-6.5-readline-long-line-crash-test.patch Patch012: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch Patch013: gdb-6.5-bz109921-DW_AT_decl_file-test.patch Patch014: gdb-6.3-bz140532-ppc-unwinding-test.patch Patch015: gdb-6.3-bz202689-exec-from-pthread-test.patch Patch016: gdb-6.6-bz230000-power6-disassembly-test.patch Patch017: gdb-6.6-bz229517-gcore-without-terminal.patch Patch018: gdb-6.6-testsuite-timeouts.patch Patch019: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch Patch020: gdb-6.3-attach-see-vdso-test.patch Patch021: gdb-6.5-bz243845-stale-testing-zombie-test.patch Patch022: gdb-6.6-buildid-locate.patch Patch023: gdb-6.6-buildid-locate-solib-missing-ids.patch Patch024: gdb-6.6-buildid-locate-rpm.patch Patch025: gdb-6.7-charsign-test.patch Patch026: gdb-6.7-ppc-clobbered-registers-O2-test.patch Patch027: gdb-6.7-testsuite-stable-results.patch Patch028: gdb-6.5-ia64-libunwind-leak-test.patch Patch029: gdb-6.5-missed-trap-on-step-test.patch Patch030: gdb-6.5-gcore-buffer-limit-test.patch Patch031: gdb-6.3-mapping-zero-inode-test.patch Patch032: gdb-6.3-focus-cmd-prev-test.patch Patch033: gdb-6.8-bz442765-threaded-exec-test.patch Patch034: gdb-6.5-section-num-fixup-test.patch Patch035: gdb-6.8-bz466901-backtrace-full-prelinked.patch Patch036: gdb-simultaneous-step-resume-breakpoint-test.patch Patch037: gdb-core-open-vdso-warning.patch Patch038: gdb-ccache-workaround.patch Patch039: gdb-lineno-makeup-test.patch Patch040: gdb-ppc-power7-test.patch Patch041: gdb-archer-next-over-throw-cxx-exec.patch Patch042: gdb-bz601887-dwarf4-rh-test.patch Patch043: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch Patch044: gdb-test-bt-cfi-without-die.patch Patch045: gdb-bz634108-solib_address.patch Patch046: gdb-test-pid0-core.patch Patch047: gdb-test-dw2-aranges.patch Patch048: gdb-test-expr-cumulative-archer.patch Patch049: gdb-physname-pr11734-test.patch Patch050: gdb-physname-pr12273-test.patch Patch051: gdb-test-ivy-bridge.patch Patch052: gdb-runtest-pie-override.patch Patch053: gdb-glibc-strstr-workaround.patch Patch054: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch Patch055: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch Patch056: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch Patch057: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch Patch058: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch Patch059: gdb-fortran-frame-string.patch Patch060: gdb-rhbz1156192-recursive-dlopen-test.patch Patch061: gdb-rhbz1149205-catch-syscall-after-fork-test.patch Patch062: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch Patch063: gdb-rhbz1350436-type-printers-error.patch Patch064: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch Patch065: gdb-fedora-libncursesw.patch Patch066: gdb-opcodes-clflushopt-test.patch Patch067: gdb-6.6-buildid-locate-rpm-scl.patch Patch068: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch Patch069: gdb-container-rh-pkg.patch Patch070: gdb-rhbz1325795-framefilters-test.patch Patch071: gdb-linux_perf-bundle.patch Patch072: gdb-libexec-add-index.patch Patch073: gdb-rhbz1398387-tab-crash-test.patch Patch074: gdb-rhbz1553104-s390x-arch12-test.patch Patch075: gdb-rhbz1976887-field-location-kind.patch Patch076: gdb-test-for-rhbz1976887.patch Patch077: gdb-rhbz2012976-paper-over-fortran-lex-problems.patch Patch078: gdb-rhbz-853071-update-manpages.patch Patch079: gdb-rhbz2022177-dprintf-1.patch Patch080: gdb-rhbz2022177-dprintf-2.patch Patch081: gdb-rhbz2024875-expand-documentation-for-debuginfod.patch Patch082: gdb-rhbz2024875-set_show-for-managing-debuginfod.patch Patch083: gdb-rhbz2024875-fix-unittest-failure.patch Patch084: gdb-rhbz202487-rework-set-debuginfod.patch Patch085: gdb-rhbz2024875-pr27026.patch Patch086: gdb-rhbz2042257-ftbs-updates.patch Patch087: gdb-rhbz2042664-fix-sect_index_data-internal-error Patch088: 0001-Make-c-exp.y-work-with-Bison-3.8.patch BuildRequires: rpm-libs autoconf BuildRequires: readline-devel >= 6.2-4 BuildRequires: gcc-c++ ncurses-devel texinfo gettext flex bison BuildRequires: expat-devel xz-devel rpm-devel zlib-devel libselinux-devel BuildRequires: python3-devel texinfo-tex BuildRequires: perl-podlators libbabeltrace-devel mpfr-devel %ifarch x86_64 BuildRequires: libipt-devel %endif Requires: gdb-headless = %{version}-%{release} %description GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. %package gdbserver Summary: A standalone server for GDB (the GNU source-level debugger) %description gdbserver GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes -- or what another program was doing at the moment it crashed. This package provides a program that allows you to run GDB on a different machine than the one which is running the program being debugged. %package headless Summary: The GNU Project debugger for C, C++, Fortran, Go and other languages %description headless GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes -- or what another program was doing at the moment it crashed. %package doc Summary: Documentation for GDB (the GNU source-level debugger) License: GFDL BuildArch: noarch %description doc GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. This package provides INFO, HTML and PDF user manual for GDB. %prep %autosetup -p1 (cd gdb;rm -fv $(perl -pe 's/\\\n/ /' <Makefile.in|sed -n 's/^YYFILES = //p')) find -name "*.info*" -print -delete find -name "*.orig" cat > gdb/version.in << EOF Anolis OS %{version}-%{release} EOF rm -f libdecnumber/gstdint.h rm -f bfd/doc/*.info rm -f bfd/doc/*.info-* rm -f gdb/doc/*.info rm -f gdb/doc/*.info-* mv -f readline/readline/doc readline-doc rm -rf readline/readline/* mv -f readline-doc readline/readline/doc rm -rf zlib texinfo %build %global gdb_build build-%{_target_platform} mkdir %{gdb_build} cd %{gdb_build} export CFLAGS="$RPM_OPT_FLAGS -DDNF_DEBUGINFO_INSTALL -fPIC" export LDFLAGS="%{?__global_ldflags}" export CXXFLAGS="$CFLAGS" ../configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --with-system-gdbinit=%{_sysconfdir}/gdbinit \ --with-gdb-datadir=%{_datadir}/gdb \ --enable-gdb-build-warnings=,-Wno-unused \ --enable-build-with-cxx \ --enable-werror \ --with-separate-debug-dir=/usr/lib/debug \ --disable-sim \ --disable-rpath \ --without-stage1-ldflags \ --disable-libmcheck \ --with-babeltrace \ --without-guile \ --with-system-readline \ --with-expat \ --without-libexpat-prefix \ --enable-tui \ --with-python=%{__python3} \ --with-rpm=%{librpmso} \ --with-lzma \ --without-libunwind \ --enable-64-bit-bfd \ --enable-inprocess-agent \ --with-system-zlib \ %ifarch x86_64 --with-intel-pt \ %else --without-intel-pt \ %endif --with-mpfr \ --with-auto-load-dir='$debugdir:$datadir/auto-load' \ --with-auto-load-safe-path='$debugdir:$datadir/auto-load' \ --enable-targets=aarch64-linux-gnu %{_target_platform} make %{?_smp_mflags} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" V=1 maybe-configure-gdb perl -i.relocatable -pe 's/^(D\[".*_RELOCATABLE"\]=" )1(")$/${1}0$2/' gdb/config.status make %{?_smp_mflags} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" V=1 ! grep '_RELOCATABLE.*1' gdb/config.h cd .. cd %{gdb_build} make %{?_smp_mflags} \ -C gdb/doc {gdb,annotate}{.info,/index.html,.pdf} MAKEHTMLFLAGS=--no-split MAKEINFOFLAGS=--no-split V=1 %install rm -rf $RPM_BUILD_ROOT cd %{gdb_build} %make_install %{?_smp_mflags} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d sed 's#%%{_sysconfdir}#%{_sysconfdir}#g' <%{SOURCE2} >$RPM_BUILD_ROOT%{_sysconfdir}/gdbinit touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/gstack.1 ln -s gstack.1 $RPM_BUILD_ROOT%{_mandir}/man1/pstack.1 ln -s gstack $RPM_BUILD_ROOT%{_bindir}/pstack cp $RPM_BUILD_DIR/%{name}-%{version}/gdb/NEWS $RPM_BUILD_DIR/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT%{_prefix}/libexec mv -f $RPM_BUILD_ROOT%{_bindir}/gdb $RPM_BUILD_ROOT%{_prefix}/libexec/gdb ln -s -r $RPM_BUILD_ROOT%{_prefix}/libexec/gdb $RPM_BUILD_ROOT%{_bindir}/gdb rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ rm -f $RPM_BUILD_ROOT%{_infodir}/bfd* rm -f $RPM_BUILD_ROOT%{_infodir}/standard* rm -f $RPM_BUILD_ROOT%{_infodir}/configure* rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib{bfd*,opcodes*,iberty*,ctf*} rm -f $RPM_BUILD_ROOT%{_infodir}/gdbint* rm -f $RPM_BUILD_ROOT%{_infodir}/stabs* rm -f $RPM_BUILD_ROOT%{_infodir}/dir find $RPM_BUILD_ROOT/ -name "*.a" -print -delete find $RPM_BUILD_ROOT/ -name "*.la" -print -delete %files %doc README NEWS COPYING3 COPYING COPYING.LIB COPYING3.LIB %{_bindir}/gdb %{_bindir}/gcore %{_mandir}/*/gcore.1* %{_bindir}/gstack %{_mandir}/*/gstack.1* %{_bindir}/pstack %{_mandir}/*/pstack.1* %{_includedir}/gdb %config(noreplace) %{_sysconfdir}/gdbinit %{_mandir}/*/gdb.1* %{_sysconfdir}/gdbinit.d %{_mandir}/*/gdbinit.5* %{_bindir}/gdb-add-index %{_mandir}/*/gdb-add-index.1* %{_datadir}/gdb %files doc %doc %{gdb_build}/gdb/doc/{gdb,annotate}.{html,pdf} %{_infodir}/annotate.info* %{_infodir}/gdb.info* %files gdbserver %{_bindir}/gdbserver %{_mandir}/*/gdbserver.1* %{_libdir}/libinproctrace.so %files headless %{_prefix}/libexec/gdb %changelog * Fri Apr 22 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 11.2-3 - build gdb without guile, gdb only compat with guile-2.0 * Mon Apr 11 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 11.2-2 - require gdb-headless to make sure gdb works * Wed Mar 16 2022 forrest_ly <flin@linux.alibaba.com> - 11.2-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2