Skip to content

Include Cygwin /bin/lssparse.exe in msys2 #5311

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

Open
1 task done
cedricblancher opened this issue Apr 8, 2025 · 6 comments
Open
1 task done

Include Cygwin /bin/lssparse.exe in msys2 #5311

cedricblancher opened this issue Apr 8, 2025 · 6 comments
Labels

Comments

@cedricblancher
Copy link

Description / Steps to reproduce the issue

Based on the email thread "cygutils 1.4.17-2: lssparse -H does not print hole at offset 0 if more data exists" in the Cygwin mailing list

Please include the Cygwin /bin/lssparse.exe in msys2.
This is a utility (originally Solaris/SUN) to show the sparse block (data, hole) layout.

Cygwin puts this into the "cygutils-extra" package: https://cygwin.com/packages/x86_64/cygutils-extra/cygutils-extra-1.4.17-3

Official upstream source is http://svn.nrubsig.org/svn/people/gisburn/code/sparsefiles/lssparse.c
License is "MIT"

Expected behavior

/usr/bin/lssparse -H myfile.dat should work if file myfile.dat exists

Actual behavior

/usr/bin/lssparse.exe not found.

Verification

Windows Version

MINGW64_NT-10.0-19045

Are you willing to submit a PR?

No response

@cedricblancher
Copy link
Author

Please use wget 'http://svn.nrubsig.org/svn/people/gisburn/code/sparsefiles/lssparse.c' to get the source, Chrome chokes on the lack of HTTPS on that machine.

@cedricblancher
Copy link
Author

GZIPed source:
lssparse.c.gz

@cedricblancher
Copy link
Author

The tool should go into the same package as /bin/ls or /bin/fallocate

@cedricblancher
Copy link
Author

GZIPed source: lssparse.c.gz

Compile with:
gcc -std=gnu11 -D_GNU_SOURCE=1 lssparse.c -o lssparse.exe

-D_GNU_SOURCE=1 is required because MSYS2 didn't update unistd.h to Cygwin 3.6 level yet

@jeremyd2019
Copy link
Member

The tool should go into the same package as /bin/ls or /bin/fallocate

No it shouldn't. Those are from coreutils. I think you are just requesting an update to the cygutils package. Hopefully they committed to the cygwin-apps git repository this time and aren't carrying it as an additional patch in their packaging...

@dfshelton
Copy link

The tool should go into the same package as /bin/ls or /bin/fallocate

No it shouldn't. Those are from coreutils. I think you are just requesting an update to the cygutils package. Hopefully they committed to the cygwin-apps git repository this time and aren't carrying it as an additional patch in their packaging...

It is a patch in https://gcc.gnu.org/pub/cygwin/x86_64/release/cygutils/cygutils-1.4.17-3-src.tar.xz

But @cedricblancher send you the upstream location:
wget 'http://svn.nrubsig.org/svn/people/gisburn/code/sparsefiles/lssparse.c'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants