Skip to content

minizip: don't install crypt.h #229

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
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

praiskup
Copy link

People did mistakenly or unintentionally include crypt.h before,
don't install this internal header from now.

People did mistakenly or unintentionally include crypt.h before,
don't install this internal header from now.
@praiskup
Copy link
Author

@praiskup
Copy link
Author

Looking at file readme, I'm curious how maintenance of contrib files works in zlib. I tried to contact both original authors of minizip, and none of them seem to be able to help merging those PRs in.

Since there are no huge requirements on quality of code under ./contrib (unsupported code),
could we simply merge those fixes in? Or could we drop the ./minizip subdirectory entirely
as a clear note that we should move to forks?

stumbles added a commit to lunar-linux/moonbase-other that referenced this pull request Aug 10, 2018
maxice8 added a commit to void-linux/void-packages that referenced this pull request Nov 15, 2018
@okias
Copy link

okias commented Nov 24, 2019

@madler since this fix is probably used on many distributions (RedHat I guess and Gentoo for sure), could be incorporated to next release?

Thank you

@thesamesam
Copy link

@madler ping

@dvzrv
Copy link

dvzrv commented Aug 20, 2023

We're also deleting the crypt.h header file manually when packaging zlib for Arch Linux. @madler can this please be included? :)

@Neustradamus
Copy link

@gvollant: Can you look?

@marv
Copy link

marv commented Jan 23, 2024

Gentle ping

@madler
Copy link
Owner

madler commented Jan 23, 2024

I'm not seeing what the issue is here. There is no problem with z_crc_t, as it is defined in zlib.h. I just tried compiling minizip with all combinations of NOCRYPT and NOUNCRYPT, and it works fine. (After removing the forced definition of NOUNCRYPT in unzip.c.)

I don't understand what "People did mistakenly or unintentionally include crypt.h before" means.

@MikeWeller
Copy link

One issue this solves is that crypt.h conflicts with the GNU crypt.h. I've just run into this causing a problem with a C++ project that use Python.h (which has a #include <crypt.h>) but also has a (transitive) dependency on minizip, thus pulling in an -I/path/to/minizip and the wrong header is resolved.

dbushong added a commit to dbushong/pyminizip that referenced this pull request Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants