Commit graph

21 commits

Author SHA1 Message Date
Jan200101
1ffefc4662
Update to 0.16.0 2026-04-25 14:34:50 +02:00
Jan200101
b9abbed4a8
use relative cache dir, put cache into vpath for clean separation
The zig cache dir used to be specified as an absolute path because of an
issue with build processes for local subdependencies changing the
current working directory incorrectly, this has since been fixed.
Additionally %{builddir} is a new construct that is not available under
EPEL, %{_builddir}/%{?buildsubdir} was considered however there is no
need for an absolute path at this time.

The generated objects should never match on different architectures due
to how the cache system is designed however there this may cause
confusion while debugging so its been put under %{_vpath_builddir}.
Specifying a direct cache name would be possible however I think
_vpath_builddir has become pretty well known to maintainers and would
best be suited for this.
2026-01-04 17:26:48 +01:00
Jan200101
55a3e42937
Update to 0.15.2 2025-10-12 10:34:29 +02:00
Jan200101
0ec1977ad7
add default build-id to macro, correctly handle undefined macro
thanks alebastr for pointing this out, unsure why I hadn't run into this myself
2025-04-22 09:26:41 +02:00
Jan200101
284dc4f1a3
add user provided test and fetch options 2025-02-01 19:21:24 +01:00
Jan200101
a70f739094
add user provided options to the end of the build and install options 2025-01-27 11:03:01 +01:00
Jan200101
2bbfea5a46
separate package dir from cache dir, add prepare macro
`zig build --system` fails if the given path does not exist
this hasn't been an issue for river or ghostty since they pull in dependencies which makes zig create the given path, but ncdu doesn't have any dependencies.
2025-01-27 10:05:12 +01:00
Jan200101
ceb0aad27a
quote paths to prevent any accidents 2025-01-01 14:37:31 +01:00
Jan200101
f0f8c54d66
update baseline list, add summary flag to general options
the summary flag outputs a complete build summary of the whole build tree output in an orderly tree structure, very useful for inspecting what the build system actually did
2025-01-01 13:20:03 +01:00
Jan200101
c8cfc2b53d
correct macro variables
- zig does not handle relative paths passed to the first process so we need to specify an absolute path
- system integration was accidentally broken by an extra % sign
- system flag was used on cache instead of package directory
2024-12-30 11:49:48 +01:00
Jan200101
7048d61867
Update to 0.12.0 2024-06-11 10:57:05 +02:00
8c4bf36257
Update to 0.11.0
Since 0.11.0 includes a prebuilt wasm stage1, we are no longer allowed
to build and tag it directly[1].
Instead, we shall do the following:
 * Obtain an exception from the packaging committee[2]
 * Build initial package completely from stage1 to stage3 with
   `%%bcond bootstrap 1` (this can be done in a side-tag without any
   changes to the spec[3]).
 * Use the bootstrapped package to make a clean source-only build of
   stage3.
 * Discard the ~bootstrap and send the clean build to bodhi.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#_exceptions
[2]: https://pagure.io/packaging-committee/issue/1319
[3]: https://pagure.io/packaging-committee/pull-request/1308#request_diff

Co-authored-by: Jan Drögehoff <sentrycraft123@gmail.com>
2024-01-27 13:21:36 -08:00
39e7a7ca51
Drop %%_zig_version macro
As discussed in https://bugzilla.redhat.com/show_bug.cgi?id=2142363#c5
2024-01-27 13:21:35 -08:00
Jan200101
473aee6a77
add patch to keep native lib paths off rpath, set default build flags 2022-01-31 21:12:54 +01:00
Jan200101
fe97af2f08
correct newline causing DESTDIR to be ignored, bump release 2021-07-04 22:52:27 +02:00
Jan200101
aa3606be7b
correct rpm macro once again
a space at the end of the line was escaped instead of going to the next line
2021-06-28 20:10:31 +02:00
Jan200101
4fa445116f
improve macros, add build instruction to build macro, fix improper mkdir 2021-06-24 12:17:24 +02:00
Jan200101
bbaa7eaae4
correct rpm macro, remove rawhide specific hacks 2021-06-24 11:25:08 +02:00
Jan200101
11a0bc08dd
add missing build dependency, update patches 2021-06-14 21:42:15 +02:00
Jan200101
1922d307ed
remove 32 bit systems from arch list
zig0 building zig1 currently takes more ram than 32 bit systems can use
https://github.com/ziglang/zig/issues/6485
2021-06-07 22:21:10 +02:00
Jan200101
89a4b3568c
Initial import (rhbz#1968139) 2021-06-07 22:01:14 +02:00