Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] pulseaudio: install libpulse only
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
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Tue Aug 03, 2021 8:24 am    Post subject: [solved] pulseaudio: install libpulse only Reply with quote

Similar to how Arch does it (https://github.com/archlinux/svntogit-packages/blob/packages/pulseaudio/trunk/PKGBUILD), can you simply strip out libpulse and install libpulse libs only on Gentoo? I personally dont use the whole Pulseaudio server, and only need libpulse for running Steam natively without the runtime. Hopefully, with the release of pipewire, Steam will drop Pulseaudio eventually. But is there a way to strip out libpulse and install the libpulse libs only in an ebuild?
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420


Last edited by shoober420 on Thu Aug 05, 2021 4:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Aug 03, 2021 9:10 am    Post subject: Reply with quote

but what would provide "pulseaudio" that other applications build against?

Basically a virtual is needed and all the ebuilds updated. Can it be done? sure, is it being done? no ... patches welcome
Arch as a predominantly binary distro has a lot of flex where the developers can knife and fork such stuff together... Gentoo is a different ballgame where every users machine is a distributor packaging machine with their own local settings. The permutations are larger than the number of atoms in the universe

https://bugs.gentoo.org/744622
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Tue Aug 03, 2021 9:23 am    Post subject: Reply with quote

Just modify ebuild in your repo for your needs.
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Tue Aug 03, 2021 9:49 am    Post subject: Reply with quote

Perfect Gentleman wrote:
Just modify ebuild in your repo for your needs.


Im asking what the "_pick" equivalent would be for an ebuild. This one is a bit more tricky. What ebuild command would I use to strip libpulse libs only?
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Tue Aug 03, 2021 9:55 am    Post subject: Reply with quote

_pick is a internal function that you can rewrite with correct path for portage system.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Aug 03, 2021 9:56 am    Post subject: Reply with quote

shoober420 wrote:
Perfect Gentleman wrote:
Just modify ebuild in your repo for your needs.


Im asking what the "_pick" equivalent would be for an ebuild. This one is a bit more tricky. What ebuild command would I use to strip libpulse libs only?
are you? 1st time you mentioned that
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Tue Aug 03, 2021 10:02 am    Post subject: Reply with quote

https://bugs.gentoo.org/536780
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Tue Aug 03, 2021 10:35 am    Post subject: Reply with quote

Code:
[ebuild   R    ] media-sound/pulseaudio-15.0::pg_overlay  USE="glib -X -alsa -alsa-plugin -asyncns -bluetooth -daemon -dbus -doc -elogind -equalizer -gdbm -gstreamer -gtk -ipv6 -jack -lirc -native-headset -ofono-headset -orc (-oss) (-selinux) -sox -ssl (-system-wide) -systemd -tcpd -test -udev -webrtc-aec -zeroconf" 0 KiB
works fine for me.
Code:
diff -Nuar gentoo/media-sound/pulseaudio/pulseaudio-15.0.ebuild pg_overlay/media-sound/pulseaudio/pulseaudio-15.0.ebuild
--- gentoo/media-sound/pulseaudio/pulseaudio-15.0.ebuild        2021-07-31 06:35:45.852394129 +0700
+++ pg_overlay/media-sound/pulseaudio/pulseaudio-15.0.ebuild    2021-08-03 17:39:31.733856943 +0700
@@ -173,7 +173,7 @@
 
 multilib_src_configure() {
        local emesonargs=(
-               -Dadrian-aec=false # Not packaged?
+               -Dadrian-aec=true # Not packaged?
                --localstatedir="${EPREFIX}"/var
                -Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/${PN}/modules" # Was $(get_libdir)/${P}
                -Dsystemduserunitdir=$(systemd_get_userunitdir)
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Tue Aug 03, 2021 1:16 pm    Post subject: Reply with quote

Naib wrote:

are you? 1st time you mentioned that


Whether its stripping or picking, i feel like im asking for the same end result on how to do this thing.

I thought of a possible solution. I'll create a custom pulseaudio.ebuild that builds minimal as possible, along with the "-daemon" flag mentioned previously, and do a "insinto /usr/lib" and "doins /path/to/libpulse/folder". This does leave a questiom about how to "insinto /usr/lib64" for the 64bit libs though. Any thoughts anyone?
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Thu Aug 05, 2021 4:22 pm    Post subject: Reply with quote

Fortunately, I was able to mimic the Arch libpulse only package using this "package.use" file.

https://github.com/shoober420/rootscripts/blob/main/etc/portage/package.use/pulseaudiouse

Thank you guys very much.
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu Aug 05, 2021 5:11 pm    Post subject: Reply with quote

pretty sure that was what was said in this thread based upon what the v15 ebuild exposes....
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Fri Aug 06, 2021 1:34 am    Post subject: Reply with quote

yes, I was working with an older pulseaudio ebuild from a custom Gentoo overlay before. with the release of 15.0 ebuild recently, and that package.use file, im now able to do the desired installation tweaking the new 15.0 ebuild.
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420
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