-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
298 additions
and
14 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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Bibop recipe for PostgreSQL 16 Libraries | ||
# See more: https://kaos.sh/bibop | ||
|
||
pkg gcc postgresql16-devel postgresql16-libs | ||
|
||
var version 16 | ||
var install_dir /usr/pgsql-{version} | ||
var lib_dir {install_dir}/lib | ||
var include_dir {install_dir}/include | ||
|
||
var libpq_linking_flags "-lpq" | ||
var libpgtypes_linking_flags "-lpgtypes" | ||
var libecpg_linking_flags "-lecpg" | ||
var libecpg_compat_linking_flags "-lecpg_compat" | ||
|
||
command "-" "Check development environment" | ||
lib-loaded libecpg.so.* | ||
lib-loaded libecpg_compat.so.* | ||
lib-loaded libpgtypes.so.* | ||
lib-loaded libpq.so.* | ||
lib-loaded libpqwalreceiver.so | ||
|
||
lib-config libecpg_compat | ||
lib-config libecpg | ||
lib-config libpgtypes | ||
lib-config libpq | ||
|
||
command "gcc -o test_libpq_bin -I {include_dir} -L {lib_dir} {libpq_linking_flags} test_libpq.c" "Compile binary with libpq" | ||
exit 0 | ||
exist test_libpq_bin | ||
|
||
+command "./test_libpq_bin" "Execute built binary" | ||
exit 0 | ||
|
||
command "gcc -o test_libpgtypes_bin -I {include_dir} -L {lib_dir} {libpgtypes_linking_flags} test_libpgtypes.c" "Compile binary with libpgtypes" | ||
exit 0 | ||
exist test_libpgtypes_bin | ||
|
||
+command "./test_libpgtypes_bin" "Execute built binary" | ||
exit 0 | ||
|
||
command "gcc -o test_libecpg_bin -I {include_dir} -L {lib_dir} {libecpg_linking_flags} test_libecpg.c" "Compile binary with libecpg" | ||
exit 0 | ||
exist test_libecpg_bin | ||
|
||
+command "./test_libecpg_bin" "Execute built binary" | ||
exit 0 | ||
|
||
command "gcc -o test_libecpg_compat_bin -I {include_dir} -L {lib_dir} {libecpg_compat_linking_flags} test_libecpg_compat.c" "Compile binary with libecpg_compat" | ||
exit 0 | ||
exist test_libecpg_compat_bin | ||
|
||
+command "./test_libecpg_compat_bin" "Execute built binary" | ||
exit 0 |
Oops, something went wrong.