From fc50823f3c8a9e9f3e4d8d1885024d9f3251411a7331b1adcace84459a4a1936 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 4 Apr 2014 08:13:50 +0000 Subject: [PATCH] bcache-tools-0.9 OBS-URL: https://build.opensuse.org/package/show/filesystems/bcache-tools?expand=0&rev=9 --- ...ild-remove-inline-keyword-from-crc64.patch | 28 +++++++++++++++++++ bcache-tools-0.1.g71.tar.xz | 3 -- bcache-tools-0.9.tar.xz | 3 ++ bcache-tools.changes | 10 +++++++ bcache-tools.spec | 14 ++++++---- 5 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 0001-build-remove-inline-keyword-from-crc64.patch delete mode 100644 bcache-tools-0.1.g71.tar.xz create mode 100644 bcache-tools-0.9.tar.xz diff --git a/0001-build-remove-inline-keyword-from-crc64.patch b/0001-build-remove-inline-keyword-from-crc64.patch new file mode 100644 index 0000000..f13819d --- /dev/null +++ b/0001-build-remove-inline-keyword-from-crc64.patch @@ -0,0 +1,28 @@ +From 96e990f72720c87c0bd85b31f819bddcdfdb22d7 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Fri, 4 Apr 2014 10:08:17 +0200 +Subject: [PATCH] build: remove inline keyword from crc64 + +In optimization levels like -O2, crc64 gets inlined for me and a +linker error follows, because there is no more crc64 function in the +object output. +--- + bcache.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bcache.c b/bcache.c +index 8f37445..8b4b986 100644 +--- a/bcache.c ++++ b/bcache.c +@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = { + 0x9AFCE626CE85B507ULL + }; + +-inline uint64_t crc64(const void *_data, size_t len) ++uint64_t crc64(const void *_data, size_t len) + { + uint64_t crc = 0xFFFFFFFFFFFFFFFFULL; + const unsigned char *data = _data; +-- +1.8.4.5 + diff --git a/bcache-tools-0.1.g71.tar.xz b/bcache-tools-0.1.g71.tar.xz deleted file mode 100644 index f3ad82c..0000000 --- a/bcache-tools-0.1.g71.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9190de0872706ce2fe063211f3cb41b2d8ca7eb2aeead96787f326422da968de -size 18540 diff --git a/bcache-tools-0.9.tar.xz b/bcache-tools-0.9.tar.xz new file mode 100644 index 0000000..f03af4d --- /dev/null +++ b/bcache-tools-0.9.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13b71741df3abfeea10256d5f8b8362d948132442a17b1df2e5a31d3a80d7e54 +size 19732 diff --git a/bcache-tools.changes b/bcache-tools.changes index 080f915..738d6a4 100644 --- a/bcache-tools.changes +++ b/bcache-tools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 4 07:57:33 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 0.9 +* Run probe-bcache a little later in the udev rule sequence + (moving from position 61 to 69), fixing a machine hang on + bcache reassemble (bnc#868938) +- Add 0001-build-remove-inline-keyword-from-crc64.patch, this is + a build fix. + ------------------------------------------------------------------- Wed Mar 19 10:22:13 UTC 2014 - oneukum@suse.com diff --git a/bcache-tools.spec b/bcache-tools.spec index f14476a..8759b36 100644 --- a/bcache-tools.spec +++ b/bcache-tools.spec @@ -20,16 +20,19 @@ Name: bcache-tools Summary: Configuration utilities for bcache License: GPL-2.0 Group: System/Base -Version: 0.1.g71 +Version: 0.9 Release: 0 -#Snapshot: 0b57e166ae86d525ef42842cabf7692fc7c44039 +#Git-Snapshot: v0.9 Url: http://bcache.evilpiepirate.org/ #Git-Clone: http://evilpiepirate.org/git/bcache-tools.git Source: %name-%version.tar.xz +Patch1: 0001-build-remove-inline-keyword-from-crc64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libblkid-devel BuildRequires: libuuid-devel BuildRequires: openssl-devel +BuildRequires: pkg-config BuildRequires: xz %description @@ -37,9 +40,12 @@ This package contains utilities for configuring the bcache Module. %prep %setup -qn %name +%patch -P 1 -p1 %build -make all CFLAGS="%optflags" %{?_smp_mflags} +export SUSE_ASNEEDED=0 +make all CFLAGS="%optflags $(pkg-config blkid uuid --cflags) -std=gnu99" \ + LDFLAGS="$(pkg-config blkid uuid --libs)" %{?_smp_mflags} %install b="%buildroot" @@ -49,7 +55,6 @@ mkdir -p "$b/%_sysconfdir/initramfs-tools/scripts/init-premount" mkdir -p "$b/%_sysconfdir/initramfs-tools/hooks" make install DESTDIR="$b" rm -Rf "$b/%_sysconfdir/initramfs-tools" -mv "$b"/lib/udev/rules.d/61-bcache.rules "$b"/lib/udev/rules.d/74-bcache.rules mkdir -p "$b/%_prefix/lib" mv "$b/lib/udev" "$b/%_prefix/lib/" @@ -57,7 +62,6 @@ mv "$b/lib/udev" "$b/%_prefix/lib/" %defattr(-,root,root) %_sbindir/bcache-super-show %_sbindir/make-bcache -/sbin/probe-bcache %_prefix/lib/udev %_mandir/man8/*.8* %doc COPYING