Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
afca0560
Commit
afca0560
authored
Mar 28, 2026
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Apr 01, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add zig vendoring (Closes #6)
Signed-off-by:
Boris Yumankulov
<
boria138@altlinux.org
>
parent
c31f2ec0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
rpmgs
bin/rpmgs
+35
-0
No files found.
bin/rpmgs
View file @
afca0560
...
...
@@ -676,6 +676,41 @@ update_predownloaded()
done
#### end of cargo only part
#### zig only part
local
i
local
zig_dir
=
''
for
i
in
*
/build.zig.zon
;
do
[
-s
"
$i
"
]
||
continue
[
-d
"./zig-cache"
]
&&
continue
zig_dir
=
$(
dirname
"
$i
"
)
local
COMMITMSG
=
''
info
"Detected '
$i
' install hook ..."
cd
"
$zig_dir
"
||
fatal
docmd zig build
--fetch
=
all
--cache-dir
../zig-cache
--global-cache-dir
../zig-cache
||
fatal
COMMITMSG
=
"update vendored zig modules in
$zig_dir
dir with zig build --fetch=all for
$VERSION
(see
$SDNAME
in .gear/rules)"
if
[
-s
$RGD
/.gear/predownloaded-postinstall-hook
]
;
then
info
"Detected .gear/predownloaded-postinstall-hook, running it ..."
$RUNHOOK
$RGD
/.gear/predownloaded-postinstall-hook
$MODE
$VERSION
fi
# HACK: fix it for ALT (need fix for macros ?)
# [00:00:03] + /usr/bin/zig build --verbose --release=safe -Dtarget=native -Dcpu=baseline -Doptimize=ReleaseSafe --system zig-cache --cache-dir zig-cache --global-cache-dir zig-cache
# error: package not found at 'zig-cache/otter_conf-1.0.0-d7vdxEWbAQDN62X7TrhhqEVu2kk-7okjqoB_7jZlKq34'
if
[
-d
"../zig-cache/p"
]
;
then
cp
-a
../zig-cache/p/. ../zig-cache/
||
fatal
rm
-rf
../zig-cache/p
fi
cd
-
>
/dev/null
# TODO: drop zigwin32 ?
KEEP_DIRS
=
"
$KEEP_DIRS
zig-cache"
done
#### end of zig only part
#### dotnet only part
local
sln_file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment