[mythtv-users] using find_orphans.py
James Abernathy
jfabernathy at gmail.com
Thu Jun 27 22:13:08 UTC 2024
On Thu, Jun 27, 2024 at 3:32 PM James Abernathy <jfabernathy at gmail.com>
wrote:
>
>
> On Thu, Jun 27, 2024 at 2:51 PM Roland Ernst <rcrernst at gmail.com> wrote:
>
>>
>>
>>
>>>> UPDATE:
>>>>
>>>> I have discovered that the PKGBUILD in the mythtv-git AUR does not
>>>> include the dependency python-pip or python-wheel. My script to install
>>>> dependencies prior to a build from source run does have those
>>>> dependencies. That's why my build from source makes find_orphans.py work
>>>> and the AUR install doesn't. I'm confirming this again on a fresh VM.
>>>>
>>>> Jim A
>>>>
>>>
>>> Now I think this is closed:
>>>
>>> from the AUR comments:
>>> JohnLBergqvist <https://aur.archlinux.org/account/JohnLBergqvist>
>>> commented on 2024-06-27 10:11 (EDT)
>>> <https://aur.archlinux.org/packages/mythtv-git#comment-979847>
>>>
>>> @jfabernathy I've added python-pip as a dependency now
>>> Jim A
>>>
>>
>>
>> Jim, if you see the message during installation which the AUR maintainer
>> posted, too
>>
>> ==> WARNING: Package contains reference to $pkgdir
>>
>> please try this
>>
>> Ad message in AUR (https://aur.archlinux.org/packages/mythtv-git):
>> ==> WARNING: Package contains reference to $pkgdir
>>
>> Perhaps recompiling of the python pyc files helps.
>> See https://wiki.archlinux.org/title/Talk:Python_package_guidelines
>>
>> You need to modify PKGBUILD:
>> Inside the subroutine package(),
>> after the step `make INSTALL_ROOT="$pkgdir" install`
>> run
>> ppath=`find "$pkgdir -type d -name 'MythTV' | grep python`
>> python3 -m compileall -f -s "$pkgdir" "$ppath"
>>
>> If it works, please pass the lines to the mythTV AUR maintainer.
>>
>> Regards,
>>
>> Roland
>>
>>
> Roland, I tried building after the aur package maintainer added the
> dependency python-pip. I no longer get the warning:
>
> ==> WARNING: Package contains reference to $pkgdir
>
> So I'm not sure what needs to be done.
>
> Jim A
>
>
Roland, I created a EOS Archlinux system on btrfs so I can have lots of
snapshots at every stage of setting up mythtv and the backend database.
This will allow restoring back to any step where we need further testing.
This time I captured a complete console log during yay -S mythtv-git and
used only the dependencies included in the updated PKGBUILD. While the
resultant BE/FE combo works fine and find_orphans.py works as expected. I
did notice that the warning you mentioned is still there:
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/include/mythtv/mythconfig.mak
==> WARNING: Package contains reference to $pkgdir
usr/lib/python3.12/site-packages/MythTV/services_api/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/services_api/__pycache__/_version.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/services_api/__pycache__/mythversions.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/services_api/__pycache__/send.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/services_api/__pycache__/utilities.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/cache.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/cache_engine.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/cache_file.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/cache_null.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/locales.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/lookup.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/pager.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/request.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/tmdb_api.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/tmdb_auth.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/tmdb_exceptions.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tmdb3/__pycache__/util.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/definitions.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/get_api_v4.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/locales.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/myth4ttvdbv4.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/ttvdbv4_api.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/ttvdbv4/__pycache__/utils.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/artwork.cpython-312.pyc
usr/lib/p
ython3.12/site-packages/MythTV/tvmaze/__pycache__/embed.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/endpoints.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/episode.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/locales.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/person.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/season.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/show.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/tvmaze_api.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/tvmaze/__pycache__/utils.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/altdict.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/dequebuffer.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/dicttoxml.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/dt.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/enum.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/mixin.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/other.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/utility/__pycache__/singleton.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/wikiscripts/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/wikiscripts/__pycache__/wikiscripts.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/__init__.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/_conn_mysqldb.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/_versions.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/altdict.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/connections.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/database.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/dataheap.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/exceptions.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/logging.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/methodheap.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/msearch.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/mythproto.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/static.cpython-312.pyc
usr/lib/python3.12/site-packages/MythTV/__pycache__/system.cpython-312.pyc
==> Creating package "mythtv-git"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
With my limited understanding of all this, I just go by the question: is it
working. As far as I can tell all of the functions of Mythtv that I use
are working.
Recording and playing back tv from HDHomerun tuners, find_orphans.py, web
app, mythfilldatabase, xmltv
So to me this is just one of those hundreds of warnings I see when I look
at the build output of any mythtv build.
If you think otherwise, let me know.
Jim A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20240627/a1bcc150/attachment-0001.htm>
More information about the mythtv-users
mailing list