summaryrefslogtreecommitdiff
path: root/libre/linux-libre
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-05-16 19:06:15 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-05-16 19:11:21 +0200
commit22e3c9415638f2e2864e308fed3bbd634915011a (patch)
treea6de9dbe4746d18f6e7284bfea4d44cca465cd2f /libre/linux-libre
parent1fcaa638c45ef4d5ea0ab5da0264b461d78f0538 (diff)
downloadabslibre-22e3c9415638f2e2864e308fed3bbd634915011a.tar.gz
abslibre-22e3c9415638f2e2864e308fed3bbd634915011a.tar.bz2
abslibre-22e3c9415638f2e2864e308fed3bbd634915011a.zip
linux-libre: don't build html docs to workaround build issue
Without that workaround, the build fails with the following error: | Extension error: | Could not import extension kerneldoc (exception: cannot import name 'AutodocReporter' from 'sphinx.ext.autodoc' (/usr/lib/python3.7/site-packages/sphinx/ext/autodoc/__init__.py)) | make[1]: *** [Documentation/Makefile:68: htmldocs] Error 2 This commit is based on the following commit: 0e1563a070f Revert "FS#59688 - Install HTML docs" in the archlinux packages repository[1]. References: ----------- [1]git://git.archlinux.org/svntogit/packages.git Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/linux-libre')
-rw-r--r--libre/linux-libre/PKGBUILD18
1 files changed, 3 insertions, 15 deletions
diff --git a/libre/linux-libre/PKGBUILD b/libre/linux-libre/PKGBUILD
index 6f8492b70..2e21e4dff 100644
--- a/libre/linux-libre/PKGBUILD
+++ b/libre/linux-libre/PKGBUILD
@@ -26,7 +26,7 @@ rcnrel=armv7-x8
arch=(i686 x86_64 armv7h)
url='https://linux-libre.fsfla.org/'
license=(GPL2)
-makedepends=(xmlto kmod inetutils bc libelf python-sphinx graphviz)
+makedepends=(xmlto kmod inetutils bc libelf)
makedepends_armv7h=(uboot-tools vboot-utils dtc) # for linux-libre-chromebook
options=('!strip')
source=(
@@ -163,9 +163,9 @@ prepare() {
build() {
cd $_srcname
if [ "$CARCH" = "armv7h" ]; then
- make zImage modules dtbs htmldocs
+ make zImage modules dtbs
elif [ "$CARCH" = "x86_64" ] || [ "$CARCH" = "i686" ]; then
- make bzImage modules htmldocs
+ make bzImage modules
fi
}
@@ -359,18 +359,6 @@ _package-docs() {
mkdir -p "$builddir"
cp -t "$builddir" -a Documentation
- msg2 "Removing doctrees..."
- rm -r "$builddir/Documentation/output/.doctrees"
-
- msg2 "Moving HTML docs..."
- local src dst
- while read -rd '' src; do
- dst="$builddir/Documentation/${src#$builddir/Documentation/output/}"
- mkdir -p "${dst%/*}"
- mv "$src" "$dst"
- rmdir -p --ignore-fail-on-non-empty "${src%/*}"
- done < <(find "$builddir/Documentation/output" -type f -print0)
-
msg2 "Adding symlink..."
mkdir -p "$pkgdir/usr/share/doc"
ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"