From b87eaf8c20bbcaa1496d8e8ba22b0203b95194b8 Mon Sep 17 00:00:00 2001 From: blshkv Date: Wed, 11 Jan 2017 20:21:44 +0800 Subject: [PATCH] reglookup: fix issue #145 --- .../reglookup/files/1.0.1-cflags.patch | 21 +++++++++++++++++++ .../reglookup/reglookup-1.0.1.ebuild | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 app-forensics/reglookup/files/1.0.1-cflags.patch diff --git a/app-forensics/reglookup/files/1.0.1-cflags.patch b/app-forensics/reglookup/files/1.0.1-cflags.patch new file mode 100644 index 000000000..9575fc819 --- /dev/null +++ b/app-forensics/reglookup/files/1.0.1-cflags.patch @@ -0,0 +1,21 @@ +--- SConstruct.orig 2011-07-22 10:05:25.000000000 +0800 ++++ SConstruct 2017-01-11 20:18:52.022609874 +0800 +@@ -3,7 +3,8 @@ + sys.dont_write_bytecode = True + from regfi_version import REGFI_VERSION + +-cflags = '-std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden' ++cflags = os.environ['CFLAGS'] ++cflags += ' -std=gnu99 -pedantic -Wall -D_FILE_OFFSET_BITS=64 -fvisibility=hidden' + cflags += ' -DREGFI_VERSION=\'"%s"\'' % REGFI_VERSION + cflags += ' -ggdb' + +@@ -21,6 +22,8 @@ + LIBPATH=['lib', '/usr/local/lib'], + LIBS=['m', 'pthread', 'regfi', 'talloc']) + ++env.Append( SHLINKFLAGS=" -Wl,-soname=libregfi.so " ) ++ + # Libraries + libregfi_static = env.Library(lib_src) + libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc']) diff --git a/app-forensics/reglookup/reglookup-1.0.1.ebuild b/app-forensics/reglookup/reglookup-1.0.1.ebuild index 64164e3b3..80ddcbe54 100644 --- a/app-forensics/reglookup/reglookup-1.0.1.ebuild +++ b/app-forensics/reglookup/reglookup-1.0.1.ebuild @@ -22,7 +22,9 @@ RDEPEND="sys-libs/talloc S="${WORKDIR}/${PN}-src-${PV}" src_prepare() { + epatch ${FILESDIR}/1.0.1-cflags.patch mv pyregfi-distutils.py setup.py + } src_compile() { escons