Commit graph

33 commits

Author SHA1 Message Date
Noah Huppert
984fa5d9cb xbps-src: fixed dangling binpkg lock on error
Co-authored-by: Noah Huppert <contact@noahh.io>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>

Closes: #24191 [via git-merge-pr]
2020-08-17 09:42:08 -04:00
Juan RP
7fe90df2b1
xbps-src: don't set a default for XBPS_PKG_COMPTYPE.
Use xbps-create(1) defaults:

 - xbps<0.59 defaults to xz
 - xbps>=0.59 defaults to zstd
2020-03-03 10:26:12 +01:00
Juan RP
e4984d01ea xbps-src: multiple performance improvements
- use xbps-checkvers(1) to resolve dependencies.
- all dependencies are installed at once for the host and target.
- the show-build-deps target is now much faster.
- the update-bulk/show-repo-updates targets are now much faster.
- the update-sys/show-sys-updates targets are now much faster.
- the bootstrap target now works on musl hosts.
- simplified some loops.
- use cut(1) rather than awk(1) where applicable.
- multiple random changes to improve performance.

Based on work started by @Duncaen on #12433

Close #12433
Close #11282
2019-07-10 20:28:46 +02:00
Jürgen Buchmüller
17ba00b095 Revert "xbps-src: multiple performance improvements."
This reverts commit 2a4e178e35.
2019-07-05 12:08:45 +02:00
Juan RP
2a4e178e35 xbps-src: multiple performance improvements.
- use xbps-checkvers(1) to resolve dependencies.
- all dependencies are installed at once for the host and target.
- the `show-build-deps` target is now much faster.
- the `update-bulk/show-repo-updates` targets are now much faster.
- the `update-sys/show-sys-updates` targets are now much faster.
- the `bootstrap` target now works on musl hosts.
- simplified some loops.
- use cut(1) rather than awk(1) where applicable.
- multiple random changes to improve performance.

Based on work started by @Duncaen on https://github.com/void-linux/void-packages/pull/12433

Close https://github.com/void-linux/void-packages/pull/12433
Close https://github.com/void-linux/void-packages/pull/11282
2019-07-05 08:53:51 +02:00
Juan RP
248e301ff7 hooks/00-gen-pkg: use xbps-create(1) --changelog if set on template.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-20 19:52:52 +02:00
Enno Boland
6eb37e35b2 common: merge only_for_archs and noarch=yes into one.
* noarch=yes is replaced with archs=noarch
* only_for_archs= is renamed to archs=
* archs= allows the use of wildcards and negations; first matching rule applies:
  * archs="*-musl" will build the pkg only for musl-libcs
  * archs="~*-musl" will build the pkg only on non-musl-libc
  * archs="x86_64-musl ~*-musl" will build for x86_64-musl and any non-musl
    arch.
* archs= defaults to "*"
2019-02-15 13:19:44 +01:00
Duncaen
94ed33657b Revert "common/: add support for changelog field."
This reverts commit 8599efd9fd.
2018-05-04 16:46:46 +02:00
maxice8
8599efd9fd common/: add support for changelog field.
This commits allows ./xbps-src show to show the changelog field and for
changelog to be included with the -c/--changelog option via xbps-create.

Closes: #14102 [via git-merge-pr]
2018-05-03 22:58:27 -04:00
Enno Boland
82b736b616 common: expand_destdir rewrite 2015-11-18 11:19:09 +01:00
Enno Boland
18e288fd2c common: remove unneccessary 'source's; move extglob.sh to install 2015-11-18 10:21:33 +01:00
Enno Boland
ef24b7b7cc common: move expand_destdir to environment/pkg; change lint check. 2015-11-18 10:21:33 +01:00
Enno Boland
67757b5708 hooks/do-pkg/00-gen-pkg.sh: enable globbing for conf_files. 2015-11-18 10:21:33 +01:00
Enno Boland
f19bca3bce hooks/do-pkg: clean up 00-gen-pkg.sh 2015-11-18 10:21:33 +01:00
Juan RP
62de168b40 xbps-src: fix xbps-create(1) --tags option. 2015-11-10 11:33:19 +01:00
Juan RP
3e1154266f xbps-src: support "alternatives" from xbps-0.48. 2015-10-30 12:39:59 +01:00
Juan RP
955d7ce232 hooks/do-pkg/gen-pkg: don't set unnecessary args to xbps-create(1). 2015-09-10 20:07:13 +02:00
Juan RP
983d68a31e xbps-src: support multiple pkg compression formats via etc/conf.
XBPS_PKG_COMPTYPE can be set via etc/conf to set your preferred compression
format; defaults to xz, like xbps-create(1).

The "none" setting is only available since 0.48 (unreleased).
2015-09-03 12:44:08 +02:00
Juan RP
5c95087605 hooks/gen-pkg: do not autogenerate dbg pkg if this exists already.
This will be required by an upcoming change to linuxX.X by @chneukirchen
to build a -dbg pkg; and we cannot generate it automatically for now.

This avoids a double pkg creation noticed by @chneukirchen.
2015-02-05 11:30:32 +01:00
Juan RP
6e13dcbaff xbps-src: introduce XBPS_STATEDIR to store state files, logs and others.
XBPS_STATEDIR is created in XBPS_BUILDDIR/.xbps-${sourcepkg}-${version}
and contains logs and state files for all phases, as well as wrappers.

We can now inspect the output from all hooks.
2014-12-11 11:02:22 +01:00
Enno Boland
59cc3e0d45 replace nonfree=yes with repository=nonfree.
This way it is possible to set up package specific repositories for
i.e. specific devices.
2014-11-05 14:15:25 +01:00
Enno Boland
5395d9b0a2 common/hooks: add reverts field to packages 2014-09-30 00:03:33 +02:00
Juan RP
d27e135986 hooks/gen-pkg: keep and transform "replaces" in 32bit pkgs. 2014-08-22 09:21:04 +02:00
Juan RP
99d8ab648e hooks/gen-pkg: keep provides for 32bit conversion before creating -dbg subpkgs. 2014-07-23 15:23:18 +02:00
Juan RP
49133f9b62 hooks/gen-pkg: use local vars for 32bit provides conversion. 2014-07-23 15:19:16 +02:00
Juan RP
00040a63fa hooks/gen-pkg: convert provides for 32bit pkgs. 2014-07-23 13:07:46 +02:00
Juan RP
1b4e6ecaac xbps-src: added support for the "tags" variable and require xbps>=0.37. 2014-06-06 20:51:47 +02:00
Juan RP
ea719b3f59 Added multilib, multilib/nonfree and debug repositories by default.
- multilib: to store 32bit packages.
- multilib/nonfree: to store nonfree 32bit packages.
- debug: to store debug packages.
2014-05-05 10:59:33 +02:00
Juan RP
9ffc0d09ce common/hooks: ignore XBPS_ARCH when cross building. 2014-04-28 15:08:44 +02:00
Juan RP
e24233a15a hooks/do-pkg/gen-pkg: do not propagate conf_files/provides/replaces to 32bit pkgs. 2014-03-09 08:59:22 +01:00
Juan RP
3016320cb0 hooks: only generate/register 32bit pkgs on x86. 2014-03-07 10:12:20 +01:00
Juan RP
a26205c634 common/hooks: enable by default 32bit pkgs for x86_64. 2014-03-06 21:03:23 +01:00
Juan RP
aa83852d7b common/hooks: add support for do-<phase> hooks as suggested by Gottox.
- New hooks for do-fetch and do-extract moved from xbps-src.
- Renamed some hooks to have XX as prefix.
2014-03-05 11:02:37 +01:00