44 Commits

Author SHA1 Message Date
sthen
6781029335 bump REVISION for ports using rust, so that pkg_add -u for i386 users
updates to packages without -znotext (i.e. with text relocations disabled)
makes sense to phessler, semarie, tb
2022-10-28 10:00:45 +00:00
semarie
6f1dbcb6fe adjust rust programs to run with immutable stack
the rust std library has been changed to not try to reallocate
a guard page on the stack.

as the rust std library is statically linked in rust programs,
bump REVISION to force reinstall.
2022-10-09 16:32:18 +00:00
landry
c078351a37 devel/cbindgen: update to 0.24.3.
0.24.2 required by m-c since #1773070
2022-06-11 08:26:29 +00:00
landry
58f1eea6dd devel/cbindgen: update to 0.23
required by firefox 101
2022-05-04 06:12:36 +00:00
landry
b74dd030f8 devel/cbindgen: update to 0.21.
- might be required by upcoming gecko 102esr, so upgrade to be on the safe
  side for 7.1-stable.
- switch to crates.inc while here
ok naddy@
2022-04-04 12:44:21 +00:00
naddy
85229c97e7 drop RCS Ids 2022-03-11 18:49:30 +00:00
landry
edc0510fee devel/cbindgen: update to 0.20.0 2021-10-04 06:35:40 +00:00
landry
2aa3d8a45e devel/cbindgen: update to 0.19.0.
will be required for firefox 89 (#1695313)
2021-04-24 08:14:47 +00:00
landry
e8593fc3b9 devel/cbindgen: update to 0.18.0 2021-04-06 14:39:00 +00:00
landry
303f1bd583 devel/cbindgen: update to 0.17.0.
See https://github.com/eqrion/cbindgen/releases/tag/v0.17.0
Built firefox-esr-78.8.0rc1 without issues.
2021-02-21 12:47:44 +00:00
landry
b1b92791d5 devel/cbindgen: update to 0.16.0. 2021-01-05 10:27:06 +00:00
landry
3d9f0eeee4 Update to cbindgen 0.15.0, required by gecko 83. 2020-10-21 10:54:27 +00:00
landry
264225c6d9 Update to cbindgen 0.14.6. 2020-09-23 08:57:26 +00:00
landry
919659825c Fix most tests by cherrypicking https://github.com/eqrion/cbindgen/pull/557
test result: FAILED. 97 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out

of all the remaining failures, 6 of them are due to 'error: the option
`Z` is only accepted on the nightly compiler', the only real error
standing out is test_enum from a macro definition conflict ?

error: expected parameter declarator
static_assert(offsetof(CBINDGEN_STRUCT(P), tag) == 0,"unexpected offset for tag");
/usr/include/stddef.h:69:32: note: expanded from macro 'offsetof'
#define offsetof(type, member)  __builtin_offsetof(type, member)
2020-08-04 10:47:44 +00:00
landry
56c4226386 Update to cbindgen 0.14.3, somehow i completely forgot to push this..
noticed by pvk@
2020-07-29 10:05:37 +00:00
landry
372195312b Update to cbindgen 0.14.1
required to build m-c since #1628754, tested with fx 76.0b3 & tb 76.0b1
2020-04-12 06:28:05 +00:00
landry
9ffa1d62e4 update to cbindgen 0.13.1 2020-03-05 17:23:18 +00:00
semarie
cc7591003c small devel/cargo cleanup
MODCARGO_CRATES_UPDATE, for libc crate, isn't need anymore when >=0.2.63
2020-03-02 07:13:55 +00:00
landry
dcfb3f54b3 Update to cbingen 0.13.0, required to build m-c since #1612092 2020-02-07 13:02:19 +00:00
semarie
51dd06c1e7 devel/cargo: use edition 2018 syntax by default for installing using cargo
the syntax is compatible with older edition, and more crates are using the
edition 2018 which require it.

avoid using MODCARGO_INSTALL_ARGS just to pass "--path ."

ok landry@ (some time ago, the diff was sleeping in my tree)
2020-01-21 05:27:18 +00:00
landry
7a875006ad Update to cbindgen 0.12.1.
0.12.0 required to build mozilla-central since #1604160
add MODCARGO_INSTALL_ARGS=--path . to workaround cargo now requiring it

built firefox 68.3.0esr and 71.0 with it without fallout
2020-01-02 17:18:13 +00:00
landry
55c939f2b4 Update to cbindgen 0.11.1, required to build m-c since #1602317 2019-12-15 17:05:09 +00:00
landry
3e5e31bedc Update to cbindgen 0.11.0. 2019-12-04 11:17:54 +00:00
landry
c711fa76b0 Use libc 0.2.63 for sparc64, reminded by semarie@ 2019-09-04 06:31:08 +00:00
semarie
fc944f3a11 keep libc-rs >= 0.2.63 for sparc64 compatibility
it is a manual setting to have while upstream doesn't use higher libc-rs
version.

don't bump REVISION as the build on sparc64 doesn't work with older
version, and on others platforms it doesn't change anything.
2019-09-04 06:18:20 +00:00
landry
15a0e0ca1a Update to cbindgen 0.9.1, required by gecko 70. 2019-09-03 18:33:39 +00:00
semarie
0fb585e377 update libc-rs for include sparc64 compatibility
ok landry@
2019-08-30 12:24:00 +00:00
sthen
9fe1e38b23 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:43:27 +00:00
landry
5faa6a9f61 Update to cbindgen 0.9.0, required by gecko 69 since #1559814
for some reason tests are supposed to use CXX/CC from the env, but with
TEST_ENV = CC=${CC} CXX=${CXX} seems its not working, so adapt the patch
accordingly. same 4 tests still fail.
2019-07-10 07:56:08 +00:00
jca
b308769288 Compile tests with cc/c++ instead of gcc/g++ and drop SEPARATE_BUILD
This lets tests run. Failures:
test_expand
test_expand_default_features
test_expand_features
test_expand_no_default_features
2019-07-01 11:25:58 +00:00
landry
3efa7245b1 Update to cbindgen 0.8.7.
Required to build upcoming gecko 68 per
https://bugzilla.mozilla.org/show_bug.cgi?id=1529002
2019-05-23 12:05:15 +00:00
landry
c369e1fcd8 Update to cbindgen 0.8.3.
required to build mozilla-central since
https://bugzilla.mozilla.org/show_bug.cgi?id=1536582

Also means 6.5-stable wont get firefox 68, unless cbindgen gets
backported there.
2019-04-26 07:29:11 +00:00
landry
ec67940f3f Update to cbindgen 0.8.2.
Needed for mozilla-central since #1533142 5 days ago
2019-03-11 18:57:25 +00:00
landry
2d74b6ba63 Update cbindgen to 0.7.1.
Required to build mozilla-central since #1523071
2019-02-15 14:48:35 +00:00
landry
9515b3b384 Update cbindgen to 0.6.8.
required to build mozilla-central since #1519501
2019-01-25 16:01:54 +00:00
semarie
b19d4110a9 change MODCARGO_CRATES syntax for devel/cargo module.
The new syntax to have version with '-' character:
-MODCARGO_CRATES +=     aho-corasick-0.6.8      # Unlicense/MIT
+MODCARGO_CRATES +=     aho-corasick    0.6.8   # Unlicense/MIT

update all customers of devel/cargo to use the new syntax

ok landry@
2018-12-16 08:50:11 +00:00
landry
dee9cffd96 Update cbindgen to 0.6.7, again a requirement for mozilla-central.
Per #1503401 firefox 63 needs a patch to keep building with that
version, this will be handled in a few.
2018-11-03 21:31:59 +00:00
landry
3444d69147 Update to cbindgen 0.6.6.
Required by m-c since https://bugzilla.mozilla.org/show_bug.cgi?id=1496619
2018-10-29 14:40:31 +00:00
landry
afc8fd37e9 Update to cbindgen 0.6.4.
Required to build mozilla-central since https://bugzilla.mozilla.org/show_bug.cgi?id=1496486
2018-10-16 19:38:04 +00:00
landry
87f241ee73 Bump all ports using rust to ensure they get rebuilt/updated. 2018-10-08 15:28:05 +00:00
sthen
202fbf484e bump REVISION on ports using rust, to ensure that they pick up the fix
for out of bounds write due to integer overflow that was fixed in rust's
libstd (which is statically linked).
2018-09-25 21:16:37 +00:00
landry
544bc7ac2d Update to cbindgen 0.6.3 2018-09-06 11:51:33 +00:00
landry
48b0089bbf Update to cbindgen 0.6.2.
Because https://bugzilla.mozilla.org/show_bug.cgi?id=1485197.
2018-08-24 06:32:30 +00:00
landry
a169eb7294 Import cbindgen 0.6.1.
This project can be used to generate C bindings for Rust code:

* Builds bindings for a crate, its mods, its dependent crates, and their mods
* Only the necessary types for exposed functions are given bindings
* Can specify annotations for controlling some aspects of binding
* Support for generic structs and unions
* Support for exporting constants and statics
* Customizable formatting, can be used in C or C++ projects
* Support for generating #ifdef's for #[cfg] attributes
* Support for #[repr(sized)] tagged enum's

Will be a BDEP for firefox 63, per
https://groups.google.com/forum/#!topic/mozilla.dev.platform/t4Bc-I0lxBY

ok sthen@ semarie@
2018-08-21 19:16:52 +00:00