mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
makepkg: run pkgver() and prepare() with --noextract
Modifications made to the source before running with --noextract may alter the version string returned by pkgver(). Always run this function if present and check build status before proceeding. Fixes FS#46800. Also run prepare() when --noextract is used (unless --noprepare is specified). Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
686fae6d74
commit
8454daa7fe
@ -55,11 +55,11 @@ Options
|
|||||||
installed.
|
installed.
|
||||||
|
|
||||||
*-e, \--noextract*::
|
*-e, \--noextract*::
|
||||||
Do not extract source files or run the prepare() function (if present);
|
Do not extract source files; use whatever source already exists in the
|
||||||
use whatever source already exists in the $srcdir/ directory. This is
|
$srcdir/ directory. This is handy if you want to go into $srcdir/ and
|
||||||
handy if you want to go into $srcdir/ and manually patch or tweak code,
|
manually patch or tweak code, then make a package out of the result.
|
||||||
then make a package out of the result. Keep in mind that creating a
|
Keep in mind that creating a patch may be a better solution to allow
|
||||||
patch may be a better solution to allow others to use your PKGBUILD.
|
others to use your PKGBUILD.
|
||||||
|
|
||||||
*\--verifysource*::
|
*\--verifysource*::
|
||||||
For each source file in the source array of PKGBUILD, download the file
|
For each source file in the source array of PKGBUILD, download the file
|
||||||
|
@ -2205,14 +2205,15 @@ elif (( !REPKG )); then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
extract_sources
|
extract_sources
|
||||||
if (( PKGVERFUNC )); then
|
fi
|
||||||
update_pkgver
|
|
||||||
basever=$(get_full_version)
|
if (( PKGVERFUNC )); then
|
||||||
check_build_status
|
update_pkgver
|
||||||
fi
|
basever=$(get_full_version)
|
||||||
if (( PREPAREFUNC )); then
|
check_build_status
|
||||||
run_prepare
|
fi
|
||||||
fi
|
if (( PREPAREFUNC )); then
|
||||||
|
run_prepare
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( NOBUILD )); then
|
if (( NOBUILD )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user