aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common: support disabling python shebang rewritingclassabbyamp2024-04-241-0/+4
| | | | | useful if there are special python-containing shebangs that should not be rewritten, for example with Ghidra's embedded jython.
* common/hooks/pre-pkg/99-pkglint.sh: allow C.utf8 locale in glibc packageAndrew J. Hesford2024-03-131-2/+16
|
* common/hooks/pre-pkg/04-generate-runtime-deps: partially revert sortingclassabbyamp2024-03-121-2/+2
| | | | | | | | | | | only sort shlib-deps, as those are automatically found. regular dependencies should not be sorted as that can mess with the order for things like virtual packages or alternatives groups, notably for gawk (needs to be before anything that depends on the awk virtual package) and dash (needs to be before bash to select the correct sh alternatives group). partial revert of 5ec2556004b445a7d50a043606619722c630fde4
* xbps-src: split 32bit hook into two stepsDuncaen2023-09-071-0/+87
| | | | | | | | This should fix issues where -32bit packages are missing the runtime dependencies, since the common/hooks/post-install/98-shlib-provides.sh hook depends on the 32bit files being copied and the runtime and the rdep part of the common/hooks/post-install/80-prepare-32bit.sh depends on the common/hooks/post-install/98-shlib-provides.sh.
* xbps-src: consistently use read -r when reading file pathsDuncaen2023-08-312-2/+2
|
* hooks/gen-rt-deps: Look for rt-deps by subpkg first, common/shlibs laterĐoàn Trần Công Danh2023-08-301-51/+29
|
* hooks: move prepare-32bit and shlib-provides to post-installĐoàn Trần Công Danh2023-08-302-224/+0
| | | | | | | | | | | | In a later change, we will generate shlib-depends cross subpkgs during pre-pkg stage. Thus we need shlib-provides information of all subpkgs ready before pre-pkg is run. Those information can only be read in post-install stage at the eariliest. Let's move the shlib-provides to post-install. This hook requires prepare-32bit, so, let's move that hook, too.
* gen-runtime-deps: verify rdeps for shlib_requires tooĐoàn Trần Công Danh2022-11-301-4/+5
| | | | While we're at it, mark one more variables as local
* pre-pkg/04-generate-runtime-deps.sh: avoid conflict with `broken` template varAndrew J. Hesford2022-11-301-4/+4
| | | | | | | | | | Using a non-local `broken` variable in the hook common/hooks/prepkg/04-generate-runtime-deps.sh will cause a spurious shlib error when building templates marked broken are built with `xbps-src -b`. Declaring the variable local is sufficient, but let's make the name a bit more distinctive anyway.
* hooks/99-pkglint.sh: error when pkg ships gschemas.compiledMichal Vasilek2022-11-221-0/+5
| | | | | gschemas.compiled is generated by glib-compile-schemas and should not be overriden by a package
* pkglint: forbid /usr/lib/libexecĐoàn Trần Công Danh2022-11-221-0/+9
|
* hooks/99-pkglint.sh: error out if /usr/usr path is usedDuncaen2022-11-011-0/+5
|
* hooks/99-pkglint.sh: error if /usr/share/man/man/ is usedDuncaen2022-09-101-0/+5
|
* 99-pkglint: forbid /usr/etcĐoàn Trần Công Danh2022-09-061-1/+1
| | | | data files should go to /usr/share, config files should go to /etc
* common/hooks/pre-pkg/04-generate-runtime-deps.sh: fix sorequiresclassabbyamp2022-05-131-3/+3
|
* common/hooks/pre-pkg/04-generate-runtime-deps.sh: sort deps for reproducibilityclassabbyamp2022-05-131-6/+5
| | | | fixes #36641
* hooks/99-pkglint.sh: make missing shlib entry not a warningPiotr Wójcik2022-04-221-1/+1
|
* common: fix tooling section in commentsQuentin Rameau2021-10-241-1/+1
|
* python3: update to 3.10.0.Andrew J. Hesford2021-10-091-1/+1
|
* 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'
* 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.
* 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.
* xbps-src: remove noarchq662021-01-203-14/+3
|
* hooks: abort if l10n files found in /usr/libĐoàn Trần Công Danh2021-01-091-0/+6
|
* 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]
* 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
* 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
|
* 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
|
* hook: python-shebang: check for shebang in the first line onlyĐoàn Trần Công Danh2019-12-281-5/+6
| | | | | | | - Grepping whole files is inefficient - git-instaweb (in git package) has the code to generate python file in a here doc in the middle of its code, old hook generates false positive with this package
* xbps-src: new pre-pkg hook that prints collected rdeps.Juan RP2019-12-151-0/+7
|
* base-files: ship bin and lib symlinksCameron Nemo2019-12-141-9/+11
|
* xbps-src: multiple performance improvementsJuan RP2019-07-102-29/+16
| | | | | | | | | | | | | | | | | - 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
* Revert "xbps-src: multiple performance improvements."Jürgen Buchmüller2019-07-052-16/+29
| | | | This reverts commit 2a4e178e3536d800bc58f9001ecf3ec8e6d77011.
* xbps-src: multiple performance improvements.Juan RP2019-07-052-29/+16
| | | | | | | | | | | | | | | | | - 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
* 99-pkglint.sh: prevent installing files in /destdirCameron Nemo2019-06-231-1/+1
| | | | Signed-off-by: Cameron Nemo <cnemo@tutanota.com>
* xbps-src: exit properly if mktemp(1) fails, not from its subshell.Juan RP2019-06-172-2/+2
| | | | Thanks @huglovefan
* xbps-src: cleaned up usage of mktemp(1).Juan RP2019-06-172-2/+2
| | | | | This one was on my TODO for a long while... fixes unportable arguments (checked with the NetBSD's manual page).
* hooks/pre-pkg/05-prepare-32bit.sh: fix symlinksJürgen Buchmüller2019-05-281-1/+5
| | | | | | | | | If lib32symlinks contains plain library names without a path as in the case of glibc (lib32symlinks="ld-linux.so.2") the expression ${f%/*} is not empty, but returns the basename. Handle that case by verifying that ${f%/*} is different from ${f}. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
* 05-preapre-32bit.sh: avoid useless use of catmaxice82019-04-151-1/+1
|
* 99-pkglint.sh: avoid useless use of catmaxice82019-04-151-1/+1
|
* 06-shlib-provides.sh: avoid useless use of catmaxice82019-04-151-1/+1
|
* 05-prepare-32bit.sh: remove dirname usagemaxice82019-04-141-2/+2
|
* hooks/pre-pkg/05-prepare-32bit: handle files with spacesmaxice82019-04-061-2/+2
|