1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
Commit Graph

315 Commits

Author SHA1 Message Date
Pavol Rusnak
661d927d38 code cleanup 2009-10-20 14:30:15 +00:00
9266647b0c - support 100% offline build when using "osc build --noinit ..."
-> buildinfo gets stored in local directory as .buildinfo.xml
2009-10-20 08:43:52 +00:00
Ludwig Nussel
ca237c5af9 don't fetch packages if build was called with --no-init 2009-10-09 11:37:27 +00:00
Marcus Hüwe
1130e28061 - always use the latest version of a package (in case the dir contains multiple versions of a package) when running "osc build --prefer-pkgs /path/to/pkgs" 2009-09-21 17:29:20 +00:00
Marcus Hüwe
2123e136e0 - osc build: if the --jobs option is omitted use '--jobs #<available processors>' (patch by Cristian Rodriguez <crrodriguez@suse.de>) 2009-09-20 15:59:46 +00:00
Marcus Hüwe
eec733fda5 - ignore release if not present 2009-09-13 16:57:40 +00:00
Marcus Hüwe
fbd1fca228 - use correct apiurl when calling meta_exists() 2009-09-12 23:58:56 +00:00
Marcus Hüwe
6ff386b710 - added debian support for "osc build ... --prefer-pkgs /path/to/pkgs/" 2009-09-12 23:55:56 +00:00
Marcus Hüwe
3b0d879753 - added support for the "inject local rpmdata" stuff:
* it's possible to use local packages for a build which don't exist in the obs
  * currently only rpms are supported but debian support will follow soon
2009-09-10 12:18:07 +00:00
56f1f9144b bail out with error message when an incomplete package description is
part of buildinfo. Happens when "Preinstall"ing a non existing package
for example.
2009-09-09 08:17:13 +00:00
Jürgen Weigert
bcb16c3320 more tabs expanded 2009-09-03 19:00:09 +00:00
090e79964c * use a release number setting on local build, if it is given by the server.
Otherwise just use 0 as fallback
2009-08-20 10:45:39 +00:00
Jan-Simon Möller
853c2c5dcb Add support for --overlay and --rsync-{src,dest} to build and osc.
--overlay OVERLAY
              Copy overlay filesystem to buildroot after installing
              all RPMs. This must be a valid directory.
--rsync-src RSYNCSRC
              Copy overlay folder (RSYNCSRC) to a folder (RSYNCDEST)
              inside the buildroot using rsync.
              It will "%define RSYNCDONE 1" for handling %setup in your
              specfile. E.g.:
              %prep
              %if 0%{?RSYNCDONE}
              %setup -n aaa_base -T -D -b 5 -b 7
              %else
              %setup -n aaa_base -b 5 -b 7
              %endif
--rsync-dest RSYNCDEST

Todo: tell rpmbuild not to delete the folders.
2009-08-18 21:28:33 +00:00
Marcus Hüwe
863bd5664d - buildarch (=scheduler/repo arch) should be the correct fallback 2009-08-09 18:10:13 +00:00
690857d452 fix build of multiarch products. This was wrong in general and affected
all builds. So we may see some other breakage somewhere else.
2009-08-06 12:50:53 +00:00
Marcus Hüwe
b742d58794 - determine pacsuffix from buildtype (slightly modified version of David Greaves' <david@dgreaves.com> patch) 2009-08-04 16:01:02 +00:00
Marcus Hüwe
6492b73677 - add partname and fullpartname attributes to Pac() class
- cleanup partial files in case the user hits ctrl-c
2009-07-15 19:48:16 +00:00
Michael Schröder
d57c82fbec - calculate canon name from downloaded rpm, as the server may
give us the wrong/missing information
- also fixes builds with packages from interconnected build services
2009-06-16 12:15:41 +00:00
e46cba2084 - justify comments from Jan-Simon, reflecting that the former behaviour
was a bug actually. Only packages from buildinfo must be available in
  repos.
- add news entry about fixed image building
2009-06-03 11:35:03 +00:00
Jan-Simon Möller
95a935b1dc Link only the needed packages and not the packagecachedir for 'osc build config.kiwi' . 2009-06-03 10:10:51 +00:00
Marcus Hüwe
5b3a55091d - fixed typo 2009-05-15 15:25:09 +00:00
Pavol Rusnak
121b20c63c more fixes for Windows port 2009-05-15 11:40:50 +00:00
Michal Cihar
aedeea317c Drop shebang line from modules (bnc#500971).
(Some did have it and some did not, this way it is consistent and they
are anyway not supposed to be executed directly.)
2009-05-05 14:11:25 +00:00
Martin Mohring
5097f48c50 - fixed: another fix for arm 2009-05-04 21:44:44 +00:00
Martin Mohring
5b4f958cbc - fixed: non cross build arm support 2009-05-04 19:01:17 +00:00
Martin Mohring
528cc81de2 - fixed: let users use osc for arm also on native arm machines 2009-05-04 18:48:41 +00:00
e2524f036d find and list debian sources in build root 2009-04-27 11:44:38 +00:00
8b1882e7a9 * add support for kiwi builds in output results
* fix support for output directories, when they are not a symlink
2009-04-20 13:07:43 +00:00
20f8234d8c support checkout of single packages via "osc co PACKAGE" when local dir
is a project dir.
2009-04-17 08:39:04 +00:00
Ludwig Nussel
299b969324 install gcc-c++ when using icecream (bnc#493550) 2009-04-14 11:33:50 +00:00
Ludwig Nussel
28fa87078d re-add support for urllist config option for compatability 2009-04-14 11:33:45 +00:00
Marcus Hüwe
9ff9a1f151 - fixed #487400: --disable-debuginfo will create no debuginfo packages and --debuginfo will create them. Both override the debuginfo element from the buildinfo 2009-03-31 11:45:30 +00:00
Michael Schröder
b03614dff2 - provide extproject/extrepository reflecting the rexternal tree layout
(i.e. ':' replaced with ':/')
2009-03-13 15:58:55 +00:00
Olaf Kirch
88c5710757 - reverted previous fix, was broken 2009-03-12 16:35:40 +00:00
Olaf Kirch
98d7a04b97 - osc build: properly evaluate debuginfo status in Buildinfo 2009-03-12 16:24:53 +00:00
Marcus Hüwe
296f274f67 - fixed #481208 ('osc build --local-package is completely ineffective') 2009-03-08 23:43:26 +00:00
Dr. Peter Poeml
be4f2b031f Putting names at the top of files is is not recommended. Collective wisdom for
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration.  See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Marcus Hüwe
9935faf3ba - yet another fix for #477690: build: use a cookie when fetching the binaries 2009-02-28 15:56:32 +00:00
Marcus Hüwe
caae2bc8a1 - cleaned up the conf module (I hope I didn't break anything):
* basically get rid of the scheme and apisrv mess - instead directly use the apiurl (== <protocol>://<host>) for everything
  * some other minor cleanups here and there
  * everyone who has a scheme or apisrv entry in his ~/.oscrc will get a deprecation warning but it's still working (at some point in the future we might remove these code paths)
  * when writing a new ~/.oscrc store the apiurl in the conffile [fixes #478054]
- while being at it:
  * fixed #478054 ("osc asks for build.o.o credential even if -A<somelocalapi> is always used")
  * fixed #478052 ("osc backtrace on password entry (first startup)")
2009-02-23 23:29:32 +00:00
7a9970473f import a fix from mls for getting product builds working.
(Adapted to my changes from an hour ago)
2009-02-20 15:01:16 +00:00
7ced81880e do really skip package verification when building within a VM 2009-02-20 14:03:19 +00:00
60f8d9543b take care about server side configured vminstall packages 2009-02-20 13:45:00 +00:00
4369deaf10 * add support for VM (kvm or xen) builds
* update NEWS file
2009-02-20 12:49:17 +00:00
c6f70d7506 remove hardcoded download server and use download server as reported by
the rep server.
This is fixing all non-opensuse.org build service instances.
2009-02-20 09:36:20 +00:00
7589a20da7 revert last change. We must not build for local, but for a real arch.
While kiwi runs architecture neutral in product mode, we do still need
dependency calculation for setting up the kiwi runtime enviroment.
2009-02-06 04:30:21 +00:00
cbdbb9516c add local architecture to enable product building 2009-02-06 03:25:08 +00:00
Marcus Hüwe
ee64ab6954 - added support for format strings like "%(project)s" and "%(package)s" which can be used in the build-root config option.
For example one could use a new chroot for each package.
2009-01-09 16:12:45 +00:00
Marcus Hüwe
8092b317ed - removed unused varialbe 2008-12-11 12:17:26 +00:00
Ludwig Nussel
e33b48f5b0 add support for more build options
--icecream
--ccache
--with
--without
2008-12-11 11:36:07 +00:00
Marcus Hüwe
eb96e53784 - small fix in debuginfo handling (accidentally used a string in a bool expression...) 2008-12-10 22:38:00 +00:00
Martin Mohring
61cc90b31b - added: new armv7el arch for all binaries for up to ARMv7 EABI with VFP 2008-12-05 21:45:11 +00:00
Marcus Hüwe
c1b99b041f - fixed importsrcpkg doc
- osc build: if --keep-pkgs is used also save the src.rpm
2008-11-29 13:32:25 +00:00
Marcus Hüwe
7172db474e - osc build:
* some cleanups in the crossbuild part
* call the build script with the --arch parameter
2008-11-28 19:37:55 +00:00
Martin Mohring
61740adee9 - added: missing last parts of Cross Development support
* although other targets do work, only activated arm and sh4 targets for Cross Build
   * powerpc could also be used for Cross Build, but uses Native Build atm
   * thes limited switching on of Cross Build is due to a new interface for workers that will handle workers with *super capabilites* in the future.
   * then you can configure Cross Build at configure/runtime, not by changing the code
2008-11-22 16:38:40 +00:00
Dr. Peter Poeml
8383e9e895 osc build:
* rework buildinfo parser. 
 * handle new (or rather, future) attributes
   named noinstall, package (we call it repopackage), repoarch.
 * handle kiwi builds.
The urllist template (for constructing download URLs) was changed to 
make the '_repository' part variable.
2008-11-22 10:55:33 +00:00
Martin Mohring
9db331184b - added: support for ARMv5 EABI little endian arch 2008-11-17 01:03:49 +00:00
Dr. Peter Poeml
6e65c8d7cb osc/fetch.py: execute processes avoiding the use of a shell 2008-11-14 22:32:39 +00:00
Marcus Hüwe
bfe54fd4e0 fixed detection of the build type (rpm or deb) - this was caused by the recent bs_repserver changes (r5566) 2008-11-12 23:51:43 +00:00
Marcus Hüwe
bb254bef2b - build debuginfo packages if this is enabled in the project/package meta (this partly fixes #421390) 2008-10-31 15:41:19 +00:00
Marcus Hüwe
16d47f03b5 - fixed #431434 - we don't need a working copy anymore when building a local package 2008-10-14 10:38:22 +00:00
Marcus Hüwe
1e1ec418cc - fix deprecation warnings on factory (python26) 2008-10-11 20:26:45 +00:00
Marcus Hüwe
99732545b4 pass the --debug option to the build script which will take care of creating debuginfo packages 2008-09-24 13:13:33 +00:00
Susanne Oberhauser
f7d2a690f5 - extend the 'auth_dict' to more generic per-host options 'api_host_options'
This allows in a next step to add per-host extra http-headers,
  here for special authentication purposes.
2008-08-20 09:45:49 +00:00
Dr. Peter Poeml
f82ea05051 osc build: moved the architecture check more to the top. Now we first check
whether we can build for the target architecture, *before* we start downloading
packges.
2008-08-15 14:04:27 +00:00
Dirk Mueller
048414088f - implement --no-checks for osc build
- make osc submitreq succeed for submitting new packages
  (previously the develproject check caused it to abort prematurely)
2008-07-23 20:05:09 +00:00
Dr. Peter Poeml
cdab0b19ea - osc build: make the --extra-pkgs option configurable via .oscrc.
Default is "extra-pkgs = vim gdb strace" -- and it can be overridden with -x ''
  on the commandline, or set to empty in the config.  [bnc#345142]
- make tilde expansion work on the packagecachedir setting
2008-07-12 12:06:23 +00:00
Marcus Hüwe
010c0ae7a0 fixed typo 2008-07-04 12:56:32 +00:00
Dirk Mueller
252e2a3e63 release is optional (doesn't exist on debian) 2008-06-23 08:38:05 +00:00
Dirk Mueller
1be2163733 double check the correctness of the build info for local build,
otherwise packages are stored incorrectly in the package cache
and that might cause problems later. Also refuse to build an
architecture locally that is not supported by the host architecture
2008-06-20 13:37:49 +00:00
Dr. Peter Poeml
dd9d1cb49f osc build: handle exception when getting buildinfo fails, for cases != 404 2008-06-12 12:12:29 +00:00
Marcus Hüwe
34e7822bbb - added --baselibs option to osc build 2008-05-08 12:21:57 +00:00
Marcus Hüwe
f041ee43ba - use absolute pathnames for preferred package dirs 2008-05-04 14:00:42 +00:00
Marcus Hüwe
2440bed285 - added --job option to the do_build() command. (this option will be passed to build script) 2008-04-24 09:00:23 +00:00
Marcus Hüwe
80ab6bf345 - fixed bug #359846:
the BUILD_DIST environment variable will be ignored by osc
- the following environment variables can still be used:
  # OSC_SU_WRAPPER overrides the setting of su-wrapper. 
  # OSC_BUILD_ROOT overrides the setting of build-root.
  # OSC_PACKAGECACHEDIR overrides the setting of packagecachedir.
  (now they're documented in the helptext)
2008-04-09 18:45:59 +00:00
Dr. Peter Poeml
3f244d4b23 remove two stray lines which sneaked into osc/build.py with the last commit 2008-03-11 15:34:42 +00:00
Jürgen Weigert
0334ea4218 add --debuginfo switch to osc build 2008-03-11 15:18:02 +00:00
Dr. Peter Poeml
8d52b94a6f - osc build: if the build fails, print out the buildroot, so it it at hand for debugging 2008-01-24 18:18:03 +00:00
Dr. Peter Poeml
63e4d8da3c - osc build: add --no-verify, to skip the package signature verification step 2008-01-24 18:06:45 +00:00
Marcus Hüwe
0e9e76ea68 - build: use the apiurl which is stored in the storedir (.osc/_apiurl)
when running osc build.
  This should fix bug #355144
2008-01-23 19:37:44 +00:00
Dr. Peter Poeml
646be729e7 fix display of built rpms in build.py (when did that broke??)
thereby fixing osc build --keep-pkgs
2008-01-22 23:49:31 +00:00
Marcus Hüwe
c6249087f9 fixed typo: borken -> broken 2008-01-11 16:44:08 +00:00
Marcus Hüwe
5306a78503 - added two new options to osc build:
* --local-package: use this option if you're trying to build a
    package which doesn't exist on the server
  * --alternative-project <project>: use this option to specify an
    alternative project if the current project doesn't exist on the
    server, e.g.: osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
- some other minor cleanups in build.py
- get_repos_of_project() is now a generator function
2008-01-07 14:54:31 +00:00
Dr. Peter Poeml
bd9ae2fd05 print the list of URL to try, when in HTTP debug mode 2007-09-10 12:22:13 +00:00
Dr. Peter Poeml
459651ed60 make osc call build with --changelog option, by default [#298436] 2007-09-03 10:25:18 +00:00
Dr. Peter Poeml
da6f6c4a8a build: add --changelog option to force update of the package changelog from a changes file 2007-08-14 11:26:13 +00:00
Dr. Peter Poeml
05b47f7f98 - commit: switch to new commit mode also if the -F switch is used
- update NEWS file
2007-07-16 17:30:48 +00:00
Dr. Peter Poeml
c895de414e osc build: add --userootforbuild option 2007-05-14 08:29:50 +00:00
Dr. Peter Poeml
59cf753cc8 build: for buildinfo, post the specfile's content instead of its name... fixing introduced introduced with the last change 2007-05-12 20:18:23 +00:00
Dr. Peter Poeml
cb61461fb4 - build & buildinfo:
- implement --extra-pkgs option
  - pass the list of extra packages to the backend, as "add=pkg" query parameters
  - use osc.core.get_buildinfo(), instead of os.system('osc buildinfo ...')
- implement adding query parameters to constructed URLs in a more generic way
2007-05-09 09:36:55 +00:00
Dr. Peter Poeml
5739a5c262 build: call rpm command for preferred rpms with --nosignature --nodigest 2007-05-04 21:40:35 +00:00
Dr. Peter Poeml
4a2c675e6e - build:
- rename --prefer-pacs option to --prefer-pkgs
  - implement --keep-pkgs option
2007-05-03 15:54:40 +00:00
Dr. Peter Poeml
877f8b5ad7 - build:
- implement --prefer-pacs option
  - finished the help text that I started last time
  - rename buildconf -> rpmlist for the sake of consistency
2007-05-02 13:49:57 +00:00
Dr. Peter Poeml
60bc70dc7a applied patch from Michael Marek, fixing all places where error messages were
printed to stdout instead of stderr. [#239404]
2007-04-25 21:10:49 +00:00
Dr. Peter Poeml
354c01be55 - build: fix passing of commandline options and arguments to build.main(),
which was still using sys.argv
- build: use own api server as upstream URL in urllist. So far,
  api.opensuse.org was hardcoded in the download URL [#265211].
2007-04-25 11:22:40 +00:00
Dr. Peter Poeml
36359996f0 remove debug print of tempfile name 2007-04-18 00:23:49 +00:00
Dr. Peter Poeml
0ba494298e - build:
- use <bdep> preinstall attribute instead of obsolete <pdep> element
  - use <bdep> runscripts attribute and hand it over to build in the buildinfo
2007-03-28 23:37:34 +00:00
Dr. Peter Poeml
7f4ed364f0 run build with --norootforbuild, thereby defaulting to build as abuild user 2007-03-21 00:29:10 +00:00
Dr. Peter Poeml
76632513cc - apply fix from Christoph Thiel to use cElementTree from Python 2.5 2007-03-12 20:00:47 +00:00
David Mayr
6af51a1652 corrected little typo 2007-01-06 05:13:05 +00:00
Dr. Peter Poeml
baafea955b - add 'edituser' command for editing the metadata of a user account. It tries
to create a user if it doesn't exist yet. A new command 'usermeta' replaces
  'id' respectively 'userid'.
- add preliminary support for doing uploads with a subsequent "commit" request
  (not switched on now, since I want to do more testing on this, and there is
  no way to pass on a commit message yet anyway.)
- add runtime check for build.rpm version, so the rpm package dependencies is
  no longer required
- fix typo introduced last time in the editmeta, deletepac, deleteprj commands
- rewrite the PUT and DELETE request methods to 
  - transparently handle HTTPS 
  - handle path parameters (for commits)
  - send user agent
- rename get_user_id() function to get_user_meta()
- change copyright notice from Peter Poeml to Peter Poeml / Novell Inc.
- fix testsuite
- add CREDITS file
2006-10-12 13:22:56 +00:00
Dr. Peter Poeml
39779ec9bc - rewrite configuration handling
- move all configuration code into module osc/conf.py
  - now, the API server can be configured in .oscrc with
    apisrv = ...
  - also, 'scheme' (http/https) is no longer a module variable but can be
    configured
  - all config is in DEFAULT
- ignore vim swap files
- use urllib() convenience wrapper in some functions that used
  urllib2.urlopen() and had their own error handling. Instead, it seems to make
  sense -- in the future-- to create our own errors and propagate them up, in
  cases where the error handling of urlopen() is too generic
- rename get_slash_source() to meta_get_project_list() for consistency
- show local time in get_buildhistory(), not UTC
- rewrite help text of 'rebuildpac' command
- allow to run commandline.py from the commandline (without the wrapper)
- don't send a space when doing a POST request without body
2006-10-10 14:04:34 +00:00
Dr. Peter Poeml
46b12c1df1 build: fix finding of built packages in the end of the build 2006-09-15 16:17:49 +00:00
Dr. Peter Poeml
41c2524691 fix dynamical build-root setting (r729) 2006-09-15 16:13:15 +00:00
Dr. Peter Poeml
b0011af9a8 build: error checking on external commands 2006-09-15 16:11:19 +00:00
Dr. Peter Poeml
26ef33195e change order of 'BUILD_ROOT', 'OSC_BUILD_ROOT' so the latter overrides the former 2006-09-15 14:35:09 +00:00
Dr. Peter Poeml
0631e8fcb1 - let environment variables OSC_SU_WRAPPER OSC_BUILD_ROOT override config values 2006-09-15 14:27:40 +00:00
Dr. Peter Poeml
51247e7a7c build: allow 'dynamical' build-root setting by using %(repo)s and %(arch)s 2006-09-15 14:26:09 +00:00
Dr. Peter Poeml
aa248dde9f - implement POSTing of local specfile to get real buildinfo
- extend urlopen() so it takes data for optional POST
  - extend get_buildinfo() to take optional specfile argument
  - osc.build.main: send specfile to server
  - buildinfo(): accept specfile as third argument, and document it
2006-09-15 11:47:34 +00:00
Dr. Peter Poeml
c52baf09f7 fix usage of personality wrappers 2006-07-17 13:53:17 +00:00
Dr. Peter Poeml
686eb637c8 build: when called without arguments, show only architectures that can be built on the local machine 2006-07-17 13:38:37 +00:00
Dr. Peter Poeml
545222f9b7 build: make it possible to override urllist (the list of urls where packages are downloaded in the config file 2006-07-17 13:14:17 +00:00
Dr. Peter Poeml
e6fedfcf8a if configuration is overridden by envvars, print out a statement about it 2006-07-17 10:36:26 +00:00
Dr. Peter Poeml
77d66c81a3 don't try to find built packages when the build wasn't complete 2006-07-14 18:31:35 +00:00
Dr. Peter Poeml
11845654ac if only .netrc is found, automatically create a ready-to-go .oscrc 2006-07-14 18:21:35 +00:00
Dr. Peter Poeml
20a13e7b3b - bump version (0.7)
- initial support for local builds (subcommand 'build')
2006-07-14 17:39:46 +00:00