Dne 11.9.2013 15:31, Josef Reidinger napsal(a):
And one idea is to use osc which can build in chroot. But osc need
already spec file.
Using osc means we need
- *.spec file - currently created by create-spec script in devtools, during
"make package-local", see
https://github.com/yast/yast-devtools/blob/master/devtools/bin/create-spec
The history shows that there just few commits in the last several years,
see
https://github.com/yast/yast-devtools/commits/master/devtools/bin/create-spec
so it's pretty stable.
Maybe we could simply switch from *.spec.in to *.spec files? What do you think
about it? Pros/cons? Martin?
- *.tar.bz2 archive - currently handled by autotools in "make package-local",
Maybe we could use something like "git archive <branch>" to simply export the
Git content without need to install/run anything?
(This is actually the research for the CI integration workshop project...)
Generating spec file is slightly against previous idea as you need
proper version of devtools to generate proper spec file. If problem is
really only VERSION and LIBVERSION update, then we can solve it by some
kind of seding during making package ( so spec is automatic update when
you call make package ). Or is there more things we need to generate?
Yes, some simple sed could be possible, but I'd avoid anything more complex
than that. For the reasons above.
[...]
If we use idea above ( original author is lslezak ), then osc in its
chroot install everything it need with proper target ( so in your case
factory ).
Yes, the idea is to create *.spec and source tarball and run "osc build".
The advantage is that the build runs in a chroot, the package is compiled
and tested against the latest Factory versions.
Also it handles package dependencies, if you add a new dependency to yast
package
you need to manually install it into the Jenkins node (in the appropriate
version,
which might be difficult in some cases) and manually update it if needed.
The most problematic part is that obtaining the *.spec and tar ball requires
the latest yast2-devtools installed. Moreover "make package-local" requires all
needed packages to be installed (because of the checks in "./configure" step).
--
Best Regards
Ladislav Slezák
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: [email protected]
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]