summaryrefslogtreecommitdiff
path: root/intro2-tour.orig
blob: 1dd9d18b83b6bef78a4607cf7713a112e099bc2c (plain)
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
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
Script started on 2024-06-14 08:54:30+02:00 [COMMAND="./intro2-tour" TERM="xterm-256color" TTY="/dev/pts/2" COLUMNS="163" LINES="49"]

+ bdep new -t exe -l c++ hello
created new executable project hello in /tmp/hello/

+ tree hello
hello
├── build
│   ├── bootstrap.build
│   └── root.build
├── buildfile
├── hello
│   ├── buildfile
│   ├── hello.cxx
│   └── testscript
├── manifest
├── README.md
└── repositories.manifest

3 directories, 9 files

+ cd hello

+ cat hello/hello.cxx
#include <iostream>

int main (int argc, char* argv[])
{
  using namespace std;

  if (argc < 2)
  {
    cerr << "error: missing name" << endl;
    return 1;
  }

  cout << "Hello, " << argv[1] << '!' << endl;
}

+ cat hello/buildfile
libs =
#import libs += libhello%lib{hello}

exe{hello}: {hxx ixx txx cxx}{**} $libs testscript

cxx.poptions =+ "-I$out_root" "-I$src_root"

+ cat hello/testscript
: basics
:
$* 'World' >'Hello, World!'

: missing-name
:
$* 2>>EOE != 0
error: missing name
EOE

+ cat manifest
: 1
name: hello
version: 0.1.0-a.0.z
language: c++
summary: hello C++ executable
license: other: proprietary ; Not free/open source.
description-file: README.md
url: https://example.org/hello
email: boris@codesynthesis.com
#build-error-email: boris@codesynthesis.com
depends: * build2 >= 0.16.0
depends: * bpkg >= 0.16.0
#depends: libhello ^1.0.0

+ bdep init -C ../hello-gcc @gcc cc config.cxx=g++
initializing in project /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep init -C ../hello-clang @clang cc config.cxx=clang++-16
initializing in project /tmp/hello/
created configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ ls -d -1 ../hello ../hello-clang ../hello-gcc
../hello
../hello-clang
../hello-gcc

+ bdep init -C ../hello-vc-debug @debug cc config.cxx=cl-15 config.cc.coptions=/MDd /Z7 config.cc.loptions=/DEBUG
initializing in project /tmp/hello/
created configuration @debug /tmp/hello-vc-debug/ 3 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep init -C ../hello-vc-release @release cc config.cxx=cl-15 config.cc.coptions=/O2
initializing in project /tmp/hello/
created configuration @release /tmp/hello-vc-release/ 4 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep status
hello configured 0.1.0-a.0.19700101000000

+ b
mkdir ../hello-gcc/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/

+ b test
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}

+ hello/hello World
Hello, World!

+ tree ../hello-gcc
../hello-gcc
├── build
│   ├── bootstrap
│   │   └── pre-bdep-sync.build
│   ├── bootstrap.build
│   ├── config.build
│   └── root.build
├── buildfile
└── hello
    ├── build
    │   ├── bootstrap
    │   │   └── src-root.build
    │   └── config.build
    └── hello
        ├── hello
        ├── hello.d
        ├── hello.o
        └── hello.o.d

7 directories, 11 files

+ bdep status @clang
hello configured 0.1.0-a.0.19700101000000

+ b ../hello-clang/hello/
mkdir ../hello-clang/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-clang/hello/hello/obje{hello}
ld ../hello-clang/hello/hello/exe{hello}

+ b test: ../hello-clang/hello/
test ../hello-clang/hello/hello/exe{hello} + hello/testscript{testscript}

+ ../hello-clang/hello/hello/hello World
Hello, World!
rm ../hello-clang/hello/hello/exe{hello}
rm ../hello-clang/hello/hello/obje{hello}
rmdir ../hello-clang/hello/fsdir{hello/}

+ bdep test @clang
mkdir ../hello-clang/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-clang/hello/hello/obje{hello}
ld ../hello-clang/hello/hello/exe{hello}
test ../hello-clang/hello/hello/exe{hello} + hello/testscript{testscript}

+ bdep test @gcc @clang
in configuration @gcc:
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}

in configuration @clang:
test ../hello-clang/hello/hello/exe{hello} + hello/testscript{testscript}

+ bdep init -C ../hello-mingw @mingw cc config.cxx=x86_64-w64-mingw32-g++
initializing in project /tmp/hello/
created configuration @mingw /tmp/hello-mingw/ 5 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep update @mingw
mkdir ../hello-mingw/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-mingw/hello/hello/obje{hello}
ld ../hello-mingw/hello/hello/exe{hello}

+ bdep test @mingw
test ../hello-mingw/hello/hello/exe{hello} + hello/testscript{testscript}

+ ../hello-mingw/hello/hello/hello.exe Windows
Hello, Windows!

+ git add .

+ git commit -m Initial implementation
[master (root-commit) f1557e8] Initial implementation
 13 files changed, 180 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 build/.gitignore
 create mode 100644 build/bootstrap.build
 create mode 100644 build/root.build
 create mode 100644 buildfile
 create mode 100644 hello/.gitignore
 create mode 100644 hello/buildfile
 create mode 100644 hello/hello.cxx
 create mode 100644 hello/testscript
 create mode 100644 manifest
 create mode 100644 repositories.manifest

+ git remote add origin git@github.com:boris-kolpackov/hello.git

+ git push --no-progress origin master -u --force
To github.com:boris-kolpackov/hello.git
 + b5d5331...f1557e8 master -> master (forced update)
branch 'master' set up to track 'origin/master'.

+ bdep ci --simulate success
submitting:
  to:      https://ci.stage.build2.org
  in:      https://github.com/boris-kolpackov/hello.git#master@f1557e892c5b9e3963f6f0511d6f18e6a5a1770c
  package: hello
  version: 0.1.0-a.0.20240614065458.f1557e892c5b
continue? [Y/n] 
CI request is queued: https://ci.stage.build2.org/@3cc3364a-0b9a-4b2a-aa70-c8027f9daaf5
reference: 3cc3364a-0b9a-4b2a-aa70-c8027f9daaf5

+ bdep deinit @gcc @clang
deinitializing in project /tmp/hello/
in configuration @gcc:
synchronizing:
  drop hello

in configuration @clang:
synchronizing:
  drop hello

+ bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=g++
created new executable project hello in /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep init -C ../hello-clang @clang cc config.cxx=clang++-16
initializing in project /tmp/hello/
created configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bpkg rep-info https://git.build2.org/hello/libhello.git
git:build2.org/hello/libhello https://git.build2.org/hello/libhello.git
prerequisite git:build2.org/hello/libprint##HEAD https://git.build2.org/hello/libprint.git##HEAD
prerequisite git:build2.org/hello/libformat##HEAD https://git.build2.org/hello/libformat.git##HEAD

libhello/1.0.0+12
libhello/1.1.0+12

+ bpkg rep-info https://git.build2.org/hello/libhello.git#HEAD
git:build2.org/hello/libhello#HEAD https://git.build2.org/hello/libhello.git#HEAD
prerequisite git:build2.org/hello/libprint##HEAD https://git.build2.org/hello/libprint.git##HEAD
prerequisite git:build2.org/hello/libformat##HEAD https://git.build2.org/hello/libformat.git##HEAD

libhello/1.1.0+12

+ bdep status
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
warning: authenticity of the certificate for repository pkg:stage.build2.org cannot be established
certificate is for **build2.org, "Code Synthesis" <admin@build2.org>
certificate SHA256 fingerprint:
EC:50:13:E2:3D:F7:92:B4:50:0B:BF:2A:1F:7D:31:04:C6:57:6F:BC:BE:04:2E:E0:58:14:FA:66:66:21:1F:14
trust this certificate? [y/n] y
hello configured 0.1.0-a.0.19700101000000 available 0.1.0-a.0.19700101000000#1

+ bdep sync
synchronizing:
  new libhello/1.0.0+12 (required by hello)
  upgrade hello/0.1.0-a.0.19700101000000#1

+ b
synchronizing /tmp/hello-gcc/:
  upgrade hello/0.1.0-a.0.19700101000000#2
version ../hello-gcc/libhello-1.0.0+12/libhello/in{version} -> ../hello-gcc/libhello-1.0.0+12/libhello/hxx{version}
mkdir ../hello-gcc/hello/fsdir{hello/}
c++ ../hello-gcc/libhello-1.0.0+12/libhello/cxx{hello} -> ../hello-gcc/libhello-1.0.0+12/libhello/objs{hello}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
ld ../hello-gcc/libhello-1.0.0+12/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/

+ bdep status -ai
in configuration @gcc:
hello configured 0.1.0-a.0.19700101000000#2
  libhello ^1.0.0 configured 1.0.0+12

in configuration @clang:
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
hello configured 0.1.0-a.0.19700101000000 available 0.1.0-a.0.19700101000000#1

+ bdep sync -a
in configuration @gcc:

in configuration @clang:
synchronizing:
  new libhello/1.0.0+12 (required by hello)
  upgrade hello/0.1.0-a.0.19700101000000#1

+ bdep test -ai
in configuration @gcc:
c++ ../hello-gcc/libhello-1.0.0+12/tests/basics/cxx{driver} -> ../hello-gcc/libhello-1.0.0+12/tests/basics/obje{driver}
ld ../hello-gcc/libhello-1.0.0+12/tests/basics/exe{driver}
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}
test ../hello-gcc/libhello-1.0.0+12/tests/basics/exe{driver}

in configuration @clang:
version ../hello-clang/libhello-1.0.0+12/libhello/in{version} -> ../hello-clang/libhello-1.0.0+12/libhello/hxx{version}
mkdir ../hello-clang/hello/fsdir{hello/}
c++ ../hello-clang/libhello-1.0.0+12/libhello/cxx{hello} -> ../hello-clang/libhello-1.0.0+12/libhello/objs{hello}
c++ hello/cxx{hello} -> ../hello-clang/hello/hello/obje{hello}
c++ ../hello-clang/libhello-1.0.0+12/tests/basics/cxx{driver} -> ../hello-clang/libhello-1.0.0+12/tests/basics/obje{driver}
ld ../hello-clang/libhello-1.0.0+12/libhello/libs{hello}
ld ../hello-clang/libhello-1.0.0+12/tests/basics/exe{driver}
ld ../hello-clang/hello/hello/exe{hello}
test ../hello-clang/hello/hello/exe{hello} + hello/testscript{testscript}
test ../hello-clang/libhello-1.0.0+12/tests/basics/exe{driver}

+ bdep status
hello configured 0.1.0-a.0.19700101000000#2 available 0.1.0-a.0.19700101000000#3

+ bdep sync
synchronizing:
  drop libhello/1.0.0+12 (unused)
  upgrade hello/0.1.0-a.0.19700101000000#3
synchronizing:
  new libhello/1.0.0+12 (required by hello)
  upgrade hello/0.1.0-a.0.19700101000000#4

+ bdep fetch
fetching git:build2.org/hello/libhello (prerequisite of dir:/tmp/hello)
fetching git:build2.org/hello/libformat##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching git:build2.org/hello/libprint##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)

+ bdep status libhello
libhello configured 1.0.0+12 available [1.1.0+12]

+ bdep sync libhello
synchronizing:
  new libformat/1.0.0+12 (required by libhello)
  new libprint/1.0.0+12 (required by libhello)
  upgrade libhello/1.1.0+12
  reconfigure hello/0.1.0-a.0.19700101000000#4

+ bdep status -r
hello configured 0.1.0-a.0.19700101000000#4
  libhello ^1.0.0 configured 1.1.0+12
    libformat ^1.0.0 configured 1.0.0+12
    libprint ^1.0.0 configured 1.0.0+12

+ bdep status -o libhello
libhello configured 1.1.0+12 available (1.1.0+12) [1.0.0+12]

+ bdep sync libhello/1.0.0
synchronizing:
  drop libprint/1.0.0+12 (unused)
  drop libformat/1.0.0+12 (unused)
  downgrade libhello/1.0.0+12
  reconfigure hello/0.1.0-a.0.19700101000000#4

+ bdep new -C libextra-gcc -t lib -l c++ libextra cc config.cxx=g++
created new library project libextra in /tmp/libextra/
created configuration /tmp/libextra-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new libextra/0.1.0-a.0.19700101000000

+ b install: libextra/ config.install.root=/tmp/unpkg-gcc
mkdir libextra-gcc/libextra/fsdir{libextra/}
version libextra/libextra/in{version} -> libextra-gcc/libextra/libextra/hxx{version}
c++ libextra/libextra/cxx{extra} -> libextra-gcc/libextra/libextra/objs{extra}
c++ libextra/libextra/cxx{extra} -> libextra-gcc/libextra/libextra/obja{extra}
pc libextra-gcc/libextra/libextra/liba{extra} -> libextra-gcc/libextra/libextra/pca{extra}
pc libextra-gcc/libextra/libextra/libs{extra} -> libextra-gcc/libextra/libextra/pcs{extra}
pc libextra-gcc/libextra/libextra/lib{extra} -> libextra-gcc/libextra/libextra/pc{extra}
ld libextra-gcc/libextra/libextra/libs{extra}
ar libextra-gcc/libextra/libextra/liba{extra}
install -d unpkg-gcc/
install -d unpkg-gcc/include/
install -d unpkg-gcc/include/libextra/
install libextra/libextra/hxx{export}@libextra-gcc/libextra/libextra/ -> unpkg-gcc/include/libextra/
install libextra/libextra/hxx{extra}@libextra-gcc/libextra/libextra/ -> unpkg-gcc/include/libextra/
install -d unpkg-gcc/share/
install -d unpkg-gcc/share/doc/
install -d unpkg-gcc/share/doc/libextra/
install libextra/manifest{manifest}@libextra-gcc/libextra/ -> unpkg-gcc/share/doc/libextra/manifest
install libextra-gcc/libextra/libextra/hxx{version} -> unpkg-gcc/include/libextra/
install libextra-gcc/libextra/libextra/liba{extra} -> unpkg-gcc/lib/
install libextra-gcc/libextra/libextra/libs{extra} -> unpkg-gcc/lib/
install libextra/doc{README.md}@libextra-gcc/libextra/ -> unpkg-gcc/share/doc/libextra/

+ tree unpkg-gcc
unpkg-gcc
├── include
│   └── libextra
│       ├── export.hxx
│       ├── extra.hxx
│       └── version.hxx
├── lib
│   ├── libextra-0.1.0-a.0.19700101000000.so
│   ├── libextra.a
│   ├── libextra.so -> libextra-0.1.0-a.0.19700101000000.so
│   └── pkgconfig
│       ├── libextra.pc
│       ├── libextra.shared.pc
│       └── libextra.static.pc
└── share
    └── doc
        └── libextra
            ├── manifest
            └── README.md

8 directories, 11 files

+ bdep init -C ../hello-gcc-1 @gcc1 cc config.cxx=g++ config.cc.poptions=-I/tmp/unpkg-gcc/include config.cc.loptions=-L/tmp/unpkg-gcc/lib
initializing in project /tmp/hello/
created configuration @gcc1 /tmp/hello-gcc-1/ 3 target auto-synchronized
fetching git:build2.org/hello/libhello (prerequisite of dir:/tmp/hello)
fetching git:build2.org/hello/libformat##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching git:build2.org/hello/libprint##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
synchronizing:
  new libformat/1.0.0+12 (required by libhello)
  new libprint/1.0.0+12 (required by libhello)
  new libhello/1.1.0+12 (required by hello)
  new hello/0.1.0-a.0.19700101000000

+ b test: ../hello-gcc-1/
version ../hello-gcc-1/libformat-1.0.0+12/libformat/in{version} -> ../hello-gcc-1/libformat-1.0.0+12/libformat/hxx{version}
version ../hello-gcc-1/libprint-1.0.0+12/libprint/in{version} -> ../hello-gcc-1/libprint-1.0.0+12/libprint/hxx{version}
version ../hello-gcc-1/libhello-1.1.0+12/libhello/in{version} -> ../hello-gcc-1/libhello-1.1.0+12/libhello/hxx{version}
mkdir ../hello-gcc-1/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-gcc-1/hello/hello/obje{hello}
c++ ../hello-gcc-1/libformat-1.0.0+12/libformat/cxx{format} -> ../hello-gcc-1/libformat-1.0.0+12/libformat/objs{format}
c++ ../hello-gcc-1/libprint-1.0.0+12/libprint/cxx{print} -> ../hello-gcc-1/libprint-1.0.0+12/libprint/objs{print}
c++ ../hello-gcc-1/libprint-1.0.0+12/tests/basics/cxx{driver} -> ../hello-gcc-1/libprint-1.0.0+12/tests/basics/obje{driver}
c++ ../hello-gcc-1/libformat-1.0.0+12/tests/basics/cxx{driver} -> ../hello-gcc-1/libformat-1.0.0+12/tests/basics/obje{driver}
c++ ../hello-gcc-1/libhello-1.1.0+12/libhello/cxx{hello} -> ../hello-gcc-1/libhello-1.1.0+12/libhello/objs{hello}
c++ ../hello-gcc-1/libhello-1.1.0+12/tests/basics/cxx{driver} -> ../hello-gcc-1/libhello-1.1.0+12/tests/basics/obje{driver}
ld ../hello-gcc-1/libprint-1.0.0+12/libprint/libs{print}
ld ../hello-gcc-1/libprint-1.0.0+12/tests/basics/exe{driver}
ld ../hello-gcc-1/libformat-1.0.0+12/libformat/libs{format}
ld ../hello-gcc-1/libformat-1.0.0+12/tests/basics/exe{driver}
ld ../hello-gcc-1/libhello-1.1.0+12/libhello/libs{hello}
ld ../hello-gcc-1/hello/hello/exe{hello}
ld ../hello-gcc-1/libhello-1.1.0+12/tests/basics/exe{driver}
test ../hello-gcc-1/hello/hello/exe{hello} + hello/testscript{testscript}
test ../hello-gcc-1/libformat-1.0.0+12/tests/basics/exe{driver}
test ../hello-gcc-1/libhello-1.1.0+12/tests/basics/exe{driver}
test ../hello-gcc-1/libprint-1.0.0+12/tests/basics/exe{driver}

+ b configure: ../hello-gcc/ config.cc.poptions+=-I/tmp/unpkg-gcc/include config.cc.loptions+=-L/tmp/unpkg-gcc/lib
save ../hello-gcc/build/config.build
save ../hello-gcc/hello/build/config.build
save ../hello-gcc/libhello-1.0.0+12/build/config.build
save ../hello-gcc/libhello-1.0.0+12/tests/build/config.build

+ b test
version ../hello-gcc/libhello-1.0.0+12/libhello/in{version} -> ../hello-gcc/libhello-1.0.0+12/libhello/hxx{version}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
c++ ../hello-gcc/libhello-1.0.0+12/libhello/cxx{hello} -> ../hello-gcc/libhello-1.0.0+12/libhello/objs{hello}
ld ../hello-gcc/libhello-1.0.0+12/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}

+ bdep sync ?sys:libsqlite3
synchronizing:
  configure sys:libsqlite3/3.42.0 (required by hello)
  upgrade hello/0.1.0-a.0.19700101000000#5

+ bdep new -t exe -l c++ hello
created new executable project hello in /tmp/hello/

+ bdep init -C @gcc cc config.cxx=g++
initializing in project /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep init -C @clang cc config.cxx=clang++-16
initializing in project /tmp/hello/
created configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep config list
@gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
@clang /tmp/hello-clang/ 2 target auto-synchronized

+ b
fetching pkg:cppget.org/alpha (prerequisite of dir:/tmp/hello)
fetching pkg:cppget.org/beta (complements pkg:cppget.org/alpha)
fetching pkg:cppget.org/testing (complements pkg:cppget.org/beta)
fetching pkg:cppget.org/stable (complements pkg:cppget.org/testing)

creating configuration of host type in /tmp/hello-host/ and associating it with project(s):
  /tmp/hello/
as if by executing command(s):
  bdep config create -d /tmp/hello @host --type host --no-default --forward /tmp/hello-host cc config.config.load=~host
while searching for configuration for build-time dependency xxd of package hello/0.1.0-a.0.19700101000000#1 [/tmp/hello-gcc/]
while synchronizing configuration /tmp/hello-gcc/
continue? [Y/n] 
synchronizing /tmp/hello-gcc/:
  new xxd/8.2.3075+2 [/tmp/hello-host/] (required by hello)
  upgrade hello/0.1.0-a.0.19700101000000#1
mkdir ../hello-gcc/hello/fsdir{hello/}
c ../hello-host/xxd-8.2.3075+2/c{xxd} -> ../hello-host/xxd-8.2.3075+2/obje{xxd}
ld ../hello-host/xxd-8.2.3075+2/exe{xxd}
xxd hello/file{names.txt} -> ../hello-gcc/hello/hello/cxx{names}
c++ ../hello-gcc/hello/hello/cxx{names} -> ../hello-gcc/hello/hello/obje{names}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}

+ bdep config list
@gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
@clang /tmp/hello-clang/ 2 target auto-synchronized
@host /tmp/hello-host/ 3 host forwarded,auto-synchronized

+ bdep update @clang
fetching pkg:cppget.org/alpha (prerequisite of dir:/tmp/hello)
fetching pkg:cppget.org/beta (complements pkg:cppget.org/alpha)
fetching pkg:cppget.org/testing (complements pkg:cppget.org/beta)
fetching pkg:cppget.org/stable (complements pkg:cppget.org/testing)
synchronizing:
  upgrade hello/0.1.0-a.0.19700101000000#1
mkdir ../hello-clang/hello/fsdir{hello/}
xxd hello/file{names.txt} -> ../hello-clang/hello/hello/cxx{names}
c++ ../hello-clang/hello/hello/cxx{names} -> ../hello-clang/hello/hello/obje{names}
c++ hello/cxx{hello} -> ../hello-clang/hello/hello/obje{hello}
ld ../hello-clang/hello/hello/exe{hello}

+ b

creating configuration of build2 type in /tmp/hello-build2/ and associating it with project(s):
  /tmp/hello/
as if by executing command(s):
  bdep config create -d /tmp/hello @build2 --type build2 --no-default --forward /tmp/hello-build2 cc config.config.load=~build2
while searching for configuration for build-time dependency libbuild2-hello of package hello/0.1.0-a.0.19700101000000#2 [/tmp/hello-gcc/]
while synchronizing configuration /tmp/hello-gcc/
continue? [Y/n] 
synchronizing /tmp/hello-gcc/:
  new libbuild2-hello/0.2.0 [/tmp/hello-build2/] (required by hello [/tmp/hello-clang/], hello [/tmp/hello-gcc/])
  upgrade hello/0.1.0-a.0.19700101000000#2 [/tmp/hello-gcc/]
  upgrade hello/0.1.0-a.0.19700101000000#2 [/tmp/hello-clang/]
c++ ../hello-build2/libbuild2-hello-0.2.0/libbuild2/hello/cxx{init} -> ../hello-build2/libbuild2-hello-0.2.0/libbuild2/hello/objs{init}
ld ../hello-build2/libbuild2-hello-0.2.0/libbuild2/hello/libs{build2-hello}
hello/buildfile:10:7: info: module hello initialized
hello/buildfile:10:7: info: module hello initialized
hello/buildfile:10:7: info: module hello initialized
  info: while applying rule build.alias to update ../hello-gcc/dir{hello/}
info: ../hello-gcc/dir{hello/} is up to date

+ bdep config list
@gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
@build2 /tmp/hello-build2/ 4 build2 forwarded,auto-synchronized
@clang /tmp/hello-clang/ 2 target auto-synchronized
@host /tmp/hello-host/ 3 host forwarded,auto-synchronized

+ bdep update @clang
hello/buildfile:10:7: info: module hello initialized
  info: while applying rule build.alias to update ../hello-clang/dir{hello/}
info: ../hello-clang/dir{hello/} is up to date

+ bdep new -t exe -l c++ hello
created new executable project hello in /tmp/hello/

+ bdep config create ../hello-base @base --no-default cc config.cxx=g++
created configuration @base /tmp/hello-base/ 1 target auto-synchronized

+ bdep config create ../hello-gcc @gcc --default cc config.cxx=g++
created configuration @gcc /tmp/hello-gcc/ 2 target default,forwarded,auto-synchronized

+ bdep config create ../hello-clang @clang cc config.cxx=clang++-16
created configuration @clang /tmp/hello-clang/ 3 target auto-synchronized

+ bdep config link @gcc @base
linked configuration @gcc (target) with configuration @base (target)

+ bdep config link @clang @base
linked configuration @clang (target) with configuration @base (target)

+ bdep init @gcc { @base }+ ?libhello
initializing in project /tmp/hello/
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
synchronizing:
  new libhello/1.0.0+12 [/tmp/hello-base/] (required by hello)
  new hello/0.1.0-a.0.19700101000000

+ bdep init @clang
initializing in project /tmp/hello/
fetching in configuration /tmp/hello-clang/
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
fetching in configuration /tmp/hello-gcc/
fetching pkg:stage.build2.org (prerequisite of dir:/tmp/hello)
synchronizing:
  new hello/0.1.0-a.0.19700101000000 [/tmp/hello-clang/]

+ bdep update @gcc
version ../hello-base/libhello-1.0.0+12/libhello/in{version} -> ../hello-base/libhello-1.0.0+12/libhello/hxx{version}
mkdir ../hello-gcc/hello/fsdir{hello/}
c++ ../hello-base/libhello-1.0.0+12/libhello/cxx{hello} -> ../hello-base/libhello-1.0.0+12/libhello/objs{hello}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
ld ../hello-base/libhello-1.0.0+12/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/

+ bdep update @clang
mkdir ../hello-clang/hello/fsdir{hello/}
c++ hello/cxx{hello} -> ../hello-clang/hello/hello/obje{hello}
ld ../hello-clang/hello/hello/exe{hello}

+ bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=g++
created new executable project hello in /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000
To github.com:boris-kolpackov/hello.git
 - [deleted]         build2-control
To github.com:boris-kolpackov/hello.git
 - [deleted]         v0.1.0-a.1
To github.com:boris-kolpackov/hello.git
 - [deleted]         v0.1.0
[master (root-commit) 9a5ee6a] Initial implementation
 13 files changed, 180 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 build/.gitignore
 create mode 100644 build/bootstrap.build
 create mode 100644 build/root.build
 create mode 100644 buildfile
 create mode 100644 hello/.gitignore
 create mode 100644 hello/buildfile
 create mode 100644 hello/hello.cxx
 create mode 100644 hello/testscript
 create mode 100644 manifest
 create mode 100644 repositories.manifest
To github.com:boris-kolpackov/hello.git
 + f1557e8...9a5ee6a master -> master (forced update)
branch 'master' set up to track 'origin/master'.

+ bdep status
hello configured 0.1.0-a.0.19700101000000 available 0.1.0-a.0.20240614070009.9a5ee6aefda4

+ b info
project: hello
version: 0.1.0-a.0.20240614070009.9a5ee6aefda4
summary: hello C++ executable
url: https://example.org/hello
src_root: /tmp/hello
out_root: /tmp/hello-gcc/hello
amalgamation: ..
subprojects:
operations: update clean test update-for-test install uninstall update-for-install
meta-operations: perform configure disfigure dist info
modules: version config test install dist

+ bdep sync
synchronizing:
  upgrade hello/0.1.0-a.0.20240614070009.9a5ee6aefda4

+ bdep status
hello configured 0.1.0-a.0.20240614070009.9a5ee6aefda4
[master 432d4a8] Another commit
 1 file changed, 1 insertion(+)

+ bdep status
hello configured 0.1.0-a.0.20240614070009.9a5ee6aefda4 available 0.1.0-a.0.20240614070013.432d4a88df62

+ bdep release --alpha --push
releasing:
  package: hello
  current: 0.1.0-a.0.z
  release: 0.1.0-a.1
  open:    0.1.0-a.1.z
  commit:  yes
  tag:     v0.1.0-a.1
  push:    origin/master
continue? [y/n] y
[master c067813] Release version 0.1.0-a.1
 1 file changed, 1 insertion(+), 1 deletion(-)
[master fc9078a] Change version to 0.1.0-a.1.z
 1 file changed, 1 insertion(+), 1 deletion(-)

+ bdep release --no-open --push
releasing:
  package: hello
  current: 0.1.0-a.1.z
  release: 0.1.0
  commit:  yes
  tag:     v0.1.0
  push:    origin/master
continue? [y/n] y
[master 7e68124] Release version 0.1.0
 1 file changed, 1 insertion(+), 1 deletion(-)

+ bdep publish --simulate success --repository https://stage.build2.org
synchronizing:
  upgrade hello/0.1.0
publishing:
  to:      https://stage.build2.org
  as:      Boris Kolpackov <boris@codesynthesis.com>
  package: hello
  version: 0.1.0
  project: hello
  section: alpha
  control: https://github.com/boris-kolpackov/hello.git
warning: publishing using staged build2 toolchain
continue? [y/n] y
remote: 
remote: Create a pull request for 'build2-control' on GitHub by visiting:
remote:      https://github.com/boris-kolpackov/hello/pull/new/build2-control
remote: 
package submission is queued: https://queue.stage.build2.org/hello/0.1.0
reference: 1b0de6efb08a

+ bdep release --open --push
opening:
  package: hello
  current: 0.1.0
  open:    0.2.0-a.0.z
  commit:  yes
  push:    origin/master
continue? [y/n] y
[master ccaf04c] Change version to 0.2.0-a.0.z
 1 file changed, 1 insertion(+), 1 deletion(-)

+ bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=g++
created new executable project hello in /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep init -C ../hello-clang @clang cc config.cxx=clang++-16
initializing in project /tmp/hello/
created configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep new -t lib -l c++ libhello
created new library project libhello in /tmp/libhello/

+ tree libhello
libhello
├── build
│   ├── bootstrap.build
│   ├── export.build
│   └── root.build
├── buildfile
├── libhello
│   ├── buildfile
│   ├── export.hxx
│   ├── hello.cxx
│   ├── hello.hxx
│   └── version.hxx.in
├── manifest
├── README.md
├── repositories.manifest
└── tests
    ├── basics
    │   ├── buildfile
    │   └── driver.cxx
    ├── build
    │   ├── bootstrap.build
    │   └── root.build
    └── buildfile

6 directories, 17 files

+ cd libhello

+ bdep init -A ../hello-gcc @gcc
initializing in project /tmp/libhello/
added configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new libhello/0.1.0-a.0.19700101000000

+ bdep init -A ../hello-clang @clang
initializing in project /tmp/libhello/
added configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new libhello/0.1.0-a.0.19700101000000

+ cd ../hello

+ bdep test -i
synchronizing:
  upgrade hello/0.1.0-a.0.19700101000000#1
mkdir ../hello-gcc/libhello/fsdir{libhello/}
version ../libhello/libhello/in{version} -> ../hello-gcc/libhello/libhello/hxx{version}
mkdir ../hello-gcc/hello/fsdir{hello/}
mkdir ../hello-gcc/libhello/tests/fsdir{basics/}
c++ ../libhello/libhello/cxx{hello} -> ../hello-gcc/libhello/libhello/objs{hello}
c++ ../libhello/tests/basics/cxx{driver} -> ../hello-gcc/libhello/tests/basics/obje{driver}
c++ hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
ld ../hello-gcc/libhello/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ld ../hello-gcc/libhello/tests/basics/exe{driver}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/
ln ../hello-gcc/libhello/tests/basics/exe{driver} -> ../libhello/tests/basics/
test ../hello-gcc/libhello/tests/basics/exe{driver}
test ../hello-gcc/hello/hello/exe{hello} + hello/testscript{testscript}

+ bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=g++
created new executable project hello in /tmp/hello/
created configuration @gcc /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ cd hello

+ bdep init -C ../hello-clang @clang cc config.cxx=clang++-16
initializing in project /tmp/hello/
created configuration @clang /tmp/hello-clang/ 2 target auto-synchronized
synchronizing:
  new hello/0.1.0-a.0.19700101000000

+ bdep new --package -t lib -l c++ libhello
created new library package libhello in /tmp/hello/libhello/

+ cat packages.manifest
: 1
location: libhello/

+ cd libhello

+ bdep init -a
initializing in project /tmp/hello/
in configuration @gcc:
synchronizing:
  upgrade hello/0.1.0-a.0.19700101000000#1
  new libhello/0.1.0-a.0.19700101000000

in configuration @clang:
synchronizing:
  upgrade hello/0.1.0-a.0.19700101000000#1
  new libhello/0.1.0-a.0.19700101000000

+ cd ..

+ bdep test
synchronizing:
  upgrade hello/0.1.0-a.0.19700101000000#2
mkdir ../hello-gcc/libhello/fsdir{libhello/}
version libhello/libhello/in{version} -> ../hello-gcc/libhello/libhello/hxx{version}
mkdir ../hello-gcc/hello/fsdir{hello/}
mkdir ../hello-gcc/libhello/tests/fsdir{basics/}
c++ libhello/libhello/cxx{hello} -> ../hello-gcc/libhello/libhello/objs{hello}
c++ hello/hello/cxx{hello} -> ../hello-gcc/hello/hello/obje{hello}
c++ libhello/tests/basics/cxx{driver} -> ../hello-gcc/libhello/tests/basics/obje{driver}
ld ../hello-gcc/libhello/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ld ../hello-gcc/libhello/tests/basics/exe{driver}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/hello/
ln ../hello-gcc/libhello/tests/basics/exe{driver} -> libhello/tests/basics/
test ../hello-gcc/libhello/tests/basics/exe{driver}
test ../hello-gcc/hello/hello/exe{hello} + hello/hello/testscript{testscript}

+ bpkg create -d tools cc config.cxx=g++ config.cc.coptions=-O3 config.install.root=/opt/tools config.install.sudo=sudo config.bin.rpath=/opt/tools/lib
created new configuration in /tmp/tools/
  uuid: 2921cea1-5bae-4ca9-8859-f38681b97682
  type: target

+ cd tools

+ bpkg build hello@https://git.build2.org/hello/hello.git
added git:build2.org/hello/hello
fetching git:build2.org/hello/hello
fetching git:build2.org/hello/libhello (prerequisite of git:build2.org/hello/hello)
fetching git:build2.org/hello/libformat##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching git:build2.org/hello/libprint##HEAD (prerequisite of git:build2.org/hello/libhello)
  new libformat/1.0.0+12 (required by libhello)
  new libprint/1.0.0+12 (required by libhello)
  new libhello/1.1.0+12 (required by hello)
  new hello/1.0.0+11
continue? [Y/n] 
checked out libformat/1.0.0+12
checked out libprint/1.0.0+12
checked out libhello/1.1.0+12
checked out hello/1.0.0+11
configured libformat/1.0.0+12
configured libprint/1.0.0+12
configured libhello/1.1.0+12
configured hello/1.0.0+11
version libformat-1.0.0+12/libformat/in{version} -> libformat-1.0.0+12/libformat/hxx{version}
version libprint-1.0.0+12/libprint/in{version} -> libprint-1.0.0+12/libprint/hxx{version}
version libhello-1.1.0+12/libhello/in{version} -> libhello-1.1.0+12/libhello/hxx{version}
c++ libformat-1.0.0+12/libformat/cxx{format} -> libformat-1.0.0+12/libformat/objs{format}
c++ libprint-1.0.0+12/libprint/cxx{print} -> libprint-1.0.0+12/libprint/objs{print}
c++ libhello-1.1.0+12/libhello/cxx{hello} -> libhello-1.1.0+12/libhello/objs{hello}
c++ hello-1.0.0+11/hello/cxx{hello} -> hello-1.0.0+11/hello/obje{hello}
ld libprint-1.0.0+12/libprint/libs{print}
ld libformat-1.0.0+12/libformat/libs{format}
ld libhello-1.1.0+12/libhello/libs{hello}
ld hello-1.0.0+11/hello/exe{hello}
updated hello/1.0.0+11

+ bpkg install hello
pc libformat-1.0.0+12/libformat/libs{format} -> libformat-1.0.0+12/libformat/pcs{format}
pc libprint-1.0.0+12/libprint/libs{print} -> libprint-1.0.0+12/libprint/pcs{print}
pc libhello-1.1.0+12/libhello/libs{hello} -> libhello-1.1.0+12/libhello/pcs{hello}
ld libhello-1.1.0+12/libhello/libs{hello}
ld hello-1.0.0+11/hello/exe{hello}
install -d /opt/tools/
install -d /opt/tools/lib/
install libprint-1.0.0+12/libprint/libs{print} -> /opt/tools/lib/
install libformat-1.0.0+12/libformat/libs{format} -> /opt/tools/lib/
install libhello-1.1.0+12/libhello/libs{hello} -> /opt/tools/lib/
install -d /opt/tools/bin/
install hello-1.0.0+11/hello/exe{hello} -> /opt/tools/bin/
install -d /opt/tools/share/
install -d /opt/tools/share/doc/
install -d /opt/tools/share/doc/hello/
install hello-1.0.0+11/doc{README.md} -> /opt/tools/share/doc/hello/
install hello-1.0.0+11/manifest{manifest} -> /opt/tools/share/doc/hello/
installed hello/1.0.0+11

+ /opt/tools/bin/hello World
Hello, World!

+ tree /opt/tools
/opt/tools
├── bin
│   └── hello
├── lib
│   ├── libformat-1.0.so
│   ├── libhello-1.1.so
│   └── libprint-1.0.so
└── share
    └── doc
        └── hello
            ├── manifest
            └── README.md

6 directories, 6 files

+ bpkg uninstall hello
uninstall hello-1.0.0+11/manifest{manifest} <- /opt/tools/share/doc/hello/
uninstall hello-1.0.0+11/doc{README.md} <- /opt/tools/share/doc/hello/
uninstall -d /opt/tools/share/doc/hello/
uninstall -d /opt/tools/share/doc/
uninstall -d /opt/tools/share/
uninstall hello-1.0.0+11/hello/exe{hello} <- /opt/tools/bin/
uninstall -d /opt/tools/bin/
uninstall libhello-1.1.0+12/libhello/libs{hello} <- /opt/tools/lib/
uninstall libformat-1.0.0+12/libformat/libs{format} <- /opt/tools/lib/
uninstall libprint-1.0.0+12/libprint/libs{print} <- /opt/tools/lib/
uninstall -d /opt/tools/lib/
uninstall -d /opt/tools/
uninstalled hello/1.0.0+11

+ bpkg install -r hello
c++ libprint-1.0.0+12/libprint/cxx{print} -> libprint-1.0.0+12/libprint/obja{print}
pc libformat-1.0.0+12/libformat/libs{format} -> libformat-1.0.0+12/libformat/pcs{format}
pc libprint-1.0.0+12/libprint/libs{print} -> libprint-1.0.0+12/libprint/pcs{print}
c++ libformat-1.0.0+12/libformat/cxx{format} -> libformat-1.0.0+12/libformat/obja{format}
c++ libhello-1.1.0+12/libhello/cxx{hello} -> libhello-1.1.0+12/libhello/obja{hello}
pc libhello-1.1.0+12/libhello/libs{hello} -> libhello-1.1.0+12/libhello/pcs{hello}
pc libprint-1.0.0+12/libprint/liba{print} -> libprint-1.0.0+12/libprint/pca{print}
pc libprint-1.0.0+12/libprint/lib{print} -> libprint-1.0.0+12/libprint/pc{print}
ar libprint-1.0.0+12/libprint/liba{print}
pc libformat-1.0.0+12/libformat/liba{format} -> libformat-1.0.0+12/libformat/pca{format}
pc libformat-1.0.0+12/libformat/lib{format} -> libformat-1.0.0+12/libformat/pc{format}
ar libformat-1.0.0+12/libformat/liba{format}
pc libhello-1.1.0+12/libhello/liba{hello} -> libhello-1.1.0+12/libhello/pca{hello}
pc libhello-1.1.0+12/libhello/lib{hello} -> libhello-1.1.0+12/libhello/pc{hello}
ar libhello-1.1.0+12/libhello/liba{hello}
install -d /opt/tools/
install -d /opt/tools/include/
install -d /opt/tools/include/libhello/
install libhello-1.1.0+12/libhello/hxx{export} -> /opt/tools/include/libhello/
install libhello-1.1.0+12/libhello/hxx{hello} -> /opt/tools/include/libhello/
install -d /opt/tools/share/
install -d /opt/tools/share/doc/
install -d /opt/tools/share/doc/libhello/
install libhello-1.1.0+12/manifest{manifest} -> /opt/tools/share/doc/libhello/
install libhello-1.1.0+12/libhello/hxx{version} -> /opt/tools/include/libhello/
install -d /opt/tools/include/libprint/
install libprint-1.0.0+12/libprint/hxx{export} -> /opt/tools/include/libprint/
install libprint-1.0.0+12/libprint/hxx{print} -> /opt/tools/include/libprint/
install -d /opt/tools/share/doc/libprint/
install libprint-1.0.0+12/manifest{manifest} -> /opt/tools/share/doc/libprint/
install libprint-1.0.0+12/libprint/hxx{version} -> /opt/tools/include/libprint/
install libprint-1.0.0+12/libprint/libs{print} -> /opt/tools/lib/
install -d /opt/tools/include/libformat/
install libformat-1.0.0+12/libformat/hxx{export} -> /opt/tools/include/libformat/
install libformat-1.0.0+12/libformat/hxx{format} -> /opt/tools/include/libformat/
install -d /opt/tools/share/doc/libformat/
install libformat-1.0.0+12/manifest{manifest} -> /opt/tools/share/doc/libformat/
install libformat-1.0.0+12/libformat/hxx{version} -> /opt/tools/include/libformat/
install libformat-1.0.0+12/libformat/libs{format} -> /opt/tools/lib/
install libhello-1.1.0+12/libhello/libs{hello} -> /opt/tools/lib/
install -d /opt/tools/bin/
install hello-1.0.0+11/hello/exe{hello} -> /opt/tools/bin/
install -d /opt/tools/share/doc/hello/
install hello-1.0.0+11/doc{README.md} -> /opt/tools/share/doc/hello/
install hello-1.0.0+11/manifest{manifest} -> /opt/tools/share/doc/hello/
install libprint-1.0.0+12/libprint/liba{print} -> /opt/tools/lib/
install libformat-1.0.0+12/libformat/liba{format} -> /opt/tools/lib/
install libhello-1.1.0+12/libhello/liba{hello} -> /opt/tools/lib/
install libhello-1.1.0+12/doc{README.md} -> /opt/tools/share/doc/libhello/
install libformat-1.0.0+12/doc{README.md} -> /opt/tools/share/doc/libformat/
install libprint-1.0.0+12/doc{README.md} -> /opt/tools/share/doc/libprint/
installed hello/1.0.0+11
installed libhello/1.1.0+12
installed libformat/1.0.0+12
installed libprint/1.0.0+12

+ tree /opt/tools
/opt/tools
├── bin
│   └── hello
├── include
│   ├── libformat
│   │   ├── export.hxx
│   │   ├── format.hxx
│   │   └── version.hxx
│   ├── libhello
│   │   ├── export.hxx
│   │   ├── hello.hxx
│   │   └── version.hxx
│   └── libprint
│       ├── export.hxx
│       ├── print.hxx
│       └── version.hxx
├── lib
│   ├── libformat-1.0.so
│   ├── libformat.a
│   ├── libformat.so -> libformat-1.0.so
│   ├── libhello-1.1.so
│   ├── libhello.a
│   ├── libhello.so -> libhello-1.1.so
│   ├── libprint-1.0.so
│   ├── libprint.a
│   ├── libprint.so -> libprint-1.0.so
│   └── pkgconfig
│       ├── libformat.pc
│       ├── libformat.shared.pc
│       ├── libformat.static.pc
│       ├── libhello.pc
│       ├── libhello.shared.pc
│       ├── libhello.static.pc
│       ├── libprint.pc
│       ├── libprint.shared.pc
│       └── libprint.static.pc
└── share
    └── doc
        ├── hello
        │   ├── manifest
        │   └── README.md
        ├── libformat
        │   ├── manifest
        │   └── README.md
        ├── libhello
        │   ├── manifest
        │   └── README.md
        └── libprint
            ├── manifest
            └── README.md

14 directories, 36 files

+ bpkg uninstall -r hello
uninstall libprint-1.0.0+12/doc{README.md} <- /opt/tools/share/doc/libprint/
uninstall libformat-1.0.0+12/doc{README.md} <- /opt/tools/share/doc/libformat/
uninstall libhello-1.1.0+12/doc{README.md} <- /opt/tools/share/doc/libhello/
uninstall libhello-1.1.0+12/libhello/liba{hello} <- /opt/tools/lib/
uninstall libformat-1.0.0+12/libformat/liba{format} <- /opt/tools/lib/
uninstall libprint-1.0.0+12/libprint/liba{print} <- /opt/tools/lib/
uninstall hello-1.0.0+11/manifest{manifest} <- /opt/tools/share/doc/hello/
uninstall hello-1.0.0+11/doc{README.md} <- /opt/tools/share/doc/hello/
uninstall -d /opt/tools/share/doc/hello/
uninstall hello-1.0.0+11/hello/exe{hello} <- /opt/tools/bin/
uninstall -d /opt/tools/bin/
uninstall libhello-1.1.0+12/libhello/libs{hello} <- /opt/tools/lib/
uninstall libformat-1.0.0+12/libformat/libs{format} <- /opt/tools/lib/
uninstall libformat-1.0.0+12/libformat/hxx{version} <- /opt/tools/include/libformat/
uninstall libformat-1.0.0+12/manifest{manifest} <- /opt/tools/share/doc/libformat/
uninstall -d /opt/tools/share/doc/libformat/
uninstall libformat-1.0.0+12/libformat/hxx{format} <- /opt/tools/include/libformat/
uninstall libformat-1.0.0+12/libformat/hxx{export} <- /opt/tools/include/libformat/
uninstall -d /opt/tools/include/libformat/
uninstall libprint-1.0.0+12/libprint/libs{print} <- /opt/tools/lib/
uninstall libprint-1.0.0+12/libprint/hxx{version} <- /opt/tools/include/libprint/
uninstall libprint-1.0.0+12/manifest{manifest} <- /opt/tools/share/doc/libprint/
uninstall -d /opt/tools/share/doc/libprint/
uninstall libprint-1.0.0+12/libprint/hxx{print} <- /opt/tools/include/libprint/
uninstall libprint-1.0.0+12/libprint/hxx{export} <- /opt/tools/include/libprint/
uninstall -d /opt/tools/include/libprint/
uninstall libhello-1.1.0+12/libhello/hxx{version} <- /opt/tools/include/libhello/
uninstall libhello-1.1.0+12/manifest{manifest} <- /opt/tools/share/doc/libhello/
uninstall -d /opt/tools/share/doc/libhello/
uninstall -d /opt/tools/share/doc/
uninstall -d /opt/tools/share/
uninstall libhello-1.1.0+12/libhello/hxx{hello} <- /opt/tools/include/libhello/
uninstall libhello-1.1.0+12/libhello/hxx{export} <- /opt/tools/include/libhello/
uninstall -d /opt/tools/include/libhello/
uninstall -d /opt/tools/include/
uninstall -d /opt/tools/
uninstalled hello/1.0.0+11
uninstalled libhello/1.1.0+12
uninstalled libformat/1.0.0+12
uninstalled libprint/1.0.0+12

+ bpkg drop hello
following dependencies were automatically built but will no longer be used:
  libhello
  libformat
  libprint
drop unused packages? [Y/n] 
  drop hello
  drop libhello
  drop libformat
  drop libprint
continue? [Y/n] 
disfigured hello
disfigured libhello
disfigured libformat
disfigured libprint
purged hello
purged libhello
purged libformat
purged libprint

+ bpkg create -d libs cc config.cxx=g++ config.cc.coptions=-O3 config.install.root=/opt/libs config.install.sudo=sudo config.bin.rpath=/opt/libs/lib config.bin.lib=shared
created new configuration in /tmp/libs/
  uuid: 0ba1e4b1-462b-43c9-b121-cc8a5089dbab
  type: target

+ cd libs

+ bpkg build libhello@https://git.build2.org/hello/libhello.git
added git:build2.org/hello/libhello
fetching git:build2.org/hello/libhello
fetching git:build2.org/hello/libformat##HEAD (prerequisite of git:build2.org/hello/libhello)
fetching git:build2.org/hello/libprint##HEAD (prerequisite of git:build2.org/hello/libhello)
  new libformat/1.0.0+12 (required by libhello)
  new libprint/1.0.0+12 (required by libhello)
  new libhello/1.1.0+12
continue? [Y/n] 
checked out libformat/1.0.0+12
checked out libprint/1.0.0+12
checked out libhello/1.1.0+12
configured libformat/1.0.0+12
configured libprint/1.0.0+12
configured libhello/1.1.0+12
version libprint-1.0.0+12/libprint/in{version} -> libprint-1.0.0+12/libprint/hxx{version}
version libformat-1.0.0+12/libformat/in{version} -> libformat-1.0.0+12/libformat/hxx{version}
version libhello-1.1.0+12/libhello/in{version} -> libhello-1.1.0+12/libhello/hxx{version}
c++ libformat-1.0.0+12/libformat/cxx{format} -> libformat-1.0.0+12/libformat/objs{format}
c++ libprint-1.0.0+12/libprint/cxx{print} -> libprint-1.0.0+12/libprint/objs{print}
c++ libhello-1.1.0+12/libhello/cxx{hello} -> libhello-1.1.0+12/libhello/objs{hello}
c++ libhello-1.1.0+12/tests/basics/cxx{driver} -> libhello-1.1.0+12/tests/basics/obje{driver}
ld libprint-1.0.0+12/libprint/libs{print}
ld libformat-1.0.0+12/libformat/libs{format}
ld libhello-1.1.0+12/libhello/libs{hello}
ld libhello-1.1.0+12/tests/basics/exe{driver}
updated libhello/1.1.0+12

+ bpkg install libhello
pc libformat-1.0.0+12/libformat/libs{format} -> libformat-1.0.0+12/libformat/pcs{format}
pc libformat-1.0.0+12/libformat/lib{format} -> libformat-1.0.0+12/libformat/pc{format}
pc libprint-1.0.0+12/libprint/libs{print} -> libprint-1.0.0+12/libprint/pcs{print}
pc libprint-1.0.0+12/libprint/lib{print} -> libprint-1.0.0+12/libprint/pc{print}
pc libhello-1.1.0+12/libhello/libs{hello} -> libhello-1.1.0+12/libhello/pcs{hello}
pc libhello-1.1.0+12/libhello/lib{hello} -> libhello-1.1.0+12/libhello/pc{hello}
ld libhello-1.1.0+12/libhello/libs{hello}
install -d /opt/libs/
install -d /opt/libs/include/
install -d /opt/libs/include/libhello/
install libhello-1.1.0+12/libhello/hxx{export} -> /opt/libs/include/libhello/
install libhello-1.1.0+12/libhello/hxx{hello} -> /opt/libs/include/libhello/
install -d /opt/libs/share/
install -d /opt/libs/share/doc/
install -d /opt/libs/share/doc/libhello/
install libhello-1.1.0+12/manifest{manifest} -> /opt/libs/share/doc/libhello/
install libhello-1.1.0+12/libhello/hxx{version} -> /opt/libs/include/libhello/
install -d /opt/libs/include/libprint/
install libprint-1.0.0+12/libprint/hxx{export} -> /opt/libs/include/libprint/
install libprint-1.0.0+12/libprint/hxx{print} -> /opt/libs/include/libprint/
install -d /opt/libs/share/doc/libprint/
install libprint-1.0.0+12/manifest{manifest} -> /opt/libs/share/doc/libprint/
install libprint-1.0.0+12/libprint/hxx{version} -> /opt/libs/include/libprint/
install libprint-1.0.0+12/libprint/libs{print} -> /opt/libs/lib/
install -d /opt/libs/include/libformat/
install libformat-1.0.0+12/libformat/hxx{export} -> /opt/libs/include/libformat/
install libformat-1.0.0+12/libformat/hxx{format} -> /opt/libs/include/libformat/
install -d /opt/libs/share/doc/libformat/
install libformat-1.0.0+12/manifest{manifest} -> /opt/libs/share/doc/libformat/
install libformat-1.0.0+12/libformat/hxx{version} -> /opt/libs/include/libformat/
install libformat-1.0.0+12/libformat/libs{format} -> /opt/libs/lib/
install libhello-1.1.0+12/libhello/libs{hello} -> /opt/libs/lib/
install libhello-1.1.0+12/doc{README.md} -> /opt/libs/share/doc/libhello/
installed libhello/1.1.0+12

+ tree /opt/libs
/opt/libs
├── include
│   ├── libformat
│   │   ├── export.hxx
│   │   ├── format.hxx
│   │   └── version.hxx
│   ├── libhello
│   │   ├── export.hxx
│   │   ├── hello.hxx
│   │   └── version.hxx
│   └── libprint
│       ├── export.hxx
│       ├── print.hxx
│       └── version.hxx
├── lib
│   ├── libformat-1.0.so
│   ├── libformat.so -> libformat-1.0.so
│   ├── libhello-1.1.so
│   ├── libhello.so -> libhello-1.1.so
│   ├── libprint-1.0.so
│   ├── libprint.so -> libprint-1.0.so
│   └── pkgconfig
│       ├── libformat.pc
│       ├── libformat.shared.pc
│       ├── libhello.pc
│       ├── libhello.shared.pc
│       ├── libprint.pc
│       └── libprint.shared.pc
└── share
    └── doc
        ├── libformat
        │   └── manifest
        ├── libhello
        │   ├── manifest
        │   └── README.md
        └── libprint
            └── manifest

12 directories, 25 files

+ bpkg uninstall libhello
uninstall libhello-1.1.0+12/doc{README.md} <- /opt/libs/share/doc/libhello/
uninstall libhello-1.1.0+12/libhello/libs{hello} <- /opt/libs/lib/
uninstall libformat-1.0.0+12/libformat/libs{format} <- /opt/libs/lib/
uninstall libformat-1.0.0+12/libformat/hxx{version} <- /opt/libs/include/libformat/
uninstall libformat-1.0.0+12/manifest{manifest} <- /opt/libs/share/doc/libformat/
uninstall -d /opt/libs/share/doc/libformat/
uninstall libformat-1.0.0+12/libformat/hxx{format} <- /opt/libs/include/libformat/
uninstall libformat-1.0.0+12/libformat/hxx{export} <- /opt/libs/include/libformat/
uninstall -d /opt/libs/include/libformat/
uninstall libprint-1.0.0+12/libprint/libs{print} <- /opt/libs/lib/
uninstall libprint-1.0.0+12/libprint/hxx{version} <- /opt/libs/include/libprint/
uninstall libprint-1.0.0+12/manifest{manifest} <- /opt/libs/share/doc/libprint/
uninstall -d /opt/libs/share/doc/libprint/
uninstall libprint-1.0.0+12/libprint/hxx{print} <- /opt/libs/include/libprint/
uninstall libprint-1.0.0+12/libprint/hxx{export} <- /opt/libs/include/libprint/
uninstall -d /opt/libs/include/libprint/
uninstall libhello-1.1.0+12/libhello/hxx{version} <- /opt/libs/include/libhello/
uninstall libhello-1.1.0+12/manifest{manifest} <- /opt/libs/share/doc/libhello/
uninstall -d /opt/libs/share/doc/libhello/
uninstall -d /opt/libs/share/doc/
uninstall -d /opt/libs/share/
uninstall libhello-1.1.0+12/libhello/hxx{hello} <- /opt/libs/include/libhello/
uninstall libhello-1.1.0+12/libhello/hxx{export} <- /opt/libs/include/libhello/
uninstall -d /opt/libs/include/libhello/
uninstall -d /opt/libs/include/
uninstall -d /opt/libs/
uninstalled libhello/1.1.0+12

+ bpkg drop libhello
following dependencies were automatically built but will no longer be used:
  libformat
  libprint
drop unused packages? [Y/n] 
  drop libhello
  drop libformat
  drop libprint
continue? [Y/n] 
disfigured libhello
disfigured libformat
disfigured libprint
purged libhello
purged libformat
purged libprint

Script done on 2024-06-14 09:01:38+02:00 [COMMAND_EXIT_CODE="0"]