Commit Graph

23 Commits

Author SHA1 Message Date
Marcus Schäfer
36077bb4ce
Partially revert dcounter.c flaw report
I could not find a problem with this read call
it does check on the buffer boundaries and it
only writes the bytes that read returns until
read returns <= 0
2020-11-18 13:33:09 +01:00
Marcus Schäfer
71699c4a3e
Fixed dcounter.c flaw report
Check buffer boundaries if used in a loop
2020-11-18 13:19:31 +01:00
Marcus Schäfer
6949812444
Fixed dcounter.c flaw report
Variable scope can be reduced and useless value assignment.
2020-11-18 13:06:35 +01:00
Marcus Schäfer
fab1165784
Move tools README to ReST 2020-11-17 17:13:47 +01:00
Marcus Schäfer
68bb57caae
Fixed Incorrect list-item indent 2020-11-17 17:11:14 +01:00
Marcus Schäfer
d85afc46e7
Fixed Incorrect list-item indent
Use two spaces between bullet and content
2020-11-17 16:22:59 +01:00
Marcus Schäfer
e84af73fc2
Fixed strncopy in dcounter helper
The max size of the copy operation was always set to zero
because the strlen of an empty buffer is zero. Bad mistake
from my side :( This Fixes #1579
2020-10-13 09:25:35 +02:00
Marcus Schäfer
cc19266600
Cleanup setup.py
The way kiwi uses setup.py assumes that pip runs this script
like a spec file in rpm is processed. However this is not the
case given that pip implicitly creates a static zip file called
wheel which looses all the code logic done in setup.py. Therefore
setup.py should not contain code that needs to run at install
time. Of course this change comes with an effect which is that
the following files will not be available when installing kiwi
from pip:

* man pages: /usr/share/man/man8/...
* command completion: /etc/bash_completion.d/kiwi-ng.sh
* kiwi default config file: /etc/kiwi.yml
* package docs: /usr/share/doc/packages/kiwi-ng/...
  (kiwi.pdf, LICENSE, README)

kiwi stays fully functional without this information. It is
expected that the installation of kiwi as a service will
be done by a package and its package manager. When using kiwi
from pip it is designed to provide a python module but not
a complete user application. The way pip and wheels interact
with each other seems to demonstrate that pip is not a
package manager but more a python module manager.

This Fixes #1415
2020-07-03 10:27:57 +02:00
Marcus Schäfer
550cccdbea
Refactor kernel version lookup
For the lookup of the kernel version kiwi provided a small
C program that reads the first bytes of the kernel binary
and extracts the version information. Given the various
compression formats and also the problem of kernel files
that contains the decompressor code which could be anything
it has turned out to be difficult to provide a stable tool
to read the version from the binary. Therefore the code in
kiwi was refactored to read the version via regexp match
from the filename which also makes kversion an obsolete
tool. This Fixes #1308
2020-01-11 22:31:02 +01:00
Marcus Schäfer
a9492904a0
Update kiwi tools README
Delete obsolete entries for tools no longer present
2018-09-21 16:45:19 +02:00
David Cassany
bfb4bfa709 Update FSF address
The address has been taken from the header example published here
https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Fixes #667
2018-03-16 15:26:29 +01:00
Marcus Schäfer
be5d858c48
Delete obsolete C tools 2016-06-16 10:30:14 +02:00
Marcus Schäfer
8c60ef66c5
Move all build and install tasks to setup.py
In an effort to distribute kiwi on pypi it should not be
required to call make targets for a complete installation.
Therefore the compilation of the C tools as well as the
installation of the man pages and the bash completion
has been added to setup.py. The spec file to build an rpm
package has been changed to use setup.py exclusively
2016-05-30 19:07:49 +02:00
Marcus Schäfer
ed2e6695b1
Fixed warnings in C written tools 2016-05-27 15:16:38 +02:00
Marcus Schäfer
b0472abc8e
Make kiwicompat understand --version | -v option 2016-04-26 09:20:42 +02:00
Marcus Schäfer
20351bbfb1
Port kiwicompat to python 3 2016-02-19 10:11:29 +01:00
Marcus Schäfer
f2ff481bf2
Added support for kiwi --compat
The --compat call will trigger the call of the kiwicompat
tool written to support legacy kiwi commandlines. An example
could look like the following call:

    sudo kiwi --compat -- --build /my/description --type vmx -d /my/dest

Please be aware the -- is required to tell docopt to treat all
options as parameters
2016-02-04 15:06:56 +01:00
Marcus Schäfer
c6f37c2f12
Added system build command
Allows to combine prepare and create into one big task
2016-01-19 17:04:29 +01:00
Marcus Schäfer
0bd3dc7856
Added repo handling to compat caller
Also added process execution with translated arguments
2016-01-09 21:56:41 +01:00
Marcus Schäfer
fe4eebd690
Add compat translation for prepare/create/upgrade 2016-01-08 14:01:07 +01:00
Marcus Schäfer
eae8f9caef
Added kiwicompat to support legacy commandline 2016-01-05 17:01:35 +01:00
Marcus Schäfer
cfd66dd6ec
Consolidate use of Makefiles for compiling tools
As we are going to switch to tox the Makefile setup should be
cleaned up. I'm going to move the various places and its tasks
into one master Makefile to make it easier to move the targets
one after the other into a tox setup.
2015-12-17 14:43:18 +01:00
Marcus Schäfer
09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00