Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-1086] Add dependencies for postgis and pltcl plugins #21

Merged
merged 10 commits into from
Jan 29, 2024
Merged
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions rockcraft.yaml
TakoB222 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,21 @@ parts:
dpkg-query -W -f "${dpkg_ops}\n" \
--root=${CRAFT_PROJECT_DIR}/../parts/postgresql-snap/layer/ \
>> $CRAFT_PRIME/usr/share/rocks/dpkg.query
# PostgreSQL extensions
pushd "${CRAFT_PRIME}/usr/share/postgresql/14/extension"
ln -f postgis-3.control postgis.control
ln -f address_standardizer-3.control \
address_standardizer.control
ln -f address_standardizer_data_us-3.control \
address_standardizer_data_us.control
ln -f postgis_raster-3.control postgis_raster.control
ln -f postgis_tiger_geocoder-3.control \
postgis_tiger_geocoder.control
ln -f postgis_topology-3.control postgis_topology.control
ln -f postgis_topology-3.control postgis_topology.control
popd
# Required for postgis_raster and pltcl PostgreSQL extensions
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CRAFT_PRIME}/usr/lib/\
${CRAFT_ARCH_TRIPLET}/blas:${CRAFT_PRIME}/usr/lib/\
${CRAFT_ARCH_TRIPLET}/lapack"
export TCL_LIBRARY="${CRAFT_PRIME}/usr/share/tcltk/tcl8.6"
TakoB222 marked this conversation as resolved.
Show resolved Hide resolved