Skip to content

laszip_2: build with autoreconfHook#445081

Closed
qbisi wants to merge 2 commits intoNixOS:masterfrom
qbisi:laszip_2
Closed

laszip_2: build with autoreconfHook#445081
qbisi wants to merge 2 commits intoNixOS:masterfrom
qbisi:laszip_2

Conversation

@qbisi
Copy link
Contributor

@qbisi qbisi commented Sep 21, 2025

laszip_2 not compatible with cmake4, hence build with autoreconfHook

ref: https://gitlab.archlinux.org/archlinux/packaging/packages/laszip2/-/blob/main/PKGBUILD?ref_type=heads

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@qbisi qbisi marked this pull request as draft September 21, 2025 22:12
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Sep 21, 2025
@qbisi qbisi marked this pull request as ready for review September 21, 2025 22:21
@qbisi
Copy link
Contributor Author

qbisi commented Sep 21, 2025

also need to patch liblas's findLASZIP since the header are installed in $out/include instead of $out/include/laszip

see: libLAS/libLAS#230

@qbisi qbisi marked this pull request as draft September 21, 2025 22:50
@qbisi qbisi marked this pull request as ready for review September 22, 2025 12:30
Copy link
Contributor

@LordGrimmauld LordGrimmauld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was slightly worried. Building with autotools means the cmake files would not be installed. However, turns out cmake files were never installed to begin with. It'd be nice to have, that way there'd be less guessing about include paths. But alas, it is what it is, and in this case autotools build probably won't break much.

@LordGrimmauld
Copy link
Contributor

(oops, should have been comment, not request changes, sorry - checking this pr now)

@qbisi
Copy link
Contributor Author

qbisi commented Sep 23, 2025

changes in libLAS have been moved to seperate pr #445202.

Copy link
Contributor

@LordGrimmauld LordGrimmauld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay this does actually break. When built with autotools, laszip-config ends up missing. There is also only an include path, no cmake or package config files.

I'd prefer a substituteInPlace to bump the cmake min version instead.

@qbisi
Copy link
Contributor Author

qbisi commented Sep 23, 2025

laszip_2 use the same upstream source as laszip and it will never get updated, the compatiblilty with cmake v4 or higher is unkonwn.

@LordGrimmauld
Copy link
Contributor

It should be fine to just force cmake minimum version 3.10. Chances are they don't use anything that changed between 2.6 (or whatever current min version is) and 3.10

@qbisi
Copy link
Contributor Author

qbisi commented Sep 23, 2025

The version/source of laszip_2 is frozen. Does cmake v4 has long term backward compatilbilty with version 3.10, so we dont have to change the substitution when upgrading cmake.

@qbisi
Copy link
Contributor Author

qbisi commented Sep 23, 2025

Or we can drop laszip_2 once libLAS build with laszip

cmakeFlags = [
"-DWITH_LASZIP=ON"
# libLAS is currently not compatible with LASzip 3,
# see https://github.com/libLAS/libLAS/issues/144.
"-DLASZIP_INCLUDE_DIR=${laszip_2}/include"
"-DCMAKE_EXE_LINKER_FLAGS=-pthread"
];

@LordGrimmauld
Copy link
Contributor

laszip iirc also goes into vtk.

Does cmake v4 has long term backward compatilbilty with version 3.10

Yes, this is the plan.

@qbisi qbisi closed this Sep 24, 2025
@qbisi qbisi changed the title laszip_2: build with autoreconfHook laszip_2: fix build with cmake v4 Sep 24, 2025
@qbisi qbisi mentioned this pull request Sep 24, 2025
13 tasks
@qbisi qbisi changed the title laszip_2: fix build with cmake v4 laszip_2: build with autoreconfHook Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants