forked from pool/eppic
Compare commits
21 Commits
Author | SHA256 | Date | |
---|---|---|---|
5f8a20649c | |||
|
2a169507a2 | ||
|
58ddbba1ed | ||
|
98c24ee1b9 | ||
|
b7d05dd6d0 | ||
|
4ccdad5168 | ||
87ce286447 | |||
|
df2e168073 | ||
|
391697f4d0 | ||
|
3d1ca74cbd | ||
|
52d457f23c | ||
|
aaeae928f3 | ||
|
39c556b19e | ||
|
07a5b01e5f | ||
|
989f4cc26a | ||
b222d932d4 | |||
feddef5ef0 | |||
9703edb076 | |||
3b3a523131 | |||
951857d70b | |||
|
2fe8301d90 |
13
_service
Normal file
13
_service
Normal 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>
|
3
eppic-4.99.git.1682279748.c294e5b.tar.xz
Normal file
3
eppic-4.99.git.1682279748.c294e5b.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d4d86e6abce78f905a755229fc2644d9e33a1b511931ec1b04d45b7ef45af8d4
|
||||||
|
size 90812
|
@@ -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)
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cddb7dc40138cadf3c716e54bf433ecdff37d87bf06b4b74f6415b738fe742bf
|
|
||||||
size 77034
|
|
@@ -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
2
eppic-rpmlintrc
Normal 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.*")
|
@@ -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)
|
|
||||||
|
|
@@ -1,3 +1,44 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Feb 2 08:29:23 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
99
eppic.spec
99
eppic.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package eppic
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: eppic
|
||||||
Version: 3.99.%{checkout}
|
Version: 4.99.git.1682279748.c294e5b
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Embeddable Pre-Processor and Interpreter for C
|
Summary: Embeddable Pre-Processor and Interpreter for C
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
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
|
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: bison
|
||||||
|
BuildRequires: crash-devel
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
URL: https://github.com/lucchouina/eppic
|
URL: https://github.com/lucchouina/eppic
|
||||||
@@ -48,6 +43,10 @@ embedded in any tools that is C friendly.
|
|||||||
Summary: EPPIC include files and libraries
|
Summary: EPPIC include files and libraries
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
|
|
||||||
|
%package -n crash-eppic
|
||||||
|
Summary: The eppic extension for crash
|
||||||
|
Group: Development/Tools/Debuggers
|
||||||
|
|
||||||
%description -n libeppic-devel
|
%description -n libeppic-devel
|
||||||
EPPIC is a C interpreter that permits easy access to the symbol and type
|
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
|
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.
|
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
|
%prep
|
||||||
%setup -n %{name}-git%{git_commit}
|
%setup
|
||||||
%patch1 -p1
|
%autopatch -p1
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
cd libeppic
|
make -C libeppic CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
|
||||||
make 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
|
%install
|
||||||
cd libeppic
|
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mkdir -p %{buildroot}%{_includedir}
|
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
|
%files -n libeppic-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc libeppic/README
|
%doc libeppic/README.md
|
||||||
%{_includedir}/eppic.h
|
%{_includedir}/eppic.h
|
||||||
%{_includedir}/eppic_api.h
|
%{_includedir}/eppic_api.h
|
||||||
%attr(644,root,root) %{_libdir}/libeppic.a
|
%attr(644,root,root) %{_libdir}/libeppic.a
|
||||||
|
|
||||||
|
%files -n crash-eppic
|
||||||
|
%doc applications/crash/README.code
|
||||||
|
%{_libdir}/crash/extensions/eppic.so
|
||||||
|
%{_datadir}/eppic
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user