Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ungoogled-chromium-bin and apulse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Tue Oct 31, 2023 3:57 am    Post subject: ungoogled-chromium-bin and apulse Reply with quote

My desktop amd64 system is -pulseaudio +alsa working well according to my tastes. media-sound/apulse is installed, and firefox is my usual web browser.

I occasionally use ungoogled-chromium-bin from the pf4public respository. However, it will not run as installed in the /opt/chromium-browser/ directory.

/usr/bin/chromium and /usr/bin/chromium-browser are symbolic links to the script /opt/chromium-browser/chromium-launcher.sh where the last line (line 59) reads:
Code:
exec -a "chromium-browser" apulse "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib64/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"

resulting in :
Code:
$ chromium
/usr/bin/chromium: line 59: exec: apulse: not found

Changing that last line removing the "apulse" as follows:
Code:
exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib64/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"

Results in ungoogled-chromium-bin running just fine, sound working as expected.

Other ungoogled-chromium binaries such as the AppImage from https://ungoogled-software.github.io/ungoogled-chromium-binaries/ such as ungoogled-chromium_118.0.5993.88-1.1.AppImage also work just fine as is.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
PF4Public
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2019
Posts: 104

PostPosted: Sat Jan 27, 2024 11:07 am    Post subject: Reply with quote

apulse support was added long time ago upon a request: https://github.com/PF4Public/gentoo-overlay/pull/46. It might've stopped functioning since then :) Does "apulse" package no longer provide "apulse" binary? What would "equery f apulse" print out?
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Sat Jan 27, 2024 5:56 pm    Post subject: Reply with quote

PF4Public -- thanks for responding. Here is the requested output:
Code:
$ equery f apulse
 * Searching for apulse ...
 * Contents of media-sound/apulse-0.1.13-r2:
/usr
/usr/include
/usr/include/pulse
/usr/include/pulse/cdecl.h
/usr/include/pulse/channelmap.h
/usr/include/pulse/context.h
/usr/include/pulse/def.h
/usr/include/pulse/error.h
/usr/include/pulse/ext-device-manager.h
/usr/include/pulse/ext-device-restore.h
/usr/include/pulse/ext-stream-restore.h
/usr/include/pulse/format.h
/usr/include/pulse/gccmacro.h
/usr/include/pulse/glib-mainloop.h
/usr/include/pulse/introspect.h
/usr/include/pulse/mainloop-api.h
/usr/include/pulse/mainloop-signal.h
/usr/include/pulse/mainloop.h
/usr/include/pulse/operation.h
/usr/include/pulse/proplist.h
/usr/include/pulse/pulseaudio.h
/usr/include/pulse/rtclock.h
/usr/include/pulse/sample.h
/usr/include/pulse/scache.h
/usr/include/pulse/simple.h
/usr/include/pulse/stream.h
/usr/include/pulse/subscribe.h
/usr/include/pulse/thread-mainloop.h
/usr/include/pulse/timeval.h
/usr/include/pulse/utf8.h
/usr/include/pulse/util.h
/usr/include/pulse/version.h
/usr/include/pulse/volume.h
/usr/include/pulse/xmalloc.h
/usr/lib64
/usr/lib64/libpulse-mainloop-glib.so -> libpulse-mainloop-glib.so.0
/usr/lib64/libpulse-mainloop-glib.so.0
/usr/lib64/libpulse-simple.so -> libpulse-simple.so.0
/usr/lib64/libpulse-simple.so.0
/usr/lib64/libpulse.so -> libpulse.so.0
/usr/lib64/libpulse.so.0
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/libpulse-mainloop-glib.pc
/usr/lib64/pkgconfig/libpulse-simple.pc
/usr/lib64/pkgconfig/libpulse.pc
/usr/share
/usr/share/doc
/usr/share/doc/apulse-0.1.13-r2
/usr/share/doc/apulse-0.1.13-r2/README.md.bz2

There appears to be no apulse binary.

The /usr/bin/firefox that is installed with firefox-bin contains ONLY the following reference to apulse:
Code:
APULSELIB_DIR="/usr/lib64/apulse"

Media and streaming work fine with both the ungoogled-chromium-bin and firefox-bin.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
PF4Public
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2019
Posts: 104

PostPosted: Sat Jan 27, 2024 6:36 pm    Post subject: Reply with quote

I see, so they decided to substitute the library with their own. Which means there is no longer need to prepend the command with apulse. FYI fixed in https://github.com/PF4Public/gentoo-overlay/commit/496ad1cb560edd9c1bc10fcb1e2428834bb4575c
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Sat Jan 27, 2024 7:12 pm    Post subject: Reply with quote

I re-synced pf4public and re-emerged ungoogled-chromium-bin. I don't observe any change though it still works with my hack. Should I wait longer to sync? Will there be a version bump?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
PF4Public
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2019
Posts: 104

PostPosted: Sat Jan 27, 2024 8:24 pm    Post subject: Reply with quote

Check, which version you are installing. I fixed only ungoogled-chromium-bin-119.0.6045.199.ebuild.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Sat Jan 27, 2024 8:40 pm    Post subject: Reply with quote

Just now re-synced and re-emerged ungoogled-chromium-bin-119.0.6045.199 (the version I had been using). I can now see the change in chromium-launcher.sh and it works without needing any modification and sound continues to work normally. Thank you and well done.

FYI, I'm not sure it matters, but these are the outputs I see when launching from a terminal shell:
Code:
$ chromium
[1284:1284:0127/153407.528199:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[1318:1318:0127/153407.619620:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.619770:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.619829:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.619885:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.619939:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.619994:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620047:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620100:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620158:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620214:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620268:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620321:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620372:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620429:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620483:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620536:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620589:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620648:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620701:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620754:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620806:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620858:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620911:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.620966:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621019:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621073:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621126:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621235:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621337:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621446:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621550:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621649:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621750:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621857:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.621956:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.622057:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.622156:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.622255:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.622355:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[1318:1318:0127/153407.622462:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
Warning: Couldn't load Vulkan. Searched /opt/chromium-browser/libvulkan.so.1, /opt/chromium-browser/libvulkan.so.1, libvulkan.so.1.
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:299)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:304)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
PF4Public
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2019
Posts: 104

PostPosted: Sat Jan 27, 2024 9:08 pm    Post subject: Reply with quote

If it ain't broken, don't fix it :) It is searching for Vulkan, which you probably don't have. Should be harmless.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3005
Location: Edge of marsh USA

PostPosted: Sat Jan 27, 2024 9:33 pm    Post subject: Reply with quote

Absolutely. I'm still Vulkan-free. Thanks for the feedback.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum