Bug 280359 - lang/emilua: Update to 0.9.0
Summary: lang/emilua: Update to 0.9.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL: https://docs.emilua.org/api/0.9/chang...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 01:03 UTC by Valter Nazianzeno
Modified: 2024-07-19 10:24 UTC (History)
3 users (show)

See Also:


Attachments
Diff for 0.9.0 (29.72 KB, patch)
2024-07-19 01:03 UTC, Valter Nazianzeno
manipuladordedados: maintainer-approval+
Details | Diff
[FIXED (29.51 KB, text/plain)
2024-07-19 06:34 UTC, Valter Nazianzeno
no flags Details
[FIXED] Diff for 0.9.0 (29.51 KB, patch)
2024-07-19 06:36 UTC, Valter Nazianzeno
manipuladordedados: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Valter Nazianzeno 2024-07-19 01:03:42 UTC
Created attachment 252155 [details]
Diff for 0.9.0
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-07-19 02:11:30 UTC
Does this really require gcc 12 and can't be built with gcc 13?

Also about patch lang/emilua/files/patch-subprojects_asio_meson.build - check this:
From 8aa543be97491b5c061cadedfcb2162c4f88c67a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vin=C3=ADcius=20dos=20Santos=20Oliveira?=
 <vini.ipsmaker@gmail.com>
Date: Fri, 21 Jun 2024 15:43:25 -0300
Subject: [PATCH] Add meson.build

The idea is to use the project as a subproject in meson projects.
---
 meson.build | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meson.build

diff --git a/meson.build b/meson.build
new file mode 100644
index 00000000..4d851495
--- subprojects/asio/meson.build.orig   2024-07-19 02:04:16 UTC
+++ subprojects/asio/meson.build
@@ -0,0 +1,12 @@
+project('asio',
+    'cpp',
+    version : '1.30.2',
+    license : 'BSL-1.0',
+)
+
+asio_dep = declare_dependency(
+    include_directories : include_directories('asio/include'),
+)
+
+install_headers('asio/include/asio.hpp')
+install_subdir('asio/include/asio', install_dir: get_option('includedir'))
--
GitLab

And you don't need:
@${PATCH} -p1 -d ${WRKSRC}/subprojects/asio < ${FILESDIR}/patch-subprojects_asio_asio_meson.build
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-07-19 02:29:42 UTC
Build fine with gcc 13, don't know about work.
Try test work with USE_GCC=yes.
Comment 3 Valter Nazianzeno 2024-07-19 06:34:32 UTC
Created attachment 252157 [details]
[FIXED
Comment 4 Valter Nazianzeno 2024-07-19 06:36:01 UTC
Created attachment 252158 [details]
[FIXED] Diff for 0.9.0
Comment 5 Valter Nazianzeno 2024-07-19 06:36:55 UTC
Emilua requires at least GCC 12 and works with later versions as well. I was using `USE_GCC=12` instead of `USE_GCC=yes` because, on systems where GCC 11 was installed, the build process would attempt to use it and result in errors. Specifically, I used version 12 because it was the default when installing GCC at that time. It seems this has changed, and the default version is now more recent. Good to know. I also fixed the patch. Thank you for the suggestions!
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-07-19 10:15:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fe1c90a625b322f7f486dc32df5dd3d337b0269a

commit fe1c90a625b322f7f486dc32df5dd3d337b0269a
Author:     Valter Nazianzeno <manipuladordedados@gmail.com>
AuthorDate: 2024-07-19 10:10:29 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-19 10:10:29 +0000

    lang/emilua: update 0.8.4 → 0.9.0

    0.9 - 2024-06-26
    Added
     * filesystem.clock.time_point.seconds_since_unix_epoch.
     * New bindings in init.script related to mount_setattr() (Linux).
    Changed
     * is_block_file() renamed to is_block_device().
     * is_character_file() renamed to is_character_device().

    Changelog:
    https://docs.emilua.org/api/0.9/changelog.html

    PR:     280359

 lang/emilua/Makefile                               |  12 +-
 lang/emilua/distinfo                               |   8 +-
 .../files/patch-subprojects_asio_meson.build (new) |  32 ++
 lang/emilua/pkg-plist                              | 635 ++++++++++++++++++++-
 4 files changed, 676 insertions(+), 11 deletions(-)