<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 28, 2024 at 3:46 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</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 Sat, 27 Apr 2024 12:29:29 -0400, you wrote:<br>
<br>
>I decided to try building Mythtv on a fresh Ubuntu 24.04 (just out). <br>
>Ansible worked, and the make suceeded, but ran into an error in install<br>
><br>
>make[1]: Entering directory '/home/km/mythgit/mythtv/mythtv/bindings/python'<br>
>python3 -m pip install   --no-build-isolation --no-cache-dir --no-index <br>
>--disable-pip-version-check --no-deps --ignore-installed --find-links <br>
>./dist MythTV<br>
>error: externally-managed-environment<br>
><br>
>I see a lot of messages about this issue going back years for a lot of <br>
>different applications, but never had it on a mythtv build. I get it <br>
>that its just about a restriction in a system-wide install outside the <br>
>package manner.<br>
><br>
>Whats the fix specifically for the routine make install for Mythtv?<br>
<br>
You could try building for the .deb packages, and then installing the<br>
packages.  I think that is supposed to make Python work properly now.<br><br></blockquote><div><br></div><div>Build Ubuntu packages with a dedicated chroot environment:<br>What I use to do (from memory):<br>- Create a dedicated user with sudo rights and own $HOME folder<br>- install a chroot with Ubuntu 24.04<br>- create a 'schroot.conf' with that dedicated user<br>- change to that chrott with the 'schroot' command with that user<br>- update sources.list to get 'multiverse' and 'universe' etc repositories<br>- install dependencies for MythTV<br>- checkout MythTV/packaging.git<br>- install dependencies for 'packaging/deb/build-debs.sh'<br>- run buld-debs.sh<br>- exit schroot<br>- copy the debs to a folder which is readable for everyone<br>- run 'dpkg-scanpackages'<br>- update sources.list with "deb [trusted=yes] file:///full/path/to/build/packaging/deb ./"<br>alternatively, you can provide these packages with a web server:<br>- expose this folder with apache<br>- update sources.list with "deb [trusted=yes] <a href="http://full/path/to/build/packaging/deb">http://full/path/to/build/packaging/deb</a>"<br>The latter procedure has the advantage that I can serve my whole network with these updated debs.<br>If you have a valid gnupg key, you can sign these packages as well. <br><br>Further reading:<br><a href="https://www.mythtv.org/wiki/Build_from_Source">https://www.mythtv.org/wiki/Build_from_Source</a><br><a href="https://www.mythtv.org/wiki/Installing_MythTV_on_Debian">https://www.mythtv.org/wiki/Installing_MythTV_on_Debian</a><br><a href="https://lists.archive.carbon60.com/mythtv/users/644403">https://lists.archive.carbon60.com/mythtv/users/644403</a><br><a href="https://lists.archive.carbon60.com/mythtv/users/643971">https://lists.archive.carbon60.com/mythtv/users/643971</a> <br></div></div></div>