1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

doc/PKGBUILD: document that functions run in -e mode

Caught this noted on the forums, but it is definitely worth a note in the
manpage as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-12-13 22:35:33 -06:00
parent c5f6995aeb
commit ba45cb4590

View File

@ -235,9 +235,11 @@ name. The syntax is: `source=('filename::url')`.
build() Function build() Function
---------------- ----------------
In addition to the above directives, the optional build() bash function usually In addition to the above directives, the optional build() bash function usually
comprises the remainder of the PKGBUILD. This is directly sourced and executed by comprises the remainder of the PKGBUILD. This is directly sourced and executed
makepkg, so anything that bash or the system has available is available for use by makepkg, so anything that bash or the system has available is available for
here. Be sure any exotic commands used are covered by `makedepends`. use here. The function is run in `bash -e` mode, meaning any command that exits
with a non-zero status will cause the function to exit. Be sure any exotic
commands used are covered by `makedepends`.
All of the above variables such as `pkgname` and `pkgver` are available for use All of the above variables such as `pkgname` and `pkgver` are available for use
in the build function. In addition, makepkg defines three variables for your in the build function. In addition, makepkg defines three variables for your
@ -261,10 +263,12 @@ the build function.
package() Function package() Function
------------------ ------------------
An optional package() function can be specified in addition to the build() function. An optional package() function can be specified in addition to the build()
This function is run immediately after the build() function. When specified in function. This function is run immediately after the build() function. The
combination with the fakeroot BUILDENV option in linkman:makepkg.conf[5], fakeroot function is run in `bash -e` mode, meaning any command that exits with a
usage will be limited to running the packaging stage. An existing build() function non-zero status will cause the function to exit. When specified in combination
with the fakeroot BUILDENV option in linkman:makepkg.conf[5], fakeroot usage
will be limited to running the packaging stage. An existing build() function
will be run as the user calling makepkg. will be run as the user calling makepkg.
Package Splitting Package Splitting