[arch-commits] Commit in qt5-doc/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Tue Nov 14 18:43:35 UTC 2017
Date: Tuesday, November 14, 2017 @ 18:43:34
Author: arojas
Revision: 309946
archrelease: copy kde-unstable to kde-unstable-any
Added:
qt5-doc/repos/kde-unstable-any/
qt5-doc/repos/kde-unstable-any/PKGBUILD
(from rev 309945, qt5-doc/kde-unstable/PKGBUILD)
qt5-doc/repos/kde-unstable-any/qt-no-statx.patch
(from rev 309945, qt5-doc/kde-unstable/qt-no-statx.patch)
-------------------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
qt-no-statx.patch | 11 +++++++++
2 files changed, 74 insertions(+)
Copied: qt5-doc/repos/kde-unstable-any/PKGBUILD (from rev 309945, qt5-doc/kde-unstable/PKGBUILD)
===================================================================
--- kde-unstable-any/PKGBUILD (rev 0)
+++ kde-unstable-any/PKGBUILD 2017-11-14 18:43:34 UTC (rev 309946)
@@ -0,0 +1,63 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Michael Hansen <zrax0111 gmail com>
+
+pkgname=qt5-doc
+_qtver=5.10.0-beta4
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('any')
+url='http://qt-project.org/'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='A cross-platform application and UI framework (Documentation)'
+depends=('qt5-base')
+makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss' 'libxcomposite' 'gperf' 'nss')
+groups=('qt' 'qt5')
+_pkgfqn="qt-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/single/${_pkgfqn}.tar.xz"
+ qt-no-statx.patch)
+sha256sums=('6fde3b28130f985f5ef2d416d6ee1ec594a6695cc003b9b78e5341d551e5b1b8'
+ '5cd1d90622cc53609806a3ce0b2811b28f0e6e20eb835861de4492dddeef6e52')
+
+prepare() {
+ cd ${_pkgfqn}
+
+ ln -s /usr/bin qttools/
+ ln -s /usr/bin/{rcc,uic,moc} qtbase/bin/
+
+ # Hack to force using python2
+ cd "$srcdir"
+ mkdir -p bin
+ ln -s /usr/bin/python2 bin/python
+
+ # Don't use the statx syscall https://bugs.archlinux.org/task/56289 https://bugreports.qt.io/browse/QTBUG-64490
+ cd ${_pkgfqn}/qtbase
+ patch -p1 -i "$srcdir"/qt-no-statx.patch
+}
+
+build() {
+ cd ${_pkgfqn}
+
+ export PATH="$srcdir/bin:$PATH"
+ PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource \
+ -prefix /usr \
+ -docdir /usr/share/doc/qt \
+ -headerdir /usr/include/qt \
+ -archdatadir /usr/lib/qt \
+ -datadir /usr/share/qt \
+ -sysconfdir /etc/xdg \
+ -examplesdir /usr/share/doc/qt/examples
+ make docs
+}
+
+package() {
+ cd ${_pkgfqn}
+ make INSTALL_ROOT="$pkgdir" install_docs
+
+ install -d "$pkgdir"/usr/share/licenses
+ ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
+
+# Fix conflicts with qt5-examples
+ rm -r "$pkgdir"/usr/share/doc/qt/examples
+}
Copied: qt5-doc/repos/kde-unstable-any/qt-no-statx.patch (from rev 309945, qt5-doc/kde-unstable/qt-no-statx.patch)
===================================================================
--- kde-unstable-any/qt-no-statx.patch (rev 0)
+++ kde-unstable-any/qt-no-statx.patch 2017-11-14 18:43:34 UTC (rev 309946)
@@ -0,0 +1,11 @@
+--- qtbase-everywhere-src-5.10.0-beta4/src/corelib/io/qfilesystemengine_unix.cpp.orig 2017-11-14 12:10:28.156094557 +0000
++++ qtbase-everywhere-src-5.10.0-beta4/src/corelib/io/qfilesystemengine_unix.cpp 2017-11-14 12:10:46.156136206 +0000
+@@ -95,7 +95,7 @@
+ { return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
+ # endif
+
+-# if !QT_CONFIG(statx) && defined(SYS_statx) && QT_HAS_INCLUDE(<linux/stat.h>)
++# if 0
+ # include <linux/stat.h>
+ static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
+ { return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
More information about the arch-commits
mailing list