valum-framework / valum

Web micro-framework written in Vala
https://valum-framework.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
225 stars 23 forks source link

ArchLinux #241

Open nda-cunh opened 11 months ago

nda-cunh commented 11 months ago

I try to fix Valum package in archLinux (AUR) but i can`t compile this, i don't know why, same for the git version, this project is abandoned ? Is it possible to compile without documentation?

==> Making package: valum 0.3.18-1 (Fri 04 Aug 2023 07:47:03 PM UTC)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v0.3.18.tar.gz
==> Validating source files with md5sums...
    v0.3.18.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v0.3.18.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
The Meson build system
Version: 1.2.0
Source dir: /home/nda-cunh/valum/src/valum-0.3.18
Build dir: /home/nda-cunh/valum/src/valum-0.3.18/build
Build type: native build
Project name: Valum
Project version: 0.3.18
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.41.0
Vala compiler for the host machine: valac (valac 0.56.9)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency glib-2.0 found: YES 2.76.4
Run-time dependency gobject-2.0 found: YES 2.76.4
Run-time dependency gio-2.0 found: YES 2.76.4
Run-time dependency gio-unix-2.0 found: YES 2.76.4
Run-time dependency gmodule-2.0 found: YES 2.76.4
Run-time dependency libsoup-2.4 found: YES 2.74.3
Library fcgi found: YES
Library fcgi found: YES
Program valadoc found: YES (/usr/bin/valadoc)
../docs/meson.build:12: WARNING: Project targets '>=0.42.0' but uses feature introduced in '0.47.0': install_subdir with empty directory.
../docs/meson.build:17: WARNING: Project targets '>=0.42.0' but uses feature introduced in '0.47.0': install_subdir with empty directory.
Program sphinx-build-3 found: NO
Program sphinx-build found: YES (/usr/bin/sphinx-build)
../docs/meson.build:71: WARNING: Project targets '>=0.42.0' but uses feature introduced in '0.47.0': install_subdir with empty directory.
Build targets in project: 27
WARNING: Project specifies a minimum meson_version '>=0.42.0' but uses features which were added in newer versions:
 * 0.47.0: {'install_subdir with empty directory'}
NOTICE: Future-deprecated features used:
 * 0.60.0: {'install_subdir with empty directory'}

Valum 0.3.18

  User defined options
    prefix: /usr

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.                                                                       
[1/125] Generating docs/API documentation with a custom command
FAILED: docs/api 
/usr/bin/valadoc --package-name valum-0.3 --package-version 0.3.18 --pkg=glib-2.0 --pkg=gio-2.0 --pkg=gio-unix-2.0 --pkg=gmodule-2.0 --pkg=libsoup-2.4 --pkg=posix --target-glib=2.40 --force --define=GIO_2_44 --define=SOUP_2_48 --directory docs/api ../src/vsgi/vsgi.vala ../src/vsgi/vsgi-application.vala ../src/vsgi/vsgi-authentication.vala ../src/vsgi/vsgi-authorization.vala ../src/vsgi/vsgi-basic-authentication.vala ../src/vsgi/vsgi-basic-authorization.vala ../src/vsgi/vsgi-bounded-input-stream.vala ../src/vsgi/vsgi-cgi.vala ../src/vsgi/vsgi-connection.vala ../src/vsgi/vsgi-cookie-utils.vala ../src/vsgi/vsgi-handler-module.vala ../src/vsgi/vsgi-handler.vala ../src/vsgi/vsgi-mock.vala ../src/vsgi/vsgi-request.vala ../src/vsgi/vsgi-response.vala ../src/vsgi/vsgi-security-utils.vala ../src/vsgi/vsgi-server-module.vala ../src/vsgi/vsgi-server.vala ../src/vsgi/vsgi-socket-server.vala ../src/vsgi/vsgi-tee-output-stream.vala ../src/valum/valum.vala ../src/valum/valum-asterisk-route.vala ../src/valum/valum-authenticate.vala ../src/valum/valum-basepath.vala ../src/valum/valum-basic.vala ../src/valum/valum-cache-control.vala ../src/valum/valum-context.vala ../src/valum/valum-decode.vala ../src/valum/valum-forward.vala ../src/valum/valum-forward-with.vala ../src/valum/valum-matcher-route.vala ../src/valum/valum-method.vala ../src/valum/valum-content-negotiation.vala ../src/valum/valum-path-route.vala ../src/valum/valum-regex-route.vala ../src/valum/valum-route.vala ../src/valum/valum-router.vala ../src/valum/valum-rule-route.vala ../src/valum/valum-safely.vala ../src/valum/valum-sequence.vala ../src/valum/valum-server-sent-events.vala ../src/valum/valum-static.vala ../src/valum/valum-status.vala ../src/valum/valum-subdomain.vala --doclet=html
vsgi-server.vala:166.4-166.22: warning: `GLib.IOSchedulerJob.push' is deprecated
vsgi-server.vala:174.12-174.31: warning: `GLib.IOSchedulerJob.send_to_mainloop' is deprecated
vsgi-handler-module.vala:64.31-64.51: warning: `GLib.ModuleFlags.BIND_LAZY' has been deprecated since vala-0.46. Use LAZY
valum-router.vala:50.30-50.49: error: Invalid regular expression `//(?:\.?[\w-\s\/@+~])+'.
valum-static.vala:101.25-101.55: warning: `GLib.FileInfo.get_modification_time' has been deprecated since 2.62
valum-static.vala:101.9-101.21: warning: `GLib.TimeVal' has been deprecated since 2.62
valum-static.vala:111.39-111.94: warning: `Soup.Date.to_timeval' is deprecated
Failed: 1 error(s), 6 warning(s)
[2/125] Generating docs/Devhelp book with a custom command
FAILED: docs/devhelp 
/usr/bin/valadoc --package-name valum-0.3 --package-version 0.3.18 --pkg=glib-2.0 --pkg=gio-2.0 --pkg=gio-unix-2.0 --pkg=gmodule-2.0 --pkg=libsoup-2.4 --pkg=posix --target-glib=2.40 --force --define=GIO_2_44 --define=SOUP_2_48 --directory docs/devhelp ../src/vsgi/vsgi.vala ../src/vsgi/vsgi-application.vala ../src/vsgi/vsgi-authentication.vala ../src/vsgi/vsgi-authorization.vala ../src/vsgi/vsgi-basic-authentication.vala ../src/vsgi/vsgi-basic-authorization.vala ../src/vsgi/vsgi-bounded-input-stream.vala ../src/vsgi/vsgi-cgi.vala ../src/vsgi/vsgi-connection.vala ../src/vsgi/vsgi-cookie-utils.vala ../src/vsgi/vsgi-handler-module.vala ../src/vsgi/vsgi-handler.vala ../src/vsgi/vsgi-mock.vala ../src/vsgi/vsgi-request.vala ../src/vsgi/vsgi-response.vala ../src/vsgi/vsgi-security-utils.vala ../src/vsgi/vsgi-server-module.vala ../src/vsgi/vsgi-server.vala ../src/vsgi/vsgi-socket-server.vala ../src/vsgi/vsgi-tee-output-stream.vala ../src/valum/valum.vala ../src/valum/valum-asterisk-route.vala ../src/valum/valum-authenticate.vala ../src/valum/valum-basepath.vala ../src/valum/valum-basic.vala ../src/valum/valum-cache-control.vala ../src/valum/valum-context.vala ../src/valum/valum-decode.vala ../src/valum/valum-forward.vala ../src/valum/valum-forward-with.vala ../src/valum/valum-matcher-route.vala ../src/valum/valum-method.vala ../src/valum/valum-content-negotiation.vala ../src/valum/valum-path-route.vala ../src/valum/valum-regex-route.vala ../src/valum/valum-route.vala ../src/valum/valum-router.vala ../src/valum/valum-rule-route.vala ../src/valum/valum-safely.vala ../src/valum/valum-sequence.vala ../src/valum/valum-server-sent-events.vala ../src/valum/valum-static.vala ../src/valum/valum-status.vala ../src/valum/valum-subdomain.vala --doclet=devhelp
vsgi-server.vala:166.4-166.22: warning: `GLib.IOSchedulerJob.push' is deprecated
vsgi-server.vala:174.12-174.31: warning: `GLib.IOSchedulerJob.send_to_mainloop' is deprecated
vsgi-handler-module.vala:64.31-64.51: warning: `GLib.ModuleFlags.BIND_LAZY' has been deprecated since vala-0.46. Use LAZY
valum-router.vala:50.30-50.49: error: Invalid regular expression `//(?:\.?[\w-\s\/@+~])+'.
valum-static.vala:101.25-101.55: warning: `GLib.FileInfo.get_modification_time' has been deprecated since 2.62
valum-static.vala:101.9-101.21: warning: `GLib.TimeVal' has been deprecated since 2.62
valum-static.vala:111.39-111.94: warning: `Soup.Date.to_timeval' is deprecated
Failed: 1 error(s), 6 warning(s)
[4/125] Generating docs/en user documentation with a custom command
FAILED: docs/en 
/usr/bin/sphinx-build -W -b html /home/nda-cunh/valum/src/valum-0.3.18/docs docs/en
Running Sphinx v7.1.2
making output directory... done

Theme error:
no theme named 'sphinx_rtd_theme' found (missing theme.conf?)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
arteymix commented 11 months ago

You need the sphinx_rtd_theme to build the documentation. If you have Sphinx, it will attempt it.

The regex has been fixed in the trunk, but I haven't had the time to make a release in the stable branch.

arteymix commented 11 months ago

Also, yes, this project is pretty much abandoned.

lennyhans commented 10 months ago

You can also disable the documentation, but you will need it anyways if you try to make a package for arch I guess.

You can delete the -W flag on docs/meson.build and there you go.