Accepting request 287922 from home:michel_mno:branches:filesystems

- new cdemu_daemon_typo_in_mmc_packet_commands_h.patch
  to avoid ppc/ppc64 build failure
  related to upstream ticket https://sourceforge.net/p/cdemu/patches/22/

OBS-URL: https://build.opensuse.org/request/show/287922
OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=35
This commit is contained in:
Jan Engelhardt 2015-02-26 12:58:06 +00:00 committed by Git OBS Bridge
parent 259c6718b6
commit 46d53c3891
3 changed files with 47 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 26 12:44:38 UTC 2015 - normand@linux.vnet.ibm.com
- new cdemu_daemon_typo_in_mmc_packet_commands_h.patch
to avoid ppc/ppc64 build failure
related to upstream ticket https://sourceforge.net/p/cdemu/patches/22/
-------------------------------------------------------------------
Thu Oct 2 13:49:10 UTC 2014 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package cdemu-daemon
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@ -29,6 +29,7 @@ Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
Source2: 60-vhba.rules
Source3: cdemu-daemon.sysconfig
Patch1: logfile.diff
Patch2: cdemu_daemon_typo_in_mmc_packet_commands_h.patch
BuildRequires: cmake >= 2.8.5
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ao) >= 0.8.0
@ -53,6 +54,7 @@ that can be used by clients to control it.
%prep
%setup -q
%patch -P 1 -p1
%patch2 -p1
%build
cmake . \

View File

@ -0,0 +1,37 @@
From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: cdemu daemon typo in mmc packet commands h
Date: Thu, 26 Feb 2015 13:21:14 +0100
cdemu daemon typo in mmc packet commands h
that make build failure for ppc/ppc64 archi:
===
Building C object CMakeFiles/cdemu-daemon.dir/src/device.c.o
In file included from /home/abuild/rpmbuild/BUILD/cdemu-daemon-3.0.2/src/cdemu.h:51:0,
from /home/abuild/rpmbuild/BUILD/cdemu-daemon-3.0.2/src/daemon.c:20:
/home/abuild/rpmbuild/BUILD/cdemu-daemon-3.0.2/src/mmc-packet-commands.h:1671:9: error: expected ',', ';' or '}' before 'guint8'
guint8 itwp : 3;
^
===
associated to upstream ticket
https://sourceforge.net/p/cdemu/patches/22/
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
src/mmc-packet-commands.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: cdemu-daemon-3.0.2/src/mmc-packet-commands.h
===================================================================
--- cdemu-daemon-3.0.2.orig/src/mmc-packet-commands.h
+++ cdemu-daemon-3.0.2/src/mmc-packet-commands.h
@@ -1667,7 +1667,7 @@ struct READ_TOC_PMA_ATIP_4_Header
struct READ_TOC_PMA_ATIP_4_Descriptor
{
#if G_BYTE_ORDER == G_BIG_ENDIAN
- guint8 one1 : 1
+ guint8 one1 : 1;
guint8 itwp : 3;
guint8 reserved1 : 1;
guint8 ref_speed : 3;