obs didn't correctly resolve <RELEASE1> statement.

Hi

i Want to do a rpm whith osc and obs, i Do my .spec and i have only one last problem to build my rpm

It’s some package for Evergreen

in the release tag I have to put this

Release: 0.<RELEASE1>

but when i build it with this osc crash with this message:



+ install -m 644 SuSE/SuSEfirewall2.cyrus-imapd '/usr/src/packages/BUILDROOT/cyrus-imapd-2.3.16-0.<RELEASE1>.x86_64/etc/sysconfig/SuSEfirewall2.d/services/cyrus-imapd'

+ export 'DESTDIR=/usr/src/packages/BUILDROOT/cyrus-imapd-2.3.16-0.<RELEASE1>.x86_64'

+ DESTDIR='/usr/src/packages/BUILDROOT/cyrus-imapd-2.3.16-0.<RELEASE1>.x86_64'

+ make install

./install-sh -d /usr/src/packages/BUILDROOT/cyrus-imapd-2.3.16-0.<RELEASE1>.x86_64/usr/bin

/bin/sh: RELEASE1: No such file or directory

make: *** [install] Error 1

error: Bad exit status from /var/tmp/rpm-tmp.ZeDEoU (%install)

RPM build errors:

     Bad exit status from /var/tmp/rpm-tmp.ZeDEoU (%install)

The buildroot was: /var/tmp/build-root

if I put “0.1” in the release tag it builds

I use the command


osc build --clean --no-verify 

can someone help me ???

thanks for all

Hi
The release needs to be specified in the project configuration, not the
spec file.
http://en.opensuse.org/openSUSE:Build_Service_prjconf#Release


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 6 days 16:45, 3 users, load average: 0.03, 0.10, 0.13
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

thanks for your answer

i edit the meta on my project like this:

#osc meta prjconf -e home:jluce2:branches:openSUSE:Evergreen:11.2:Test

after editing


#osc meta prjconf home:jluce2:branches:openSUSE:Evergreen:11.2:Test
Release: <CI_CNT>.<B_CNT>

but i have again the same message when i build it

where i am wrong ???

thanks for all

Hi
But what do you want <RELEASE1> to be?

For example if I wanted it to say evergreen in the version then you
would do something like;


Release: <CI_CNT>.<B_CNT>.evergreen

If you want your to be say 0.1 then you ‘define’ at the
start of the spec file;


%define _RELEASE 0.1

Summary: some-name
Version: xyz
Release: %{ _RELEASE}

Perhaps you can give an example of what you want the release1 to be?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 6 days 18:22, 4 users, load average: 1.28, 0.61, 0.31
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

hi

sorry for the time to answer

when i built the package localy it stop with the messages we’ve seen before

but when i do a commit it build correctly

https://build.opensuse.org/package/show?package=cyrus-imapd&project=home%3Ajluce2%3Abranches%3AopenSUSE%3AEvergreen%3A11.2%3ATest

why i do’nt know …

thanks for all

Hi
Just tried it here and it works fine for building…

What editor are you using for your spec file? You may have a hidden ^M
or something in your spec file. Delete the line and re-enter manually.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 6 days 23:59, 5 users, load average: 0.12, 0.33, 0.37
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

hi

i don’t know why but it works now.

thanks for all

regards