Why nix-run is complaining about failing to fetch a patch

accessing the url in my browser fails to a list of zero pointers code

error: Cannot build '/nix/store/sqpbkvxm3kwv8fd99pfjx66m1a8fckv7-0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/j0ir0x6m2kh4zkkssg4jg6w4lvsqiwhv-0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch
       Last 25 log lines:
       > 005
       > 006  <span class="reservedword">Begin</span>
       > 007          <span class="symbol">p</span> := <span class="reservedword">nil</span>;
       > 008          <span class="symbol">p</span>^ := 0;
       > 009  <span class="reservedword">End</span>.</pre>
       >
       > <h1>x86 Assembler</h1>
       >
       > <pre>001  <span class="reservedword">.global</span> <span class="symbol">main</span>
       > 002
       > 003  <span class="symbol">main</span>:
       > 004          <span class="reservedword">movl</span> $0x0,0x0
       > 005          <span class="reservedword">ret</span></pre>
       >
       >
       > <h1>Sparc Assembler</h1>
       > <pre>001  <span class="reservedword">.global</span> <span class="symbol">main</span>
       > 002
       > 003  <span class="symbol">main</span>:
       > 004          <span class="reservedword">ret</span>
       > 005          <span class="reservedword">ld</span> [%g0], %l0</pre>
       > </div>
       >
       > </body>
       > </html>
       For full logs, run:
         nix log /nix/store/sqpbkvxm3kwv8fd99pfjx66m1a8fckv7-0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch.drv

trying http://git.0pointer.net/libcanberra.git/patch/?id=c0620e432650e81062c1967cc669829dbd29b310
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     0^M  0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     0^M  0     0   0     0   0     0     0     0  --:--:--  0:00:01 --:--:--     0^M100   272 100   272   0     0   146     0   0:00:01  0:00:01 --:--:--   1>
^M  0     0   0     0   0     0     0     0  --:--:--  0:00:02 --:--:--     0^M  0     0   0     0   0     0     0     0  --:--:--  0:00:03 --:--:--     0^M100  3713 100  3713   0     0   791     0   0:00:04  0:00:04 --:--:--  1600^M100  3713 100  3713   0     0   791     0   0:00:04  0:00:04 --:--:--  16>
error: Normalized patch '/build/patch' is empty (while the fetched file was not)!
Did you maybe fetch a HTML representation of a patch instead of a raw patch?
Fetched file was:
<?xml version="1.0" encoding="iso-8859-15"?> <!-- -*-html-helper-*- -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=iso-8859-15"/>
<title>http://0pointer.net/</title>
<style type="text/css">

body { margin: 0px; font-family: serif; background-color: white; color: black; margin: 0; text-align: center }

#contents { vertical-align: middle; text-align: left; padding: 20px; margin: 10% 25%; border: 1px solid black; background-color: #e0e0e0 }

#impressumdiv1 { text-align: right; width: 100%; position: fixed; top: 0; left: 0; height: auto }
#impressumdiv2 { padding: 20px; }
#impressumlink { font-size: small; text-decoration: none; color: black; background-color: lightgray; padding:5px }
#impressumlink:hover { background-color: black; color: white } 


.reservedword { font-weight: bold }
.symbol { font-style: italic }

pre { padding: 20px; background-color: black; color: lightgreen }

h1 { font-style: bold; font-size: x-large }

</style>
</head>

<body>

<div id="impressumdiv1">
<div id="impressumdiv2"><a id="impressumlink" href="/imprint">Impressum/Imprint</a></div>
</div>

What exactly are you trying to build here, and how?

1 Like

open-al-soft-1.24.3 → electron-unwrapped-38.7.1 → pipewire-1.4.9 → libcanberra-0.30 → 0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays

met multiple times with different flakes

This appears to be failing because the upstream git repository is now redirecting to something that is not a git repository. So the patch cannot be obtained.

Compare

With the current web page of
http://git.0pointer.net/.

It’s fixed here libcanberra: use a local copy of the `GdkDisplay` patch by liff · Pull Request #491106 · NixOS/nixpkgs · GitHub

but it’d need to get backported (if you’re using stable) and staging merges also take (up to) a couple weeks.

1 Like

this will have broken 25.11 and other versions as well, right? everything non-staging is going to try to get that patch from remote. is it appropriate to try to get this patch backported aggressively?

1 Like

Backport is at [Backport staging-25.11] libcanberra: use a local copy of the `GdkDisplay` patch by nixpkgs-ci[bot] · Pull Request #495471 · NixOS/nixpkgs · GitHub, committer has to merge it.

EDIT: merged, it should reach stable soon if it hasn’t already.

1 Like