Пакет glibc: Specfile

   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
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
Name: glibc
Version: 2.11.3
Release: alt8.M60P.5
Epoch: 6

Summary: The GNU libc libraries
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
# exception which allows linking it into any kind of programs or shared
# libraries without restrictions.
License: LGPLv2+, LGPLv2+ with exceptions, GPLv2+
Group: System/Base
Url: http://www.gnu.org/software/glibc/

%def_with optimization
%def_disable archopt
%def_enable langify
%def_with tls
%def_with __thread
%def_disable profile
%def_without debug

%ifarch %ix86 x86_64
%def_enable multiarch
%else
%def_disable multiarch
%endif

# Build arch-optimized subpackage only?
%if_enabled archopt

%define _optlevel 3
%def_without locales

%else #disabled archopt

%def_with locales

%endif #disabled archopt

%define enablekernel 2.6.18

%define basever 2.5.1

# http://git.altlinux.org/gears/g/glibc.git
Source: glibc-%version-%release.tar
Source1: glibc-ports-%version-%release.tar

Obsoletes: libc-static, libc-devel, libc-profile, libc-headers,
Obsoletes: linuxthreads, gencat, ldconfig

%define libc_locales_list aa af am an ar as ast az be ber bg bn bo br bs byn ca crh cs csb cy da de dv dz el en es et eu fa fi fil fo fr fur fy ga gd gez gl gu gv ha he hi hne hr hsb ht hu hy id ig ik is it iu iw ja ka kk kl km kn ko ks ku kw ky lg li lo lt lv mai mg mi mk ml mn mr ms mt my nan nb nds ne nl nn no nr nso oc om or pa pap pl ps pt ro ru rw sa sc sd se shs si sid sk sl so sq sr ss st sv ta te tg th ti tig tk tl tn tr ts tt ug uk ur uz ve vi wa wo xh yi yo zh zu
%define libc_locales %(for i in %libc_locales_list;do echo -n "locale-$i locales-$i ";done)
%define renamed_locales ru_RU.iso88595 ru_UA.koi8u uk_UA.koi8u

PreReq: %name-core = %epoch:%version-%release
PreReq: %name-pthread = %epoch:%version-%release
PreReq: %name-nss = %epoch:%version-%release
PreReq: %name-locales = %epoch:%version-%release
PreReq: %name-gconv-modules = %epoch:%version-%release
PreReq: iconv = %epoch:%version-%release
PreReq: %name-timezones = %epoch:%version-%release
PreReq: %name-utils = %epoch:%version-%release

# Required to hardlink identical locale files.
BuildPreReq: hardlink

# Due to STB_GNU_UNIQUE
BuildPreReq: binutils >= 1:2.20

# Due to enablekernel.
BuildPreReq: glibc-kernheaders >= %enablekernel

BuildPreReq: rpm-build >= 4.0.4-alt61

# This is required for building auxiliary programs.
BuildPreReq: libgd2-devel

# g++ and /proc are required for test suite.
%{?!_without_check:%{?!_disable_check:BuildPreReq: gcc-c++ /proc}}

%define _gconvdir %_libdir/gconv
%define __find_provides %_builddir/%name-%version-%release/alt/find-provides.sh
%define __find_requires %_builddir/%name-%version-%release/alt/find-requires.sh

%package preinstall
Summary: The GNU libc preinstall utilities
Group: System/Base
AutoReq: no
PreReq: filesystem

%package core
Summary: The GNU libc core libraries and utilities
Group: System/Libraries
AutoReq: no
PreReq: setup
PreReq: %name-preinstall >= %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release
Conflicts: glibc-core-archopt < %epoch:%version-%release
Conflicts: glibc-core-archopt > %epoch:%version-%release
Provides: linuxthreads, ldconfig
Obsoletes: linuxthreads, ldconfig
Provides: glibc-crypt_blowfish = 1.2
# The dynamic linker supports DT_GNU_HASH
Provides: rtld(GNU_HASH)
# The dynamic linker supports STB_GNU_UNIQUE
Provides: rtld(GNU_UNIQUE)

%package pthread
Summary: The GNU libc pthread libraries
Group: System/Libraries
PreReq: %name-core = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release
%{expand:%%define lib_suffix %(test %_lib != lib64 && echo %%nil || echo '()(64bit)')}
# due to pthread_cancel_init() which calls __libc_dlopen ("libgcc_s.so.1")
Requires: libgcc_s.so.1%lib_suffix

%package nss
Summary: The GNU libc Name Service Switch subsystem
Group: System/Libraries
PreReq: %name-pthread = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release

%package locales
Summary: The GNU libc locales
Group: System/Internationalization
PreReq: %name-pthread = %epoch:%version-%release
Provides: %name-locales-virtual = %epoch:%version-%release
Provides: locale locales %libc_locales
Obsoletes: locale locales %libc_locales
Obsoletes: %name-locales-junior
Conflicts: %name < %epoch:%version-%release
Obsoletes: i586-glibc-locales

%package i18ndata
Summary: Files for building customized GNU libc locales
Group: System/Base
BuildArch: noarch
PreReq: %name-core = %epoch:%version-%release
Obsoletes: %name-localedata
Provides: %name-localedata
Conflicts: %name < %epoch:%version-%release
Conflicts: mutt < 1.3.22.1i

%package gconv-modules
Summary: The GNU libc charset conversion modules
Group: System/Base
PreReq: %name-pthread = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release
# hack
Provides: %(test %_lib = lib64 && s='()(64bit)' || s=; for n in CNS GB ISOIR165 JIS JISX0213 KSC; do echo -n "lib$n.so$s %_libdir/gconv/lib$n.so$s "; done)

%package -n iconv
Summary: The GNU libc charset conversion modules
Group: System/Base
PreReq: %name-gconv-modules = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release

%package timezones
Summary: The GNU libc timezones data
Group: System/Base
PreReq: %name-pthread = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release
Requires: tzdata

%package utils
Summary: The GNU libc misc utilities
Group: System/Base
PreReq: %name-pthread = %epoch:%version-%release
Conflicts: %name < %epoch:%version-%release
Requires: mktemp >= 1:1.3.1
Provides: gencat
Obsoletes: gencat
# due to rpcinfo
Conflicts: rpcbind < 0.2.1-alt0.4

%package devel
Summary: Include and object files required for C development
Group: Development/C
Requires: %name = %epoch:%version-%release, glibc-kernheaders >= %enablekernel, kernel-headers-common >= 1.1.4-alt1
#Requires: %name-doc = %epoch:%version-%release
%ifarch %ix86
# Earlier gcc's had atexit reference in crtendS.o, which does not
# work with this glibc where atexit is in libc_nonshared.a
Conflicts: gcc < 0:2.96-ipl9mdk
%endif
Obsoletes: libc-headers, libc-devel, linuxthreads-devel

%package devel-static
Summary: Static libraries for C development
Group: Development/C
Requires: %name-devel = %epoch:%version-%release
Obsoletes: libc-static

%package doc
Summary: Documentation for C development
Group: Development/Other
BuildArch: noarch
PreReq: %name-pthread = %epoch:%version-%release
Conflicts: texinfo < 3.11

%package profile
Summary: The GNU libc libraries, including support for gprof profiling
Group: Development/C
Requires: %name = %epoch:%version-%release
Obsoletes: libc-profile

%package debug
Summary: The GNU libc utilities for software debugging
Group: Development/C
Requires: %name-devel = %epoch:%version-%release
Obsoletes: libc-debug

%package core-debug
Summary: The GNU libc core libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-pthread = %epoch:%version-%release

%package nss-debug
Summary: The GNU libc Name Service Switch libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-nss = %epoch:%version-%release, %name-core-debug = %epoch:%version-%release

%package devel-debug
Summary: Static standard C libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-devel = %epoch:%version-%release, %name-core-debug = %epoch:%version-%release, %name-nss-debug = %epoch:%version-%release

%package -n nscd
Summary: A Name Service Caching Daemon (nscd)
Group: System/Servers
Conflicts: kernel < 2.2.0
PreReq: shadow-utils
PreReq: %name-pthread = %epoch:%version-%release

%package core-%_target_cpu
Summary: The GNU libc core libraries built with optimization for %_target_cpu processor
Group: System/Libraries
PreReq: %name-pthread = %epoch:%version-%release
Provides: %name-core-archopt = %epoch:%version-%release

%description
The GNU C library defines all of the library functions that are specified
by the ISO C standard, as well as additional features specific to POSIX
and other derivatives of the Unix operating system, and extensions
specific to the GNU system.

The GNU libc is a set of standard libraries which are used by multiple
programs on the system.  In order to save disk space and memory, as well
as to make upgrading easier, common system code is kept in one place
and shared between programs.

%description preinstall
This package contains glibc preinstall utility.

%description core
This package contains most essential GNU libc libraries and files,
including dynamic linker and its configurator, standard C library and
the standard math library.  Without these files a GNU/Linux system will
not function.

%description pthread
This package contains glibc libpthread and related shared libraries.

%description locales
This package contains GNU libc locales, files that tell your system
about your language, names of days and months, charset, and other
language/territory/charset specific things.

%description i18ndata
This package contains source files required for building locales.  Locales
are files, that tell your system about your language, names of days and
months, alphabet and other language/territory/charset specific things.

%description gconv-modules
This package contains helper modules necessary to convert data between
various charsets.

%description -n iconv
This package contains program that can convert text files between
various charsets.

%description timezones
This package contains files, utilities and databases for operating
timezones data in the system.

%description utils
This package contains miscellaneous non-essential %name utilities that
didn't fit in specific packages.

%description nss
NSS is a Name Service Switch subsystem.  The basic idea is to put the
implementation of the different services offered to access the databases
in separate modules.

%description devel
This package contains the header and object files necessary for developing
programs which use the standard C libraries (which are used by nearly all
programs).  If you are developing programs which will use the standard
C libraries, your system needs to have these standard header and object
files available in order to create the executables.

%description devel-static
This package contains the GNU libc static libraries necessary for
developing statically linked programs which use the standard C libraries.

%description doc
This package contains documentation distributed with GNU libc.

%description profile
This package includes the GNU libc libraries and support for profiling
using the gprof program.  Profiling is analyzing a program's functions
to see how much CPU time they use and determining which functions are
calling other functions during execution.  To use gprof to profile a
program, your program needs to use the GNU libc libraries from this
package instead of the standard GNU libc libraries.

%description debug
This package contains utilities for software debugging,
including:
+ memusage
+ memusagestat
+ pcprofiledump
+ xtrace

%description core-debug
This package contains GNU libc core shared libraries with debugging
information.  You need this if you want to step into C library routines
during debugging.  To use these libraries, you need to set
LD_LIBRARY_PATH=%_libdir/debug
in your environment before starting debugger.  If you want to see glibc
source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description nss-debug
This package contains GNU libc NSS libraries with debugging information.
You need this if you want to step into C library routines during
debugging.  To use these libraries, you need to set
LD_LIBRARY_PATH=%_libdir/debug
in your environment before starting debugger.  If you want to see glibc
source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description devel-debug
This package contains GNU libc static libraries with debugging
information.  You need this only if you want to step into C library
routines during debugging programs statically linked against one or
more of the standard C libraries.  To use this debugging information,
you need to link binaries with -L%_libdir/debug compiler option.
If you want to see glibc source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description -n nscd
Nscd caches name service lookups and can dramatically improve performance
with NIS+, and may help with DNS as well.  Note that you can't use nscd
with 2.0 kernels because of bugs in the kernel-side thread support.
Unfortunately, nscd happens to hit these bugs particularly hard.

%description core-%_target_cpu
This package contains most essential GNU libc libraries, optimized for
run on %_target_cpu processor.

%prep
%setup -q -n %name-%version-%release
wordsize=`printf '#include <bits/wordsize.h>\n__WORDSIZE\n' |cpp -P -xc - |grep '^[1-9]'`
sed -i "s/@BITS@/$wordsize/" include/stubs-biarch.h

%ifarch %arm
tar xf %SOURCE1
%endif

find -type f -name configure -print0 |
	xargs -r0 touch --
touch locale/programs/*-kw.h

################################################################################
%build
%define buildtarget build-%_target

%if %undefined parallelmflags
%define parallelmflags %nil
%endif # parallelmflags

%if_without optimization
%define _optlevel %nil
%define optflags_optimization -O%_optlevel %optflags_debug
%else #with optimization

%add_optflags -U_FORTIFY_SOURCE -fno-stack-protector -fasynchronous-unwind-tables

%endif #without optimization

%define _configure_script ../configure

# workaround
unset LD_PRELOAD LD_ASSUME_KERNEL ||:

export CC=%__cc CXX=%__cxx ac_cv_lib_audit_audit_log_avc=no

%ifarch %arm
# The configure fails some tests on ARM EABI due undefined reference to `__aeabi_unwind_cpp_pr0'
# Workaround for it.
export libc_cv_asm_set_directive=yes
export libc_cv_Bgroup=yes
export libc_cv_gcc_builtin_expect=yes
export libc_cv_initfini_array=yes
export libc_cv_ld_no_whole_archive=yes
%endif

AddOns=`echo */configure |sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'`
Ports=
%ifarch %arm
Ports=',ports'
%endif

Pthreads=nptl

rm -rf %buildtarget
mkdir %buildtarget
pushd %buildtarget

%configure \
	%{?_disable_profile:%_disable_profile} \
	--without-cvs \
	--enable-bind-now \
	--enable-add-ons=$Pthreads$AddOns$Ports \
	%{subst_with tls} \
	%{subst_with __thread} \
	%{?_enable_multiarch:--enable-multi-arch} \
	--enable-kernel=%enablekernel \
	#

%make_build -r PARALLELMFLAGS=%parallelmflags

popd #%buildtarget

make -C alt enablekernel=%enablekernel CC=%__cc path_link=../%buildtarget

%if_with debug
rm -rf %buildtarget-debug
mkdir %buildtarget-debug
pushd %buildtarget-debug

export CFLAGS="%optflags %optflags_debug"
%configure \
	--disable-profile \
	--enable-bind-now \
	--without-cvs \
	--without-gd \
	--enable-add-ons=$Pthreads$AddOns$Ports \
	%{subst_with tls} \
	%{subst_with __thread} \
	--enable-kernel=%enablekernel \
	#

%make_build -r PARALLELMFLAGS=%parallelmflags

popd #%buildtarget-debug
%endif #with debug

################################################################################
%check
cat /proc/self/maps >/dev/null
export TIMEOUTFACTOR=10
%make_build -C %buildtarget -r PARALLELMFLAGS=%parallelmflags -k check LDFLAGS=-Wl,--no-as-needed ||:

################################################################################
%install
[ -n "$NPROCS" ] || NPROCS=%__nprocs
%make_install -j$NPROCS install install_root=%buildroot -C %buildtarget

pushd %buildroot%_libdir
%__cc -r -nostdlib -o libpthread.o -Wl,--whole-archive ./libpthread.a
rm libpthread.a
ar rcs libpthread.a libpthread.o
rm libpthread.o
popd

mkdir -p %buildroot%_cachedir/ldconfig
> %buildroot%_cachedir/ldconfig/aux-cache

# Relocate shared libraries used by catchsegv, memusage and xtrace.
mv %buildroot/%_lib/lib{memusage,pcprofile,SegFault}.so \
	%buildroot%_libdir/ ||:

%if_with debug
%make_install install install_root=%buildroot/debug -C %buildtarget-debug

# NPTL <bits/stdio-lock.h> is not usable outside of glibc,
# so include the generic one (RH#162634)
cp -a bits/stdio-lock.h %buildroot%_includedir/bits/stdio-lock.h
# And <bits/libc-lock.h> needs sanitizing as well.
cp -a fedora/libc-lock.h %buildroot%_includedir/bits/libc-lock.h

rm %buildroot/debug/%_lib/lib{memusage,pcprofile,SegFault}.so

ls %buildroot/debug/%_lib/*.so* |
	egrep -v '/libnss_([^f]|files\.so\.1)' |
	sed -e "s|%buildroot/debug/%_lib|%_libdir/debug|g" >core-debug.files

ls %buildroot/debug/%_lib/*.so* |
	fgrep nss |
	fgrep -v /libnss_files |
	sed -e "s|%buildroot/debug/%_lib|%_libdir/debug|g" >nss-debug.files

ls %buildroot/debug%_libdir/lib*.so |
	sed -e "s|%buildroot/debug%_libdir|%_libdir/debug|g" >>devel-debug.files

mkdir -p %buildroot%_libdir/debug
mv %buildroot/debug/%_lib/* %buildroot/debug%_libdir/*.{so,a,o}* \
	%buildroot%_libdir/debug/
rm -rf %buildroot/debug
for f in %buildroot%_libdir/debug/*.so; do
	if [ -L "$f" ]; then
		t=`readlink "$f"`
		t=${t##*/}
		ln -snf "$t" "$f"
	fi
done
%endif #with debug

%if_enabled archopt

mkdir -p %buildroot/%_lib/%_target_cpu
mv %buildroot/%_lib/*.so* %buildroot/%_lib/%_target_cpu/

%else #disabled archopt

# Install upgrade programs.
make -C alt install

%if_with locales
pushd %buildtarget
	%make_build install-locales -C ../localedata \
		install_root=%buildroot \
		objdir=`pwd`
popd

# Hardlink identical locale files together.
hardlink -vc %buildroot%_prefix/lib/locale

# Convert these locale directories into symlinks.
for n in %renamed_locales; do
	t=%buildroot%_prefix/lib/locale/"${n%%.*}"
	rm -rf "$t"
	ln -s "$n" "$t"
done
%endif #with locales

ln -sf libbsd-compat.a %buildroot%_libdir/libbsd.a

install -pD -m755 alt/nscd.init %buildroot%_initdir/nscd
install -pD -m644 alt/nsswitch.conf %buildroot%_sysconfdir/nsswitch.conf
install -pm644 alt/nscd.conf %buildroot%_sysconfdir/
mkdir -pm711 %buildroot/var/{lib,run}/nscd
mksock %buildroot/var/run/nscd/socket

# Install nss.conf
install -pm644 nis/nss %buildroot%_sysconfdir/nss.conf

# Install gai.conf
install -pm644 posix/gai.conf %buildroot%_sysconfdir/

# Install bindresvport.blacklist
install -pm644 alt/bindresvport.blacklist %buildroot%_sysconfdir/

# Include ld.so.conf and ld.so.conf.d
mkdir -p %buildroot%_sysconfdir/ld.so.conf.d
echo 'include /etc/ld.so.conf.d/*.conf' >%buildroot%_sysconfdir/ld.so.conf

# Include %%ghost ld.so.cache
install -pD -m644 /dev/null %buildroot%_sysconfdir/ld.so.cache

# Include gconv-modules.cache
install -pD -m644 /dev/null %buildroot%_gconvdir/gconv-modules.cache

# Replace /etc/localtime symlink with the file for our default timezone.
rm %buildroot%_sysconfdir/localtime
cp -p %buildroot%_datadir/zoneinfo/UTC \
	%buildroot%_sysconfdir/localtime

# zoneinfo now lives in tzdata package.
rm -rf %buildroot%_datadir/zoneinfo

# Remove unpackaged files
rm %buildroot{%_infodir/dir,%_datadir/locale/locale.alias}

# The last bit: more documentation.
%define docdir %_docdir/%name-%version
rm -rf %buildroot%docdir
mkdir -p %buildroot%docdir
# BUGS removed from the list
cp -pL LICENSES README* alt/README* NEWS INSTALL FAQ NOTES PROJECTS \
	hesiod/README.hesiod crypt/README.ufc-crypt ChangeLog ChangeLog.?? \
	%buildroot%docdir/
cp -pL timezone/README %buildroot%docdir/README.timezone
find %buildroot%docdir/ -type f -size +8k -print0 |
	xargs -r0 bzip2 -9

>devel.files
>devel-static.files
for f in `ls %buildroot%_libdir/lib*.a |
	  grep -v '_p.a$' |
	  sed -e "s|%buildroot||g"`; do
	if [ -e "%buildroot${f%%.a}.so" ]; then
		echo "$f" >>devel-static.files
	else
		echo "$f" >>devel.files
	fi
done

%find_lang libc

%if_with locales
%if_enabled langify
(
	cd %buildroot%_prefix/lib/locale
	for f in *; do
		n=${f%%%%@*}
		n=${n%%%%.*}
		n=${n%%%%_*}
		echo "%%lang($n) %%attr(-,root,root) %_prefix/lib/locale/$f"
	done
) >>libc.lang
%endif #enabled langify

echo '%%dir %_datadir/locale' >>libc.lang
for lang in $((cat alt/locales-add && cd %buildroot%_prefix/lib/locale && ls |sed 's/[.@].*//') |sort -u); do
	for n in $lang ${lang%%%%_*}; do
		mkdir -p "%buildroot%_datadir/locale/$n"/LC_{MESSAGES,TIME}
		echo "%%lang($n) %%dir %_datadir/locale/$n"
		echo "%%lang($n) %%dir %_datadir/locale/$n/LC_MESSAGES"
		echo "%%lang($n) %%dir %_datadir/locale/$n/LC_TIME"
	done
done |sort -u >>libc.lang
%endif #with locales

%endif #enabled archopt

%brp_strip_debug */%_lib/ld-*.so* */%_lib/libpthread-*.so

# due to libpthread.
%set_verify_elf_method unresolved=relaxed

%if_enabled archopt
%post core-%_target_cpu -p /sbin/glibc_post_upgrade
%postun core-%_target_cpu
[ $1 -gt 0 ] || /sbin/glibc_post_upgrade
%endif #enabled archopt

%pre core -p /sbin/glibc_preinstall
%post core -p /sbin/glibc_post_upgrade

%post -n iconv
%_sbindir/iconvconfig

%pre locales
for n in %renamed_locales; do
	f="%_prefix/lib/locale/${n%%.*}"
	if [ -d "$f" -a ! -L "$f" ]; then
		rm -rf "$f"
		touch "$f.RPMLOCK"
	fi
done
%if "%_libdir" != "%_prefix/lib"
if [ -L %_prefix/lib/locale ]; then
	rm -f %_prefix/lib/locale
fi
%endif

%post locales
for n in %renamed_locales; do
	d="%_prefix/lib/locale/$n"
	f="%_prefix/lib/locale/${n%%.*}"
	if [ -f "$f.RPMLOCK" -a -d "$f" -a ! -d "$d.RPMSAVE" ]; then
		mv "$d" "$d.RPMSAVE"
		rm -f "$f.RPMLOCK"
	fi
done

%triggerpostun locales -- %name-locales, %name < 6:2.2.4-alt3
for n in %renamed_locales; do
	d="%_prefix/lib/locale/$n"
	if [ -d "$d.RPMSAVE" -a ! -d "$d" ]; then
		mv "$d.RPMSAVE" "$d"
	fi
done

%pre devel
# This used to be a link and it is causing nightmares now.
if [ -L %_includedir/scsi ]; then
	rm -f %_includedir/scsi
fi

%pre -n nscd
/usr/sbin/useradd -M -o -r -u 28 -d / -s /dev/null -c "NSCD Daemon" nscd ||:

%post -n nscd
%post_service nscd

%preun -n nscd
%preun_service nscd

%triggerpostun core -p /sbin/glibc_fix_nsswitch -- %name < 6:2.2.4-alt3, %name-nss < 6:2.2.4-alt4

%if_enabled archopt

%files core-%_target_cpu
/%_lib/%_target_cpu/ld*
/%_lib/%_target_cpu/lib[acdmpru]*

%else #disabled archopt

%files

%files doc
%_infodir/*.info*
%docdir

%files preinstall
/sbin/glibc_preinstall

%files core
/%_lib/lib*.so*
%exclude /%_lib/lib*thread*.so*
%exclude /%_lib/libanl*.so*
%exclude /%_lib/librt*.so*
/%_lib/ld*.so.*
%attr(755,root,root)/%_lib/ld*.so
%exclude /%_lib/libnss_[a-eg-z]*
/sbin/glibc_post_upgrade
/sbin/glibc_fix_*
/sbin/*ldconfig
%ghost %_sysconfdir/ld.so.cache
%dir %_sysconfdir/ld.so.conf.d
%dir %attr(700,root,root) %_cachedir/ldconfig
%ghost %verify(not md5 size mtime) %attr(600,root,root) %config(noreplace,missingok) %_cachedir/ldconfig/aux-cache
%config(noreplace) %_sysconfdir/bindresvport.blacklist
%config(noreplace) %_sysconfdir/gai.conf
%config(noreplace) %_sysconfdir/ld.so.conf
%config(noreplace) %_sysconfdir/localtime
%config(noreplace) %_sysconfdir/nss.conf
%config(noreplace) %_sysconfdir/nsswitch.conf
%config(noreplace) %_sysconfdir/rpc

%files pthread
/%_lib/lib*thread*.so*
/%_lib/libanl*.so*
/%_lib/librt*.so*

%files nss
/%_lib/libnss_*.so*
%exclude /%_lib/libnss_f*

%if_with locales
%files locales -f libc.lang
%_bindir/locale*
%dir %_prefix/lib/locale
%if_disabled langify
%_prefix/lib/locale/*
%endif #disabled langify
%endif #with locales

%files gconv-modules
%dir %_gconvdir
%_gconvdir/*.so
%_gconvdir/gconv-modules
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %_gconvdir/gconv-modules.cache

%files -n iconv
%_bindir/iconv*
%_sbindir/iconv*

%files timezones
%_bindir/tzselect
%_sbindir/zdump
%_sbindir/zic

%files utils
/sbin/sln
%_bindir/*
%exclude %_bindir/iconv*
%exclude %_bindir/locale*
%exclude %_bindir/memusage*
%exclude %_bindir/pcprofiledump
%exclude %_bindir/tzselect
%exclude %_bindir/xtrace
%_libexecdir/getconf

%files devel -f devel.files
%_libdir/lib*.so
%exclude %_libdir/libmemusage.so
%exclude %_libdir/libpcprofile.so
%_libdir/*.o
%_includedir/*

%files devel-static -f devel-static.files

%if_enabled profile
%files profile
%_libdir/lib*_p.a
%endif #enabled profile

%files debug
%_bindir/memusage*
%_bindir/pcprofiledump
%_bindir/xtrace
%_libdir/libmemusage.so
%_libdir/libpcprofile.so

%files -n nscd
%config(noreplace) %_sysconfdir/nscd.conf
%_initdir/nscd
%_sbindir/nscd*
%attr(711,root,root) %dir /var/run/nscd
%attr(1770,root,nscd) %dir /var/lib/nscd
%attr(666,root,root) %ghost /var/run/nscd/socket

%files i18ndata
%_datadir/i18n

%if_with debug
%files core-debug -f core-debug.files
%files nss-debug -f nss-debug.files
%files devel-debug -f devel-debug.files
%_libdir/debug/*.o
%_libdir/debug/*.a
%endif #with debug

%endif #enabled archopt

%changelog
* Tue Feb 16 2016 Gleb F-Malinovskiy <glebfm@altlinux.org> 6:2.11.3-alt8.M60P.5
- Fixed CVE-2015-7547.

* Wed Dec 23 2015 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt8.M60P.4
- Backported upstream fixes for numerous bugs in getaddrinfo.

* Wed Dec 23 2015 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt8.M60P.3
- Backported upstream fixes for sw#15330/CVE-2013-1914,
  sw#14699/CVE-2013-4237, sw#1585[567]/CVE-2013-4332,
  sw#14134/CVE-2012-6656, sw#17325/CVE-2014-6040,
  sw#14547/CVE-2012-{4412,4424}.

* Wed Jan 28 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 6:2.11.3-alt8.M60P.2
- Backported upstream fix for Sourceware#15014 (CVE-2015-0235).

* Tue Oct 23 2012 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt8.M60P.1
- Backported upstream fix for Sourceware#12561/ALT#26597.

* Wed May 16 2012 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt8
- Backported upstream fixes to build with binutils >= 2.21.51.0.3.

* Mon Feb 06 2012 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt7
- Backported upstream fixes for Sourceware#12453 (closes: #26848),
  Sourceware#12350 and Sourceware#12811.

* Fri Aug 12 2011 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt6
- Updated crypt_blowfish to 1.2.
- glibc_preinstall: Fixed handling of kernel versions with zeroes
  (closes: #26029).

* Tue Jun 21 2011 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt5
- Updated to glibc-2.11.3-61-g78856c5 with some broken commits reverted.
- Updated crypt_blowfish to 1.1 (fixes CVE-2011-2483).

* Thu Apr 28 2011 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt4
- Backported upstream fixes for Sourceware#12393,
  Sourceware#12583 (CVE-2011-1659) and Sourceware#12685.
- Fixed nscd reload (closes: #25379).
- glibc-utils: dropped rpcinfo which is now provided by
  rpcbind >= 0.2.1-alt0.4.

* Fri Feb 04 2011 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt3
- Updated to glibc-2.11.3-26-gb72646a.
- Enabled MULTIARCH support on %%ix86 and x86-64.
- Disabled core-debug, nss-debug and devel-debug subpackages.
- Built without -DNDEBUG=1.

* Tue Jan 11 2011 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt2
- Backported updated $ORIGIN hardening from Fedora.
- Backported upstream regex* fixes.

* Tue Nov 30 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.3-alt1
- Updated to glibc-2.11.3.

* Fri Nov 05 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.2-alt4
- Updated to glibc-2.11.2-15-g0cd8f10.
- Backported $ORIGIN hardening from Fedora.
- Backported fixes for warnings reported by gcc 4.5.

* Mon Oct 11 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.2-alt3
- locales:
  + added ru_RU.IBM866 (closes #23745);
  + changed localedir from %%_libdir to %%_prefix/lib.

* Mon May 31 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.2-alt2
- Updated to glibc-2.11.2-5-g2158096.

* Thu May 20 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.2-alt1
- Updated to glibc-2.11.2.

* Wed Mar 17 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.1-alt4
- nss_nis: Reverted part of commit glibc-2.11-64-ga682a1b
  to fix regression (closes: #23173).
- nsswitch.conf: Disabled nis/nis+ by default.

* Thu Mar 11 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.1-alt3
- Updated to glibc-2.11.1-4-g11c19d3.
- Updated crypt_blowfish to 1.0.4.
- Updated binutils versioned build requirement.

* Wed Jan 13 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.1-alt2
- glibc-core: Added rtld(GNU_UNIQUE) to provides list.

* Fri Jan 08 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.11.1-alt1
- Updated to glibc-2.11.1 + fedora/glibc-2.11.1-1.

* Fri Jan 08 2010 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.2-alt1
- Updated to glibc-2.10.2-1-g313f9d1.

* Tue Oct 27 2009 Kirill A. Shutemov <kas@altlinux.org> 6:2.10.1-alt8
- Fix build with binutils >= 2.20

* Thu Oct 01 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt7
- Added ports support for ARM (by Kirill A. Shutemov).

* Thu Sep 10 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt6
- Updated to glibc-2.10.1-69-gaa152ec from
  http://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/release/2.10/master
- Moved "make check" to %%check section.

* Mon Aug 17 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt5
- Updated to glibc-2.10.1-68-gc87c885 from
  http://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/release/2.10/master

* Thu Jun 25 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt4
- Updated to glibc-2.10.1-41-gd0f6ed7 from
  http://repo.or.cz/w/glibc/pb-stable.git?a=shortlog;h=glibc-2.10-branch
- locales/ru_UA: Added proper first_weekday and first_workday (closes: #20575).

* Mon Jun 15 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt3
- Updated to glibc-2.10.1-30-g9cf5572 from
  http://repo.or.cz/w/glibc/pb-stable.git?a=shortlog;h=glibc-2.10-branch
- Cherry picked fixes for bits/select.h macros from
  http://sourceware.org/git/?p=glibc.git;a=shortlog;h=master

* Wed Jun 10 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt2
- Updated to glibc-2.10.1-27-ge40d82c from
  http://repo.or.cz/w/glibc/pb-stable.git?a=shortlog;h=glibc-2.10-branch
- Cherry picked several fixes from
  http://sourceware.org/git/?p=glibc.git;a=shortlog;h=master
- Fixed extra PLT calls.
- Removed obsolete %%install_info/%%uninstall_info calls.
- Fixed stripping ld and libpthread on architectures where lib != %%_lib.

* Wed May 13 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.10.1-alt1
- Updated to 2.10.1 release.

* Tue May 05 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.9.90-alt1
- Updated to snapshot 20090427.
- Bumped assumed kernel version to 2.6.18.
- README.ALT: Removed obsolete clause (closes: #19713).

* Mon Apr 20 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.9-alt5
- glibc-doc is no longer required by glibc-devel (closes: #17963).
- Backported fix for__res_maybe_init() from trunk (closes: #19657).

* Mon Mar 02 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.9-alt4
- Imported a few fixes from trunk.
- glibc_fix_post: Moved /etc/localtime update to tzdata %%post (closes: #18786).
- glibc-locales: Packaged more /usr/share/locale/ directories (closes: #19023).
- Built with glibc-kernheaders-2.6.29-alt2.

* Tue Jan 27 2009 Dmitry V. Levin <ldv@altlinux.org> 6:2.9-alt3
- Imported a few fixes from trunk.
- io/ftw.h: Fixed "comma at end of enumerator list" -pedantic-errors
  compilation warnings.
- misc/bits/syslog.h (syslog, vsyslog): Removed "return"
  in functions returning void (fixes -pedantic-errors
  compilation warnings, reported by Slava Semushin).

* Tue Dec 23 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.9-alt2
- Imported a few fixes from trunk (sync with FC glibc-2.9-3).
- iconv: Fixed -r implementation (closes: #18264).

* Tue Nov 18 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.9-alt1
- Updated to 2.9 release.
- Removed obsolete post_ldconfig/postun_ldconfig calls.
- post_ldconfig/postun_ldconfig: Converted to symlinks to ldconfig.
- ldconfig: Changed to exit when executed during rpm package install.

* Fri Nov 07 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.8.90-alt3
- Updated to snapshot 20081103.
- Reintroduced changes to ldconfig search algorithm.
- Changed dynamic linker to call posix_fadvise(2) for shared
  objects (patch from SuSE, updated by ulfr@; closes: #14264).
- Moved libpthread and related shared libraries from glibc-core
  to new glibc-pthread subpackage.
- Packaged glibc-i18ndata subpackage as noarch.
- Moved documentation from glibc and glibc-devel to
  new glibc-doc noarch subpackage.
- Implemented PIE support on ARM (by kas@; closes: sourceware ports/6999).

* Wed Oct 22 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.8.90-alt2
- misc/syslog.c (openlog_internal): Fixed __have_sock_cloexec initialization.

* Mon Oct 20 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.8.90-alt1
- Updated to 2.8.90 (snapshot 20081018).

* Thu Oct 16 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt8
- Moved zoneinfo to tzdata package.

* Thu Sep 18 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt7
- Added postinstall workaround for the /etc/localtime change.
- Removed explicit binary pathname provides.

* Mon Sep 15 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt6
- glibc-core: Changed /etc/localtime to UTC.
- Imported the dynamic-resolvconf patch from Debian (avm@).
- Built with fresh glibc-kernheaders.

* Tue May 13 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt5
- glibc-locales: Packaged more /usr/share/locale/ subdirectories.

* Mon Mar 24 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt4
- glibc_preinstall: Build statically with glibc.
- Applied two ARM fixes (kas@).

* Sun Jan 27 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt3
- Marked %%_gconvdir/gconv-modules as a regular file.
- Marked %%_gconvdir/gconv-modules.cache as a %%ghost file (#14136).
- nscd.conf: Disabled hosts caching by default (#8867).
- Added glibc_fix_ldconfig workaround (#6570).
- Removed redundant glibc_fix_nsswitch proxy to glibc_fix_nsswitch.sh.

* Sun Jan 13 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt2
- elf/dl-version.c (_dl_check_map_versions): Fixed trace mode (#11271).
- Added /proc to build deps, required for test suit.
- Pass --enable-bind-now to debug build as well.

* Fri Jan 11 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5.1-alt1
- Updated to 2.5.1 release.
- Merged fixes from fedora-glibc-2_5-18_1.
- Backported upstream fixes for sourceware bugs:
  3842, 3905, 3996, 4125, 4745, 4773, 4776, 4792,
  4813, 5028, 5043, 5058, 5071, 5103, 5208, 5222.

* Fri Jan 11 2008 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt6
- Added arm support (kas@).
- Replaced homebrew linkify with packaged hardlink during build.
- Always include native stubs as before the 2.5-alt5 change (avm@).

* Wed Oct 31 2007 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt5
- Nullified stubs.h (avm@).

* Thu Jan 25 2007 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt4
- Updated to glibc-2_5-branch snapshot 20070112.
- Merged fixes from FC glibc-2.5-10.
- bindresvport.blacklist: Added missing well-known ports (#10706).

* Sat Oct 14 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt3
- Fixed bashism in ldd as suggested by Han Boetes.
- Fixed russian translation for "Operation not permitted" message.
- Backported few fixes from cvs HEAD.
- Implemented glibc preinstall check.

* Sun Oct 08 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt2
- Updated to glibc-2_5-branch snapshot 20061006.
- Build with -U_FORTIFY_SOURCE and -fno-stack-protector.
- init.d/nscd: Removed obsolete nscd_nischeck.

* Fri Sep 29 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.5-alt1
- Updated to 2.5 release.
- Reviewed and rediffed patches.
- Bumped assumed kernel version to 2.6.9.
  WARNING: attempts to run dynamically linked software
  with earlier kernels will fail.

* Fri May 26 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt7
- Backported configure.in fix (fixes #9599):
  Compile source test file with -fPIC for -shared.
- Backported x86-64 TLS asm syntax corrections.
- Updated crypt_blowfish to 1.0.2:
  Enable BF_SCALE on x86-64 for better performance.

* Fri May 19 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt6
- Remove __nonnull attribute from ctermid (fixes #9587).

* Tue May 16 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt5
- Fixed "ldd -u" (fixes #9352).
- Applied upstream linuxthreads TLS fix (fixes #8402).
- Fixed invalid weak_alias directive in the crypt patch.

* Sat Mar 11 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt4
- Updated crypt_blowfish to 1.0.1.
- Corrected ldd script (fixes #9065).

* Sun Jan 08 2006 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt3
- Backported upstream patch to fix build with fresh as.
- nscd: Packaged /var/lib/nscd (fixes #7973).
- Enabled TLS support by default.

* Tue Nov 29 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt2
- Reverted glob(3) changes introduced in 2.3.5-alt6.

* Tue Nov 08 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.6-alt1
- Updated to 2.3.6.
- Corrected typos in documentation (fixes #8389).
- Build with --enable-bind-now.

* Mon Sep 05 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt7
- confstr, getconf: Introduced _CS_LIBDIR and _CS_SLIB.
- tt_RU: Fixed territory and description (#7755).

* Wed Aug 10 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt6
- Updated to glibc-2_3-branch snapshot 20050802.
- Applied glob(3) update from gnulib.

* Thu May 26 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt5
- Synced with Owl: even more changes to the sanitize-env patch:
  corrected the way __libc_enable_secure is set in __libc_init_secure():
  if still undecided at that point, provide safe defaults for
  __libc_enable_secure and __libc_security_mask.
- io/sys/sendfile.h: Removed __nonnull from sendfile and
  sendfile64 declarations.

* Tue May 17 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt4
- Reworked sanitize-env patch again:
  Left __libc_enable_secure a boolean variable.
  Instead, introduced an internal bitmask, __libc_security_mask.

* Sun May 15 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt3
- Reworked sanitize-env patch to take into account AT_SECURE value
  of the auxiliary vector in addition to AT_*ID values.

* Thu May 12 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt2
- Changed _dl_osversion_init(), _dl_non_dynamic_init() and
  dl_main() functions to not assume too old kernel version.

* Mon May 09 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.5-alt1
- Updated to glibc-2_3-branch snapshot 20050427 (2.3.5+).
- Updated patches.
- Raised minimal required kernel version to 2.4.1.
- Reverted incompatible change to glob(3) for a while.
- Applied SuSE changes:
  + fnmatch: If conversion to wide character fails, fall back
    to single byte matching.
  + localedef: Added new option --archive.
  + localedef: Changed default to --no-archive.
- Applied Debian change:
  + ls.so: Aligned rtld_global and rtld_global_ro sizes
    for using i686 optimized library.
- Built with glibc-kernheaders-2.4.25-alt2.

* Tue May 03 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200406160000-alt3
- Additional x86_64 support tweaks (#6531).

* Tue Feb 08 2005 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200406160000-alt2
- Backported upstream fixes:
  + i386/fpu/libm-test-ulps: Update for GCC 3.4.
  + scripts/output-format.sed: Updated.
  * misc/syslog.c: Fix copying of PID in case of out-of-memory situation.
    Always try both UDP and TCP.
  + sys/mount.h: Synced MS_RMT_MASK flag and BLK* ioctls with linux kernel headers.
  + sysdeps/unix/alarm.c: Round return value to nearest.
  + linux/futimes.c: Catch errno values indicating file-name lookup errors.
- Applied SuSE changes:
  + getconf: Added -a option.
  + x86_64/fpu, x86_64/string*, arm/ioperm.c: updated.
- Applied Owl changes:
  + Added rpcgen-cpp patch to avoid hardcoding of path to cpp binary.

* Thu Jun 17 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200406160000-alt1
- Updated to glibc snapshot 200406160000.
- Added README.ALT file.

* Thu Jun 10 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200406101000-alt1
- Updated to glibc snapshot 200406101000.
- sanitize_env patch: Corrected kernel-2.6.x support.
- iconv -r: Fixed.
- memusagestat: fix linkage.
- memusage, xtrace: fix tmp file handling.

* Wed Jun 02 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200406020600-alt1
- Updated to glibc snapshot 200406020600.
- Fixed realpath(3) behaviour.
- Corrected glibc-core package dependencies (#4266).

* Sat May 15 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200405070341-alt1
- Updated sanitize_env patch.
- Rebuilt with binutils-2.15.90.0.3-alt2 and gcc-3.3.3-alt5.

* Fri May 07 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200405070000-alt1
- Updated to glibc snapshot 200405070000.

* Sun May 02 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200404240000-alt4
- ld.so: relax strip method to keep some symbols required for gdb
  to debug shared library initializers (#4069).

* Fri Apr 30 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200404240000-alt3
- nscd:
  + packaged /var/run/nscd;
  + updated rc script (#4049).

* Thu Apr 29 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200404240000-alt2
- _dl_make_stack_executable(): fixed mprotect return code handling.

* Wed Apr 28 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200404240000-alt1
- Updated to glibc snapshot 200404240000.
- ldconfig: reverted symlink handling changes in search_dir().

* Wed Apr 21 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.3.3.200404190147-alt1
- Updated to glibc snapshot 200404190147.
- Reviewed patches.  Updated patches:
  + texinfo docs;
  + linuxthreads docs;
  + gcc -Wpointer-arith support in string2.h;
  + gcc -pedantic support in sys/mount.h;
  + backport of sys/queue.h from OpenBSD;
  + set proper optind when argc < 1;
  + allow tmpfile(3) to use $TMPDIR;
  + fix asprintf/vasprintf error handling;
  + check for asprintf return code;
  + check for potential integer overflow in fread*/fwrite*;
  + vsyslog(3)/syslog(3): don't blindly trust __progname;
  + vsyslog(3)/syslog(3): use ctime_r(3) instead of strftime_r(3).
  + strlcpy(3),strlcat(3): import from OpenBSD;
  + resolv: use improved res_randomid;
  + malloc: sanity check in dlmalloc's unlink() macro;
  + libcrypt: blowfish-crypt support, gensalt interface;
  + iconv: add "--replace" option;
  + adjust kernel version constants to fit ALT kernels;
  + sanitize the environment in a paranoid way;
  + ldconfig: exit during distribution install;
  + support more ru_* locales;
  + relocate helper libraries from /lib to %_libdir;
  + xtrace.sh: change default terminal to xvt;
  + ldd: always execute traced object directly with dynamic linker;
- Package libc 2.0 compatibility add-on in separate subpackage.
- ld.so.conf: include %_sysconfdir/ld.so.conf.d/* by default.
- Package %%ghost %_sysconfdir/ld.so.cache.
- Updated contact address for bug reports.

* Thu Mar 25 2004 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.12
- glibc.spec: explicitly build with gcc3.2.
- glibc.spec: fixed "syntax error in expression" error.
- ldd: removed useless warning message (#3401).
- glibc-devel: updated info-install dependencies (#3544).
- glibc-locales: packaged %_datadir/locale and subdirs (#3498).

* Wed Dec 17 2003 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.11
- Allow tmpfile(3) to use $TMPDIR, as suggested by (GalaxyMaster).
- Sanity check the forward and backward chunk pointers in dlmalloc's
  unlink() macro, thanks to Stefan Esser for the idea (Owl).
- Backported CP1125 support.
- glibc-devel: added dependence on kernel-headers-common (#3199).

* Mon Sep 01 2003 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.10
- Backported from libc-current:
  + getgrouplist fix (CAN-2003-0689);
  + sendfile64 support for linux kernel >= 2.4.
- Fixed CP932 MS Windows Japanese charset support
  (MORIYAMA Masayuki, Alexander Bokovoy).

* Mon Jun 09 2003 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.9
- vsyslog(3): don't pass ident to openlog_internal() at reconnect.
- nscd: rewritten start/stop script to new rc scheme.
- Rebuilt with
  glibc-kernheaders-2.4.21-alt1
  binutils-2.14.90.0.4-alt2
  gcc3.2-3.2.3-alt1

* Thu Apr 24 2003 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.8
- glibc-core: Provides: /sbin/glibc_fix_nsswitch, /sbin/glibc_post_upgrade.

* Sun Mar 23 2003 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.7
- Backported from libc-current:
  + Fix overflows in xdrmem.
  + canonicalize: Check for malloc return value.
  + nice: Use getpriority() for the return value.
  + __pthread_reset_main_thread: Don't muck with RLIMIT_STACK
    in FLOATING_STACKS linuxthreads.

* Fri Nov 08 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.6
- Updated crypt_blowfish to version 0.4.5:
  * Fri Nov 08 2002 Solar Designer <solar@owl.openwall.com>
  - Made the x86 assembly code in crypt_blowfish reentrant
    (this time for real), made crypt_blowfish more careful
    about overwriting sensitive data.
- Cleaned up the default /etc/nsswitch.conf file (Owl).
- Backported from glibc-2.3.2:
  * posix/unistd.h [__USE_GNU] (getresuid, getresgid,
    setresuid, setresgid): Declare them.
- Explicitly use autoconf-2.13 for build.
- libpthread: keep some symbols required for debugging
  threaded applications.
- Removed soname provides from -debug subpackages.

* Sat Oct 12 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.5
- Avoid some potential reads beyond end of undersized DNS responses
  by making sure they're at least HFIXEDSZ+QFIXEDSZ in size.
- Fixed -debug subpackages.

* Mon Sep 30 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.4
- Take care of problems caused by res_send and friends returning
  the size of the DNS response (even if that's more than
  the size of the buffer to which it copied the response).

* Tue Sep 24 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.3
- Updated code to snapshot 2002-09-23 of glibc-2-2-branch.
- Reverted previous resolv patch for a while.

* Fri Sep 06 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.2
- resolv (both main and compat): backported from HEAD:
  MAXPACKET: Increase minimum value from 1024 to 65536,
  to avoid buffer overrun.
- Added checks for potential integer overflow in fread*/fwrite*.
- Switched back to default stripping policy:
  make use of new (rpm-build >= 4.0.4-alt3) strip feature.

* Sun Sep 01 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.6-alt0.1
- Updated code and patches to snapshot 2002-08-27 of glibc-2-2-branch;
  following patches were merged into this branch:
  cvs-20020304-ftime.patch
  cvs-20020320-nis.patch
  cvs-20020404-dirname.patch
  cvs-20020128-20020424-dl_load.patch
  cvs-20020514-semctl.patch
  cvs-20020227-20020506-catgets.patch
  cvs-20020702-libnss_dns.patch
  cvs-20020802-xdr_array.patch
  cvs-20020807-calloc.patch
  2.2.5-alt-linuxthreads-signals.patch
- %_bindir/xtrace: If `TERMINAL_PROG' is not set, set it to `xvt'.
- locale/programs/charmap.c (charmap_read): Don't attempt to access NULL result.
- Don't obsolete old currencies from Euro countries (mdk).
- Fixed i386 ULPs for cacosh() tests.
- Moved (some) static libraries to devel-static subpackage.
- Built with gcc 3.2.1-alt0.2.

* Wed Aug 07 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt12
- malloc/malloc.c (calloc): Also check elem_size != 0 before division.
- Parallelized %%make_install.

* Tue Aug 06 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt11
- Fixed the DNS resolver buffer overflows in glibc-compat code (Tomohiro Kato).
- Check for overflows on multiplication (based on patches from Solar):
  sunrpc/xdr_array.c (xdr_array), malloc/malloc.c (calloc).
- resolv: improved the code used to produce unpredictable DNS query IDs
  to make it generate different sequences of IDs in forked processes
  (problem noted by Jarno Huuskonen), conserve the kernel's randomness
  pool (based on feedback from Michael Tokarev), and properly reseed
  when chrooted (Owl).

* Wed Jul 03 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt10
- resolv/nss_dns/dns-network.c: Reduce linebuflen in parallel
  to bumping up the buffer pointer (Andreas Schwab).
- Adjusted kernel version constants to fit ALT kernels.
  *** BEWARE ***
  supported kernels: 2.2.18-ipl1mdk and higher (LFS is assumed):
  following features assumed to be present:
  + syscalls: {,f}truncate64,mmap2,{,l,f}stat64,fcntl64,getdents64;
  + options: O_DIRECTORY.
  This behaviour is controlled by "altkernel" build option.

* Tue Jun 18 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt9
- glibc-locales:
  + Changed name for interpackage dependencies to %name-locales-virtual.
  + Renamed junior-specific locales to %name-locales-junior.

* Sat Jun 15 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt8
- Refined ldd and glibcbug patches.
- %name-core-%%_target_cpu subpackage:
  + added more libraries;
  + built without i686-specific HP_TIMING support.
- Given libcrypt.so an entry point and made it directly runnable itself.

* Wed Jun 12 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt7
- Fixed malfunction of ldconfig update helpers.
- Changed behaviour: use ctime_r(3) instead of strftime_r(3) in syslog(3)
  so that month names will not depend on current locale settings
  (Michael Tokarev).
- Added %name-core-%%_target_cpu build support: for this package,
  optlevel=3 and assume kernel >= 2.4.1
- Relocated /%_lib/libSegFault.so to %_libdir/libSegFault.so;
  moved it from glibc-core to glibc-utils (only needed by catchsegv).
- Removed from glibc-core-debug: lib{memusage,pcprofile,SegFault}.so

* Sun Jun 09 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt6
- Backported from libc-current:
  + catgets: fix typo in code which uses read to load the catalog;
  + ftime: don't return 1000 in millitm;
  + nis: correctly close the UDP connection;
  + dirname: ignore trailing slashes at end of non-null result;
  + check_fds: make sure newly opened file descriptor has correct number;
  + dl_load: correct __lseek parameters;
  + semctl: only use va_arg if the argument will be used.
- sanitize_env:
  + turned __libc_enable_secure variable into bitmap;
  + changed behaviour: save important variables (only TMPDIR atm.)
    when executing non-suid sgid binaries.
- ldd: execute traced object with help of rtld (fixes #0000842).
- glibcbug script: fixed tmp usage, corrected email and editor settings.
- Build all libraries without debug info. Since now only new subpackages -
  glibc-core-debug, glibc-nss-debug, glibc-devel-debug - will contain
  same libraries built with symbols required for debugging into libc.
- BuildPreReq: rpm-build >= 4.0.4-alt0.3 (because of if/enable logic).

* Mon May 20 2002 Dmitry V. Levin <ldv@altlinux.org> 6:2.2.5-alt5
- Backported from libc-current:
  + catgets: free buffer if internal catalog open fails.
- Langified glibc-locales.

* Mon Apr 15 2002 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.5-alt4
- linuxthreads/signals.c: added missing check for signal type check.
- Fixed locale renaming problem for upgrade from old glibc (< 6:2.2.4-alt3).

* Sun Mar 31 2002 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.5-alt3
- Added post_ldconfig/postun_ldconfig.
- Removed call for update chrooted libs from ldconfig
  (use post_ldconfig instead).

* Thu Mar 21 2002 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.5-alt2
- Fixed locale renaming problem.
- Fixed glibc-core dependencies (#0000634).
- glibc-core, glibc-i18ndata, glibc-locales, glibc-nss, glibc-gconv-modules, glibc-utils, iconv:
  Conflicts: %name < %%epoch:%%version-%%release.

* Tue Feb 19 2002 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.5-alt1
- 2.2.5, redone patches.
- Corrected package requires.
- Relocated %_bindir/{ldd,glibcbug} from %name-core to %name-utils.
- Updated sanitize-env patch.
- Changed ru_RU, ru_UA and uk_UA.KOI8-U locales to symlinks to real locales.
- Backported from current branch:
  + ALT Security Team's patches for asprintf and realloc issues;
  + elf/dl-load.c (_dl_map_object): Remove incorrect optimization for SHARED code.
- Merged in Owl patches for syslog and resolv.

* Wed Dec 05 2001 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.4-alt5
- Updated code and patches to CVS 20010925.
- Updated c_stub, glibc-compat and diff-CYGNUS-to-REDHAT.patch to 2.2.4-19 (rhs).
- Fixed asprintf/vasprintf error handling.
- Added strclcpy and strlcat from OpenBSD.

* Tue Nov 27 2001 Dmitry V. Levin <ldv@alt-linux.org> 6:2.2.4-alt4
- nss: moved libnss_files-2.2.4.so, libnss_files.so.2 and nsswitch.conf to core subpackage.
- nsswitch.conf: added initial nss_tcb support.
- gconv-modules: Included gconv-modules.cache
- iconv: execute iconvconfig in %post.
- i18ndata: enabled compressed charmaps.
- locales: hardlink identical locale files together (jj).
- librt.so: turn into linker script (jj).

* Fri Aug 24 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.4-alt3
- Split glibc into several packages (nidd):
  + glibc-core
  + glibc-i18ndata
  + glibc-locales
  + glibc-nss
  + glibc-gconv-modules
  + iconv

* Fri Aug 17 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.4-alt2
- Updated RH patch (from 2.2.4-5).
- Added %_sbindir/iconvconfig.

* Thu Aug 16 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.4-alt1
- 2.2.4
- Sanitize the environment in a paranoid way (Solar idea).

* Wed Aug 15 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.4-alt0.1pre3
- 2.2.4pre3.
- Re-enabled MBS_SUPPORT.

* Sat Jun 09 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.2-ipl7mdk
- Patch from Solar Designer <solar@owl.openwall.com>:
    Sync the fts(3) routines with current OpenBSD and FreeBSD; this is
    triggered by Nick Cleaton's report of yet another FTS vulnerability
    to FreeBSD, and a discussion with Kris Kennaway and Todd Miller. It
    should no longer be possible to trick FTS into leaving the intended
    directory hierarchy, but DoS attacks on FTS itself remain possible.
- Added sgi_fam entry to /etc/rpc.

* Thu May 31 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.2-ipl6mdk
- Resurrected %%optflags_debug options for compiler.
- Fixed devel/debug requires and obsoletes tags.

* Mon May 28 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.2-ipl5mdk
- Split out utilities and libraries for debugging into %name-debug subpackage.
- Updated crypt_blowfish to version 0.4.

* Sun Mar 18 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.2.2-ipl4mdk
- Fixed typo in sys/mount.h
- Built for release.

* Sat Mar 10 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.2-ipl3mdk
- Updated 18n patch.
- Make ldconfig exit during distribution install.

* Sat Feb 24 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.2-ipl2mdk
- Fixed optind handling.

* Sun Feb 18 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.2-ipl1mdk
- 2.2.2 release.
- Disable MBS_SUPPORT.

* Tue Jan 30 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.1-ipl2mdk
- Updated RH patch.
- Resurrected glibc-2.0 compatibility support (jj).
- Upgraded sys/queue.h
- ldconfig: call for update chrooted libs.
- Fixed pthread_create manpage (mdk).
- Fixed string2.h (libs-alpha).
- Added more info entries.

* Sun Jan 14 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.1-ipl1mdk
- 2.2.1 release.

* Fri Jan 12 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.1-ipl0.3mdk
- 2.2.1pre2.
- Export gensalt, UFC-crypt and MD5-crypt interface (libcrypt).
- Added Requires tags for all subpackages.

* Tue Jan 09 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.1-ipl0.2mdk
- Export MD5 interface (libcrypt).
- Added blowfish-crypt support (libcrypt)
  (we use crypt_blowfish-0.3 from Solar Designer <solar@false.com>).

* Mon Jan 08 2001 Dmitry V. Levin <ldv@fandra.org> 2.2.1-ipl0.1mdk
- 2.2.1pre1.
- Reconstructed RH specific patch.
- Dropped libNoVersion support.
- Dropped glibc-2.0 compatibility support for a while
  (wait for RH port to 2.2.1).

* Sat Dec 23 2000 Dmitry V. Levin <ldv@fandra.org> 2.2-ipl5mdk
- More fixes and updates from CVS (see ChangeLog for details).
- Forced strip_method to "executable" only.
- Updated localedef patch (change build behavior to break on signals).

* Sat Dec 16 2000 Dmitry V. Levin <ldv@fandra.org> 2.2-ipl4mdk
- Added uk_UA.CP1251 into the list of supported charsets.
- Added few patches from glibc-alpha.

* Wed Nov 22 2000 Dmitry V. Levin <ldv@fandra.org> 2.2-ipl3mdk
- More fixes from CVS (see ChangeLog for details).
- Relocated shared libraries used by memusage and xtrace,
  from /lib to %%_libdir.
- Moved to devel subpackage:
  %%_bindir/{memusage*,pcprofiledump,xtrace},
  %%_libdir/{libmemusage,libpcprofile}.so

* Wed Nov 15 2000 Dmitry V. Levin <ldv@fandra.org> 2.2-ipl2mdk
- Updated locale patch.
- Fixed texinfo documentation.
- FHSified paths.h
- Added "--replace" option to iconv utility.

* Fri Nov 10 2000 Dmitry V. Levin <ldv@fandra.org> 2.2-ipl1mdk
- 2.2
- Fixed ldconfig.

* Wed Nov 08 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.97-ipl1mdk
- 2.1.97
- Various patches from glibc-alpha.

* Sat Oct 28 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.96-ipl1mdk
- 2.1.96.

* Mon Oct 23 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.95-ipl2mdk
- Added forgotten /%_lib/lib{memusage,pcprofile,SegFault}.so files.
- Updated Obsoletes/Provides tags for locales.

* Fri Oct 13 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.95-ipl1mdk
- 2.1.95.
- Compatibility: revert back to uncompressed charmaps.

* Fri Oct 06 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.94-ipl3mdk
- Merge patches from 2.1.94 RH release #3.
- Updated %post section.

* Sun Oct 01 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.94-ipl2mdk
- Rebuilt with gcc-2.96.
- Added compat-glibc (for 2.0) lost in previous release.
- Updated nscd init script.
- Updated RE locale patch from AEN:
  Added kk_KZ and ky_KG locales (Kazakhstan and Kirghizia).

* Wed Sep 20 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.94-ipl1mdk
- 2.1.94 release.

* Mon Sep 04 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.92-ipl0.3mdk
- Revert back to old-style install-locales technique.
- Merge in patches from Jakub Jelinek <jakub@redhat.com>:
  + nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in the loop.
  + g++ 2.95.2 chokes on wrong sys/time.h

* Wed Aug 30 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.92-ipl0.2mdk
- 2.1.92 snapshot 13.
- Merge in RH patches:
  + Sun Aug 27 2000 Matt Wilson <msw@redhat.com>
    Patch to determine invalide locale name from Ulrich.
  + Sun Aug 27 2000 Bernhard Rosenkraenzer <bero@redhat.com>
    Fix up sys/io.h

* Mon Aug 21 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.92-ipl0.1mdk
- RE adaptions.
- Added PT154 locale (from AEN <aen@logic.ru>).
- 2.1.92 snapshot 5.

* Wed Aug  9 2000 Jakub Jelinek <jakub@redhat.com>
- build from CVS archive