From: George Dunlap <george.dunlap@eu.citrix.com>
To: M A Young <m.a.young@durham.ac.uk>, Don Slutz <dslutz@verizon.com>
Cc: Ian Jackson <ian.jackson@citrix.com>,
Dario Faggioli <dario.faggioli@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] Add a "make rpmball" target
Date: Tue, 4 Mar 2014 10:26:02 +0000 [thread overview]
Message-ID: <5315AA3A.2090405@eu.citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1403032349350.14746@procyon.dur.ac.uk>
On 03/03/2014 11:52 PM, M A Young wrote:
>
>
> On Mon, 3 Mar 2014, Don Slutz wrote:
>
>> On 03/03/14 18:37, M A Young wrote:
>>> On Mon, 3 Mar 2014, Don Slutz wrote:
>>>
>>>> On 03/03/14 17:34, Don Slutz wrote:
>>>>> On 03/03/14 11:07, George Dunlap wrote:
>>>>>> On 03/03/2014 02:59 PM, George Dunlap wrote:
>>>>>>> Build a simplistic dummy package, similar to "make debball", for
>>>>>>> developers on rpm-based systems.
>>>>>>>
>>>>>>> Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
>>>>>>
>>>>>> I meant to add, I've tested this running as root, but not as a
>>>>>> normal user -- I'd appreciate it if someone could give it a try...
>>>>>>
>>>>>
>>>>> As a user I get:
>>>>> ...
>>>>> sh ./tools/misc/mkrpm /home/don/xen $(make -C xen xenversion | grep
>>>>> -v :)
>>>>> error: line 3: Illegal char '-' in: Version: 4.5-unstable
>>>>> make: *** [rpmball] Error 1
>>>>>
>>>>> -Don Slutz
>>>>>
>>>>>
>>>>
>>>> And applying a version "fix":
>>>>
>>>>
>>>>
>>>> From 40c6b19abf44aaf7496b4c77536677fc0d463931 Mon Sep 17 00:00:00 2001
>>>> From: Don Slutz <dslutz@verizon.com>
>>>> Date: Mon, 3 Mar 2014 17:59:17 -0500
>>>> Subject: [PATCH] Adjust version
>>>>
>>>> Signed-off-by: Don Slutz <dslutz@verizon.com>
>>>> ---
>>>> Makefile | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/Makefile b/Makefile
>>>> index 75e845b..6def25d 100644
>>>> --- a/Makefile
>>>> +++ b/Makefile
>>>> @@ -157,7 +157,7 @@ debball: dist
>>>> # to be a full featured policy compliant .rpm package.
>>>> .PHONY: rpmball
>>>> rpmball: dist
>>>> - sh ./tools/misc/mkrpm $(XEN_ROOT) $$($(MAKE) -C xen
>>>> xenversion | grep -v :)
>>>> + sh ./tools/misc/mkrpm $(XEN_ROOT) $$(git describe --long
>>>> --dirty | tr - _)
>>>
>>> You can't assume git will work; it doesn't for the tarball releases.
>>>
>>> Michael Young
>>
>> How about "| cut -d- -f1":
>>
>> dcs-xen-54:~/xen>make -C xen xenversion | grep -v : | cut -d- -f1
>> 4.5
>
> or you could do
> make -C xen xenversion XEN_EXTRAVERSION="" | grep -v :
> or even
> make --no-print-directory -C xen xenversion XEN_EXTRAVERSION=""
Yes, sorry about that -- I tested "make rpmball", then changed
something, then tested calling "mkrpm" directly without testing the
whole thing. :-/
What I did instead was modify the mkrpm script to parse "xxxx-yy" as
"version-release". (And if there's no "-yy", to just make it "0".) New
iteration coming.
-George
next prev parent reply other threads:[~2014-03-04 10:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-03 14:59 [PATCH] Add a "make rpmball" target George Dunlap
2014-03-03 16:07 ` George Dunlap
2014-03-03 22:34 ` Don Slutz
2014-03-03 23:08 ` Don Slutz
2014-03-03 23:37 ` M A Young
2014-03-03 23:46 ` Don Slutz
2014-03-03 23:52 ` M A Young
2014-03-04 10:26 ` George Dunlap [this message]
2014-03-03 16:23 ` Olaf Hering
2014-03-03 16:34 ` George Dunlap
2014-03-03 16:36 ` George Dunlap
2014-03-03 17:31 ` Olaf Hering
2014-03-03 17:23 ` Olaf Hering
2014-03-03 17:27 ` Dario Faggioli
2014-03-03 17:30 ` George Dunlap
2014-03-03 17:59 ` Ian Jackson
2014-03-03 22:53 ` Dario Faggioli
2014-03-03 23:11 ` Olaf Hering
2014-03-04 12:19 ` Ian Jackson
2014-03-03 18:19 ` Ian Campbell
2014-03-03 23:06 ` Olaf Hering
2014-03-03 20:51 ` Don Slutz
2014-03-04 11:41 ` George Dunlap
2014-03-03 22:52 ` Dario Faggioli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5315AA3A.2090405@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=dslutz@verizon.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@citrix.com \
--cc=m.a.young@durham.ac.uk \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).