diff mbox

[ceph-users] Small fix for ceph.spec

Message ID CAP8Oy=KD4au7aaOqo1t6zvWP1JFnTtQELd8YunxXqyBaE4+wpg@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Patrick McGarry July 29, 2013, 11:33 p.m. UTC
---------- Forwarded message ----------
From: Erik Logtenberg <erik@logtenberg.eu>
Date: Mon, Jul 29, 2013 at 7:07 PM
Subject: [ceph-users] Small fix for ceph.spec
To: ceph-users@lists.ceph.com


Hi,

The spec file used for building rpm's misses a build time dependency on
snappy-devel. Please see attached patch to fix.

Kind regards,

Erik.

Comments

Danny Al-Gaaf July 30, 2013, 7:29 a.m. UTC | #1
Hi,

I think this is a bug in packaging of the leveldb package in this case
since the spec-file already sets dependencies on on leveldb-devel.

leveldb depends on snappy, therefore the leveldb package should set a
dependency on snappy-devel for leveldb-devel (check the SUSE spec file
for leveldb:
https://build.opensuse.org/package/view_file/home:dalgaaf:ceph:extra/leveldb/leveldb.spec?expand=1).
This way the RPM build process will pick up the correct packages needed
to build ceph.

Which distro do you use?

Danny

Am 30.07.2013 01:33, schrieb Patrick McGarry:
> ---------- Forwarded message ----------
> From: Erik Logtenberg <erik@logtenberg.eu>
> Date: Mon, Jul 29, 2013 at 7:07 PM
> Subject: [ceph-users] Small fix for ceph.spec
> To: ceph-users@lists.ceph.com
> 
> 
> Hi,
> 
> The spec file used for building rpm's misses a build time dependency on
> snappy-devel. Please see attached patch to fix.
> 
> Kind regards,
> 
> Erik.
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Erik Logtenberg July 30, 2013, 7:42 a.m. UTC | #2
Hi,

Fedora, in this case Fedora 19, x86_64.

Kind regards,

Erik.


On 07/30/2013 09:29 AM, Danny Al-Gaaf wrote:
> Hi,
> 
> I think this is a bug in packaging of the leveldb package in this case
> since the spec-file already sets dependencies on on leveldb-devel.
> 
> leveldb depends on snappy, therefore the leveldb package should set a
> dependency on snappy-devel for leveldb-devel (check the SUSE spec file
> for leveldb:
> https://build.opensuse.org/package/view_file/home:dalgaaf:ceph:extra/leveldb/leveldb.spec?expand=1).
> This way the RPM build process will pick up the correct packages needed
> to build ceph.
> 
> Which distro do you use?
> 
> Danny
> 
> Am 30.07.2013 01:33, schrieb Patrick McGarry:
>> ---------- Forwarded message ----------
>> From: Erik Logtenberg <erik@logtenberg.eu>
>> Date: Mon, Jul 29, 2013 at 7:07 PM
>> Subject: [ceph-users] Small fix for ceph.spec
>> To: ceph-users@lists.ceph.com
>>
>>
>> Hi,
>>
>> The spec file used for building rpm's misses a build time dependency on
>> snappy-devel. Please see attached patch to fix.
>>
>> Kind regards,
>>
>> Erik.
>>
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Danny Al-Gaaf July 30, 2013, 7:56 a.m. UTC | #3
Hi,

then the Fedora package is broken. If you check the spec file of:

http://dl.fedoraproject.org/pub/fedora/linux/updates/19/SRPMS/leveldb-1.12.0-3.fc19.src.rpm


You can see the spec-file sets a:

BuildRequires:  snappy-devel

But not the corresponding "Requires: snappy-devel" for the devel package.

You should report this issue to your distribution, it needs to be fixed
there instead of adding a workaround to the ceph spec.

Regards,

Danny

Am 30.07.2013 09:42, schrieb Erik Logtenberg:
> Hi,
> 
> Fedora, in this case Fedora 19, x86_64.
> 
> Kind regards,
> 
> Erik.
> 
> 
> On 07/30/2013 09:29 AM, Danny Al-Gaaf wrote:
>> Hi,
>>
>> I think this is a bug in packaging of the leveldb package in this case
>> since the spec-file already sets dependencies on on leveldb-devel.
>>
>> leveldb depends on snappy, therefore the leveldb package should set a
>> dependency on snappy-devel for leveldb-devel (check the SUSE spec file
>> for leveldb:
>> https://build.opensuse.org/package/view_file/home:dalgaaf:ceph:extra/leveldb/leveldb.spec?expand=1).
>> This way the RPM build process will pick up the correct packages needed
>> to build ceph.
>>
>> Which distro do you use?
>>
>> Danny
>>
>> Am 30.07.2013 01:33, schrieb Patrick McGarry:
>>> ---------- Forwarded message ----------
>>> From: Erik Logtenberg <erik@logtenberg.eu>
>>> Date: Mon, Jul 29, 2013 at 7:07 PM
>>> Subject: [ceph-users] Small fix for ceph.spec
>>> To: ceph-users@lists.ceph.com
>>>
>>>
>>> Hi,
>>>
>>> The spec file used for building rpm's misses a build time dependency on
>>> snappy-devel. Please see attached patch to fix.
>>>
>>> Kind regards,
>>>
>>> Erik.
>>>
>>> _______________________________________________
>>> ceph-users mailing list
>>> ceph-users@lists.ceph.com
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>>
> 

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Erik Logtenberg July 30, 2013, 9:01 p.m. UTC | #4
Hi,

I will report the issue there as well. Please note that Ceph seems to
support Fedora 17, even though that release is considered end-of-life by
Fedora. This issue with the leveldb package cannot be fixed for Fedora
17, only for 18 and 19.
So if Ceph wants to continue supporting Fedora 17, adding this
workaround seems to be the only way to get this (rather minor) bug fixed.

Kind regards,

Erik.


On 07/30/2013 09:56 AM, Danny Al-Gaaf wrote:
> Hi,
> 
> then the Fedora package is broken. If you check the spec file of:
> 
> http://dl.fedoraproject.org/pub/fedora/linux/updates/19/SRPMS/leveldb-1.12.0-3.fc19.src.rpm
> 
> 
> You can see the spec-file sets a:
> 
> BuildRequires:  snappy-devel
> 
> But not the corresponding "Requires: snappy-devel" for the devel package.
> 
> You should report this issue to your distribution, it needs to be fixed
> there instead of adding a workaround to the ceph spec.
> 
> Regards,
> 
> Danny
> 
> Am 30.07.2013 09:42, schrieb Erik Logtenberg:
>> Hi,
>>
>> Fedora, in this case Fedora 19, x86_64.
>>
>> Kind regards,
>>
>> Erik.
>>
>>
>> On 07/30/2013 09:29 AM, Danny Al-Gaaf wrote:
>>> Hi,
>>>
>>> I think this is a bug in packaging of the leveldb package in this case
>>> since the spec-file already sets dependencies on on leveldb-devel.
>>>
>>> leveldb depends on snappy, therefore the leveldb package should set a
>>> dependency on snappy-devel for leveldb-devel (check the SUSE spec file
>>> for leveldb:
>>> https://build.opensuse.org/package/view_file/home:dalgaaf:ceph:extra/leveldb/leveldb.spec?expand=1).
>>> This way the RPM build process will pick up the correct packages needed
>>> to build ceph.
>>>
>>> Which distro do you use?
>>>
>>> Danny
>>>
>>> Am 30.07.2013 01:33, schrieb Patrick McGarry:
>>>> ---------- Forwarded message ----------
>>>> From: Erik Logtenberg <erik@logtenberg.eu>
>>>> Date: Mon, Jul 29, 2013 at 7:07 PM
>>>> Subject: [ceph-users] Small fix for ceph.spec
>>>> To: ceph-users@lists.ceph.com
>>>>
>>>>
>>>> Hi,
>>>>
>>>> The spec file used for building rpm's misses a build time dependency on
>>>> snappy-devel. Please see attached patch to fix.
>>>>
>>>> Kind regards,
>>>>
>>>> Erik.
>>>>
>>>> _______________________________________________
>>>> ceph-users mailing list
>>>> ceph-users@lists.ceph.com
>>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>>>
>>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- ceph.spec-orig	2013-07-30 00:24:54.705000000 +0200
+++ ceph.spec	2013-07-30 00:25:34.199000000 +0200
@@ -42,6 +42,7 @@ 
 BuildRequires:  libxml2-devel
 BuildRequires:  libuuid-devel
 BuildRequires:  leveldb-devel > 1.2
+BuildRequires:  snappy-devel
 
 #################################################################################
 # specific