NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.7k stars 13.15k forks source link

Build failure: python-zbar #298195

Closed me00001 closed 3 months ago

me00001 commented 4 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Be in nixos-unstable chanale
  2. Run nix-shell -p cobang

Build log

$ nix-shell -p cobang
these 2 derivations will be built:
  /nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv
  /nix/store/wa9030lxnq2nic0i0ww02wmfbvswzkkr-cobang-0.10.5.drv
these 11 paths will be fetched (2.82 MiB download, 30.50 MiB unpacked):
  /nix/store/fpn5fjysjlllm2j4hk3yx7vr064m6lyv-cairo-1.18.0-dev
  /nix/store/39hr2fzdxa4l77vl1k7h1wbb1iir2y92-fontconfig-2.15.0-dev
  /nix/store/alj9ff9mzkimcj9rg93vfw97sgciv6gz-gobject-introspection-wrapped-1.78.1-dev
  /nix/store/ff17bgaxpalmr4hk6mgz31y5z2n7wm3i-gst-plugins-base-1.22.9-dev
  /nix/store/hf84d35w53in2gmdxbqjc8z3wvq3kqwq-gstreamer-1.22.9-dev
  /nix/store/v7falrvhgqxs59m37vqql6n8hbg24hzy-gtk+3-3.24.41-dev
  /nix/store/467zndmbypjznf7ryvfxs5wb2ag1r5fg-libXft-2.3.8-dev
  /nix/store/rp3spl5xxp9y8x6k9z4gb0fc70naa2l1-librsvg-2.57.1-dev
  /nix/store/6d6kbxpkdy3yhks07hg6rihyg4aw9bbk-pango-1.51.0-dev
  /nix/store/z8ng3gxslskc1c0zsw9br96422a6y5qc-python3.11-gst-python-1.22.9-dev
  /nix/store/z2z69j5pdg9bdarl7d00ygr66zaq9igh-wrap-gapps-hook
copying path '/nix/store/alj9ff9mzkimcj9rg93vfw97sgciv6gz-gobject-introspection-wrapped-1.78.1-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/hf84d35w53in2gmdxbqjc8z3wvq3kqwq-gstreamer-1.22.9-dev' from 'https://cache.nixos.org'...
building '/nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv'...
copying path '/nix/store/39hr2fzdxa4l77vl1k7h1wbb1iir2y92-fontconfig-2.15.0-dev' from 'https://cache.nixos.org'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/apslpr81spwy1dmf7p7spmp77wh57m4q-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/zbarimg/zbarimg.rc
Running phase: patchPhase
applying patch /nix/store/q29l26617j3h11y2cchll095qdnq2z87-0001-python-enum-fix-build-for-Python-3.11.patch
patching file python/enum.c
Hunk #1 FAILED at 52.
Hunk #2 FAILED at 143.
2 out of 2 hunks FAILED -- saving rejects to file python/enum.c.rej
error: builder for '/nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/apslpr81spwy1dmf7p7spmp77wh57m4q-source
       > source root is source
       > setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/zbarimg/zbarimg.rc
       > Running phase: patchPhase
       > applying patch /nix/store/q29l26617j3h11y2cchll095qdnq2z87-0001-python-enum-fix-build-for-Python-3.11.patch
       > patching file python/enum.c
       > Hunk #1 FAILED at 52.
       > Hunk #2 FAILED at 143.
       > 2 out of 2 hunks FAILED -- saving rejects to file python/enum.c.rej
       For full logs, run 'nix-store -l /nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv'.
error: 1 dependencies of derivation '/nix/store/wa9030lxnq2nic0i0ww02wmfbvswzkkr-cobang-0.10.5.drv' failed to build

Notify maintainers

@WolfangAukang

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.22, NixOS, 24.05 (Uakari), 24.05pre598085.c75037bbf909`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - channels(suliman): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

me00001 commented 4 months ago

For full logs, run 'nix-store -l /nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv'.


$ nix-store -l /nix/store/myznrshmhbm1na9f83lwqszbmyibd3gh-python3.11-python-zbar-0.23.93.drv
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/apslpr81spwy1dmf7p7spmp77wh57m4q-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/zbarimg/zbarimg.rc
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/q29l26617j3h11y2cchll095qdnq2z87-0001-python-enum-fix-build-for-Python-3.11.patch
patching file python/enum.c
Hunk #1 FAILED at 52.
Hunk #2 FAILED at 143.
2 out of 2 hunks FAILED -- saving rejects to file python/enum.c.rej


https://github.com/NixOS/nixpkgs/blob/20f77aa09916374aa3141cbc605c955626762c9a/pkgs/development/python-modules/python-zbar/default.nix#L21-L26
WolfangAukang commented 3 months ago

Last update to python-zbar was made through this PR

WolfangAukang commented 3 months ago

@me00001 please update title to Build failure: python-zbar

me00001 commented 3 months ago
Be in nixos-unstable chanale
Run nix-shell -p cobang

no longer exists