<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2024 at 11:06 AM Gary Buhrmaster <<a href="mailto:gary.buhrmaster@gmail.com">gary.buhrmaster@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jun 25, 2024 at 8:52 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>> wrote:<br>
<br>
><br>
> I'm surprised by the different behavior between Fedora 40 and Ubuntu 24.04 with the Build from Source process. While on F40 you get a warning, everything installs. But on Ubuntu 24.04 the sudo make install fails. You can get around it with the --break-system-packages option in the Makefile in the binding directory or use it as an Environment variable. F40 must have different rules on this than Ubuntu.<br>
><br>
> While I would not normally build mythtv from source on Ubuntu since the PPA has all the packaging done for you and it just works, I am trying to understand if Build from Source is out of date or if the automated Ubuntu package builder uses different building instructions.<br>
><br>
> The break-system-packages override scares me a little, but if it's what the system packagers are doing maybe the Build from Source Wiki needs to include that override??<br>
><br>
<br>
This is a result of PEP 668 (discussed previously on<br>
one/more of the MythTV threads). Ubuntu/Debian<br>
"enforces" the requirement that you don't (potentially)<br>
break system packages, and Fedora has decided to<br>
not "enforce" that you don't (potentially) break system<br>
packages. In either case you can install into a<br>
virtual environment without issue (although virtual<br>
environments have different implications).<br>
<br>
If one builds a package (rather than manual<br>
build/install) installing the resulting package into<br>
the system libraries typically works fine (as<br>
the build process and the system expects<br>
packages to install into the system library<br>
space), and as an added (important) benefit,<br>
using packages tends to make it easier to insure<br>
that the resulting environment is properly set up.<br>
I always build/install/remove via packages (but I<br>
also have my own build recipes). I believe the<br>
mythtv/packaging scripts (in the repo) for<br>
Ubuntu properly support PEP 668 (and others).<br>
<br>
If the wiki needs to be updated based on your<br>
experience, please do so.<br></blockquote><div><br></div><div>Thank you for the details. This explains why I'm seeing no issues with Fedora 40 builds of mythtv but I am seeing the PEP 668 warning when building mythtv on Ubuntu. I'm bothered by circumventing any security protection unless I completely understand it, and I don't understand anything about how I could build mythtv from source and install it into a proper virtual environment. <br></div><div><br></div><div>As I mentioned this is an education for me and not a real problem. On Ubuntu systems I install mythtv using the ppa and that works great. On Debian the mythtv wiki's instructions work for me if I just update them for v34. Even the AUR mythtv-git works fine on Archlinux based distros. <br></div><div><br></div><div>If you could point me to the mythtv/packaging location where the proper handling of PEP 668 is done, I'd be grateful.</div><div><br></div><div>Thanks again for taking the time to help with my education on this. There seem to be a lot of people out there on the internet struggling with this issue on a whole lot of different python programs that now require fixes. Most are just using the break system packages method which I don't think is the best way.</div><div><br></div><div>Jim A<br></div><div><br></div><div><br></div></div></div>