Accepting request 141575 from home:ptesarik:branches:Kernel:kdump

Add eppic library

OBS-URL: https://build.opensuse.org/request/show/141575
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=1
This commit is contained in:
Petr Tesařík 2012-11-16 16:15:29 +00:00 committed by Git OBS Bridge
commit bd03b2eb30
6 changed files with 166 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

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

23
eppic-fix-install.patch Normal file
View File

@ -0,0 +1,23 @@
From: Petr Tesarik <ptesarik@suse.cz>
Subject: Fix the 'install' target
Patch-mainline: no
There is no directory called 'scripts', so the action for the 'install'
target runs into an endless loop.
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
---
libeppic/Makefile | 1 -
1 file changed, 1 deletion(-)
--- a/libeppic/Makefile
+++ b/libeppic/Makefile
@@ -59,7 +59,6 @@ headers:
install -m 644 $(HFILES) $(ROOT)/usr/include
install: headers exports
- (cd scripts ; $(MAKE) install )
baseops.o: mkbaseop.c
$(CC) $(CFLAGS) -o mkbaseop mkbaseop.c

24
eppic-no-return.patch Normal file
View File

@ -0,0 +1,24 @@
---
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]);

11
eppic.changes Normal file
View File

@ -0,0 +1,11 @@
-------------------------------------------------------------------
Fri Nov 16 16:10:24 UTC 2012 - ptesarik@suse.cz
- eppic-fix-install.patch: Fix an endless loop in 'make install'.
- eppic-no-return.patch: Fix return types of void functions.
-------------------------------------------------------------------
Fri Nov 16 14:56:34 UTC 2012 - ptesarik@suse.cz
- Initial submission.

82
eppic.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package libeppic
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define git_date 20121116
%define git_commit 21b3246
Name: eppic
Version: 0
Release: 0.<CI_CNT>.%{git_date}git%{git_commit}.<B_CNT>
Summary: Embeddable Pre-Processor and Interpreter for C
Group: System/Libraries
License: GPL-2.0+
Source: %{name}-0.git%{git_commit}.tar.bz2
Patch1: %{name}-fix-install.patch
Patch2: %{name}-no-return.patch
BuildRequires: bison flex ncurses-devel
Url: http://code.google.com/p/eppic/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
Authors:
--------
Luc Chouinard <lucchouina@gmail.com>
%package -n libeppic-devel
Summary: EPPIC include files and libraries
Group: Development/Languages/C and C++
License: GPL-2.0+
%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
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 include files and libraries needed for development.
%prep
%setup -n %{name}-%{version}.git%{git_commit}
%patch1 -p1
%patch2 -p1
%build
cd libeppic
%{__make} CFLAGS="%{optflags}" %{?_smp_mflags}
%install
cd libeppic
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
make ROOT="%{buildroot}" LIBDIR=%{_libdir} install
%files -n libeppic-devel
%defattr(-,root,root)
%doc libeppic/README
%{_includedir}/eppic.h
%{_includedir}/eppic_api.h
%attr(644,root,root) %{_libdir}/libeppic.a
%changelog