From bd03b2eb305c5c5ea6390cfa2b7445208c2b99b8c56797491df3f25a35ba14f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Date: Fri, 16 Nov 2012 16:15:29 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++ eppic-0.git21b3246.tar.bz2 | 3 ++ eppic-fix-install.patch | 23 +++++++++++ eppic-no-return.patch | 24 +++++++++++ eppic.changes | 11 +++++ eppic.spec | 82 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 166 insertions(+) create mode 100644 .gitattributes create mode 100644 eppic-0.git21b3246.tar.bz2 create mode 100644 eppic-fix-install.patch create mode 100644 eppic-no-return.patch create mode 100644 eppic.changes create mode 100644 eppic.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/eppic-0.git21b3246.tar.bz2 b/eppic-0.git21b3246.tar.bz2 new file mode 100644 index 0000000..b4c12ca --- /dev/null +++ b/eppic-0.git21b3246.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c65d2d3db3d1daf2ab65c5e86c8d52ec26e31c139c505c9ab27e0dab32407fb8 +size 76977 diff --git a/eppic-fix-install.patch b/eppic-fix-install.patch new file mode 100644 index 0000000..e77a693 --- /dev/null +++ b/eppic-fix-install.patch @@ -0,0 +1,23 @@ +From: Petr Tesarik +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 + +--- + 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 diff --git a/eppic-no-return.patch b/eppic-no-return.patch new file mode 100644 index 0000000..5db5f02 --- /dev/null +++ b/eppic-no-return.patch @@ -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]); diff --git a/eppic.changes b/eppic.changes new file mode 100644 index 0000000..cb4bd11 --- /dev/null +++ b/eppic.changes @@ -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. + diff --git a/eppic.spec b/eppic.spec new file mode 100644 index 0000000..e43c152 --- /dev/null +++ b/eppic.spec @@ -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..%{git_date}git%{git_commit}. +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 + +%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