-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
{id3lib,game-music-emu,mpd,a52dec,yabai,handbrake,cmus}: fix on aarch64-darwin #137942
Conversation
These appear to be two independent packages of exactly the same piece of software! Replace the one that's broken on aarch64-darwin with the one that isn't.
This fixes the build on aarch64-darwin.
liba52 is the library; a52dec is the example program it ships with. Most (all?) of the packages depending on this use it for the library; a52dec is left as an alias for users.
Result of 3 packages marked as broken and skipped:
9 packages failed to build:80 packages skipped due to time constraints:
39 packages built successfully:
3 suggestions:
Note that build failures may predate this PR, and could be nondeterministic or hardware dependent. Result of 2 packages marked as broken and skipped:
200 packages skipped due to time constraints:
17 packages built successfully:
3 suggestions:
|
The SourceForge site hasn't seen a release since 2002; the VideoLAN repository has over 7 years of additional changes and fixes, including quite a few by the maintainer listed on the SF site, so I'm going to take it as the canonical repository. I'm not sure if these ever saw formal release, so I've just tagged it with a commit date. VLC needs a trivial patch to accommodate a slight API change; this was previously reported and rejected in 2010 (https://code.videolan.org/videolan/vlc/-/issues/3731) and a patch was shared and considered, but never applied, in 2012 (https://mailman.videolan.org/pipermail/vlc-devel/2012-January/084325.html). I considered backing out this update in light of this, but I think carrying the tiny VLC patch is probably the better approach; other downstream consumers like GStreamer already handle both APIs, and the unreleased commits include some important-looking fixes (including potential UB). All of this is probably irrelevant in practice, since VLC prefers using libavcodec to decode AC3 where possible, and I imagine other software either follows suit or ought to. Arguably the liba52 package should just be removed.
I'm hoping this fixes the test failure on i686, though I haven't tested it yet.
This fixes the build on aarch64-darwin.
Contains fixes for aarch64-darwin.
This hasn't been used since 2014; see HandBrake/HandBrake@0306771.
Contains fixes for aarch64-darwin.
Fixes the build on aarch64-darwin.
9d82782
to
717c5c6
Compare
Force-pushed to (hopefully) fix VLC. See 4785666 for the annoying details. |
|
It looks like the VideoToolbox dependency was present before b725cd7, so I guess this is a case of the updated version depending on things that aren't in the old headers we use for @risicle Could you check if it works with this (possibly evil, this doesn't seem to be done in-tree at present) change? diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aca7715bc5a..ab9c66af554 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -25580,7 +25580,8 @@ with pkgs;
lxdvdrip = callPackage ../applications/video/lxdvdrip { };
handbrake = callPackage ../applications/video/handbrake {
- inherit (darwin.apple_sdk.frameworks) AudioToolbox Foundation VideoToolbox;
+ inherit (darwin.apple_sdk.frameworks) AudioToolbox Foundation;
+ inherit (darwin.apple_sdk_11_0.frameworks) VideoToolbox;
inherit (darwin) libobjc;
};
|
|
id3lib = callPackage ../development/libraries/id3lib { | ||
inherit (darwin) libiconv; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id3lib = callPackage ../development/libraries/id3lib { | |
inherit (darwin) libiconv; | |
}; | |
id3lib = callPackage ../development/libraries/id3lib { }; |
libiconv is part of top-level.
description = "ATSC A/52 stream decoder"; | ||
homepage = "https://code.videolan.org/videolan/liba52"; | ||
platforms = platforms.unix; | ||
license = licenses.gpl2Plus; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing maintainer
extraPostFetch = '' | ||
echo "DATE=$(date +"%F %T %z" -r $out/NEWS.markdown)" > $out/version.txt | ||
''; | ||
}; | ||
|
||
# Remove with a release after 1.3.3 | ||
patches = [ | ||
(fetchpatch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the unused fetchpatch from inputs.
Any news on this PR moving forward? |
👀 |
@marcelarie @Sciencentistguy feel free to pick it up |
Closing due to inactivity |
Motivation for this change
The third in the series of quick Apple Silicon fixes, and maybe the last batch for now.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)