Commit Graph

43 Commits (master)

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
Philippe Pittoli 20376a36ed `backend`#install packages 2021-02-28 20:56:51 +01:00
Karchnu a4c53f2b8c build-cores, logs 2021-02-22 17:14:00 +01:00
Karchnu 72aceb035d backend name is now package manager name, error if incorrect in conf file 2021-02-22 00:52:38 +01:00
Karchnu 4decf96f10 working directory now configurable 2021-02-22 00:31:51 +01:00
Karchnu 5ad65f00ec packaging.spec configuration example, few comments in src/context.cr 2021-02-20 22:15:08 +01:00
Karchnu fecac6b3d5 weirdos => baguetteos, zstd, removing deprecated function call 2021-02-20 10:04:18 +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 aadd404516 STDOUT.flush calls added. 2019-09-19 18:16:24 +02:00
Luka Vandervelden a8eb7ead40 Grooming, WIP “weird” backend. 2019-09-06 00:39:11 +02:00
Luka Vandervelden 3483577fa4 .PKGINFO format conformity. 2019-09-04 19:49:58 +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 582302b1db apk backend: .PKGINFO error fixed 2019-09-01 17:29:44 +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 f4a9814b4e %{prefix}/lib/pkgconfig is split in -dev. 2019-08-29 15:12:26 +02:00
Luka Vandervelden e048ca9685 Environment variables are configuration-defined.
It was previously inherited, but that behavior was error-prone. This
commit fixes that.
2019-08-29 14:51:50 +02:00
Luka Vandervelden 60f5e55489 Untested cmake build backend. 2019-08-29 01:18:32 +02:00
Luka Vandervelden 656a640738 Configuration file added. 2019-08-29 00:20:15 +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 6fb2715267 Improved error reporting a bit. 2019-08-16 14:55:25 +02:00
Luka Vandervelden f1cf318708 `package` can now be installed. 2019-08-03 13:12:23 +02:00
Luka Vandervelden 99d1005fbb Slightly improved apk backend. 2019-08-03 13:01:29 +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 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 a066d39918 Removed test prefixes from default instructions. 2019-07-23 12:55:14 +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 6fc56f3034 Package::Backends are provided a context when called. 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 e6645e4f3d Grooming. 2019-07-03 03:48:31 +02:00
Luka Vandervelden fa92519f4d Packaging backends. 2019-07-03 03:35:35 +02:00
Luka Vandervelden 97cd2f5191 context#package(Package), grooming.
Preparations for splits and packaging backends.
2019-07-03 03:17:01 +02:00
Luka Vandervelden ed2a48ca58 Grooming, Context#run. 2019-07-02 19:45:33 +02:00
Luka Vandervelden 928559f71f Initial commit. 2019-07-02 03:52:19 +02:00