fixed
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/freelib-git.git (read-only, click to copy) |
|---|---|
| Package Base: | freelib-git |
| Description: | Book library manager |
| Upstream URL: | https://github.com/petrovvlad/freeLib |
| Licenses: | GPL3 |
| Conflicts: | freelib, freelib-dev-git |
| Provides: | freelib |
| Submitter: | feo.me |
| Maintainer: | FabioLolix (petrov.vlad) |
| Last Packager: | petrov.vlad |
| Votes: | 2 |
| Popularity: | 0.000000 |
| First Submitted: | 2022-02-26 22:50 (UTC) |
| Last Updated: | 2026-05-28 08:37 (UTC) |
fixed
.cache/yay/freelib/src/freeLib/src/opds_server.cpp:67:18: ошибка: «class QHttpServerResponse» не содержит элемента с именем «addHeader» 67 | response.addHeader("Cache-Control"_ba,"max-age=3600"_ba);
Cannot build, please help.
@petrov For not downloading the quazip submodule this need git config submodule.freeLib/src/quazip.update none otherwise it will be downloaded
Pkgbuild right now:
==> Starting prepare()...
Submodule 'freeLib/src/SmtpClient' (https://github.com/petrovvlad/SmtpClient-for-Qt.git) registered for path 'src/SmtpClient'
Submodule 'freeLib/src/quazip' (https://github.com/stachenov/quazip.git) registered for path 'src/quazip'
Cloning into '/build/freelib-git/src/freeLib/src/SmtpClient'...
done.
Cloning into '/build/freelib-git/src/freeLib/src/quazip'...
Submodule path 'src/SmtpClient': checked out '1a9d4ec8b9183572ffe07f8c5068d4498e6c85bc'
Submodule path 'src/quazip': checked out '9d3aa3ee948c1cde5a9f873ecbc3bb229c1182ee'
==> Starting pkgver()...
Actually removed:
==> Starting prepare()...
Submodule 'freeLib/src/SmtpClient' (https://github.com/petrovvlad/SmtpClient-for-Qt.git) registered for path 'src/SmtpClient'
Submodule 'freeLib/src/quazip' (https://github.com/stachenov/quazip.git) registered for path 'src/quazip'
Cloning into '/build/freelib-git/src/freeLib/src/SmtpClient'...
done.
Skipping submodule 'src/quazip'
Submodule path 'src/SmtpClient': checked out '1a9d4ec8b9183572ffe07f8c5068d4498e6c85bc'
==> Starting pkgver()...
There is not enough dependency to build the package: qt6-httpserver.
Install it before assembly:
pacman -S qt6-httpserver
Error when building the package:
Could NOT find Qt6HttpServer (missing: Qt6HttpServer_DIR)
CMake Error at freeLib/src/CMakeLists.txt:16 (find_package):
Found package configuration file:
/usr/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:
Failed to find required Qt component "HttpServer".
Expected Config file at
"/usr/lib/cmake/Qt6HttpServer/Qt6HttpServerConfig.cmake" does NOT exist
Configuring with --debug-find-pkg=Qt6HttpServer might reveal details why
the package was not found.
Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
of the path variables that find_package uses to try and find the package.
Configuring incomplete, errors occurred!
==> ОШИБКА: Произошел сбой в build().
Прерывание...
-> ошибка сборки: freelib-git-exit status 4
How to solve it?
CMake Error at freeLib/src/quazip/quazip/CMakeLists.txt:48 (add_library):
add_library cannot create ALIAS target "QuaZip::QuaZip" because another
target with the same name already exists
Manjaro Kde, unstabile
Please, add dependency from https://aur.archlinux.org/packages/kindlegen
It was updated upstream. Maybe use pkgver function in PKGBUILD? Smthng like this:
pkgname=freelib6-git
_pkgname=freeLib
pkgver=20220625.389
pkgrel=1
pkgdesc="Home library with librusec/flibusta support"
arch=('i686' 'x86_64')
provides=("freelib")
conflicts=("freelib" "freelib-git")
url="https://github.com/petrovvlad/freeLib"
license=('GPL')
source=("git+https://github.com/petrovvlad/freeLib.git")
depends=('qt5-base' 'qt5-xmlpatterns' 'quazip-qt5')
makedepends=('git' 'cmake')
sha1sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count HEAD)"
}
prepare() {
cd "$srcdir/freeLib"
git submodule update --init --recursive
}
build() {
cd "$srcdir/freeLib"
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DQUAZIP_STATIC:BOOL=ON .. && cmake --build .
}
package() {
cd "$srcdir/freeLib/build"
make DESTDIR="$pkgdir/" install
}