-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
prepare for a swtich to libcardiacarrest
#36657
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5797ba9
pkgs: tiny OCD fix
oxij bf44802
vpnc: fix url
oxij 2af121e
libpressureaudio: better descriptions
oxij a1832cf
firefoxPackages.tor-browser: update meta
oxij 82c6426
apulse: 0.1.11 -> 0.1.11 git, enable tracing by default
oxij 0b60cb9
libcardiacarrest: init at 11.0-6
oxij 0712a61
pkgs: reorganize things related to `libpulseaudio`
oxij 7cd02c8
pamixer: apply a patch to fix pulseaudio initialization bug
oxij 23e2ea9
firefoxPackages: add a patch to fix pulseaudio initialization bug
oxij File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pkgs/applications/networking/browsers/firefox/fix-pa-context-connect-retval.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| Yep, it's a "return code was ignored" bug. | ||
| diff --git a/media/libcubeb/src/cubeb_pulse.c b/media/libcubeb/src/cubeb_pulse.c | ||
| index aaaaaaaaaaa..bbbbbbbbbbb 100644 | ||
| --- a/media/libcubeb/src/cubeb_pulse.c | ||
| +++ b/media/libcubeb/src/cubeb_pulse.c | ||
| @@ -473,6 +473,8 @@ | ||
| static int | ||
| pulse_context_init(cubeb * ctx) | ||
| { | ||
| + int r; | ||
| + | ||
| if (ctx->context) { | ||
| assert(ctx->error == 1); | ||
| pulse_context_destroy(ctx); | ||
| @@ -486,9 +488,9 @@ | ||
| WRAP(pa_context_set_state_callback)(ctx->context, context_state_callback, ctx); | ||
|
|
||
| WRAP(pa_threaded_mainloop_lock)(ctx->mainloop); | ||
| - WRAP(pa_context_connect)(ctx->context, NULL, 0, NULL); | ||
| + r = WRAP(pa_context_connect)(ctx->context, NULL, 0, NULL); | ||
|
|
||
| - if (wait_until_context_ready(ctx) != 0) { | ||
| + if (r < 0 || wait_until_context_ready(ctx) != 0) { | ||
| WRAP(pa_threaded_mainloop_unlock)(ctx->mainloop); | ||
| pulse_context_destroy(ctx); | ||
| ctx->context = NULL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { stdenv, fetchFromGitHub, pkgconfig, glib, libpulseaudio }: | ||
|
|
||
| with stdenv.lib; | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| name = "libcardiacarrest-${version}"; | ||
| version = "11.0-6"; # <PA API version>-<version> | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "oxij"; | ||
| repo = "libcardiacarrest"; | ||
| rev = "1220b37b3de75238fedee1a66ca703fe1c8c71c3"; | ||
| sha256 = "0fkfiixjybac3rwcd26621hh5dw4f5gnmm230cr4g8fl0i2ikmrz"; | ||
| }; | ||
|
|
||
| outputs = [ "out" "dev" ]; | ||
|
|
||
| nativeBuildInputs = [ pkgconfig ]; | ||
|
|
||
| buildInputs = [ glib ]; | ||
|
|
||
| makeFlags = [ "PREFIX=$(out)" ]; | ||
|
|
||
| postInstall = '' | ||
| moveToOutput $out/include $dev | ||
| moveToOutput $out/lib/pkgconfig $dev | ||
| moveToOutput $out/lib/cmake $dev | ||
| ''; | ||
|
|
||
| meta = src.meta // { | ||
| description = "A trivial implementation of libpulse PulseAudio library API"; | ||
| longDescription = '' | ||
| libcardiacarrest is a trivial implementation of libpulse | ||
| PulseAudio library API that unconditionally (but gracefully) | ||
| fails to connect to the PulseAudio daemon and does nothing else. | ||
|
|
||
| apulse and pressureaudio (which uses apulse internally) are an | ||
| inspiration for this but unlike those two projects | ||
| libcardiacarrest is not an emulation layer, all it does is it | ||
| gracefully fails to provide the requested PulseAudio service | ||
| hoping the application would try something else (e.g. ALSA or | ||
| JACK). | ||
| ''; | ||
| license = libpulseaudio.meta.license; # "same as PA headers" | ||
| maintainers = [ maintainers.oxij ]; # also the author | ||
| }; | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't version gain a suffix in that case?