]> git.e2factory.org Git - e2factory.git/log
e2factory.git
5 years agogit: tolerate improper configuration of source for development
Tobias Ulmer [Fri, 3 May 2019 17:38:08 +0000 (19:38 +0200)]
git: tolerate improper configuration of source for development

Often one wants to create a git repo and start doing some explorative
work without setting up the repository on the server.

Allow this by downgrading the error messages to very loud warnings. Will
still fail to build in release mode.

Due to design limitations, multiple warnings may appear, but this might
be considered a good thing by some.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
5 years agogit: use policy module to reliably access flags
Tobias Ulmer [Fri, 3 May 2019 17:35:35 +0000 (19:35 +0200)]
git: use policy module to reliably access flags

Signed-off-by: Tobias Ulmer <tu@emlix.com>
5 years agogit: missed variable declaration in _check_git_remote()
Tobias Ulmer [Fri, 3 May 2019 17:32:22 +0000 (19:32 +0200)]
git: missed variable declaration in _check_git_remote()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
5 years agogit: optionally skip workdir checkout
Tobias Ulmer [Fri, 3 May 2019 17:20:16 +0000 (19:20 +0200)]
git: optionally skip workdir checkout

Skips workdir checkout on git clone, like in older versions of
e2factory.  This may help to speed up fetch-sources of very large repos
and reduces disk space requirements in some scenarios (CI).

It's currently not documented and may go away. For one, configuring it
via the source config is a little awkward.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
5 years agogit: commitid and empty branch are not yet ready
Tobias Ulmer [Fri, 3 May 2019 17:16:50 +0000 (19:16 +0200)]
git: commitid and empty branch are not yet ready

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agonew-source: fix assertion and set up default build-mode
Tobias Ulmer [Thu, 25 Apr 2019 16:31:29 +0000 (18:31 +0200)]
new-source: fix assertion and set up default build-mode

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agofetch-sources: more consistent logging
Tobias Ulmer [Wed, 24 Apr 2019 16:54:55 +0000 (18:54 +0200)]
fetch-sources: more consistent logging

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2tool: access command line options more safely
Tobias Ulmer [Wed, 24 Apr 2019 16:52:42 +0000 (18:52 +0200)]
e2tool: access command line options more safely

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agopolicy: wrappers to access command line options
Tobias Ulmer [Wed, 24 Apr 2019 16:52:22 +0000 (18:52 +0200)]
policy: wrappers to access command line options

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git.current_branch: fix output
Tobias Ulmer [Wed, 10 Apr 2019 17:24:14 +0000 (19:24 +0200)]
generic_git.current_branch: fix output

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogit: _check_git_remote: don't fail with unrelated msg if remote doesn't exist
Tobias Ulmer [Tue, 9 Apr 2019 14:15:05 +0000 (16:15 +0200)]
git: _check_git_remote: don't fail with unrelated msg if remote doesn't exist

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: new git_config_table() returns all settings in a dictionary
Tobias Ulmer [Tue, 9 Apr 2019 14:05:50 +0000 (16:05 +0200)]
generic_git: new git_config_table() returns all settings in a dictionary

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: add current_branch()
Tobias Ulmer [Tue, 9 Apr 2019 14:04:40 +0000 (16:04 +0200)]
generic_git: add current_branch()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: misuse of warnf() should trigger an assertion
Tobias Ulmer [Tue, 9 Apr 2019 14:01:27 +0000 (16:01 +0200)]
e2lib: misuse of warnf() should trigger an assertion

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: add experimental support for loading .e2/e2.conf.local
Tobias Ulmer [Wed, 20 Mar 2019 16:42:04 +0000 (17:42 +0100)]
e2lib: add experimental support for loading .e2/e2.conf.local

config {} entries in this file will be merged into the regular e2.conf
rmconfig {} entries set to true will be removed from e2.conf

If --e2-config is given, e2.conf.local will not be loaded.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: support e2.conf config.site.tmpdir setting and E2_TMPDIR
Tobias Ulmer [Tue, 19 Mar 2019 16:38:42 +0000 (17:38 +0100)]
e2lib: support e2.conf config.site.tmpdir setting and E2_TMPDIR

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: improve verification of e2.conf some more
Tobias Ulmer [Mon, 18 Mar 2019 19:51:49 +0000 (20:51 +0100)]
e2lib: improve verification of e2.conf some more

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: improve e2.conf verification
Tobias Ulmer [Fri, 15 Mar 2019 17:20:54 +0000 (18:20 +0100)]
e2lib: improve e2.conf verification

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogit: if branch does not exists, use the remotes branch
Tobias Ulmer [Mon, 4 Mar 2019 15:48:09 +0000 (16:48 +0100)]
git: if branch does not exists, use the remotes branch

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoadjust to generic_git.list_refs changes
Tobias Ulmer [Wed, 6 Mar 2019 18:15:37 +0000 (19:15 +0100)]
adjust to generic_git.list_refs changes

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: try to disambiguate "remote" and be more explicit
Tobias Ulmer [Wed, 6 Mar 2019 18:07:58 +0000 (19:07 +0100)]
generic_git: try to disambiguate "remote" and be more explicit

While "origin" can sometimes be part of a ref, it's not a ref. Don't
pretend otherwise.
Attempt to make it more obvious when we're connecting to a remote repo
vs. working on the local repo.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: add git_url_cache to turn server:location into git url
Tobias Ulmer [Wed, 6 Mar 2019 18:03:10 +0000 (19:03 +0100)]
generic_git: add git_url_cache to turn server:location into git url

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: log build step
Tobias Ulmer [Mon, 4 Mar 2019 15:21:33 +0000 (16:21 +0100)]
e2build: log build step

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: use arg instead of reinventing the wheel
Tobias Ulmer [Fri, 1 Mar 2019 16:24:00 +0000 (17:24 +0100)]
generic_git: use arg instead of reinventing the wheel

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: sprinkle some asserts
Tobias Ulmer [Fri, 1 Mar 2019 16:23:28 +0000 (17:23 +0100)]
generic_git: sprinkle some asserts

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoassrt: return important arguments similar to assert()
Tobias Ulmer [Fri, 1 Mar 2019 16:15:29 +0000 (17:15 +0100)]
assrt: return important arguments similar to assert()

assert() returns all argument, which is easy to do with the C interface
but complicates the Lua code. It also doesn't seem all that useful.

Instead we return the primary argument(s) only.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agouse generic_git helper functions
Tobias Ulmer [Thu, 28 Feb 2019 19:14:17 +0000 (20:14 +0100)]
use generic_git helper functions

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: make list_refs() a public interface
Tobias Ulmer [Thu, 28 Feb 2019 18:58:46 +0000 (19:58 +0100)]
generic_git: make list_refs() a public interface

Optionally takes a git remote string instead of the default "origin"

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogit: write git archive error messages to debug.log
Tobias Ulmer [Thu, 28 Feb 2019 18:39:33 +0000 (19:39 +0100)]
git: write git archive error messages to debug.log

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogit: include source name in error message
Tobias Ulmer [Thu, 28 Feb 2019 18:34:15 +0000 (19:34 +0100)]
git: include source name in error message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: wait: fix log message on EINTR
Tobias Ulmer [Wed, 20 Feb 2019 16:10:12 +0000 (17:10 +0100)]
e2lib: wait: fix log message on EINTR

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: for interactive playground use, setup standard file descriptors
Tobias Ulmer [Mon, 18 Feb 2019 18:32:46 +0000 (19:32 +0100)]
e2build: for interactive playground use, setup standard file descriptors

Because we request a pty for signaling purposes, interactive use of the
shell isn't possible. To enable interactive use, duplicate the standard
descriptors of the parent and set them up in the child which will end
up being bash.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: use e2lib.get_tool_flags_argv_e2_su_2_2
Tobias Ulmer [Mon, 18 Feb 2019 18:31:48 +0000 (19:31 +0100)]
e2build: use e2lib.get_tool_flags_argv_e2_su_2_2

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: e2_su_2_2 factor out tool command construction
Tobias Ulmer [Mon, 18 Feb 2019 18:26:03 +0000 (19:26 +0100)]
e2lib: e2_su_2_2 factor out tool command construction

e2lib.get_tool_flags_argv_e2_su_2_2 is now used to return the various
possible combinations of e2-su-2.2 calls, ready for arguments to be
inserted.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: extend call_tool_argv to return exit code of tool
Tobias Ulmer [Mon, 18 Feb 2019 18:23:47 +0000 (19:23 +0100)]
e2lib: extend call_tool_argv to return exit code of tool

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoeio: implement dup()
Tobias Ulmer [Mon, 18 Feb 2019 17:03:15 +0000 (18:03 +0100)]
eio: implement dup()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogit: use appropriate wait wrapper
Tobias Ulmer [Fri, 15 Feb 2019 11:20:00 +0000 (12:20 +0100)]
git: use appropriate wait wrapper

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agocall e2-su-2.2 and sudo with pty=true
Tobias Ulmer [Fri, 15 Feb 2019 11:07:31 +0000 (12:07 +0100)]
call e2-su-2.2 and sudo with pty=true

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2tool: disable write buffering for debug.log
Tobias Ulmer [Fri, 15 Feb 2019 11:05:05 +0000 (12:05 +0100)]
e2tool: disable write buffering for debug.log

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2: install signal handler and dispose our subprocess
Tobias Ulmer [Fri, 15 Feb 2019 11:03:53 +0000 (12:03 +0100)]
e2: install signal handler and dispose our subprocess

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: callcmd: add argument to run command under a pseudo tty
Tobias Ulmer [Fri, 15 Feb 2019 10:53:40 +0000 (11:53 +0100)]
e2lib: callcmd: add argument to run command under a pseudo tty

Running under a pseudo tty allows using the TIOCSIG ioctl to terminate
non-user owned processes, in particular setuid programs like e2-su or
sudo.

Various improvements around signal handling during forking, with better
error handling and reporting.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: finish: if we received a signal, exit with the signal code
Tobias Ulmer [Fri, 15 Feb 2019 10:42:08 +0000 (11:42 +0100)]
e2lib: finish: if we received a signal, exit with the signal code

Receiving a signal causes subsequent errors which hide the true cause
for termination. Make sure we always exit with 128 + signalno and let
the user know that above errors were caused by a signal.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: interrupt_hook: send interrupt to children
Tobias Ulmer [Fri, 15 Feb 2019 10:38:28 +0000 (11:38 +0100)]
e2lib: interrupt_hook: send interrupt to children

note interrupt_hook() no longer terminates e2factory

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: add children_.. functions to track and terminate sub processes
Tobias Ulmer [Fri, 15 Feb 2019 10:27:04 +0000 (11:27 +0100)]
e2lib: add children_.. functions to track and terminate sub processes

If a child process has an associated pseudo terminal, it's terminated
via TIOCSIG ioctl, otherwise the standard kill() function is used.

Allows us to interrupt root-owned children (eg e2-su, sudo, ...)

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: support waitpid WNOHANG with wait(pid, true)
Tobias Ulmer [Fri, 15 Feb 2019 10:10:45 +0000 (11:10 +0100)]
e2lib: support waitpid WNOHANG with wait(pid, true)

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoMakefile: link against libutil, required by forkpty()
Tobias Ulmer [Wed, 13 Feb 2019 19:01:37 +0000 (20:01 +0100)]
Makefile: link against libutil, required by forkpty()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoassrt: pass optional message to assert()
Tobias Ulmer [Wed, 13 Feb 2019 18:42:37 +0000 (19:42 +0100)]
assrt: pass optional message to assert()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: close unused sync pipe ends before reading from child
Tobias Ulmer [Wed, 13 Feb 2019 18:24:56 +0000 (19:24 +0100)]
e2lib: close unused sync pipe ends before reading from child

Otherwise we could end up in a situation where we wait for a faulty
child, but hang reading our own pipe.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: handle read EINTR in poll loop
Tobias Ulmer [Wed, 13 Feb 2019 17:50:12 +0000 (18:50 +0100)]
e2lib: handle read EINTR in poll loop

Maybe eio.read() should generally loop on EINTR?

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: rename: don't shadow the errno module
Tobias Ulmer [Wed, 13 Feb 2019 17:48:53 +0000 (18:48 +0100)]
e2lib: rename: don't shadow the errno module

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: wait: format log message
Tobias Ulmer [Wed, 13 Feb 2019 17:45:36 +0000 (18:45 +0100)]
e2lib: wait: format log message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: handle EINTR in poll() and wait()
Tobias Ulmer [Wed, 13 Feb 2019 14:11:11 +0000 (15:11 +0100)]
e2lib: handle EINTR in poll() and wait()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agotransport: rename file instead of calling mv
Tobias Ulmer [Wed, 13 Feb 2019 13:55:17 +0000 (14:55 +0100)]
transport: rename file instead of calling mv

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: block other signals during signal handler execution
Tobias Ulmer [Tue, 12 Feb 2019 18:55:07 +0000 (19:55 +0100)]
le2lib: block other signals during signal handler execution

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: add a ioctl(TIOCSIG) wrapper function
Tobias Ulmer [Tue, 12 Feb 2019 18:52:44 +0000 (19:52 +0100)]
le2lib: add a ioctl(TIOCSIG) wrapper function

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: add functions to block and unblock signals
Tobias Ulmer [Tue, 12 Feb 2019 18:24:28 +0000 (19:24 +0100)]
le2lib: add functions to block and unblock signals

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: implement forkpty
Tobias Ulmer [Tue, 12 Feb 2019 18:06:05 +0000 (19:06 +0100)]
e2lib: implement forkpty

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoeio: log pipe file descriptors
Tobias Ulmer [Mon, 11 Feb 2019 19:11:17 +0000 (20:11 +0100)]
eio: log pipe file descriptors

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: poll: provide information about POLLERR/POLLHUP/POLLNVAL
Tobias Ulmer [Mon, 11 Feb 2019 18:00:14 +0000 (19:00 +0100)]
le2lib: poll: provide information about POLLERR/POLLHUP/POLLNVAL

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: return errno value from poll
Tobias Ulmer [Mon, 11 Feb 2019 17:58:01 +0000 (18:58 +0100)]
le2lib: return errno value from poll

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: return errno value from waitpid
Tobias Ulmer [Mon, 11 Feb 2019 17:57:17 +0000 (18:57 +0100)]
le2lib: return errno value from waitpid

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agole2lib: stop calling fflush in the fork wrapper
Tobias Ulmer [Mon, 11 Feb 2019 17:56:05 +0000 (18:56 +0100)]
le2lib: stop calling fflush in the fork wrapper

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoeio: use luaL_error
Tobias Ulmer [Mon, 11 Feb 2019 17:48:54 +0000 (18:48 +0100)]
eio: use luaL_error

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoeio: add fflush()
Tobias Ulmer [Mon, 11 Feb 2019 17:47:34 +0000 (18:47 +0100)]
eio: add fflush()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: if logf() format fails, abort with helpful message
Tobias Ulmer [Fri, 25 Jan 2019 16:11:58 +0000 (17:11 +0100)]
e2lib: if logf() format fails, abort with helpful message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agotools: fix undeclared variable in error message
Tobias Ulmer [Wed, 9 Jan 2019 12:21:51 +0000 (13:21 +0100)]
tools: fix undeclared variable in error message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agofiles: fix collect project whitespace handling in file names
Tobias Ulmer [Tue, 20 Nov 2018 18:56:46 +0000 (19:56 +0100)]
files: fix collect project whitespace handling in file names

This closes bz#239.

Also fixes a rare issue with the copying of files into an existing
directory.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2tool: open debug.log after loading e2.conf
Tobias Ulmer [Mon, 19 Nov 2018 17:00:41 +0000 (18:00 +0100)]
e2tool: open debug.log after loading e2.conf

Makes debug.log respect config.log.logrotate.
Closes bz#236.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agolock: provide instructions to fix a locked chroot
Tobias Ulmer [Mon, 12 Nov 2018 18:08:12 +0000 (19:08 +0100)]
lock: provide instructions to fix a locked chroot

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: document git_remote_add() and improve remote handling
Tobias Ulmer [Fri, 9 Nov 2018 16:28:17 +0000 (17:28 +0100)]
generic_git: document git_remote_add() and improve remote handling

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: add a few helpers for formatting refs
Tobias Ulmer [Fri, 9 Nov 2018 16:22:44 +0000 (17:22 +0100)]
generic_git: add a few helpers for formatting refs

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agofiles: add support for .tbz2 archives
Tobias Ulmer [Thu, 25 Oct 2018 13:19:51 +0000 (15:19 +0200)]
files: add support for .tbz2 archives

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agofetch-project: enforce mutual exclusivness of --tag and --branch
Tobias Ulmer [Tue, 18 Sep 2018 17:55:01 +0000 (19:55 +0200)]
fetch-project: enforce mutual exclusivness of --tag and --branch

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agofetch-project: fix detached HEAD status when using --branch
Tobias Ulmer [Tue, 18 Sep 2018 17:36:17 +0000 (19:36 +0200)]
fetch-project: fix detached HEAD status when using --branch

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2-new-source: load project after option handling
Tobias Ulmer [Fri, 7 Sep 2018 15:20:22 +0000 (17:20 +0200)]
e2-new-source: load project after option handling

6 years agogeneric_git: documentation
Tobias Ulmer [Fri, 7 Sep 2018 15:17:56 +0000 (17:17 +0200)]
generic_git: documentation

6 years agoe2build: display longer more of the scratch buildid
Tobias Ulmer [Fri, 7 Sep 2018 15:14:07 +0000 (17:14 +0200)]
e2build: display longer more of the scratch buildid

6 years agocollect_project: in wc-mode, return a scratch buildid
Tobias Ulmer [Fri, 7 Sep 2018 14:10:24 +0000 (16:10 +0200)]
collect_project: in wc-mode, return a scratch buildid

Due to hashing the dependant results of a cp result, the scratch buildid
status was dropped from the buildid. Aside from an unlikely hash collision,
this does not affect other build modes, but is of course not correct.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agopolicy: document handle_commandline_options
Tobias Ulmer [Mon, 22 Jan 2018 17:29:26 +0000 (18:29 +0100)]
policy: document handle_commandline_options

6 years agoUnify git refs formatting
Tobias Ulmer [Mon, 15 Jan 2018 17:49:23 +0000 (18:49 +0100)]
Unify git refs formatting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agogeneric_git: turn errors into assertion
Tobias Ulmer [Thu, 11 Jan 2018 15:03:43 +0000 (16:03 +0100)]
generic_git: turn errors into assertion

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: fix locate_project_root
Tobias Ulmer [Fri, 22 Dec 2017 15:03:38 +0000 (16:03 +0100)]
e2lib: fix locate_project_root

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agolock: log errors on cleanup, improve
Tobias Ulmer [Thu, 21 Dec 2017 19:33:37 +0000 (20:33 +0100)]
lock: log errors on cleanup, improve

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoerr: add tostring() method
Tobias Ulmer [Thu, 21 Dec 2017 19:31:56 +0000 (20:31 +0100)]
err: add tostring() method

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: don't close debuglogfile early, improve performance
Tobias Ulmer [Thu, 21 Dec 2017 19:30:56 +0000 (20:30 +0100)]
e2lib: don't close debuglogfile early, improve performance

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: check for chroot removal, add error message for common issue
Tobias Ulmer [Thu, 21 Dec 2017 15:24:18 +0000 (16:24 +0100)]
e2build: check for chroot removal, add error message for common issue

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: clarify creation of directories
Tobias Ulmer [Thu, 21 Dec 2017 15:21:53 +0000 (16:21 +0100)]
e2build: clarify creation of directories

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: ouch, repair error handling in helper_chroot_remove()
Tobias Ulmer [Thu, 21 Dec 2017 14:28:20 +0000 (15:28 +0100)]
e2build: ouch, repair error handling in helper_chroot_remove()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoImprove robustness of signal handling
Tobias Ulmer [Wed, 20 Dec 2017 18:03:13 +0000 (19:03 +0100)]
Improve robustness of signal handling

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2lib: don't call chdir in rmtempdirs
Tobias Ulmer [Wed, 20 Dec 2017 17:38:38 +0000 (18:38 +0100)]
e2lib: don't call chdir in rmtempdirs

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoeio: luaL_argerror never returns, but it helps gcc warnings
Tobias Ulmer [Wed, 20 Dec 2017 13:30:00 +0000 (14:30 +0100)]
eio: luaL_argerror never returns, but it helps gcc warnings

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoconsole: set stderr to unbuffered
Tobias Ulmer [Thu, 23 Nov 2017 14:56:08 +0000 (15:56 +0100)]
console: set stderr to unbuffered

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: use result_build_set to skip build steps
Tobias Ulmer [Thu, 23 Nov 2017 14:35:03 +0000 (15:35 +0100)]
e2build: use result_build_set to skip build steps

Remove return_flags.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoIntroduce build_set and result_build_set.
Tobias Ulmer [Thu, 16 Nov 2017 16:37:56 +0000 (17:37 +0100)]
Introduce build_set and result_build_set.

A build set contains a result build sets for each result we want to
build. The result build set contains all configurable settings, modes,
etc. on a per result basis.
This change disentangles all build specific parameters from the static
project configuration.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoresult: split build_config() into builtin_env()
Tobias Ulmer [Tue, 14 Nov 2017 15:22:13 +0000 (16:22 +0100)]
result: split build_config() into builtin_env()

Builtin env requires a BuildID, which in turn requires a fully set up
result with build modes etc. just to figure out the temporary directory.

Thus it makes sense to split build_config() into two methods operations,
with only builtin_env() requiring full setup work.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2build: fix ldoc tag
Tobias Ulmer [Tue, 14 Nov 2017 13:19:41 +0000 (14:19 +0100)]
e2build: fix ldoc tag

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoerr: fix ldoc tags
Tobias Ulmer [Tue, 14 Nov 2017 13:02:49 +0000 (14:02 +0100)]
err: fix ldoc tags

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2tool: remove unused print_selection and selected marker
Tobias Ulmer [Fri, 3 Nov 2017 18:13:26 +0000 (19:13 +0100)]
e2tool: remove unused print_selection and selected marker

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agomove build mode and settings into the build process
Tobias Ulmer [Thu, 2 Nov 2017 19:25:37 +0000 (20:25 +0100)]
move build mode and settings into the build process

Signed-off-by: Tobias Ulmer <tu@emlix.com>
6 years agoe2tool: false is a valid value in settings
Tobias Ulmer [Fri, 27 Oct 2017 17:00:39 +0000 (19:00 +0200)]
e2tool: false is a valid value in settings

Signed-off-by: Tobias Ulmer <tu@emlix.com>