-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated make_pg_buildext_parallel.patch with new content
- Loading branch information
1 parent
7606926
commit c6021b9
Showing
1 changed file
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
--- /usr/bin/pg_buildext 2020-11-27 12:41:34.000000000 +0300 | ||
+++ /usr/bin/pg_buildext 2023-03-01 12:51:34.000000000 +0300 | ||
@@ -107,11 +107,13 @@ substvars() { | ||
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 -C $vtarget ${makefile:-} install DESTDIR="$PWD/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1 $MAKEVARS || return $? | ||
+ make -j${mjobs} -C $vtarget ${makefile:-} install DESTDIR="$PWD/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1 $MAKEVARS || return $? | ||
substvars "$1" "$package" | ||
} | ||
|
||
*** usr/bin/pg_buildext Mon Dec 16 11:43:17 2024 | ||
--- usr/bin/pg_buildext Mon Dec 16 11:48:46 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" | ||
} | ||
|