aboutsummaryrefslogtreecommitdiff
path: root/common/hooks (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* hooks/post-install: add fix permissions hookMichal Vasilek2021-08-261-0/+33
|
* common/hooks: speed up generate-runtime-deps.Érico Nogueira2021-07-221-12/+11
| | | | | | | | | | Instead of using file(1) to check for ELF files, just read bytes directly from the file and check if they are the ELF magic bytes. Should probably be factored out into a common function that can be used in other places, if necessary. Also use awk instead of "grep|awk" for some minor speedup.
* hooks/prepare-32bit: create packages from all *-develPiotr Wójcik2021-07-102-5/+12
| | | | | | All *-devel dependencies of 32bit packages are replaced with *-devel-32bit. Missing dependencies made some uninstallable.
* hooks/prepare-32bit: correct devel packages matchingPiotr Wójcik2021-07-101-2/+2
| | | | fixes cases like 'ruby-devel-doc'
* common/hooks/post-install: show error in $STRIPCMD in 06-strip-and-debug.Érico Nogueira2021-07-041-8/+4
| | | | | | Currently fails with a hard to understand error message: 2021-04-16T11:51:36.1074291Z => ERROR: rust-std-1.51.0_1: post-install_06-strip-and-debug-pkgs: '$STRIPCMD --strip-unneeded "$f"' exited with 1
* do-patch: switch default patch_args to -Np1Đoàn Trần Công Danh2021-06-201-1/+1
| | | | | All templates that require -Np0 have patch_args appended. Let's flip the switch.
* base-files: fix conf files replacing each other wrongq662021-02-281-11/+6
|
* base-files: make some sysctls like kexec setting user-alterableq662021-02-281-6/+11
| | | | While at it, relax the pkglint for base-files only.
* common/00-libdir: only create lib{32,64} symlink if not existsĐoàn Trần Công Danh2021-02-101-1/+3
|
* hooks/post-install/06-strip-and-debug-pkgs.sh: speed up.Leah Neukirchen2021-01-301-5/+8
| | | | | Only run file once for each file in the destdir, only double-check when we are about to strip the ELF files.
* hooks/pre-pkg/03-rewrite-python-shebang.sh: use grep -r instead of find.Leah Neukirchen2021-01-301-1/+1
| | | | | | | This saves us one sed execution per file in the destdir, resulting in a major speedup. Grep will only consider text files and only look at the first line.
* hooks/{pre,post}-install: fix 98-fixup-gir-path.Érico Rolim2021-01-242-4/+13
| | | | | | | | | | | | | | | | | | | | | | | The libdir changes to use /usr/lib{32,64} instead of /usr/lib broke cross builds for some packages that use gir, due to issues with copying over symlinks. Since we haven't managed to track down the root cause for the installation path, a symlink is a clean enough temporary fix. This follows the style of the 00-libdir hooks. Since pre-install runs for the main package and then each subpackage, it should use PKGDESTDIR (not DESTDIR), which also enables a subpackage that installs files during pkg_install to work cleanly. As far as I can see, the previous hook was quite flawed. Since it was a pre-install hook, the check for a directory would happen *before* package installation (so nothing would happen). The only reason it did anything was because it also ran as a step before a subpackage's pkg_install (most GIR packages have a -devel subpackage), but used DESTDIR instead of PKGDESTDIR, so it checked and affected the contents of the main package. Then when the subpackage's pkg_install ran, the files would have already been copied to the correct folders. Closes #27437
* wrapper: valac: pass --vapidir after real argumentsĐoàn Trần Công Danh2021-01-241-2/+4
| | | | | | | | | Due to constant change in vala, some projects includes some old and pre-generated vapi in their source tree and uses that version instead of system one. Pass system vapidir after real arguments in order to prefer its bundled vapi.
* xbps-src: remove noarchq662021-01-206-23/+8
|
* hooks: abort if l10n files found in /usr/libĐoàn Trần Công Danh2021-01-091-0/+6
|
* freetype: clean XBPS_CROSS_TRIPLET reference in freetype-configĐoàn Trần Công Danh2021-01-041-1/+14
| | | | | | | * $XBPS_CROSS_TRIPLET-pkg-config is our wrapper not a real executable * In a build that have both freetype-config and pkg-config, $XBPS_CROSS_BASE will be prepended twice with current system, let's fix it.
* 99-pkglint-subpkgs: replace grep with case..esacĐoàn Trần Công Danh2020-12-301-5/+9
| | | | | | | On experience with 100 subpkgs, this change reduces execution time from 284ms to 4ms Closes: #27137 [via git-merge-pr]
* common/hooks/{pre,post}-install: generalized libdir hookq662020-12-224-17/+15
| | | | | | | | this makes sure we don't have to worry about packages installing stuff in lib32/lib64, it will be automagically symlinked if something is still left over for whatever reason, or if the opposite wordsize directory exists, that will be caught by pkglint
* 99-pkglint-subpkgs: correct for multiline subpackagesĐoàn Trần Công Danh2020-12-141-9/+15
| | | | | | | | | | | | | | | | | As discussing in [1], on template with "subpackages" as multilines will report false positive on some packages will never be built. There're multiple problems here: - expanded "subpackages" will have an empty line if it has a newline inside template - "sed" expression couldn't work with multilines "subpackages" Let's not quote "$subpkgs" and "$subpackages" in "printf" to let the shell do expansion and trim the empty lines for us. And rewrite the "sed" expression to work with multilines "subpackages" [1]: https://github.com/void-linux/void-packages/pull/26939#issuecomment-739098547
* common/hooks: remove remove-localized-manpages hook.Érico Rolim2020-12-121-20/+0
| | | | Allow packages to include localized man pages. Needed for manpages-l10n.
* wrapper: bring valac and vapigen to current versionĐoàn Trần Công Danh2020-11-261-4/+16
| | | | | | | | | | Current wrappers hard-coded them at 0.42 which is very long ago. Hence, those wrappers insert a versioned vapidir that no longer exists. The build still work because valac will look into host's versioned vapidir instead. Let's check the version we're having and wrap that instead of changing the hard-coded number from time to time.
* common/hooks/post-install/04-create-xbps-metadata-scripts.sh:Érico Rolim2020-11-141-1/+1
| | | | use correct section for chroot(2) in comment.
* python3: update to 3.9.0.Andrew J. Hesford2020-10-101-1/+1
|
* xbps-src: quote wrksrc to allow whitespacePiotr Wójcik2020-09-032-15/+15
|
* 11-pkglint-elf-in-usrshare: disallow x-executablePiotr Wójcik2020-08-251-2/+3
| | | | Can be allowed per-package now
* 11-pkglint-elf-in-usrshare: allow explicit setting of exceptionsHelmut Pozimski2020-08-251-3/+20
| | | | Co-authored-by: Piotr Wójcik <chocimier@tlen.pl>
* xbps-src: fixed dangling binpkg lock on errorNoah Huppert2020-08-171-3/+8
| | | | | | | Co-authored-by: Noah Huppert <contact@noahh.io> Co-authored-by: Andrew J. Hesford <ajh@sideband.org> Closes: #24191 [via git-merge-pr]
* xbps-triggers: add texmf-dist regeneration triggerfosslinux2020-07-141-0/+6
|
* hooks/pkglint-devel-paths: do move static find calls out of the loopJohn2020-07-121-18/+17
| | | | | | Right now they got executed every iteration, but weren't dependent on the loop. Which resulted in getting the output x times more often than neccessary
* common/wrapper: python*-config: answer --includesĐoàn Trần Công Danh2020-07-041-4/+5
| | | | | | We haven't run into trouble with this because most configure script check if $PYTHON-config exist, thus force packager uses /usr/bin/python{,3}
* hooks/pkglint-elf-in-usrshare: speed up by only starting file onceJohn2020-06-291-4/+7
|
* xbps-src: consume all shebang arguments during rewriteAndrew J. Hesford2020-06-181-1/+1
|
* xbps-src: improve python shebang rewritesAndrew J. Hesford2020-06-101-4/+17
|
* pre-pkg: use existing info to check empty packageĐoàn Trần Công Danh2020-05-311-9/+8
|
* xbps-src: pre-pkg: allow only white-listed directories.Đoàn Trần Công Danh2020-05-311-1/+26
|
* post-install: warn if cross wrapper not clearedĐoàn Trần Công Danh2020-05-311-0/+21
|
* post-install: clean reference to $XBPS_CROSS_BASE in pkgconfigĐoàn Trần Công Danh2020-05-311-0/+22
|
* xbps-src/common: add option to disable generic pkg-config linkJohn2020-05-261-1/+3
| | | | closes #21728
* setup: compute gitrev from outside of chrootĐoàn Trần Công Danh2020-05-231-6/+4
| | | | | Together with previous commit, `xbps-src` is able to support git-worktree and shared repository by now.
* xbps-src: use $XBPS_GIT_CMD for gitĐoàn Trần Công Danh2020-05-231-8/+4
|
* 00-distfiles.sh: fix status phrasingAndrew Benson2020-05-101-1/+1
|
* common/hooks: fix pycompile_module with explicit python_version=2Piotr Wójcik2020-04-251-0/+2
|
* 06-strip-and-debug-pkgs.sh: ignore binaries for unknown machinesa2020-04-241-0/+4
| | | | | Because most likely these files are not executables, but some kind of bytecode. And strip doesn't know how to strip them anyway.
* common/hooks: remove pycompile_version, use python_version insteadPiotr Wójcik2020-04-221-1/+11
|
* xbps-src: remove default python_versionAndrew J. Hesford2020-04-211-7/+5
| | | | Closes: #21209 [via git-merge-pr]
* pkglint: forbid files generated by mimedb triggerĐoàn Trần Công Danh2020-04-121-0/+9
|
* xbps-src: don't set a default for XBPS_PKG_COMPTYPE.Juan RP2020-03-031-1/+1
| | | | | | | Use xbps-create(1) defaults: - xbps<0.59 defaults to xz - xbps>=0.59 defaults to zstd
* 02-script-wrapper: preserve original timestamps of wrapper scriptsq662020-03-011-1/+1
| | | | | | | | | | | | | | | At least since 0.53, the meson buildsystem checks whether the "date" command's file is outdated and if it is, it'll trigger regeneration of the build files. Since the wrappers are reinstalled from scratch on every build step, this would result in meson being re-run on each of those steps. Which resulted in broken builds in some projects (e.g. efl) since our meson build-style by default uses LTO and that requires the AR environment variable being exported in a specific way, which was only being done for the do_configure step but not build/install, which resulted in meson being run with one env for configure and another env for build, which broke everything.
* hooks/do-extract: refrain from extracting text files outside wrksrcPiotr Wójcik2020-02-191-1/+5
|
* hooks/do-extract: treat *.sh files as text filesPiotr Wójcik2020-02-191-0/+1
|