22 Commits

Author SHA256 Message Date
Petr Tesarik
645483610c Fix build with gcc-15
Fix genuine issues which are no longer tolerated by GCC 15.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
2025-05-29 09:39:26 +02:00
09d5802826 Accepting request 1083855 from Kernel:kdump
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1083855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=11
2023-05-02 14:19:15 +00:00
Petr Tesařík
ff7d59dafa Check correct uname -m output for 32-bit powerpc.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=32
2023-04-24 15:59:01 +00:00
Petr Tesařík
a78967cd00 o Build on RISC-V64 and 32-bit Arm and IBM POWER.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=31
2023-04-24 09:20:25 +00:00
Petr Tesařík
88609dcd23 Fix build on 32-bit POWER
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=30
2023-04-24 09:18:25 +00:00
Petr Tesařík
341cf57939 Accepting request 1082392 from home:ptesarik:branches:Kernel:kdump
- Update to c294e5bf89cab01f3c5316474cfc5104af7e6a60
  o Build on RISC-V 64 and 32-bit Arm and IBM POWER.
- Drop upstreamed patches:
  o eppic-Fix-eppic_getnxtfct.patch
  o eppic-crash-INCDIR.patch

OBS-URL: https://build.opensuse.org/request/show/1082392
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=29
2023-04-24 08:50:21 +00:00
Petr Tesařík
846729abf5 Accepting request 1079222 from home:ptesarik:branches:Kernel:kdump
- Build the crash extension.
- Package the eppic code.
- eppic-crash-INCDIR.patch: Use make variable INCDIR to find crash
  include files.

- eppic-Fix-eppic_getnxtfct.patch: Fix name length condition in
  eppic_getnxtfct().

- Switch upstream branch to v5.0.
- Update to commit e0a3b03
  o Assorted bug fixes.

OBS-URL: https://build.opensuse.org/request/show/1079222
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=28
2023-04-13 14:25:31 +00:00
1820aa7f72 Accepting request 868967 from Kernel:kdump
- Update upstream URL.
- Convert to obs_scm source service.
- Upgrade to git commit e8844d3.
- Drop patches that have been merged into upstream:
  o eppic-no-return.patch
  o eppic-use-extern-in-devel-declaration.patch
  o eppic-binutils-fix.patch
- Add eppic-binutils-fix.patch in order to not used 'l' option for
  ar. It has a new meaning.

OBS-URL: https://build.opensuse.org/request/show/868967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=10
2021-02-07 14:14:01 +00:00
Petr Tesařík
f9d2913c91 Add the tar.bz2 archive
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=26
2021-02-03 14:11:33 +00:00
Petr Tesařík
66c908517b Remove the tar.xz archive.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=25
2021-02-03 14:10:30 +00:00
Petr Tesařík
7556144365 Switch to bz2 (SLE11 SP4 did not have xz)
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=24
2021-02-03 14:07:52 +00:00
Petr Tesařík
dad5d1dc40 - Upgrade to git commit e8844d3.
o eppic-binutils-fix.patch

OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=23
2021-02-03 13:59:01 +00:00
Petr Tesařík
d38c72790c Change services to localonly.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=22
2021-02-03 13:52:08 +00:00
Petr Tesařík
302552840e Re-enable set_version source service.
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=21
2021-02-03 12:22:31 +00:00
Petr Tesařík
a42d54d4b2 drop set_service service, because it is missing in SLE
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=20
2021-02-03 10:09:51 +00:00
Petr Tesařík
1b8bb23755 - Update upstream URL.
- Convert to obs_scm source service.
- Upgrade to git commit 873741a.
- Drop patches that have been merged into upstream:
  o eppic-no-return.patch
  o eppic-use-extern-in-devel-declaration.patch

OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=19
2021-02-03 10:06:59 +00:00
b222d932d4 Accepting request 816454 from Kernel:kdump
OBS-URL: https://build.opensuse.org/request/show/816454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=9
2020-06-23 19:02:01 +00:00
feddef5ef0 Accepting request 721569 from Kernel:kdump
OBS-URL: https://build.opensuse.org/request/show/721569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=8
2019-09-05 10:09:35 +00:00
9703edb076 Accepting request 574776 from Kernel:kdump
- Add missing reference to FATE (bsc#1041538):
  o support for ARM64 (FATE#320844).

OBS-URL: https://build.opensuse.org/request/show/574776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=7
2018-02-13 09:25:56 +00:00
3b3a523131 Accepting request 417745 from Kernel:kdump
1

OBS-URL: https://build.opensuse.org/request/show/417745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=6
2016-08-12 13:35:23 +00:00
951857d70b Accepting request 395047 from Kernel:kdump
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/395047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=5
2016-05-13 07:24:25 +00:00
Stephan Kulow
2fe8301d90 Accepting request 208875 from Kernel:kdump
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/208875
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eppic?expand=0&rev=3
2013-11-30 13:20:57 +00:00
9 changed files with 144 additions and 73 deletions

13
_service Normal file
View File

@@ -0,0 +1,13 @@
<services>
<service mode="localonly" name="tar_scm">
<param name="scm">git</param>
<param name="url">https://github.com/lucchouina/eppic.git</param>
<param name="revision">refs/heads/v5.0</param>
<param name="versionprefix">4.99.git</param>
</service>
<service mode="localonly" name="recompress">
<param name="file">eppic-*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="localonly" name="set_version" />
</services>

BIN
eppic-4.99.git.1748503906.6cb0c2a.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,13 +0,0 @@
diff --git a/libeppic/Makefile b/libeppic/Makefile
index 1f97800..4ef7101 100644
--- a/libeppic/Makefile
+++ b/libeppic/Makefile
@@ -101,7 +101,7 @@ default: $(TARGETS)
$(CFILES): $(HFILES) eppic.tab.h
$(TARGETS): $(OFILES)
- $(AR) ccurl $(TARGETS) $(OFILES)
+ $(AR) cur $(TARGETS) $(OFILES)
clean:
-/bin/rm -f *.o $(TARGETS) $(LDIRT)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cddb7dc40138cadf3c716e54bf433ecdff37d87bf06b4b74f6415b738fe742bf
size 77034

View File

@@ -1,24 +0,0 @@
---
libeppic/eppic_var.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/libeppic/eppic_var.c
+++ b/libeppic/eppic_var.c
@@ -828,7 +828,7 @@ var_t*v;
evaluation of sizeof or typeof.
*/
int eppic_getvlev() { return vlev; }
-eppic_vpush()
+void eppic_vpush()
{
if(vlev==S_MAXSDEEP) {
@@ -841,7 +841,7 @@ eppic_vpush()
}
}
-eppic_vpop()
+void eppic_vpop()
{
if(vlev) {
eppic_setsvlev(sidx[--vlev]);

2
eppic-rpmlintrc Normal file
View File

@@ -0,0 +1,2 @@
# These files are interpreted by the eppic extension at run-time
addFilter("devel-file-in-non-devel-package .*/usr/share/eppic/crash.*")

View File

@@ -1,13 +0,0 @@
Index: b/libeppic/eppic.h
===================================================================
--- a/libeppic/eppic.h
+++ b/libeppic/eppic.h
@@ -467,7 +467,7 @@ type_t *eppic_addstorage(type_t *t1, ty
type_t *eppic_getvoidstruct(int ctype);
extern int lineno, needvar, instruct, nomacs, eppic_legacy;
-node_t *lastv;
+extern node_t *lastv;
#define NULLNODE ((node_t*)0)

View File

@@ -1,3 +1,50 @@
-------------------------------------------------------------------
Thu May 29 07:34:48 UTC 2025 - Petr Tesařík <ptesarik@suse.com>
- Update to 6cb0c2ad3ac2de988c02378766ef53302726abf3
o Fix build with gcc-15
-------------------------------------------------------------------
Mon Apr 24 08:26:22 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Update to c294e5bf89cab01f3c5316474cfc5104af7e6a60
o Build on RISC-V64 and 32-bit Arm and IBM POWER.
- Drop upstreamed patches:
o eppic-Fix-eppic_getnxtfct.patch
o eppic-crash-INCDIR.patch
-------------------------------------------------------------------
Thu Apr 13 14:03:26 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Build the crash extension.
- Package the eppic code.
- eppic-crash-INCDIR.patch: Use make variable INCDIR to find crash
include files.
-------------------------------------------------------------------
Thu Apr 13 09:59:44 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- eppic-Fix-eppic_getnxtfct.patch: Fix name length condition in
eppic_getnxtfct().
-------------------------------------------------------------------
Thu Apr 13 09:35:52 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Switch upstream branch to v5.0.
- Update to commit e0a3b03
o Assorted bug fixes.
-------------------------------------------------------------------
Wed Feb 3 13:57:25 UTC 2021 - Petr Tesařík <ptesarik@suse.com>
- Update upstream URL.
- Convert to obs_scm source service.
- Upgrade to git commit e8844d3.
- Drop patches that have been merged into upstream:
o eppic-no-return.patch
o eppic-use-extern-in-devel-declaration.patch
o eppic-binutils-fix.patch
-------------------------------------------------------------------
Tue Feb 2 08:29:23 UTC 2021 - Martin Liška <mliska@suse.cz>

View File

@@ -1,7 +1,7 @@
#
# spec file for package eppic
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,17 @@
#
%define git_date 20140619
%define git_commit 5391d3d
%define checkout %{git_date}git%{git_commit}
Name: eppic
Version: 3.99.%{checkout}
Version: 4.99.git.1748503906.6cb0c2a
Release: 0
Summary: Embeddable Pre-Processor and Interpreter for C
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Source: %{name}-git%{git_commit}.tar.bz2
Source: %{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
Patch1: %{name}-fix-install.patch
Patch2: %{name}-no-return.patch
Patch3: %{name}-use-extern-in-devel-declaration.patch
Patch4: %{name}-binutils-fix.patch
BuildRequires: bison
BuildRequires: crash-devel
BuildRequires: flex
BuildRequires: ncurses-devel
URL: https://github.com/lucchouina/eppic
@@ -48,6 +43,10 @@ embedded in any tools that is C friendly.
Summary: EPPIC include files and libraries
Group: Development/Languages/C and C++
%package -n crash-eppic
Summary: The eppic extension for crash
Group: Development/Tools/Debuggers
%description -n libeppic-devel
EPPIC is a C interpreter that permits easy access to the symbol and type
information stored in a executable image like a coredump or live memory
@@ -57,29 +56,89 @@ embedded in any tools that is C friendly.
This package provides the include files and libraries needed for development.
%description -n crash-eppic
EPPIC is a C interpreter that permits easy access to the symbol and type
information stored in a executable image like a coredump or live memory
interfaces (e.g. /dev/kmem, /dev/mem). Although it has a strong association
with live or postmortem kernel analysis, it is not constraint to it and can be
embedded in any tools that is C friendly.
This package provides the extension for the crash utility.
%prep
%setup -n %{name}-git%{git_commit}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%setup
%autopatch -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
cd libeppic
make CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
make -C libeppic CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
case `uname -m` in
aarch64)
TARGET=ARM64
TARGET_CFLAGS=
;;
arm*)
TARGET=ARM
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
;;
i?86)
TARGET=X86
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
;;
ia64)
TARGET=IA64
TARGET_CFLAGS=
;;
ppc)
TARGET=PPC
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
;;
ppc64|ppc64le)
TARGET=PPC64
TARGET_CFLAGS=-m64
;;
riscv64)
TARGET=RISCV64
TARGET_CFLAGS=
;;
s390)
TARGET=S390
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
;;
s390x)
TARGET=S390X
TARGET_CFLAGS=
;;
x86_64)
TARGET=X86_64
TARGET_CFLAGS=
;;
esac
export TARGET TARGET_CFLAGS
ln -snf ../../libeppic applications/crash/
make -C applications/crash -f eppic.mk INCDIR=/usr/include/crash eppic.so
%install
cd libeppic
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
make ROOT="%{buildroot}" LIBDIR=%{_libdir} install
make -C libeppic ROOT="%{buildroot}" LIBDIR=%{_libdir} install
mkdir -p %{buildroot}%{_libdir}/crash/extensions
install -m 0644 applications/crash/eppic.so %{buildroot}%{_libdir}/crash/extensions
install -d -m 0755 %{buildroot}%{_datadir}/eppic
cp -r applications/crash/code %{buildroot}%{_datadir}/eppic/crash
%files -n libeppic-devel
%defattr(-,root,root)
%doc libeppic/README
%doc libeppic/README.md
%{_includedir}/eppic.h
%{_includedir}/eppic_api.h
%attr(644,root,root) %{_libdir}/libeppic.a
%files -n crash-eppic
%doc applications/crash/README.code
%{_libdir}/crash/extensions/eppic.so
%{_datadir}/eppic
%changelog