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

libtiff: 4.3.0 -> 4.4.0 #175986

Merged
merged 4 commits into from Jun 19, 2022
Merged

Conversation

kevinmehall
Copy link
Contributor

Description of changes

New upstream release: http://www.simplesystems.org/libtiff/v4.4.0.html

Removed all CVE patches, since they reference commits in the history of the v4.4.0 tag.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
    • PENDING: libtiff.passthru.tests
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@willcohen willcohen left a comment

Choose a reason for hiding this comment

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

Looking forward! There've been some changes post-4.3.0 with building that I've been patching on some downstream projects in the meantime.

@kevinmehall
Copy link
Contributor Author

Breaks freeimage-unstable-2021-11-01 build with:

Source/Metadata/XTIFF.cpp: In function 'BOOL tiff_write_exif_tags(TIFF*, TagLib::MDMODEL, FIBITMAP*)':
Source/Metadata/XTIFF.cpp:752:38: error: '_TIFFDataSize' was not declared in this scope; did you mean 'TIFFDataType'?
  752 |                         if((unsigned)_TIFFDataSize(tif_tag_type) != FreeImage_TagDataWidth(tag_type)) {
      |                                      ^~~~~~~~~~~~~
      |                                      TIFFDataType

freeimage is using a non-public libtiff API that was removed and replaced with a public API. This had already been reported on the freeimage forum and the libtiff mailing list. I'll try applying that patch.

@kevinmehall
Copy link
Contributor Author

A pillow test also fails (Tests/test_file_libtiff.py:302: AssertionError) . Looks like python-pillow/Pillow#6339 may be needed to fix that.

@SuperSandro2000
Copy link
Member

I am the pillow maintainer. Would be great if you could include that patch.

@ofborg ofborg bot requested review from viric and L-as June 3, 2022 00:29
Copy link
Member

@L-as L-as left a comment

Choose a reason for hiding this comment

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

LGTM

@vcunat vcunat merged commit 29b622d into NixOS:staging Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants