These are my first steps with OBS so please be patient.
In the end, I want build an updated version of emacs-auctex. Since I have several OpenSUSE installation, I want to put the newer version on the OpenSUSE build service system (also if someone else want to use it). First I created a branch of the package and checked it out:
schubert@lt134:~/osc> osc co home:sebschub:branches:openSUSE:12.3:UpdateA home:sebschub:branches:openSUSE:12.3:Update
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.85-preview.dif
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.86.dif
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.86.tar.bz2
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.changes
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.spec
A home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.test
At revision 7f2fb2b40b26e5c0c94561fd39e88fb0.
This apparently worked. However, I cannot build the package locally (even before applying changes):
schubert@lt134:~/osc/home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update> osc build openSUSE_12.3 x86_64 emacs-auctex.spec
Run source service: /usr/lib/obs/service/format_spec_file --outdir /tmp/tmpyDTul6
Run source service: /usr/lib/obs/service/source_validator --outdir /tmp/tmp2H9W1N
Building emacs-auctex.spec for openSUSE_12.3/x86_64
Getting buildinfo from server and store to /home/schubert/osc/home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/.osc/_buildinfo-openSUSE_12.3-x86_64.xml
ERROR: Either wrong repo/arch as parameter or a parse error of .spec/.dsc/.kiwi file due to syntax error
Where is my error?
After fixing this problem, I would go on changing the spec file and adding the new source code. After checking for a successful build I would upload my changes. In general, is this the correct way for updating a package to a new upstream release?
On Tue 02 Apr 2013 12:06:01 PM CDT, sebschub wrote:
Hi,
These are my first steps with OBS so please be patient.
In the end, I want build an updated version of emacs-auctex. Since I
have several OpenSUSE installation, I want to put the newer version on
the OpenSUSE build service system (also if someone else want to use it).
First I created a branch of the package and checked it out:
Code:
schubert@lt134:~/osc> osc co
home:sebschub:branches:openSUSE:12.3:UpdateA
home:sebschub:branches:openSUSE:12.3:Update A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.85-preview.dif
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.86.dif
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/auctex-11.86.tar.bz2
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.changes
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.spec
A
home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/emacs-auctex.test
At revision 7f2fb2b40b26e5c0c94561fd39e88fb0. --------------------
This apparently worked. However, I cannot build the package locally
(even before applying changes):
Code:
schubert@lt134:~/osc/home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update>
osc build openSUSE_12.3 x86_64 emacs-auctex.spec Run source
service: /usr/lib/obs/service/format_spec_file --outdir /tmp/tmpyDTul6
Run source service: /usr/lib/obs/service/source_validator
–outdir /tmp/tmp2H9W1N Building emacs-auctex.spec for
openSUSE_12.3/x86_64 Getting buildinfo from server and store
to /home/schubert/osc/home:sebschub:branches:openSUSE:12.3:Update/emacs-auctex.openSUSE_12.3_Update/.osc/_buildinfo-openSUSE_12.3-x86_64.xml
ERROR: Either wrong repo/arch as parameter or a parse error
of .spec/.dsc/.kiwi file due to syntax error --------------------
Where is my error?
After fixing this problem, I would go on changing the spec file and
adding the new source code. After checking for a successful build I
would upload my changes. In general, is this the correct way for
updating a package to a new upstream release?
Thanks!
Hi
Are you building on a x86_64 system?
If you just use;
osc build openSUSE_12.3
Have you configured your ~/.oscrc file, I also add my user in the
sudoers file for using build.
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 19:51, 4 users, load average: 0.10, 0.08, 0.06
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile
Ok, I uncommented “sudo-wrapper = sudo” (which was probably default anyway), and added the line “<MYUSER> ALL = NOPASSWD: /usr/bin/build” with visudo. Still the same problem. Any other settings I should care about in ~/.oscrc?