scripts/sphinx-pre-install seems to fail here sub get_sphinx_version($) { my $cmd = shift; my $ver;
open IN, "$cmd --version 2>&1 |"; while (<IN>) { if (m/^\s*sphinx-build\s+([\d\.]+)((\+\/[\da-f]+)|(b\d+))?$/) { $ver=$1; last; } # Sphinx 1.2.x uses a different format if (m/^\s*Sphinx.*\s+([\d\.]+)$/) { $ver=$1; last; } } close IN; return $ver; } sub check_sphinx() { my $default_version; open IN, $conf or die "Can't open $conf"; while (<IN>) { if (m/^\s*needs_sphinx\s*=\s*[\'\"]([\d\.]+)[\'\"]/) { $min_version=$1; last; } } close IN; die "Can't get needs_sphinx version from $conf" if (!$min_version); open IN, $requirement_file or die "Can't open $requirement_file"; while (<IN>) { if (m/^\s*Sphinx\s*==\s*([\d\.]+)$/) { $default_version=$1; last; } } close IN; die "Can't get default sphinx version from $requirement_file" if (!$default_version); $virtenv_dir = $virtenv_prefix . $default_version; my $sphinx = get_sphinx_fname(); if ($sphinx eq "") { $need_sphinx = 1; return; } $cur_version = get_sphinx_version($sphinx); die ("$sphinx returned an error") if (!$cur_version); On Thu, 2023-01-12 at 15:06 +0100, xevilstar wrote: > Package: linux-source > Version: 6.1.5-1 > Severity: important > X-Debbugs-Cc: vmxevils...@gmail.com > > Dear Maintainer, > > kernel version 6.1.5 > I have downloaded the new stable kernel version and I wanted to > contribute trying at my best > to upload it to mentors > I have cloned the git version of the debian/ files and put it inside > the kernel source directory > from inside the kernel source directory.... > I have added the new version in debian/changelog then > I have run the debian/bin/genorig.py > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > then > I have run debian/rules orig > no errors, but then .... > > dpkg-buildpackage -j`nproc` -us -uc > dpkg-buildpackage: info: source package linux > dpkg-buildpackage: info: source version 6.1.5-1 > dpkg-buildpackage: info: source distribution UNRELEASED > dpkg-buildpackage: info: source changed by Renato Gallo > <vmxevils...@gmail.com> > dpkg-buildpackage: info: host architecture amd64 > dpkg-source --before-build . > dpkg-source: info: using options from linux- > 6.1.5/debian/source/local-options: --abort-on-upstream-changes > debian/rules clean > md5sum --check debian/control.md5sum --status || \ > /usr/bin/make -f debian/rules debian/control-real > dh_testdir > rm -rf debian/build debian/stamps > debian/lib/python/debian_linux/*.pyc > debian/lib/python/debian_linux/__pycache__ $(find debian -maxdepth 1 > -type d -name 'linux-*') debian/*-modules-*-di* debian/kernel-image- > *-di* debian/*-tmp debian/*.substvars > dh_clean > dpkg-source -b . > dpkg-source: info: using options from linux- > 6.1.5/debian/source/local-options: --abort-on-upstream-changes > dpkg-source: info: using source format '3.0 (quilt)' > dpkg-source: warning: upstream signing key but no upstream tarball > signature > dpkg-source: info: building linux using existing > ./linux_6.1.5.orig.tar.xz > dpkg-source: info: using patch list from debian/patches/series > dpkg-source: info: building linux in linux_6.1.5-1.debian.tar.xz > dpkg-source: info: building linux in linux_6.1.5-1.dsc > debian/rules binary > mkdir -p debian/build > printf >debian/build/version-info 'Source: %s\nVersion: %s\n' linux > 6.1.5-1 > md5sum --check debian/control.md5sum --status || \ > /usr/bin/make -f debian/rules debian/control-real > dh_testdir > /usr/bin/make -f debian/rules.gen build-indep > make[1]: Entering directory '/usr/src/kernel/linux-6.1.5' > /usr/bin/make -f debian/rules.real build_headers-common > ABINAME='6.1.0-0' ALL_KERNEL_ARCHES='alpha arm arm64 ia64 m68k mips > parisc powerpc riscv s390 sh sparc x86' > DESTDIR='/usr/src/kernel/linux-6.1.5/debian/linux-headers-6.1.0-0- > common' DH_OPTIONS='-plinux-headers-6.1.0-0-common' FEATURESET='none' > LOCALVERSION='' PACKAGE_NAME='linux-headers-6.1.0-0-common' > SOURCEVERSION='6.1.5-1' SOURCE_BASENAME='linux' SOURCE_SUFFIX='' > UPSTREAMVERSION='6.1' VERSION='6.1' > make[2]: Entering directory '/usr/src/kernel/linux-6.1.5' > make[2]: Nothing to be done for 'build_headers-common'. > make[2]: Leaving directory '/usr/src/kernel/linux-6.1.5' > /usr/bin/make -f debian/rules.real build_doc ABINAME='6.1.0-0' > DESTDIR='/usr/src/kernel/linux-6.1.5/debian/linux-doc-6.1' > DH_OPTIONS='-plinux-doc-6.1' PACKAGE_NAME='linux-doc-6.1' > SOURCEVERSION='6.1.5-1' SOURCE_BASENAME='linux' SOURCE_SUFFIX='' > UPSTREAMVERSION='6.1' VERSION='6.1' > make[2]: Entering directory '/usr/src/kernel/linux-6.1.5' > test -d .pc > set +e; QUILT_PC=.pc quilt unapplied --quiltrc - >/dev/null && echo > 'Patch series not fully applied'; test $? -eq 1 > File series fully applied, ends at patch 6.1.5.patch > mkdir -p 'debian/build' > rm -rf 'debian/build/build-doc' > mkdir -p 'debian/build/build-doc' > cp -al COPYING CREDITS Documentation Kbuild Kconfig LICENSES > MAINTAINERS Makefile README arch block certs crypto drivers fs > include init io_uring ipc kernel lib mm net rust samples scripts > security sound tools usr virt .clang-format .cocciconfig > .get_maintainer.ignore .gitattributes .gitignore .mailmap > .rustfmt.toml 'debian/build/build-doc' > env -u ABINAME -u ARCH -u FEATURESET -u FLAVOUR -u VERSION -u > LOCALVERSION DISTRIBUTION_OFFICIAL_BUILD=1 DISTRIBUTOR="Debian" > DISTRIBUTION_VERSION="6.1.5-1" KBUILD_BUILD_TIMESTAMP="Thu, 12 Jan > 2023 14:15:31 +0100" KBUILD_BUILD_VERSION_TIMESTAMP="Debian 6.1.5-1 > (2023-01-12)" KBUILD_BUILD_USER="debian-kernel" > KBUILD_BUILD_HOST="lists.debian.org" KBUILD_VERBOSE=1 /usr/bin/make > KCFLAGS=-fdebug-prefix-map=/usr/src/kernel/linux-6.1.5/= > KBUILD_HOSTCFLAGS='-g -O2 -ffile-prefix-map=/usr/src/kernel/linux- > 6.1.5=. -fstack-protector-strong -Wformat -Werror=format-security - > Wdate-time -D_FORTIFY_SOURCE=2' HOSTCFLAGS='-g -O2 -ffile-prefix- > map=/usr/src/kernel/linux-6.1.5=. -fstack-protector-strong -Wformat - > Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' > KBUILD_HOSTLDFLAGS='-Wl,-z,relro' -C 'debian/build/build-doc' > PYTHON=python3 xmldocs > make[3]: Entering directory '/usr/src/kernel/linux- > 6.1.5/debian/build/build-doc' > /usr/bin/make -f ./scripts/Makefile.build obj=Documentation xmldocs > sphinx-build returned an error at ./scripts/sphinx-pre-install line > 317. > make[4]: *** [Documentation/Makefile:128: xmldocs] Error 1 > make[3]: *** [Makefile:1791: xmldocs] Error 2 > make[3]: Leaving directory '/usr/src/kernel/linux- > 6.1.5/debian/build/build-doc' > make[2]: *** [debian/rules.real:181: debian/stamps/build-doc] Error 2 > make[2]: Leaving directory '/usr/src/kernel/linux-6.1.5' > make[1]: *** [debian/rules.gen:2817: build-indep_real_doc] Error 2 > make[1]: Leaving directory '/usr/src/kernel/linux-6.1.5' > make: *** [debian/rules:50: build-indep] Error 2 > dpkg-buildpackage: error: debian/rules binary subprocess returned > exit status 2 > > how can I get out of this ? > Is there anything I am missing ? > > > > > -- System Information: > Debian Release: bookworm/sid > APT prefers unstable > APT policy: (500, 'unstable'), (500, 'testing'), (1, > 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 6.2.0-rc3 (SMP w/16 CPU threads; PREEMPT) > Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, > TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE > Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages linux-source depends on: > ii linux-source-6.1 6.1.5-1 > > linux-source recommends no packages. > > linux-source suggests no packages. > > -- no debconf information