-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathbase.yaml
More file actions
793 lines (689 loc) · 24.7 KB
/
base.yaml
File metadata and controls
793 lines (689 loc) · 24.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
# SPDX-FileCopyrightText: 2023 AerynOS Developers
# SPDX-License-Identifier: MPL-2.0
# Provides core definitions which each profile may override
definitions:
# Basic variables required for packages to build correctly
- libsuffix : ""
- prefix : "/usr"
- bindir : "%(prefix)/bin"
- includedir : "%(prefix)/include"
- sysusersdir : "%(prefix)/lib/sysusers.d"
- tmpfilesdir : "%(prefix)/lib/tmpfiles.d"
- udevrulesdir : "%(prefix)/lib/udev/rules.d"
- sbindir : "%(prefix)/sbin"
- datadir : "%(prefix)/share"
- vendordir : "%(datadir)/defaults"
- docdir : "%(datadir)/doc"
- infodir : "%(datadir)/info"
- localedir : "%(datadir)/locale"
- mandir : "%(datadir)/man"
- bashcompletionsdir : "%(datadir)/bash-completion/completions"
# TODO: Remove completionsdir once rebuilds are done and we are on Rust infra
- completionsdir : "%(bashcompletionsdir)"
- fishcompletionsdir : "%(datadir)/fish/vendor_completions.d"
- elvishcompletionsdir : "%(datadir)/elvish/lib"
- zshcompletionsdir : "%(datadir)/zsh/site-functions"
- libdir : "%(prefix)/lib%(libsuffix)"
- libexecdir : "%(libdir)/%(name)"
- localstatedir : "/var"
- sharedstatedir : "%(localstatedir)/lib"
- runstatedir : "/run"
- sysconfdir : "/etc"
- builddir : "aerynos-builddir"
# The vendorID is encoded into the triplet, toolchain, builds, etc.
# It must match the triplet from bootstrap-scripts.
- vendorID : "aerynos-linux"
# Must be set for CC/CXX/CPP to work
- cc : "%(compiler_c)"
- cxx : "%(compiler_cxx)"
- objc : "%(compiler_objc)"
- objcxx : "%(compiler_objcxx)"
- cpp : "%(compiler_cpp)"
- objcpp : "%(compiler_objcpp)"
- objcxxcpp : "%(compiler_objcxxcpp)"
- d : "%(compiler_d)"
- ar : "%(compiler_ar)"
- ld : "%(compiler_ld)"
- objcopy : "%(compiler_objcopy)"
- nm : "%(compiler_nm)"
- ranlib : "%(compiler_ranlib)"
- strip : "%(compiler_strip)"
- path : "%(compiler_path)"
- ccachedir : "%(compiler_cache)"
- gocachedir : "%(compiler_go_cache)"
- gomodcachedir : "%(compiler_go_mod_cache)"
- cargocachedir : "%(compiler_cargo_cache)"
- sccachedir : "%(scompiler_cache)"
- pkgconfigpath : "%(libdir)/pkgconfig:/usr/share/pkgconfig"
actions :
- scriptBase :
description: scriptBase is merged to the top of all newly generated build scripts.
command: |
#!/usr/bin/bash
set -e
set -x
TERM="dumb"; export TERM
SOURCE_DATE_EPOCH="%(sourcedateepoch)"; export SOURCE_DATE_EPOCH
PGO_STAGE="%(pgo_stage)"; export PGO_STAGE
PKG_CONFIG_PATH="%(pkgconfigpath)"; export PKG_CONFIG_PATH
CFLAGS="%(cflags)"; export CFLAGS
CGO_CFLAGS="%(cflags)"; export CGO_CFLAGS
CXXFLAGS="%(cxxflags)"; export CXXFLAGS
CGO_CXXFLAGS="%(cxxflags)"; export CGO_CXXFLAGS
FFLAGS="%(fflags)"; export FFLAGS
LDFLAGS="%(ldflags)"; export LDFLAGS
CGO_LDFLAGS="%(ldflags) -Wl,--no-gc-sections"; export CGO_LDFLAGS
DFLAGS="%(dflags)"; export DFLAGS
RUSTFLAGS="%(rustflags)"; export RUSTFLAGS
CC="%(cc)"; export CC
CXX="%(cxx)"; export CXX
OBJC="%(objc)"; export OBJC
OBJCXX="%(objcxx)"; export OBJCXX
CPP="%(cpp)"; export CPP
OBJCPP="%(objcpp)"; export OBJCPP
OBJCXXCPP="%(objcxxcpp)"; export OBJCXXCPP
AR="%(ar)"; export AR
LD="%(ld)"; export LD
OBJCOPY="%(objcopy)"; export OBJCOPY
NM="%(nm)"; export NM
RANLIB="%(ranlib)"; export RANLIB
STRIP="%(strip)"; export STRIP
PATH="%(path)"; export PATH
CCACHE_DIR="%(ccachedir)"; export CCACHE_DIR;
CCACHE_BASEDIR="%(workdir)"; export CCACHE_BASEDIR
test -z "$CCACHE_DIR" && unset CCACHE_DIR;
export NINJA_STATUS="[%%f/%%t %%es (%%P)] ";
%cargo_set_environment
RUSTC_WRAPPER="%(rustc_wrapper)"; export RUSTC_WRAPPER;
test -z "$RUSTC_WRAPPER" && unset RUSTC_WRAPPER;
GOCACHE="%(gocachedir)"; export GOCACHE;
test -z "$GOCACHE" && unset GOCACHE;
GOMODCACHE="%(gomodcachedir)"; export GOMODCACHE;
test -z "$GOMODCACHE" && unset GOMODCACHE;
CARGO_HOME="%(cargocachedir)"; export CARGO_HOME;
test -z "$CARGO_HOME" && unset CARGO_HOME;
SCCACHE_DIR="%(sccachedir)"; export SCCACHE_DIR;
test -z "$SCCACHE_DIR" && unset SCCACHE_DIR;
LANG="en_US.UTF-8"; export LANG
LC_ALL="en_US.UTF-8"; export LC_ALL
test -d "%(workdir)" || (echo "The work directory %(workdir) does not exist"; exit 1)
cd "%(workdir)" && echo "The work directory %%(workdir) is ${PWD}"
defaultTuningGroups :
- asneeded
- avxwidth
- base
- bindnow
- build-id
- compress-debug
- debug
- fat-lto
- fortify
- frame-pointer
- harden
- icf
- lto
- lto-errors
- optimize
- relr
- symbolic
- version-allow-undefined
tuning :
# A set of groups we can toggle from the "tune" key
# Architecture flags should always be enabled
- architecture:
enabled:
- architecture
# Base flags should almost always be enabled, but want to be able to disable
- base:
enabled:
- base
- debug:
options:
- lines:
enabled: debug-lines
- std:
enabled: debug-std
default: std
# Debug symbol compression
- compress-debug:
options:
- none:
enabled: compress-debug-none
- zlib:
enabled: compress-debug-zlib
- zstd:
enabled: compress-debug-zstd
default: zstd
# Toggle frame-pointer
- frame-pointer:
enabled: no-omit-frame-pointer
disabled: omit-frame-pointer
# Toggle build-id
- build-id:
enabled: build-id
# Enable bindnow functionality
- bindnow:
enabled: bindnow
# Enable symbolic
- symbolic:
options:
- all:
enabled: symbolic-all
- functions:
enabled: symbolic-functions
- nonweak:
enabled: symbolic-nonweak
default: functions
# Enable fortify
- fortify:
enabled: fortify
# Enable hardening
- harden:
options:
- none:
enabled: harden-none
- lvl1:
enabled: harden-lvl1
- lvl2:
enabled: harden-lvl2
disabled: harden-none
default: lvl1
# Enable optimisation per given levels
- optimize:
options:
- fast:
enabled: optimize-fast
- generic:
enabled: optimize-generic
- size:
enabled:
- optimize-size
- sections
- speed:
enabled: optimize-speed
default: generic
# Enable LTO
- lto:
options:
- full:
enabled: lto-full
- thin:
enabled: lto-thin
default: thin
# Enable LTOextra. Requires the equivalent lto option
- ltoextra:
options:
- full:
enabled: ltoextra-full
- thin:
enabled: ltoextra-thin
default: thin
# Enable LTO errors
- lto-errors:
enabled: lto-errors
# Toggle fat LTO objects
- fat-lto:
enabled: fat-lto
disabled: fat-lto-none
# Enable ICF
- icf:
options:
- safe:
enabled: icf-safe
- all:
enabled: icf-all
default: safe
# Enable Ignore data address equality
- idae:
enabled: idae
# Enable Polly
- polly:
enabled: polly
# Enable section splitting
- sections:
enabled: sections
# Toggle common
- common:
enabled: common
# Enable math
- math:
enabled: math
# Enable noplt
- noplt:
enabled:
- noplt
- bindnow
# Enable nosemantic
- nosemantic:
enabled: nosemantic
# Enable nodaed
- nodaed:
enabled: nodaed
# Enable asneeded
- asneeded:
enabled: asneeded
# Enable avxwidth
- avxwidth:
enabled: avxwidth-128
# Enable bolt
- bolt:
enabled: bolt
# Enable runpath
- runpath:
enabled: runpath
# Enable sse2avx
- sse2avx:
enabled: sse2avx
# Enable pch-instantiate
- pch-instantiate:
enabled: pch-instantiate
# Enable visibility
- visibility:
options:
- inline:
enabled: visibility-inline
- hidden:
enabled: visibility-hidden
default: inline
# Enable relative-vtables
- relative-vtables:
enabled: relative-vtables
# Enable relr
- relr:
enabled: relr
# Whether or not symbols in version scripts are allowed to be undefined
- version-allow-undefined:
enabled: version-allow-undefined
disabled: version-no-undefined
flags :
# Needs overriding with -march/mtune values.
- architecture:
c : ""
cxx : ""
ld : ""
# Base flags, enabled by default
- base:
c : "-pipe -Wformat -Wformat-security -Wno-error -fPIC"
cxx : "-pipe -Wformat -Wformat-security -Wno-error -fPIC"
f : ""
ld : "-Wl,-O2,--gc-sections"
d : "-release -Hkeep-all-bodies -relocation-model=pic -wi"
rust : "-C strip=none"
- omit-frame-pointer:
c : "-fomit-frame-pointer -momit-leaf-frame-pointer"
cxx : "-fomit-frame-pointer -momit-leaf-frame-pointer"
f : "-fomit-frame-pointer"
d : "-frame-pointer=none"
rust : ""
- no-omit-frame-pointer:
c : "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
cxx : "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
f : "-fno-omit-frame-pointer"
d : "-frame-pointer=all"
rust : "-C force-frame-pointers"
# Toggle bindnow (ON)
- bindnow:
ld : "-Wl,-z,relro,-z,now"
# Toggle symbolic (ON symbolic-functions)
- symbolic-all:
ld : "-Wl,-Bsymbolic"
- symbolic-functions:
ld : "-Wl,-Bsymbolic-functions"
- symbolic-nonweak:
llvm:
ld : "-Wl,-Bsymbolic-non-weak-functions"
# Toggle fortify (ON)
- fortify:
c : "-D_FORTIFY_SOURCE=2"
cxx : "-D_FORTIFY_SOURCE=2"
f : "-D_FORTIFY_SOURCE=2"
# No hardening!
- harden-none:
c : "-fno-stack-protector"
cxx : "-fno-stack-protector"
# Hardening (ON harden-lvl1)
- harden-lvl1:
c : "-fstack-protector --param ssp-buffer-size=32"
cxx : "-fstack-protector --param ssp-buffer-size=32"
- harden-lvl2:
llvm:
c : "-fstack-protector-strong -fstack-clash-protection -fPIE --param ssp-buffer-size=4"
cxx : "-fstack-protector-strong -fstack-clash-protection -fPIE --param ssp-buffer-size=4"
gnu:
c : "-fstack-protector-strong -fstack-clash-protection -fPIE --param ssp-buffer-size=4"
cxx : "-fstack-protector-strong -fstack-clash-protection -fPIE --param ssp-buffer-size=4"
# Use section splitting, improves GC without lto only (OFF)
- sections:
c : "-ffunction-sections -fdata-sections"
cxx : "-ffunction-sections -fdata-sections"
# Optimize without care for math issues
- optimize-fast:
c : "-Ofast"
cxx : "-Ofast"
f : "-Ofast"
# Generic optimisation case (ON)
- optimize-generic:
c : "-O2"
cxx : "-O2"
f : "-O2"
d : "-O2"
# opt-level=3 is common in the rust world so let that
# be our generic opt case.
rust : "-C opt-level=3 -C codegen-units=16"
# Optimize for size (OFF)
- optimize-size:
c : "-Os"
cxx : "-Os"
d : "-Os"
rust : "-C opt-level=s -C codegen-units=16"
gnu:
f : "-Os"
# Optimize for speed (OFF)
- optimize-speed:
c : "-O3"
cxx : "-O3"
f : "-O3"
d : "-O3"
rust : "-C opt-level=3 -C codegen-units=16"
# Enable LTO optimisations (OFF)
- lto-full:
rust : "-C lto=fat -C linker-plugin-lto -C embed-bitcode=yes"
gnu:
c : "-flto=%(jobs) -flto-partition=one"
cxx : "-flto=%(jobs) -flto-partition=one"
f : "-flto=%(jobs) -flto-partition=one"
ld : "-flto=%(jobs) -flto-partition=one"
llvm:
c : "-flto=full"
cxx : "-flto=full"
f : "-flto=full"
d : "-flto=full"
ld : "-flto=full"
# Enable Thin-LTO optimisations (ON)
- lto-thin:
rust : "-C lto=thin -C linker-plugin-lto -C embed-bitcode=yes"
gnu:
c : "-flto=%(jobs)"
cxx : "-flto=%(jobs)"
f : "-flto=%(jobs)"
ld : "-flto=%(jobs)"
llvm:
c : "-flto=thin"
cxx : "-flto=thin"
f : "-flto=thin"
d : "-flto=thin"
ld : "-flto=thin"
# Enable LTOextra optimisations (OFF)
- ltoextra-full:
gnu:
c : "-fdevirtualize-at-ltrans"
cxx : "-fdevirtualize-at-ltrans"
llvm:
c : "-fwhole-program-vtables -fvirtual-function-elimination"
cxx : "-fwhole-program-vtables -fvirtual-function-elimination"
# Enable Thin-LTOextra optimisations (OFF)
- ltoextra-thin:
llvm:
c : "-fwhole-program-vtables"
cxx : "-fwhole-program-vtables"
# Enable Fat LTO Objects. Note that this is only necessary when building static objects with LLVM that are used in a GCC build (ON)
- fat-lto:
c : "-ffat-lto-objects"
cxx : "-ffat-lto-objects"
gnu :
f : "-ffat-lto-objects"
# Disable Fat LTO Objects (OFF)
- fat-lto-none:
c : "-fno-fat-lto-objects"
cxx : "-fno-fat-lto-objects"
gnu :
f : "-fno-fat-lto-objects"
# Toggle LTO warning errors. If these throw an error it is likely that there will be runtime problems with LTO (ON)
- lto-errors:
gnu:
c : "-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
cxx : "-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
llvm:
c : "-Werror=odr -Werror=strict-aliasing"
cxx : "-Werror=odr -Werror=strict-aliasing"
# Enable build-id (ON)
- build-id:
ld : "-Wl,--build-id=sha1"
rust : "-C link-args=-Wl,--build-id=sha1"
# Compress debug symbols with Zstd (ON)
- compress-debug-zstd:
ld : "-Wl,--compress-debug-sections=zstd"
rust : "-C link-args=-Wl,--compress-debug-sections=zstd"
# Compress debug symbols with zlib (OFF)
- compress-debug-zlib:
ld : "-Wl,--compress-debug-sections=zlib"
rust : "-C link-args=-Wl,--compress-debug-sections=zlib"
# Don't compress debug symbols (OFF)
- compress-debug-none:
ld : "-Wl,--compress-debug-sections=none"
rust : "-C link-args=-Wl,--compress-debug-sections=none"
# Enable ALL LLVM ICF optimisations (OFF)
- icf-all:
llvm:
ld : "-Wl,--icf=all"
# Enable LLVM ICF optimisations (ON)
- icf-safe:
llvm:
ld : "-Wl,--icf=safe"
# Ignore data address equality (OFF)
- idae:
llvm:
ld : "-Wl,--ignore-data-address-equality"
# Enable LLVM polly optimisations (OFF)
- polly:
llvm:
c : "-fplugin=LLVMPolly.so -fpass-plugin=LLVMPolly.so -Xclang -mllvm -Xclang -polly -Xclang -mllvm -Xclang -polly-vectorizer=stripmine"
cxx : "-fplugin=LLVMPolly.so -fpass-plugin=LLVMPolly.so -Xclang -mllvm -Xclang -polly -Xclang -mllvm -Xclang -polly-vectorizer=stripmine"
f : "-fpass-plugin=LLVMPolly.so" # TODO: I don't think this does anything, but at least it doesn't fail
d : "-polly -polly-vectorizer=stripmine"
# Toggle options you want to use with llvm-bolt (OFF)
- bolt:
gnu:
c : "-fno-reorder-blocks-and-partition"
cxx : "-fno-reorder-blocks-and-partition"
ld : "-Wl,-q"
llvm:
c : "-fno-split-machine-functions"
cxx : "-fno-split-machine-functions"
ld : "-Wl,-q"
# Toggle -fcommon (OFF)
- common:
c : "-fcommon"
cxx : "-fcommon"
gnu :
f : "-fcommon"
# Toggle debug-lines optimisations
- debug-lines:
rust : "-C debuginfo=line-tables-only -C split-debuginfo=off"
llvm:
c : "-gline-tables-only -fasynchronous-unwind-tables"
cxx : "-gline-tables-only -fasynchronous-unwind-tables"
d : "-gline-tables-only -gc"
# Toggle debug-std optimisations (ON)
- debug-std:
f : "-g"
d : "-g -gc -d-debug"
rust : "-C debuginfo=2 -C split-debuginfo=off"
gnu:
c : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
cxx : "-g -feliminate-unused-debug-types -fasynchronous-unwind-tables"
llvm:
c : "-g -fasynchronous-unwind-tables"
cxx : "-g -fasynchronous-unwind-tables"
# Toggle fast math (OFF)
- math:
f : "-ffast-math"
d : "-ffast-math -fp-contract=fast"
gnu:
c : "-fno-math-errno -fno-trapping-math"
cxx : "-fno-math-errno -fno-trapping-math"
llvm:
c : "-fno-math-errno -fno-trapping-math -ffp-contract=fast -ffp-model=fast"
cxx : "-fno-math-errno -fno-trapping-math -ffp-contract=fast -ffp-model=fast"
# Toggle noplt, requires bindnow (OFF)
- noplt:
c : "-fno-plt"
cxx : "-fno-plt"
d : "-fno-plt"
gnu:
f : "-fno-plt"
# Toggle -fno-semantic-interposition (OFF)
- nosemantic:
c : "-fno-semantic-interposition"
cxx : "-fno-semantic-interposition"
# Toggle -fno-direct-access-external-data (OFF)
- nodaed:
llvm:
c : "-fno-direct-access-external-data"
cxx : "-fno-direct-access-external-data"
# Prefer 128-bit vector width (ON)
- avxwidth-128:
c : "-mprefer-vector-width=128"
cxx : "-mprefer-vector-width=128"
gnu:
f : "-mprefer-vector-width=128"
# Toggle -fpch-instantiate-templates (OFF)
- pch-instantiate:
llvm:
c : "-fpch-instantiate-templates"
cxx : "-fpch-instantiate-templates"
# Toggle asneeded (ON)
- asneeded:
ld : "-Wl,--as-needed"
# Toggle runpath (OFF)
- runpath:
ld : "-Wl,--enable-new-dtags"
# Toggle sse2avx (OFF)
- sse2avx:
gnu:
c : "-msse2avx"
cxx : "-msse2avx"
f : "-msse2avx"
# Toggle visibility hidden (OFF)
- visibility-hidden:
c : "-fvisibility=hidden"
cxx : "-fvisibility-inlines-hidden -fvisibility=hidden"
d : "-fvisibility=hidden"
gnu:
f : "-fvisibility=hidden"
# Toggle visibility inlines hidden (OFF)
- visibility-inline:
cxx : "-fvisibility-inlines-hidden"
# Enable relative vtables (OFF)
- relative-vtables:
llvm:
cxx : "-fexperimental-library -fexperimental-relative-c++-abi-vtables"
# Toggle relr (ON)
- relr:
ld : "-Wl,-z,pack-relative-relocs"
# Allow undefined symbols in version scripts (ON)
- version-allow-undefined:
ld : "-Wl,--undefined-version"
# Don't allow undefined symbols in version scripts (OFF)
- version-no-undefined:
ld : "-Wl,--no-undefined-version"
# Template packages
packages :
# Main package
- "%(name)":
paths:
- "*"
# Some documentation
- "%(name)-docs":
summary: "Documentation for %(name)"
description: |
Documentation files for the %(name) package
paths:
- /usr/share/gtk-doc
# Main development subpackage
- "%(name)-devel":
summary: "Development files for %(name)"
description: |
Install this package if you intend to build software against
the %(name) package.
paths:
- /usr/include
- /usr/lib/*.a
- /usr/lib/cmake
- /usr/lib/lib*.so
- /usr/lib/pkgconfig
- /usr/share/aclocal
- /usr/share/man/man2
- /usr/share/man/man3
- /usr/share/man/man9
- /usr/share/pkgconfig
# GObject introspection build files
- /usr/share/gir-1.0/*.gir
# Qt5/Qt6
- /usr/lib/*.prl
- /usr/lib/metatypes
- /usr/lib/qt*/metatypes/qt*.json
- /usr/lib/qt*/mkspecs
- /usr/lib/qt*/modules/*.json
- /usr/lib/qt*/sbom
- /usr/lib/qt*/plugins/designer/*.so
# KF5/KF6
- /usr/share/doc/qt5/*.qch
- /usr/share/doc/qt5/*.tags
- /usr/share/doc/qt6/*.qch
- /usr/share/doc/qt6/*.tags
rundeps:
- "%(name)"
# Main dbginfo package
- "%(name)-dbginfo":
summary: "Debugging symbols for %(name)"
description: |
Install this package if you need debugging information + symbols
for the %(name) package.
paths:
- /usr/lib/debug
# Template for a -libs sub-package which can be used by adding paths via the stone.yml file
- "%(name)-libs":
summary: "Library files for %(name)"
description: |
Library files for %(name), typically pulled in as a dependency of another package.
# 32-bit compat libraries
- "%(name)-32bit":
summary: "Provides 32-bit runtime libraries for %(name)"
description: |
Install this package if you need the 32-bit versions of the
%(name) package libraries.
paths:
- /usr/lib32
- /usr/lib32/lib*.so.*
rundeps:
- "%(name)"
# 32-bit development files
- "%(name)-32bit-devel":
summary: "Provides development files for %(name)-32bit"
description: |
Install this package if you need to build software against
the 32-bit version of %(name), %(name)-32bit.
paths:
- /usr/lib32/*.a
- /usr/lib32/cmake
- /usr/lib32/lib*.so
- /usr/lib32/pkgconfig
rundeps:
- "%(name)-32bit"
- "%(name)-devel"
# 32-bit debug symbols
- "%(name)-32bit-dbginfo":
summary: "Debugging symbols for %(name)-32bit"
description: |
Install this package if you need debugging information + symbols
for the %(name)-32bit package.
paths:
- /usr/lib32/debug
# Qt5/Qt6 currently
- "%(name)-demos":
summary: "Example files for %(name)"
description: |
Example files for the %(name) package
paths:
- /usr/lib/qt*/examples