Commit graph

521 commits

Author SHA1 Message Date
77aabcc7d6 get-os.sh, pkg-manager.sh: Add dependencies for Ubuntu
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-04 01:45:24 +00:00
098a5f2a80 topdir.mk, pkg-manager.sh: Add archlinux package dependencies
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-02 14:10:48 +00:00
e68d4eb83b make, scripts: Now excplicitly calling python2 executable instead of python
Signed-off-by: Jan Lindemann <jan@janware.com>
2018-01-02 13:12:00 +00:00
acc3c18e27 create-mkdebian.sh: Remove bogus content from Conflicts tag
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-29 13:05:41 +00:00
26b71bee5d create-mkdebian.sh: Fix lintian complaint about empty copyright file
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-29 12:51:45 +00:00
fc36bdefdc get-os.sh: Fix missing version number on debian/buster
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-29 12:50:44 +00:00
57711ab58d [projects|projs]-dirs.mk: Fix chroot pkg-install-prereq-build
Make pkg-install-prereq-build work in chroot environment.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-27 16:07:51 +00:00
6a40259c3e defs.mk, timed-make-shell.sh: Beautify make benchmark
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-27 12:59:55 +00:00
62a476ff52 Add Distribution: Tag to create-mkspec.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-27 09:47:14 +00:00
7bb67d062a build.py: Change hung invocation to subprocess.Popen()
Pass an array to Popen(), shell=False, close_fds=True, stderr=None,
this fixes a hung zombie child.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-26 22:27:25 +00:00
8e879fb51a pgit.sh commit: Add support for --cvs
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-06 14:15:54 +00:00
5f6e494743 link-in target: Propagate python script error from pkg.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-10-04 11:01:15 +00:00
579e05c198 jannet info: Select criteria is now URL
RPM vendor matches too many packages, since janware GmbH is the vendor
for a lot of third-party packages

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-09-01 16:29:59 +00:00
92040c66e7 make, scripts: Preserve modification time on installation
Implemented -p switch on pkg.sh log-install and used it on standard
installation rules.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-31 19:40:39 +00:00
378feb60ec build.py and projects.py: Cache results queried from file system
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-31 18:57:13 +00:00
42e8e6522d projects.py: Fix cache_func(), evaluated one key short of what it should have
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-09 14:25:15 +00:00
da3089e5b7 projects.py: Add cache_func()
Add a generic cache for function calls, and use it on functions doing file I/O.
This speeds the build process up considerably.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-09 13:06:18 +00:00
55862e4bd7 projects.py ldflags: Also consider devel packages
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-08-01 21:57:13 +00:00
a01cfc4158 pkg.sh: Fix log-install invocation line
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-26 16:44:43 +00:00
a69a3938f2 pkg.sh: Use readlink -fm instead of realpath -m
Seems to be more universally available

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-26 11:45:45 +00:00
6ddbcfc932 projects.py: Assume build.libname = none for missing projects.conf
projects.conf is only installed with devel packages. If no such
thing is created or installed, depending packages assume that
libname = packagename, which is wrong. This patch fixes that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-25 16:01:29 +00:00
ba314df490 python-tools.mk: Fix __init__.py generation
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-25 15:05:21 +00:00
55f9b50562 py-defs.mk, py-mod.mk, python-tools.sh: Improve python module handling
- Fix superflous dots in module names
- Generate PYTHONPATH in projects.py
- Add support for __init__.py.tmpl

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-24 10:59:08 +00:00
3ec49304a1 projects.py: Add support for command pythonpath
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-24 10:56:51 +00:00
82c41cd68d jw-build-create-project.sh: Fix typo
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-22 18:16:58 +00:00
4827389e26 projects.py pkg-requires: Add options to query naked projects list
- Remove --vendor (-V), was dysfunctional, anyway
- Add options to strip the results:

  --subsections (-S)
  --delimiter (-d)
  --no-subpackages (-p)
  --no-version

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-22 18:12:36 +00:00
9505e9ab40 python-tools.sh: Add python-tools.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-22 14:33:36 +00:00
d296839c2c pkg.sh log-install -W: Make python wrapper around python scripts
Otherwise calls with /usr/bin/python /opt/package/bin/myscript.py fail with
syntax error.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-21 15:29:52 +00:00
a4ef394a95 pkg.sh: Add option -W to log-install
This is like log-install -W, except that it installs a wrapper
script instead of a link for executables

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-19 11:30:08 +00:00
11770d4cc3 projects.py: Check flavours build + devel in exepath command
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-09 23:17:23 +00:00
657d306bed projects.py: Add command getval
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-07-04 17:58:14 +00:00
3082150b05 pkg.sh Fix: Overwrote LAST_RPM_VERSION entirely
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-29 21:24:32 +00:00
4a93754435 jw-build-create-project.sh: Add .gdb_history to .gitignore
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-29 19:56:20 +00:00
79278ea8bd defs.mk, projects.py: Fix PREREQ_BUILD ignored in LIBFLAGS
PREREQ_BUILD doesn\'t make it into linker flags. This patch hopefully
fixes that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-29 19:46:07 +00:00
7efb9bd768 pkg.sh: Don't try to upload non-existing devel package
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-28 14:30:37 +00:00
a232b4bffd build.py: Beautify logging
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-28 12:28:59 +00:00
91fca8e791 pkg-manager.sh: Add -y support to command refresh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-28 09:27:11 +00:00
37dbe0a32f pkg-manager.sh: Circumvent more checks for install -y
zypper --non-interactive --gpg-auto-import-keys in --force-resolution --auto-agree-with-licenses

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-28 08:54:19 +00:00
2a99c05991 build.py: Use all prerequisite types for pkg-* targets
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-27 21:43:30 +00:00
c42e386c76 doc, make, scripts: Add support for [pkg.conflicts.xxx]
Since the packaging machinery is pretty complicated, the information about
conflicting packages had to be passed through many APIs. The last commit
contained a patch which is left in the tree to have it in one file, it actually
is identical to this commit's diff, though. Git would save me that quirk.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-26 10:34:22 +00:00
b35a50944c project.conf, topdir.mk, projects.py: Replace pkg.required.xxx by pkg.requires.xxx
This opens up a more concise handling of pkg.conflicts.xxx in the future, and
prepares some code simplification in projects.py.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-26 09:33:53 +00:00
eaa8ec9976 purge-stale-projects.sh: Remove project from CVS directory if present
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-25 18:10:35 +00:00
94e7bff14e create-mkspec.sh: Add missing stage pre to create-mkspec.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-25 17:16:24 +00:00
dd878bd629 Fix: Default package template was created with wrong fullname
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-25 16:26:47 +00:00
14e76bbddd scm.sh: Add cmd_clean to scm.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-24 12:59:10 +00:00
a5e00ecaa4 projects.py: Add command os-cascade
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-23 18:09:59 +00:00
056558bb27 build.py: Fix dependency tree for multiple prerequisite types
build.py calculated a wrong build order because it doesn\'t take all build
prerequisite types correctly into account. Fixed that. Implemented the option
--dry-run along the way.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-19 21:10:35 +00:00
b3f12a6c35 pgit.sh: Add support for defining pdir and pdirs in the environment
TODO: These variables seem a bit short for the environment

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-17 09:16:44 +00:00
3fbb704dae projects.py fix: --flavours arguments mutilated
The argument to --flavours isn't correctly evaluated. It allows only one value

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-17 09:08:15 +00:00
d17eccc0eb purge-stale-projects.sh: Attempt to clean projects before purge
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-16 10:41:11 +00:00