public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* rdma-core rpm for SuSE
@ 2017-08-03 11:12 Amrani, Ram
       [not found] ` <CO2PR07MB25846E91BD9DA1744AEB20BBF8B10-0HVHVVMgGXp9MDTzla2L+OFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Amrani, Ram @ 2017-08-03 11:12 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Jason,
I see folders with rpm creating scripts for Debian and Red Hat.
How is a SuSE rpm generated?

Thanks,
Ram


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found] ` <CO2PR07MB25846E91BD9DA1744AEB20BBF8B10-0HVHVVMgGXp9MDTzla2L+OFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
@ 2017-08-03 11:35   ` Johannes Thumshirn
       [not found]     ` <20170803113505.GF4333-qw2SdCWA0PpjqqEj2zc+bA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Thumshirn @ 2017-08-03 11:35 UTC (permalink / raw)
  To: Amrani, Ram
  Cc: Jason Gunthorpe,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	nmoreychaisemartin-IBi9RG/b67k

On Thu, Aug 03, 2017 at 11:12:18AM +0000, Amrani, Ram wrote:
> Hi Jason,
> I see folders with rpm creating scripts for Debian and Red Hat.
> How is a SuSE rpm generated?

Hi Ram,

Please have a look at:
https://build.opensuse.org/package/show/science:HPC/rdma-core

Thanks,
	Johannes

-- 
Johannes Thumshirn                                          Storage
jthumshirn-l3A5Bk7waGM@public.gmane.org                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]     ` <20170803113505.GF4333-qw2SdCWA0PpjqqEj2zc+bA@public.gmane.org>
@ 2017-08-03 15:49       ` Bart Van Assche
       [not found]         ` <1501775351.2922.5.camel-Sjgp3cTcYWE@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Bart Van Assche @ 2017-08-03 15:49 UTC (permalink / raw)
  To: Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org
  Cc: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org,
	nmoreychaisemartin-IBi9RG/b67k@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Thu, 2017-08-03 at 13:35 +0200, Johannes Thumshirn wrote:
> On Thu, Aug 03, 2017 at 11:12:18AM +0000, Amrani, Ram wrote:
> > Hi Jason,
> > I see folders with rpm creating scripts for Debian and Red Hat.
> > How is a SuSE rpm generated?
> 
> Please have a look at:
> https://build.opensuse.org/package/show/science:HPC/rdma-core

Hello Johannes,

Sorry but my opinion is that users should not have to rely on out-of-tree
patches to build an rdma-core RPM for SuSE systems. BTW, the script that I
use myself to build a SuSE rdma-core RPM is as follows:


#!/bin/bash

rpmtopdir=$PWD/rpmbuilddir
name=rdma-core
version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) &&
    rm -rf "${rpmtopdir}" &&
    mkdir -p "${rpmtopdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
    git archive --prefix "rdma-core-${version}/" --output "${rpmtopdir}/SOURCES/${name}-${version}.tgz" HEAD &&
    rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec


Bart.--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]         ` <1501775351.2922.5.camel-Sjgp3cTcYWE@public.gmane.org>
@ 2017-08-03 15:59           ` Nicolas Morey-Chaisemartin
       [not found]             ` <66a7dd28-f752-b8d9-e8c2-00128245ce2c-l3A5Bk7waGM@public.gmane.org>
  2017-08-03 19:08           ` Amrani, Ram
  1 sibling, 1 reply; 9+ messages in thread
From: Nicolas Morey-Chaisemartin @ 2017-08-03 15:59 UTC (permalink / raw)
  To: Bart Van Assche,
	Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org
  Cc: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org



Le 03/08/2017 à 17:49, Bart Van Assche a écrit :
> On Thu, 2017-08-03 at 13:35 +0200, Johannes Thumshirn wrote:
>> On Thu, Aug 03, 2017 at 11:12:18AM +0000, Amrani, Ram wrote:
>>> Hi Jason,
>>> I see folders with rpm creating scripts for Debian and Red Hat.
>>> How is a SuSE rpm generated?
>> Please have a look at:
>> https://build.opensuse.org/package/show/science:HPC/rdma-core
> Hello Johannes,
>
> Sorry but my opinion is that users should not have to rely on out-of-tree
> patches to build an rdma-core RPM for SuSE systems. BTW, the script that I
> use myself to build a SuSE rdma-core RPM is as follows:
>
>
> #!/bin/bash
>
> rpmtopdir=$PWD/rpmbuilddir
> name=rdma-core
> version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) &&
>     rm -rf "${rpmtopdir}" &&
>     mkdir -p "${rpmtopdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
>     git archive --prefix "rdma-core-${version}/" --output "${rpmtopdir}/SOURCES/${name}-${version}.tgz" HEAD &&
>     rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec
>
>
> Bart.

Agreed.
We have a different spec file due to SUSE packaging policies, and some path differences but the default one works.
As this is new, I wanted to make sure it works well before submitting it.
With v15 coming out and the associated systemd/udev changes, I'll have to update the spec and validate it but once this is done I'll send a patch to this ML and get it upstreamed.

Nicolas

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]             ` <66a7dd28-f752-b8d9-e8c2-00128245ce2c-l3A5Bk7waGM@public.gmane.org>
@ 2017-08-03 17:01               ` Jason Gunthorpe
  2017-08-03 17:14               ` Bart Van Assche
  1 sibling, 0 replies; 9+ messages in thread
From: Jason Gunthorpe @ 2017-08-03 17:01 UTC (permalink / raw)
  To: Nicolas Morey-Chaisemartin
  Cc: Bart Van Assche,
	Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Thu, Aug 03, 2017 at 05:59:31PM +0200, Nicolas Morey-Chaisemartin wrote:

> We have a different spec file due to SUSE packaging policies, and
> some path differences but the default one works.  As this is new, I
> wanted to make sure it works well before submitting it.  With v15
> coming out and the associated systemd/udev changes, I'll have to
> update the spec and validate it but once this is done I'll send a
> patch to this ML and get it upstreamed.

I think that would be great..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]             ` <66a7dd28-f752-b8d9-e8c2-00128245ce2c-l3A5Bk7waGM@public.gmane.org>
  2017-08-03 17:01               ` Jason Gunthorpe
@ 2017-08-03 17:14               ` Bart Van Assche
       [not found]                 ` <1501780444.2922.10.camel-Sjgp3cTcYWE@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Bart Van Assche @ 2017-08-03 17:14 UTC (permalink / raw)
  To: NMoreyChaisemartin-l3A5Bk7waGM@public.gmane.org,
	Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org
  Cc: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Thu, 2017-08-03 at 17:59 +0200, Nicolas Morey-Chaisemartin wrote:
> We have a different spec file due to SUSE packaging policies, and some
> path differences but the default one works. As this is new, I wanted to
> make sure it works well before submitting it. With v15 coming out and the
> associated systemd/udev changes, I'll have to update the spec and validate
> it but once this is done I'll send a patch to this ML and get it upstreamed.

Hello Nicolas,

Do you plan to submit an entirely new RPM or changes to the rdma-core.spec
file in the top-level directory? Personally I strongly prefer the latter. We
have already three groups of distro packaging files and that is really annoying
to rdma-core contributors because every packaging change has to be tested three
times (rdma-core.spec, redhat/rdma-core.spec and debian/*.install). Adding a
fourth packaging file would increase the maintenance burden even further.

Thanks,

Bart.--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]                 ` <1501780444.2922.10.camel-Sjgp3cTcYWE@public.gmane.org>
@ 2017-08-03 17:29                   ` Jason Gunthorpe
       [not found]                     ` <20170803172957.GA30952-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Gunthorpe @ 2017-08-03 17:29 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: NMoreyChaisemartin-l3A5Bk7waGM@public.gmane.org,
	Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Thu, Aug 03, 2017 at 05:14:11PM +0000, Bart Van Assche wrote:
> On Thu, 2017-08-03 at 17:59 +0200, Nicolas Morey-Chaisemartin wrote:
> > We have a different spec file due to SUSE packaging policies, and some
> > path differences but the default one works. As this is new, I wanted to
> > make sure it works well before submitting it. With v15 coming out and the
> > associated systemd/udev changes, I'll have to update the spec and validate
> > it but once this is done I'll send a patch to this ML and get it upstreamed.
> 
> Hello Nicolas,
> 
> Do you plan to submit an entirely new RPM or changes to the rdma-core.spec
> file in the top-level directory? Personally I strongly prefer the latter. We
> have already three groups of distro packaging files and that is really annoying
> to rdma-core contributors because every packaging change has to be tested three
> times (rdma-core.spec, redhat/rdma-core.spec and debian/*.install). Adding a
> fourth packaging file would increase the maintenance burden even further.

If suse contributes their spec file I think we could delete the top
level rdma-core.spec

There are enough differences in the suse spec file I suspect it would
be more maintainable to have it separate.

We still have to test the builds against that configuration anyhow, I
dont see a big burden there - so long as cbuild can run an appropriate
suse build (opensuse is OK for testing?)..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: rdma-core rpm for SuSE
       [not found]         ` <1501775351.2922.5.camel-Sjgp3cTcYWE@public.gmane.org>
  2017-08-03 15:59           ` Nicolas Morey-Chaisemartin
@ 2017-08-03 19:08           ` Amrani, Ram
  1 sibling, 0 replies; 9+ messages in thread
From: Amrani, Ram @ 2017-08-03 19:08 UTC (permalink / raw)
  To: Bart Van Assche, jthumshirn-l3A5Bk7waGM@public.gmane.org
  Cc: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org,
	nmoreychaisemartin-IBi9RG/b67k@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

> On Thu, 2017-08-03 at 13:35 +0200, Johannes Thumshirn wrote:
> > On Thu, Aug 03, 2017 at 11:12:18AM +0000, Amrani, Ram wrote:
> > > Hi Jason,
> > > I see folders with rpm creating scripts for Debian and Red Hat.
> > > How is a SuSE rpm generated?
> >
> > Please have a look at:
> > https://build.opensuse.org/package/show/science:HPC/rdma-core
> 
> Hello Johannes,
> 
> Sorry but my opinion is that users should not have to rely on out-of-tree
> patches to build an rdma-core RPM for SuSE systems. BTW, the script that I
> use myself to build a SuSE rdma-core RPM is as follows:
> 
> 
> #!/bin/bash
> 
> rpmtopdir=$PWD/rpmbuilddir
> name=rdma-core
> version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) &&
>     rm -rf "${rpmtopdir}" &&
>     mkdir -p "${rpmtopdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
>     git archive --prefix "rdma-core-${version}/" --output "${rpmtopdir}/SOURCES/${name}-${version}.tgz" HEAD &&
>     rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec
> 
> 
> Bart.

Thanks Johannes and Bart.
We'll try it out.

Ram

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: rdma-core rpm for SuSE
       [not found]                     ` <20170803172957.GA30952-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2017-08-04  5:55                       ` Nicolas Morey-Chaisemartin
  0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Morey-Chaisemartin @ 2017-08-04  5:55 UTC (permalink / raw)
  To: Jason Gunthorpe, Bart Van Assche
  Cc: Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
	jthumshirn-l3A5Bk7waGM@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org



Le 03/08/2017 à 19:29, Jason Gunthorpe a écrit :
> On Thu, Aug 03, 2017 at 05:14:11PM +0000, Bart Van Assche wrote:
>> On Thu, 2017-08-03 at 17:59 +0200, Nicolas Morey-Chaisemartin wrote:
>>> We have a different spec file due to SUSE packaging policies, and some
>>> path differences but the default one works. As this is new, I wanted to
>>> make sure it works well before submitting it. With v15 coming out and the
>>> associated systemd/udev changes, I'll have to update the spec and validate
>>> it but once this is done I'll send a patch to this ML and get it upstreamed.
>> Hello Nicolas,
>>
>> Do you plan to submit an entirely new RPM or changes to the rdma-core.spec
>> file in the top-level directory? Personally I strongly prefer the latter. We
>> have already three groups of distro packaging files and that is really annoying
>> to rdma-core contributors because every packaging change has to be tested three
>> times (rdma-core.spec, redhat/rdma-core.spec and debian/*.install). Adding a
>> fourth packaging file would increase the maintenance burden even further.
> If suse contributes their spec file I think we could delete the top
> level rdma-core.spec
>
> There are enough differences in the suse spec file I suspect it would
> be more maintainable to have it separate.
>
> We still have to test the builds against that configuration anyhow, I
> dont see a big burden there - so long as cbuild can run an appropriate
> suse build (opensuse is OK for testing?)..
>
> Jason
Yes a separate spec makes more sense.
With the amount differences we have, it would be hellish to maintain a common spec file with redhat and most of the stuff would have to be done twice anyway.

And yes, the RPM works with both SLE (12SP3), OpenSUSE Leap (>=42.2) and TumbleWeed without any issue.

Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-08-04  5:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03 11:12 rdma-core rpm for SuSE Amrani, Ram
     [not found] ` <CO2PR07MB25846E91BD9DA1744AEB20BBF8B10-0HVHVVMgGXp9MDTzla2L+OFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-03 11:35   ` Johannes Thumshirn
     [not found]     ` <20170803113505.GF4333-qw2SdCWA0PpjqqEj2zc+bA@public.gmane.org>
2017-08-03 15:49       ` Bart Van Assche
     [not found]         ` <1501775351.2922.5.camel-Sjgp3cTcYWE@public.gmane.org>
2017-08-03 15:59           ` Nicolas Morey-Chaisemartin
     [not found]             ` <66a7dd28-f752-b8d9-e8c2-00128245ce2c-l3A5Bk7waGM@public.gmane.org>
2017-08-03 17:01               ` Jason Gunthorpe
2017-08-03 17:14               ` Bart Van Assche
     [not found]                 ` <1501780444.2922.10.camel-Sjgp3cTcYWE@public.gmane.org>
2017-08-03 17:29                   ` Jason Gunthorpe
     [not found]                     ` <20170803172957.GA30952-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-04  5:55                       ` Nicolas Morey-Chaisemartin
2017-08-03 19:08           ` Amrani, Ram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox