Mailinglist Archive: opensuse-factory (551 mails)

< Previous Next >
Re: [opensuse-factory] new openSUSE:* source processing method. PLEASE TEST !
Hi Adrian,

great stuff, but:

Am Mittwoch, 25. Mai 2011, 20:14:17 schrieb Adrian Schröter:
How to test this ?
==================

First of all you need the new services and a new osc installed. Please add
the proper openSUSE:Tools project repo and install

zypper in obs-service-download_files obs-service-format_spec_file
obs-service-source_validator

In addition to that please install "osc" from openSUSE:Tools:Unstable
project. If you do not like to add the repo, just run

osc getbinaries openSUSE:Tools:Unstable osc $YOUR_REPO $YOUR_ARCH

and install the osc package manually.

To activate this for your entire devel project (it would work also per
package) do

# osc co $YOUR_DEVEL_PROJECT _project
# cd $YOUR_DEVEL_PROJECT/_project
# cat > _service <<EOF
<services>
<service name="format_spec_file" mode="trylocal"/>
<service name="download_files" mode="trylocal"/>
<service name="source_validator" mode="trylocal"/>
</services>
EOF
# osc addremove
# osc ci -m "activate factory default source services"


This didn't work for me.

lang@linux-ecfn:~/build/server:php:applications> osc co _project
A _project
At revision None.
rlang@linux-ecfn:~/build/server:php:applications> cd _project/
rlang@linux-ecfn:~/build/server:php:applications/_project> cat > _service
<<EOF
<services>
<service name="format_spec_file" mode="trylocal"/>
<service name="download_files" mode="trylocal"/>
<service name="source_validator" mode="trylocal"/>
</services>
EOF
rlang@linux-ecfn:~/build/server:php:applications/_project> cat _service
rlang@linux-ecfn:~/build/server:php:applications/_project> osc ar
A _service
rlang@linux-ecfn:~/build/server:php:applications/_project> osc ci -m "activate
factory default source services"
*.spec is no file at /usr/lib/obs/service/format_spec_file.files/prepare_spec
line 479.
cmp: *.spec: Datei oder Verzeichnis nicht gefunden
ERROR: service call failed: /usr/lib/obs/service/format_spec_file --outdir
/tmp/tmplOr56Z
(your _services file may be corrupt now)
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: License field must be present in package: (main package)
ERROR: Can not recognize Version in *.spec.
Remember that Version: must be at the beginning of line.
ERROR: service call failed: /usr/lib/obs/service/source_validator --outdir
/tmp/tmpnbi1IB
(your _services file may be corrupt now)
osc: source service run failed 1
*** Error:
rlang@linux-ecfn:~/build/server:php:applications/_project>





However, this worked:

osc ci --skip-local-service-run --skip-validation -m "activate factory default
source services"
Sending _service
Transmitting file data .
Committed revision 1.
Waiting for server side source service run At revision 1.
updated


--
Ralf Lang
Linux Consultant / Developer

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References