Obsolete
/
packaging
Archived
3
0
Fork 0
Commit Graph

53 Commits (42235d107d32daf1860a640981529b477d539c09)

Author SHA1 Message Date
Philippe Pittoli 42235d107d reading options and user phases in /etc/packaging.cfg 2021-03-09 19:09:02 +01:00
Philippe Pittoli c8ff92b508 New package-create version. See more in git log.
This new version has a new code structure:
- context now has (configure|building|install)_backends attributes
- Package::Instructions now only is a wrapper around Array(String)
  with a phase name and a 'run' method
- new phases, with total user control through recipes:
  source-split, (pre-)?(configure|build|install) and post-install
- Do.cp

Misc:
- baguette backend removes the data.tar before processing the manifest
- new '-doc' split
- check for `bsdtar` in the PATH before doing anything
- logs are way more verbose
2021-03-09 17:51:51 +01:00
Philippe Pittoli e218282594 Comments, grooming, new phases (src-split, pre- and post-) 2021-03-03 05:21:54 +01:00
Philippe Pittoli 8392363d49 Massive refactoring. See more in git log.
This refactoring includes:
- the use of baguette-crystal-base (Baguette::Log, Baguette::Context for verbosity and logfile)
- moving configure, build, install and splits backends into dedicated files
- removing a lot of code from Package::Context (it was a mess, still kinda is)
- fix 32-bit integer bug from APK backend
- some API changes in packaging backends to remove the context instance
  it was replaced by two parameters: package directory and architecture
- Baguette, APK and PkgUtils now share (kinda) the same coding style
2021-03-02 15:42:17 +01:00
Philippe Pittoli afaf5c2fda baguette backend overflow bugfix, baguette package tool 2021-03-02 10:33:54 +01:00
Philippe Pittoli a1df0745d7 Baguette splits are working, tests available cmd 2021-03-01 09:04:04 +01:00
Karchnu a4c53f2b8c build-cores, logs 2021-02-22 17:14:00 +01:00
Luka Vandervelden ae43eda669 Fixes file://. 2019-11-05 14:08:33 +01:00
Luka Vandervelden 2eb87bdf25 SpecParser API update. 2019-11-05 13:52:37 +01:00
Luka Vandervelden a207e47ce5 SpecParser update. New realease to match. 2019-09-27 13:59:23 +02:00
Luka Vandervelden c720f78f11 Fixes patches applying. 2019-09-19 17:52:44 +02:00
Luka Vandervelden 24de93ef3f Automated patching. 2019-09-14 18:43:15 +02:00
Luka Vandervelden f5ff2de183 More drastic Recipe#clean. 2019-09-06 12:02:11 +02:00
Luka Vandervelden a010687a90 Minor UI fix. 2019-09-04 00:58:20 +02:00
Luka Vandervelden e9bf79964f Improved stripping. 2019-09-04 00:53:38 +02:00
Luka Vandervelden 24ff4358d3 Verbosity control.
Multiple -v or -q flags can be provided to alter verbosity more. No log
file with full-verbosity is currently stored, but that’s a planned
feature.
2019-09-03 13:03:04 +02:00
Luka Vandervelden 834b609da8 Automated stripping. 2019-08-31 02:05:33 +02:00
Luka Vandervelden ba8400934a --watch, @watch added.
No auto-watch at the moment, and the --watch feature is still
experimental and it might be altered or be made to work slightly
differently in the future.
2019-08-29 16:05:39 +02:00
Luka Vandervelden ccfa8752d2 Some recipe parsing warning written on stderr. 2019-08-29 14:58:56 +02:00
Luka Vandervelden cfa33308e7 Fixes sources-directory being different from “.”. 2019-08-29 00:34:17 +02:00
Luka Vandervelden 4c66f13cae %{prefix} macro added.
- It is used in automated building instructions.
	- It is used in auto-splits.
	- It is preset before reading the recipe to the first of the
	  default prefixes defined in this context, and can be reset
	  to force the recipe to build somewhere else.
2019-08-28 20:26:15 +02:00
Luka Vandervelden b0607af60a Fixing sources copying destination. 2019-08-23 13:41:18 +02:00
Luka Vandervelden e4ea6bcd11 Local files can be used in recipe sources.
file:// can be used as scheme to make it clearer, but URLs without
scheme will be assumed to be local files anyway.
2019-08-22 20:11:37 +02:00
Luka Vandervelden 3700d5769d Non-tar files in sources are copied and not extracted. 2019-08-22 20:09:15 +02:00
Luka Vandervelden 8322c78e30 Arrows implemented in sources. 2019-08-22 19:57:51 +02:00
Luka Vandervelden e6fb4d6c3d Splits can be defined in recipes.
This is done using `%split split-name` sections. `files` and
`file-patterns` are both array attributes that can be provided to set
what paths or files should go in them. Other variables can be overriden
as well from that %split section.
2019-08-22 19:16:08 +02:00
Luka Vandervelden 6fb2715267 Improved error reporting a bit. 2019-08-16 14:55:25 +02:00
Luka Vandervelden ef774194dc Removed .spec-related upstreamed code. 2019-08-16 13:37:11 +02:00
Luka Vandervelden 832edb5f8d dirname read in .spec. 2019-08-14 20:33:11 +02:00
Luka Vandervelden 4cfa52e4b6 Builds are failed if no file in installed in %{pkg}. 2019-08-13 21:08:39 +02:00
Philippe PITTOLI be84c7d18b Library renaming: Specs => SpecFileParser. 2019-08-13 18:11:20 +02:00
Luka Vandervelden ad4ac62352 Typo. Fixes custom @configure. 2019-08-13 15:32:22 +02:00
Luka Vandervelden 856d744d91 Improved detection of build errors. 2019-08-13 13:48:09 +02:00
Luka Vandervelden 4c10d0d5f8 Run/Build dependencies split. 2019-08-06 20:55:24 +02:00
Luka Vandervelden 9db8704a78 Bugfix related to recipe.spec reader. 2019-08-03 15:52:11 +02:00
Luka Vandervelden 09feb19073 CLI & removal of test recipes. 2019-08-03 12:55:47 +02:00
Luka Vandervelden c2843858ee Improved recipe.spec reader. 2019-08-02 23:58:42 +02:00
Luka Vandervelden e0ce1ddd2a Improved recipe.spec reader. 2019-08-02 17:43:09 +02:00
Luka Vandervelden bf8a5bbcbb WIP for Recipe import from spec file. 2019-08-01 23:02:34 +02:00
Luka Vandervelden 50690834e8 `bsdtar` used instead of `tar` for extraction. 2019-08-01 17:46:24 +02:00
Luka Vandervelden 06fe475924 pattern-based auto-split. 2019-07-23 17:33:38 +02:00
Luka Vandervelden d80e1f12b3 Recipe#options 2019-07-23 16:41:34 +02:00
Luka Vandervelden f921798fd9 Recipe#auto_split -> Recipe#auto_splits
That particular method has no side-effect anymore, and is called
internally automatically by #package and #build (through #do_splits).
2019-07-20 13:52:24 +02:00
Luka Vandervelden 132b3751ce Temporary UI, error detection. 2019-07-20 13:30:09 +02:00
Luka Vandervelden b2586be87b Autosplits. 2019-07-04 23:18:54 +02:00
Luka Vandervelden 255d644b93 Splits (sub-packages) support. 2019-07-04 07:52:46 +02:00
Luka Vandervelden 77632f59ab Initial, primitive APK support. 2019-07-04 07:52:29 +02:00
Luka Vandervelden 3d08c7ecff More metadata available to Recipe and Package. 2019-07-03 04:34:42 +02:00
Luka Vandervelden e6645e4f3d Grooming. 2019-07-03 03:48:31 +02:00
Luka Vandervelden 97cd2f5191 context#package(Package), grooming.
Preparations for splits and packaging backends.
2019-07-03 03:17:01 +02:00