[mythtv-users] errors on build of mythtv v34 Debain 12 packages after recent updates
Martin Bene
Martin.Bene at icomedias.com
Thu Feb 8 20:45:50 UTC 2024
So now it’s complaining that you don’t have cmake installed;
On ubuntu that’s just
sudo apt install cmake
(and you’ll probably want to add cmake to the build dependencies in deb/debian/control.in to keep things consistent)
That unfortunately only gets a little bit further and fails with
CMake Error at cmake/ReadOnlyTests.cmake:51 (message):
Install directory /usr (or parent) is read-only.
Call Stack (most recent call first):
CMakeLists.txt:220 (ensure_dir_writable)
Which is actually expected since /usr actually should not be writeable by the build process.
Not really sure how to continue myself.
Martin
no.disclaimer
Von: mythtv-users <mythtv-users-bounces at mythtv.org> Im Auftrag von James Abernathy
Gesendet: Donnerstag, 8. Februar 2024 21:19
An: Discussion about MythTV <mythtv-users at mythtv.org>
Betreff: Re: [mythtv-users] errors on build of mythtv v34 Debain 12 packages after recent updates
On Thu, Feb 8, 2024 at 1:58 PM Roland Ernst <rcrernst at gmail.com<mailto:rcrernst at gmail.com>> wrote:
On Thu, Feb 8, 2024 at 12:36 PM James Abernathy <jfabernathy at gmail.com<mailto:jfabernathy at gmail.com>> wrote:
I've been rebuilding the packages of Mythtv master for Debian 12 after I saw Ubuntu 22.04 mythtv packages change.
That worked yesterday morning, but today after some cmake updates I get errors pretty close to the beginning of the build. I'm using the wiki method for building the Debian packages.
here's the console log
@Jim A: could you please verify above change on debian?
Roland
It didn't build. I made the changes to the 'option' file but no luck.
#build the tarball
tar czf /home/jim/build/packaging/deb/mythtv/../mythtv_34.0"~"master.20240208.1f5dfbce31.orig.tar.gz --exclude-vcs --exclude .pc --exclude-tag-all mythtv.make *
libdistro-info-perl is not installed, Debian release names are not known.
libdistro-info-perl is not installed, Ubuntu release names are not known.
dch warning: Unable to determine Debian's backport distributions.
dch warning: Recognised distributions are:
experimental, unstable, testing, stable, oldstable, oldoldstable,
{trixie,bookworm,bullseye,buster}-proposed-updates,
{testing,stable,oldstable,oldoldstable}-proposed-updates,
{trixie,bookworm,bullseye,buster}-security,
{testing,stable,oldstable,oldoldstable}}-security and UNRELEASED.
Using your request anyway.
Testing all patches before building the packages
Applying patch debian/patches/default_directories
Applying patch debian/patches/bindings_install_paths.patch
Applying patch debian/patches/default_theme.patch
Now at patch debian/patches/default_theme.patch
Removing patch debian/patches/default_theme.patch
Removing patch debian/patches/bindings_install_paths.patch
Removing patch debian/patches/default_directories
No patches applied
Building the packages
dpkg-buildpackage -us -uc -ui -i -I.git
dpkg-buildpackage: info: source package mythtv
dpkg-buildpackage: info: source version 2:34.0~master.20240208.1f5dfbce31-0ubuntu0
dpkg-buildpackage: info: source distribution faye
dpkg-buildpackage: info: source changed by jim <jim at lmde6>
dpkg-source -i -I.git --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from mythtv/debian/source/options: --extend-diff-ignore=.github|.dockerignore|.clang-tidy|.clazy|.cmake-format.py|.cppcheck-includes|.cppcheck-suppress
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying default_directories
dpkg-source: info: applying bindings_install_paths.patch
dpkg-source: info: applying default_theme.patch
fakeroot debian/rules clean
dh clean --parallel --with python3
debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/jim/build/packaging/deb/mythtv'
[ -f mythtv/config.mak ] && /usr/bin/make -C mythtv distclean || true
[ -f mythplugins/config.pro<http://config.pro> ] && /usr/bin/make -C mythplugins distclean || true
[ -f mythtv/VERSION.old ] && mv mythtv/VERSION.old mythtv/VERSION || true
dh_auto_clean
debconf-updatepo
rm -rf /home/jim/build/packaging/deb/mythtv/debian/home
make[1]: Leaving directory '/home/jim/build/packaging/deb/mythtv'
dh_clean
dpkg-source -i -I.git -b .
dpkg-source: info: using options from mythtv/debian/source/options: --extend-diff-ignore=.github|.dockerignore|.clang-tidy|.clazy|.cmake-format.py|.cppcheck-includes|.cppcheck-suppress
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building mythtv using existing ./mythtv_34.0~master.20240208.1f5dfbce31.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building mythtv in mythtv_34.0~master.20240208.1f5dfbce31-0ubuntu0.debian.tar.xz
dpkg-source: info: building mythtv in mythtv_34.0~master.20240208.1f5dfbce31-0ubuntu0.dsc
debian/rules build
dh build --parallel --with python3
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu ..
Can't exec "cmake": No such file or directory at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 518.
dh_auto_configure: error: exec (for cmd: cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu ..) failed: No such file or directory
dh_auto_configure: error: cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu .. returned exit code 2
make: *** [debian/rules:96: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -i -I.git failed
JIm A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20240208/0a305d8f/attachment-0001.htm>
More information about the mythtv-users
mailing list