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

tetex: remove override libpng #270107

Closed

Conversation

Stunkymonkey
Copy link
Contributor

@Stunkymonkey Stunkymonkey commented Nov 26, 2023

Description of changes

#259879

with libpng it does not compile.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.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
  • Fits CONTRIBUTING.md.

Priorities

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: TeX Issues regarding texlive and TeX in general label Nov 26, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Nov 26, 2023
pbsds
pbsds previously approved these changes Nov 27, 2023
@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Nov 27, 2023
@pbsds pbsds dismissed their stale review November 27, 2023 03:05

Not in accordance with by-name README.md

@Stunkymonkey
Copy link
Contributor Author

@pbsds so moving the default.nix to pkgs/by-name/te/tetex/package.nix would be the additional change?

@pbsds
Copy link
Member

pbsds commented Nov 27, 2023

I'm not blocking, but in #259879 we found that the override should be kept, not inlined.

@Stunkymonkey
Copy link
Contributor Author

I'm not blocking, but in #259879 we found that the override should be kept, not inlined.

I am reading: If the override is still necessary then move it directly to the default.nix with a comment about why.

@pbsds
Copy link
Member

pbsds commented Nov 29, 2023

And in that thread I and kirilldry challenge the issue, since the by-name README states that using libpng12 as input instead of libpng changes the override interface and is therefore discouraged.

@Stunkymonkey Stunkymonkey force-pushed the tetex-remove-override-libpng branch from 8a72d2e to 16c1bde Compare December 29, 2023 23:25
@Stunkymonkey Stunkymonkey requested a review from pbsds December 29, 2023 23:26
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Dec 30, 2023
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, flex, bison, zlib, libpng, ncurses, ed, automake }:
{ lib, stdenv, fetchurl, flex, bison, zlib, libpng12, libpng ? libpng12, ncurses, ed, automake }:
Copy link
Member

Choose a reason for hiding this comment

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

error: builder for '/nix/store/hapr60a6qhjwd2hhf5ljz2334pmfp5ll-tetex-3.0.drv' failed with exit code 2;
       last 10 log lines:
       > writepng.c:152:45: error: invalid use of incomplete typedef 'png_info' {aka 'struct png_info_def'}
       >   152 |             pdfbuf[pdfptr++] = png_info(img)->palette[i].blue;
       >       |                                             ^~

The issue is explained here #259879 (comment)

@Artturin Artturin closed this Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: TeX Issues regarding texlive and TeX in general 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 12.approvals: 1 This PR was reviewed and approved by one reputable person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants