[pacman-dev] [PATCH 1/5] Add warning in PKGBUILD manpage about use of $startdir/{src, pkg}

Allan McRae allan at archlinux.org
Fri Aug 12 18:56:13 EDT 2011


On 09/08/11 20:56, Sebastien Luttringer wrote:
> Signed-off-by: Sebastien Luttringer<seblu at seblu.net>
> ---
>   doc/PKGBUILD.5.txt |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt
> index af3a388..eeea4da 100644
> --- a/doc/PKGBUILD.5.txt
> +++ b/doc/PKGBUILD.5.txt
> @@ -273,6 +273,8 @@ variables for use during the build and install process:
>   *startdir*::
>   	This contains the absolute path to the directory where the PKGBUILD is
>   	located, which is usually the output of `$(pwd)` when makepkg is started.
> +	`$startdir/src` is not guaranteed to be the same as `$srcdir`, and likewise
> +	for `$pkgdir`.
>
>   *srcdir*::
>   	This contains the directory where makepkg extracts, or copies, all source


I'd prefer to add a warning that there is probably no reason to ever use 
$startdir in a PKGBUILD rather that mentioning constructs like 
$startdir/src which have been deprecated for years now.

Allan



More information about the pacman-dev mailing list