Obsolete
/
packaging
Archived
3
0
Fork 0
Commit Graph

95 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 15ccc1518e main.cr => tools/package-create.cr 2021-03-09 18:01:48 +01:00
Philippe Pittoli 5ce3856eb9 Minor changes: comments in instructions.cr 2021-03-09 17:57:47 +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 5f2e4d603c shame shame shame 2021-03-02 17:45:09 +01:00
Philippe Pittoli 999a134221 restored log file path 2021-03-02 17:29:11 +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 492ce2f9cc print context, simple pp! for now, better display later 2021-02-22 00:32:29 +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 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 aadd404516 STDOUT.flush calls added. 2019-09-19 18:16:24 +02:00
Luka Vandervelden f8fea34206 Improved Weird backend. 2019-09-19 17:52:56 +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 5bfaacfd09 Weird backend manifest format update. 2019-09-14 17:44:01 +02:00
Philippe PITTOLI 67114e257b Renaming package => packaging. 2019-09-12 17:30:39 +02:00
Luka Vandervelden 42a0d5dc31 `.weird` manifest format update. 2019-09-10 16:31:29 +02:00
Luka Vandervelden f5ff2de183 More drastic Recipe#clean. 2019-09-06 12:02:11 +02:00
Luka Vandervelden 8b98c20c96 Package.description: updated to String? 2019-09-06 11:13:15 +02:00
Luka Vandervelden a8eb7ead40 Grooming, WIP “weird” backend. 2019-09-06 00:39:11 +02:00
Luka Vandervelden 7b57a2706d -B, --print-deps option added. 2019-09-04 19:53:15 +02:00
Luka Vandervelden 3483577fa4 .PKGINFO format conformity. 2019-09-04 19:49:58 +02:00
Luka Vandervelden c15397b8bb Dependencies installation not done with -D. 2019-09-04 11:54:48 +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 33f7ddc263 -n, --ignore-dependencies option added. 2019-09-03 13:15:07 +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 a6b32e3420 `apk add` inherits stdin when called. 2019-09-02 16:40:33 +02:00
Luka Vandervelden 582302b1db apk backend: .PKGINFO error fixed 2019-09-01 17:29:44 +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 f4a9814b4e %{prefix}/lib/pkgconfig is split in -dev. 2019-08-29 15:12:26 +02:00
Luka Vandervelden ccfa8752d2 Some recipe parsing warning written on stderr. 2019-08-29 14:58:56 +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 cfa33308e7 Fixes sources-directory being different from “.”. 2019-08-29 00:34:17 +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 aac0eff75f --version option added. 2019-08-28 20:25:59 +02:00
Luka Vandervelden f68a43c6a0 `apk` is run to install build-dependencies. 2019-08-24 14:02:30 +02:00