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

Ngen update #80

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
23 changes: 15 additions & 8 deletions docker/Dockerfile.ngen
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,22 @@ USER ${USER}
#These patches are from ngen commit 7551590a415b89026559c1c570d4154e4746161b
#and are needed to fix an I/O bug in the sub modules (and bmi tests) that cause an infinite loop
#https://github.com/NOAA-OWP/ngen/pull/515, https://github.com/NOAA-OWP/ngen/pull/518 both merged upstream, patch no longer needed
# All the affected submodules have patched/merged in their respective upstream repos,
# but ngen submodules have not been updated to the current HEAD
# of all the submdoules, and that might prove difficult to do in the near future, but if that does happen,
# then this can be removed at that point.
COPY fix_io_sub_7551590a415b89026559c1c570d4154e4746161b.patch ${WORKDIR}/ngen/fix_io_sub.patch
# All the affected submodules have been patched and the ngen submodule commits have been updated
# so this patch is no longer needed. I'm leaving these lines commented out in case custom patches
# need to be applied in the future.
# Patches can be generated with
# generate submodule patch:
#git submodule --quiet foreach --recursive 'export NAME="${PWD##*/}"; git --no-pager diff --src-prefix="a/extern/${NAME}/${NAME}/" --dst-prefix="b/extern/${NAME}/${NAME}/"' > fix_io_sub.patch
# generate patch of ngen without submodules
#git --no-pager diff --ignore-submodules > fix_io.patch
#It is then probably a good idea to to add a commit hash to thee patch file name as below
#to indicate from what point the patch was generated.

#COPY fix_io_sub_7551590a415b89026559c1c570d4154e4746161b.patch ${WORKDIR}/ngen/fix_io_sub.patch
# Apply the IO fix to submodules, once they all get patched/merged, this can be dropped...
RUN cd ${WORKDIR}/ngen && git apply --reject --whitespace=fix \
#patch the submodules
fix_io_sub.patch
#RUN cd ${WORKDIR}/ngen && git apply --reject --whitespace=fix \
# #patch the submodules
# fix_io_sub.patch

RUN cd ${WORKDIR}/ngen \
&& if [ "${NGEN_ACTIVATE_PYTHON}" == "ON" ]; then \
Expand Down
119 changes: 0 additions & 119 deletions docker/fix_io_sub_7551590a415b89026559c1c570d4154e4746161b.patch

This file was deleted.

Loading