visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
443 stars 116 forks source link

Silo patching failing in build_visit #20070

Closed biagas closed 3 days ago

biagas commented 4 days ago

Describe the bug

The patches for fpzip are failing in container builds on Debian and Ubuntu, due to different line endings. I tried to force the cray path, which calls dos2unix, and uses a different patch function, but the dos2unix command wasn't available.

Desktop

@markcmiller86 @JustinPrivitera suggestions?

JustinPrivitera commented 4 days ago

patch --binary perhaps?

JustinPrivitera commented 4 days ago

or maybe we just provide a good tarball with correct line endings

biagas commented 4 days ago

patch --binary perhaps?

didn't work.

or maybe we just provide a good tarball with correct line endings

I tried this manually, and it works. Had to also modify the build script to use the non-windows-line-endings version of the patch.

JustinPrivitera commented 4 days ago

well so, does it work if we modify the logic such that dos2unix is never called but the non-windows-line-endings patch is applied?

biagas commented 4 days ago

well so, does it work if we modify the logic such that dos2unix is never called but the non-windows-line-endings patch is applied?

No. Tried that first. Then I untarred the silo file, changed the fpzip files to unix style by hand, and retarred it. Modified the script, then reran and it worked.

biagas commented 4 days ago

BTW, I did try to install 'dos2unix' in the Debian container. Even thought their packages website shows it is available, I couldn't get it installed.

biagas commented 4 days ago

@markcmiller86 what do you think of modifying the silo source tarball used by build_visit to remove those pesky windows line endings?

JustinPrivitera commented 3 days ago

@cyrush says we can go ahead and modify the tarball.

JustinPrivitera commented 3 days ago

I will do this now.

JustinPrivitera commented 3 days ago

In TPL release and repo: image