void-packages/common/xbps-src/shutils
Piotr Wójcik 1b9578b20c xbps-src: explicitly disallow pattern on build deps
It is not possible to use version other than currently in template.

Specifying pattern breaks build if dependency isn't in binary repo
already. That it worked when in repo was a coincidence.

Let's detect exact version requirement with regex equivalent to
`xbps-uhelper getpkgname`.

    bash-5.1$ for x in a-{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}; do [[ $x = *[\>\<]* || $x =~ -[^-_]*[0-9][^-_]*_[0-9_]+$ ]]; bash=$?; xbps-uhelper getpkgname $x > /dev/null 2> /dev/null; xbps=$?; if [ $bash != $xbps ]; then echo $x; fi; done
    bash-5.1$

Co-authored-by: Duncaen <duncaen@voidlinux.org>
2023-02-13 20:09:29 -05:00
..
build_dependencies.sh xbps-src: don't use deprecated egrep 2022-10-22 15:33:42 +02:00
bulk.sh common/xbps-src/shutils/: add bootstrap repo 2023-02-03 20:32:46 -06:00
chroot.sh common/xbps-src/shutils/: add bootstrap repo 2023-02-03 20:32:46 -06:00
common.sh xbps-src: explicitly disallow pattern on build deps 2023-02-13 20:09:29 -05:00
consistency_check.sh common: cleanup trailing whitespaces 2023-02-07 03:26:02 -05:00
cross.sh common/xbps-src/shutils/cross: update cross-vpkg-dummy version. 2020-04-06 22:26:43 +02:00
pkgtarget.sh xbps-src: add flag to build broken packages 2022-04-26 21:29:11 +02:00
purge_distfiles.sh common/.../purge_distfiles.sh: fix template scan 2020-05-04 19:23:25 +02:00
show.sh common/xbps-src/shutils/show.sh: make show display consistent 2022-12-18 19:27:01 -05:00
update_check.sh common/xbps-src/shutils/update_check.sh: tweak url and rx for git.sr.ht 2022-12-04 21:37:30 -05:00
update_hash_cache.sh