Skip to content

Commit 7106473

Browse files
committed
Merge branch 'wip-testing' of https://github.com/sgidevnet/sgug-rse into mach/revisit-tdnf
2 parents 71c012f + f0efabe commit 7106473

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--- /usr/people/vladimir/tmp/mips-irix-tdep.c 2021-11-18 15:21:59.857384191 +0000
2+
+++ gdb-7.6.2/gdb/mips-irix-tdep.c 2021-11-18 15:06:29.784909361 +0000
3+
@@ -28,6 +28,10 @@
4+
#include "trad-frame.h"
5+
#include "tramp-frame.h"
6+
7+
+#ifndef ELFOSABI_IRIX
8+
+#define ELFOSABI_IRIX 8
9+
+#endif
10+
+
11+
static void
12+
mips_irix_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect,
13+
void *obj)
14+
@@ -63,6 +67,9 @@
15+
16+
elfosabi = elf_elfheader (abfd)->e_ident[EI_OSABI];
17+
18+
+ if (elfosabi == ELFOSABI_IRIX)
19+
+ return GDB_OSABI_IRIX;
20+
+
21+
if (elfosabi == ELFOSABI_NONE)
22+
{
23+
/* When elfosabi is ELFOSABI_NONE (0), then the ELF structures in the

packages/gdb/SPECS/gdb.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
Summary: The GNU Debugger
1212
Name: gdb
1313
Version: 7.6.2
14-
Release: 8%{?dist}
14+
Release: 9%{?dist}
1515
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
1616
URL: http://ftp.gnu.org/gnu/gdb/
1717
Source: http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.gz
1818

1919
Patch0: gdb762.sgifixups.patch
20+
Patch1: gdb.elfirix.patch
2021

2122
BuildRequires: gcc, binutils
2223
BuildRequires: automake, autoconf, libtool, pkgconfig
@@ -33,6 +34,7 @@ The gnu debugger.
3334
%setup
3435

3536
%patch0 -p1 -b .sgifixups
37+
%patch1 -p1 -b .elfirix
3638

3739
# A place to generate our patch
3840
#exit 1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- tdnf-3.0.0-beta/client/plugins.c.orig 2021-11-19 14:57:30.307988836 +0000
2+
+++ tdnf-3.0.0-beta/client/plugins.c 2021-11-19 14:57:15.299176437 +0000
3+
@@ -197,7 +197,7 @@
4+
}
5+
if (pPlugin->pModule)
6+
{
7+
- dlclose(pPlugin->pModule);
8+
+ //dlclose(pPlugin->pModule);
9+
}
10+
}
11+

packages/tdnf/SPECS/tdnf.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Summary: dnf/yum equivalent using C libs
44
Name: tdnf
55
Version: 3.1.5
6-
Release: 2%{?dist}
6+
Release: 3%{?dist}
77
Vendor: VMware, Inc.
88
Distribution: Photon
99
License: LGPLv2.1,GPLv2
@@ -23,6 +23,7 @@ Patch106: cli-termios.sgifixes.patch
2323
# mach's crappy interpolation patch
2424
# Patch106: tdnf-client-rpmtrans.sgifixes.patch
2525
# Patch107: tdnf-printfprecision.sgifixes.patch
26+
Patch108: tdnf-no-dlclose-plugins.patch
2627

2728
Requires: rpm-libs
2829
Requires: libcurl
@@ -116,7 +117,7 @@ rm cmake/FindOpenSSL.cmake
116117

117118
%build
118119
mkdir build && cd build
119-
export CFLAGS="-I%{_includedir}/libdicl-0.1 -DLIBDICL_NEED_GETOPT $RPM_OPT_FLAGS"
120+
export CFLAGS="-I%{_includedir}/libdicl-0.1 -DLIBDICL_NEED_GETOPT $RPM_OPT_FLAGS -g"
120121
export LDFLAGS="-ldicl-0.1 $RPM_LD_FLAGS"
121122
cmake \
122123
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
@@ -190,7 +191,7 @@ find %{buildroot} -name '*.pyc' -delete
190191
%config(noreplace) %{_sysconfdir}/%{name}/automatic.conf
191192

192193
%changelog
193-
* Wed Nov 17 2021 David Stancu <dstancu@nyu.edu> - 3.1.5-2
194+
* Wed Nov 17 2021 David Stancu <dstancu@nyu.edu> - 3.1.5-3
194195
- rse update to 3.1.5
195196
* Wed Oct 06 2021 Oliver Kurth <okurth@vmware.com> 3.1.5-1
196197
- update to 3.1.5

0 commit comments

Comments
 (0)