diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-17 22:37:49 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-09-17 22:37:49 -0700 |
commit | b28577900c9430e97d6e942229080c9111103fbe (patch) | |
tree | 0b9a10e7f42083a0b56c9e597c01688fa3351515 /PKGBUILD | |
parent | Checksums (diff) | |
download | linux-b28577900c9430e97d6e942229080c9111103fbe.tar.xz |
Remove yet again broken kernel docs
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 3 insertions, 34 deletions
@@ -28,7 +28,6 @@ arch=('x86_64') license=('GPL2') makedepends=( 'xmlto' 'kmod' 'inetutils' 'bc' 'libelf' - 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' ) conflicts=('linux-libre') options=('!strip') @@ -71,6 +70,7 @@ prepare() { # patch -Np1 < ../patch-${_majver}-${_pkgver} # fi + # Hotfixes msg2 "Applying hotfixes" patch -p1 -i ../0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch @@ -137,7 +137,7 @@ prepare() { build() { cd $_srcname - make bzImage modules htmldocs + make bzImage modules } _package() { @@ -277,38 +277,7 @@ _package-headers() { chmod -Rc u=rwX,go=rX "$pkgdir" } -_package-docs() { - pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel" - - local builddir="$pkgdir/usr/lib/modules/$(<version)/build" - - cd $_srcname - - msg2 "Installing documentation..." - 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" - - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" -} - -pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs") +pkgname=("$pkgbase" "$pkgbase-headers") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") |