Commit graph

510 commits

Author SHA1 Message Date
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
6412706800 jw-build-create-project.sh: Fix broken build dependency
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-13 14:15:51 +00:00
3961d47f07 conf/jcs, make, scripts: Rename jw-build's get_os.sh to get-os.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-12 09:35:57 +00:00
763d18f350 pgit.sh: Make commit check if there's a diff before running commit
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-12 09:11:28 +00:00
cf4308e2c5 pgit.sh: Add support for environment variable PGIT_KEEP_GOING
Sadly, a commit returns 1 if there's nothing to commit, which makes pgit.sh
error out of the project loop, which is run with set -e. This option disables
-e.

OTOH, pgit.sh commit could check for a diff and only run git commit if there is
a diff.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-12 08:59:08 +00:00
5f5b934970 jannet: Fix help message indentation
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-10 20:15:17 +00:00
606994f875 scripts/jannet: Add two new commands
Add build-date and built-today

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-10 19:08:50 +00:00
0b2df04c6b list-cvs-files.sh: Add option -t (text-files)
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-02 09:06:24 +00:00
e1200746e3 pgit.sh: Use plain directory path for diff prefix
The diff source and destination in diff used to be a/path/to/file.txt and
b/path/to/file.txt which differed from cvs diff -u. Changed that, now make diff
in the toplevel directory creates usable patches for all sources.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-01 08:41:00 +00:00
a769db8648 list-cvs-files.sh: Fix git submodule recursion
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-08 10:26:19 +00:00
8dc4c9a465 list-cvs-files.sh: Add support for -z options
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-07 20:33:41 +00:00
3995287a46 list-cvs-files.sh: Add new features
Add support for option -n (no submodules)
Add support for project directory argument

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-05-07 19:08:43 +00:00