From 08bb77edb0358ac6b6d35317d9bfe773ae42c1d5c52ffb918215bd8cb2d926ed Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 5 Jun 2013 18:24:24 +0000 Subject: [PATCH] libfreefare-0.3.4+git67 OBS-URL: https://build.opensuse.org/package/show/hardware/libfreefare?expand=0&rev=5 --- ...lve-compiler-warning-on-breakage-of-.patch | 41 ------------------- libfreefare-0.3.4+git66.tar.xz | 3 -- libfreefare-0.3.4+git67.tar.xz | 3 ++ libfreefare.changes | 3 +- libfreefare.spec | 6 +-- 5 files changed, 6 insertions(+), 50 deletions(-) delete mode 100644 0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch delete mode 100644 libfreefare-0.3.4+git66.tar.xz create mode 100644 libfreefare-0.3.4+git67.tar.xz diff --git a/0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch b/0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch deleted file mode 100644 index 4a29485..0000000 --- a/0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 3dd547d851cca5906edc674e127ecaa2b49591b6 Mon Sep 17 00:00:00 2001 -From: Jan Engelhardt -Date: Wed, 5 Jun 2013 18:22:26 +0200 -X-Upstream-Status: submitted, awaiting merge -Subject: [PATCH] libfreefare: resolve compiler warning on breakage of strict - aliasing - -gcc warns: -mifare_classic.c:353:45: warning: dereferencing type-punned pointer -will break strict-aliasing rules [-Wstrict-aliasing] - -There is another problem with this code: "data", being a 16-byte -array, may not be suitably aligned for the other types in the union. -This patch resolves this. ---- - libfreefare/mifare_classic.c | 8 +++----- - 1 file changed, 3 insertions(+), 5 deletions(-) - -diff --git a/libfreefare/mifare_classic.c b/libfreefare/mifare_classic.c -index aaf2d64..1502fe8 100644 ---- a/libfreefare/mifare_classic.c -+++ b/libfreefare/mifare_classic.c -@@ -346,12 +346,10 @@ mifare_classic_init_value (MifareTag tag, const MifareClassicBlockNumber block, - int - mifare_classic_read_value (MifareTag tag, const MifareClassicBlockNumber block, int32_t *value, MifareClassicBlockNumber *adr) - { -- MifareClassicBlock data; -- if (mifare_classic_read (tag, block, &data) < 0) -- return -1; -- -- union mifare_classic_block b = *((union mifare_classic_block *)(&data)); -+ union mifare_classic_block b; - -+ if (mifare_classic_read (tag, block, b.data) < 0) -+ return -1; - - if ((b.value.value ^ (uint32_t)~b.value.value_) || (b.value.value != b.value.value__)) { - errno = EIO; --- -1.8.2 - diff --git a/libfreefare-0.3.4+git66.tar.xz b/libfreefare-0.3.4+git66.tar.xz deleted file mode 100644 index d3fecc2..0000000 --- a/libfreefare-0.3.4+git66.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47126c92aa8a9e35de4db3bce16d14fbdae3cee0587dacee9544afc514f40030 -size 82324 diff --git a/libfreefare-0.3.4+git67.tar.xz b/libfreefare-0.3.4+git67.tar.xz new file mode 100644 index 0000000..24ce967 --- /dev/null +++ b/libfreefare-0.3.4+git67.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39e55540e9946ccac950d298435c4aa5e57c4d79274140a46c793417a12b763d +size 82352 diff --git a/libfreefare.changes b/libfreefare.changes index cde2deb..438c39c 100644 --- a/libfreefare.changes +++ b/libfreefare.changes @@ -1,9 +1,8 @@ ------------------------------------------------------------------- Wed Jun 5 15:58:17 UTC 2013 - jengelh@inai.de -- Update to new upstream snapshot 0.3.4+git66 +- Update to new upstream snapshot 0.3.4+git67 * update for new libnfc4-1.7.0 API -- Add 0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch ------------------------------------------------------------------- Fri Jun 15 17:47:46 UTC 2012 - jengelh@inai.de diff --git a/libfreefare.spec b/libfreefare.spec index a9c65b9..410c396 100644 --- a/libfreefare.spec +++ b/libfreefare.spec @@ -21,14 +21,13 @@ Name: libfreefare Summary: API for Mifare card manipulations License: LGPL-3.0+ Group: Development/Libraries/C and C++ -# Commit 00e999dd523b6f2be8b7820f3797b4ec9fd6c88a -Version: 0.3.4+git66 +# Commit 089b6006b1bdd7546f9c7b291a8b3325cbda5537 +Version: 0.3.4+git67 Release: 0 Url: http://code.google.com/p/nfc-tools/ #Git-Clone: http://code.google.com/p/libfreefare/ Source: %name-%version.tar.xz -Patch1: 0001-libfreefare-resolve-compiler-warning-on-breakage-of-.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -87,7 +86,6 @@ inspecting and manipulating Mifare cards. %prep %setup -qn %name -%patch -P 1 -p1 %build if [ ! -e configure ]; then