Re: Trying to get spotify working

From: Polytropon <freebsd_at_edvax.de>
Date: Tue, 21 Nov 2023 19:06:53 UTC
On Tue, 21 Nov 2023 00:04:43 -0800, Joe B wrote:
> So I followed this post
> 
> https://forums.freebsd.org/threads/watching-spotify-and-listening-to-netflix-in-2023.90695/#post-626065
> 
> It was asking me a lot of prompts and i was like im just going to see
> if it works
> 
> After it failed to compile i was like let me remove it. so i did a make
> deinstall clean. After about 30 mins i went back to the tty where it
> was and it was skipping packages that weren't there and eventually i
> just stopped it. went to startx and i was missing lots of modules. I
> reinstaled and everything is workinga again exepct no spotify
> 
> Question is when is it safe to use make deinstall ?

When you are inside the directory of the official port,
i. e., /usr/ports/<categor>/<port>, that you want to
deinstall.

See "man 7 ports" for details.

The files /usr/ports/Makefile and /usr/ports/Mk/*
contain the implementation of "deinstall" at the
possible locations.



> I was wondering since the forum post had me in 1 directory that wasn't
> offical is that the reason why it removed stuff at the root level?

That is quite possible. The thread in the web forum
instructs you to do this:

	% sudo pkg install chromium # 117.0.5938.149_2 or higher

	% sudo pkg install foreign-cdm
	% sudo sysrc linux_enable="YES"
	% sudo service linux start

	% git clone --depth 1 https://github.com/freebsd/freebsd-ports
	% cd freebsd-ports/www/linux-widevine-cdm
	% make
	% sudo make install

This seems to be relative to your current location
whatever that might be ($PWD). From that (undefined)
point, a directory freebsd-ports with the subdirecotires
www and linux-widevine-cdm will be created. If this
happens inside /usr/ports (which it shouldn't, as
it also requires root permissions to write to there),
a "make deinstall"... well, actually this sounds wrong.

I have no idea what's inside the git repository, so
any unwanted side effect could be possible, like a
temporary change to /usr/ports...

If you assume that you run "make deinstall" from the
/usr/ports/www directory, it will iterate though the
ports found there and try to deinstall them. If there
is a /usr/ports/www/linux-widevine-cdm, and you run
"make deinstall" from there, it will only deinstall
the linux-widevine-cdm port - of course the official
version.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...