[mythtv-users] A better PEP 668 understanding?
Mike Perkins
mikep at randomtraveller.org.uk
Wed Jun 28 09:35:03 UTC 2023
On 27/06/2023 22:38, James Abernathy wrote:
> On Tue, Jun 27, 2023 at 4:04 PM Roland Ernst <rcrernst at gmail.com> wrote:
>
>>
>> On Mon, Jun 26, 2023 at 9:52 PM James Abernathy <jfabernathy at gmail.com>
>> wrote:
>>
>>>
>>> I think this blog has the backend part of building the repo I need. It
>>> looks like I could modify it to be combined with the Debian package build
>>> that is already shown in the wiki. I could host it on my server for the
>>> home network.
>>>
>>>
>>> https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/
>>>
>>> JIm A
>>>
>>>
>>
>> I would skip the signing procedure for the first tests.
>> If you run an apcahe2 server in your local network, then the following
>> steps might be of interest:
>> Provide MythTV Debian packages via http:
>> This assumes that your local build Debian packages are located in
>> /usr/share/my_mythtv_repo
>>
>> Create a file
>> /etc/apache2/conf-available/my_mythtv_repo.conf
>>
>> with content
>>
>> # conf file for sharing Debian packages
>>
>> Alias /my_mythtv_repo /usr/share/my_mythtv_repo
>>
>> <Directory /usr/share/my_mythtv_repo>
>> Options +Indexes
>> AllowOverride None
>> Require all granted
>> </Directory>
>>
>> Then run
>> $ sudo a2enconf my_mythtv_repo
>> and
>> $ sudo systemctl reload apache2.service
>>
>> Then you should see the directory listing in your web-browser of
>> http://server_ip/my_mythtv_repo/
>>
>> This can be used to change your
>> etc/apt/sources.list.d/my_mythtv_repo.list :
>>
>> # Local build of mythtv, provided by apache2 in /usr/share/my_mythtv_repo
>> # See https://help.ubuntu.com/community/Repositories/Personal
>> deb [trusted=yes] http://server_ip/my_mythtv_repo/ ./
>>
>> Caveats: I have not tested this by now
>>
>> Roland
>>
>
> Thanks a ton. This worked perfectly. The only thing left to solve is what
> I've noticed from the start when I build these packages and try to install
> them. I always get warnings on the sudo apt update. They seem to be
> related to translation-en_US files missing. From Discover on my KDE Plasma
> Debian 12 system I see the following warnings:
>
> E: file:/mnt/nas/networked-files/mythtv-debian-repo ./ Translation-en is
> not (yet) available (File not found -
> /mnt/nas/networked-files/mythtv-debian-repo/./en.gz (2: No such file or
> directory)) E: file:/mnt/nas/networked-files/mythtv-debian-repo ./
> Translation-en is not (yet) available (File not found -
> /mnt/nas/networked-files/mythtv-debian-repo/./en.lz4 (2: No such file or
> directory)) E: file:/mnt/nas/networked-files/mythtv-debian-repo ./
> Translation-en is not (yet) available (File not found -
> /mnt/nas/networked-files/mythtv-debian-repo/./en.zst (2: No such file or
> directory))
>
> The directory path would be /usr/share/my_mythtv_repo except for the fact
> this is from a change I did this morning to put the local repo on a NAS. I
> still get the warnings when it's a http local repo.
>
This looks a little odd. The deb config item is using http:// but the error messages say file://,
which seems to me a different configuration choice, since you can do that with deb repos.
I'm wondering if you actually need that ./ trailing item in the deb line. It isn't actually doing
anything but could confuse apt and/or apache.
--
Mike Perkins
More information about the mythtv-users
mailing list