-
Notifications
You must be signed in to change notification settings - Fork 11
/
make_pg_buildext.patch
29 lines (25 loc) · 1.08 KB
/
make_pg_buildext.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
*** usr/bin/pg_buildext Fri Dec 27 10:00:42 2024
--- usr/bin/pg_buildext Fri Dec 27 10:06:25 2024
***************
*** 107,117 ****
install() {
prepare_env $1
package=`echo $opt | sed -e "s:%v:$1:g"`
mkdir -p $vtarget
# if a Makefile was created by configure, use it, else the top level Makefile
[ -f $vtarget/Makefile ] || makefile="-f $srcdir/Makefile"
! make -C $vtarget ${makefile:-} install DESTDIR="$PWD/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1 ${MAKEVARS:-} || return $?
substvars "$1" "$package"
}
--- 107,119 ----
install() {
prepare_env $1
package=`echo $opt | sed -e "s:%v:$1:g"`
+ procs="$(nproc)"
+ mjobs="$(expr $procs + 1)"
mkdir -p $vtarget
# if a Makefile was created by configure, use it, else the top level Makefile
[ -f $vtarget/Makefile ] || makefile="-f $srcdir/Makefile"
! make -j${mjobs} -C $vtarget ${makefile:-} install DESTDIR="$PWD/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1 ${MAKEVARS:-} || return $?
substvars "$1" "$package"
}