Пакет hasher: 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
Name: hasher
Version: 1.4.7
Release: alt1

Summary: Modern safe package building technology
License: GPLv2+
Group: Development/Other
Url: http://en.altlinux.org/Hasher
BuildArch: noarch

Source: %url/%name-%version.tar

%define _libexecdir %_prefix/libexec
%define helperdir %_libexecdir/%name-priv

Requires: %helperdir
Requires: getopt, ash-static, cpio-static, find-static
Requires: apt
# due to pkglist-query
Requires: apt-repo-tools
# due to "enable -f /usr/lib/bash/lockf lockf"
Requires: bash-builtin-lockf >= 0:0.2
# due to "readlink -e"
Requires: coreutils >= 0:5.2.1-alt3
# due to "find -exec {} +"
Requires: findutils >= 0:4.2.28
# due to hasher-priv makedev removal
Requires: hasher-priv >= 1.6.0
# due to prepare_x11_forwarding()
Requires: mktemp >= 1:1.3.1
# first libshell version with fixed shell-quote
Requires: libshell >= 0:0.0.2-alt4
# due to def_cache_compress
Requires: lz4

# due to hsh-fakedev removal
Conflicts: mkimage < 0.2.28

Obsoletes: pkg-build-utils, libbte

BuildPreReq: help2man, libshell >= 0:0.0.2-alt4

%description
Hasher is a set of tools for constructing chroot and safe building of
packages in the clean environment.  It makes clean environment on every
new build.  Hasher obtains packages from APT repositories so fast
network connection or local mirror is highly recommended.

%prep
%setup

%build
%make_build

%install
%makeinstall_std

%files
%_bindir/*
%_mandir/man?/*
%doc FAQ QUICKSTART README apt.conf *.sh

%changelog
* Wed Jul 28 2021 Dmitry V. Levin <ldv@altlinux.org> 1.4.7-alt1
- hsh-initroot: enabled %%_rpmscript_werror (by Ivan Zakharyaschev; see ALT#40582).

* Fri Dec 25 2020 Dmitry V. Levin <ldv@altlinux.org> 1.4.6-alt1
- mkaptbox: invoke rpm --showrc and rpmdb --initdb using setarch wrapper.

* Sun Nov 29 2020 Dmitry V. Levin <ldv@altlinux.org> 1.4.5-alt1
- Made exclude_docs configuration variable easier to use.
- hsh, hsh-rebuild: introduced --rpmbuild-args (by Arseny Maslennikov).

* Sun Jul 26 2020 Dmitry V. Levin <ldv@altlinux.org> 1.4.4-alt1
- hsh-install: changed to pass --ignoresize to rpmi --justdb.

* Tue Apr 21 2020 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.4.3-alt1
- Added new --build-srpm-only mode to build src.rpm from pkg.tar.
- Enabled --query-repackage mode by default.
- Added --no-query-repackage argument to retain old behavior.

* Wed Apr 01 2020 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.4.2-alt1
- Enhanced --query-repackage mode:
  + Fixed detection of SOURCE_DATE_EPOCH variable;
  + Removed redundant repackaging of just built src.rpm.

* Thu Nov 07 2019 Dmitry V. Levin <ldv@altlinux.org> 1.4.1-alt1
- hsh-initroot:
  + disabled copying of resolver configuration files from host system
    by default (by Gleb Fotengauer-Malinovskiy);
  + fixed error handling in archive_chroot_cache_compress_file.

* Fri Oct 11 2019 Dmitry V. Levin <ldv@altlinux.org> 1.4.0-alt2
- Added "Conflicts: mkimage < 0.2.28" due to hsh-fakedev removal.

* Sun Aug 18 2019 Dmitry V. Levin <ldv@altlinux.org> 1.4.0-alt1
- Removed hsh-fakedev which became useless with hasher-priv >= 1.6.0.
- Updated for hasher-priv makedev removal.

* Mon Mar 25 2019 Dmitry V. Levin <ldv@altlinux.org> 1.3.36-alt1
- Introduced unchecked_initroot_cache control variable.
  This new config variable controls whether the initroot cache is unchecked.
  Unchecked initroot cache allows more efficient initroot caching, but
  its validity is responsibility of the user.

* Wed Jan 16 2019 Dmitry V. Levin <ldv@altlinux.org> 1.3.35-alt1
- hsh-rebuild --query-repackage:
  relaxed glob pattern when processing $HOME/in/nosrpm/.

* Tue Dec 25 2018 Dmitry V. Levin <ldv@altlinux.org> 1.3.34-alt1
- mkaptbox: add config entries about preferences unconditionally.

* Tue Dec 25 2018 Dmitry V. Levin <ldv@altlinux.org> 1.3.33-alt1
- make_srpm_from_pkgtar: use $wlimit_time_long (closes: #35548).
- mkaptbox: added preferences file/dir support (by Michael Shigorin and me).
- hsh: remove old chroot before invoking mkaptbox.

* Fri Jul 13 2018 Dmitry V. Levin <ldv@altlinux.org> 1.3.32-alt1
- hsh-rebuild --query-repackage (by Ivan Zakharyaschev):
  + changed to use make_srpm_from_pkgtar(),
    this fixes --query-repackage option for some use cases;
  + made --query-repackage option more lightweight by using .nosrc.rpm.
- hsh-initroot: create a cutdown version of system /proc/cpuinfo
  inside chroot so that some cpu information could be obtained
  when /proc is not mounted.

* Wed Nov 22 2017 Dmitry V. Levin <ldv@altlinux.org> 1.3.31-alt1
- hsh-initroot: if /.host/postin hook is available, execute it
  after ldconfig and adjust_kernel_headers the same way
  as hsh-install does.

* Mon Nov 20 2017 Dmitry V. Levin <ldv@altlinux.org> 1.3.30-alt1
- hsh-rebuild, hsh-sh-rebuild-functions:
  implemented $SOURCE_DATE_EPOCH support (closes: #34202):
  + when building from pkg.tar, use specfile mtime as SOURCE_DATE_EPOCH;
  + when building from src.rpm, use buildtime as SOURCE_DATE_EPOCH.

* Wed Mar 22 2017 Dmitry V. Levin <ldv@altlinux.org> 1.3.29-alt1
- hsh-sh-cache-chroot-functions: parametrized cache compressor,
  changed default cache compressor from lzop to lz4.
- hsh, hsh-initroot: added --cache-compress option.

* Wed Feb 17 2016 Dmitry V. Levin <ldv@altlinux.org> 1.3.28-alt1
- hsh-initroot: prepare /sys/fs/cgroup mountpoint.
- hsh-rebuild --query-repackage: install BuildRequires(pre)
  dependencies first.

* Fri Jan 23 2015 Dmitry V. Levin <ldv@altlinux.org> 1.3.27-alt1
- hsh-mkchroot: changed chroot/dev/shm group ownership
  to make it a valid mountpoint for hasher-priv >= 1.5.1.
- hsh-fakedev.1: fixed a thinko (by Michael Shigorin).
- hsh-mkchroot: added busybox-hasher support (by led@).

* Thu Oct 18 2012 Dmitry V. Levin <ldv@altlinux.org> 1.3.26-alt1
- hsh-initroot: reverted the change related to
  /sys/devices/system/cpu/online because java cannot cope with it.

* Thu Oct 18 2012 Dmitry V. Levin <ldv@altlinux.org> 1.3.25.1-alt1
- Fixed harmless but noisy side effect of the previous release.

* Thu Oct 18 2012 Dmitry V. Levin <ldv@altlinux.org> 1.3.25-alt1
- hsh-initroot: create /sys/devices/system/cpu/online.
- Robustified nprocs checks.

* Fri Aug 17 2012 Dmitry V. Levin <ldv@altlinux.org> 1.3.24-alt1
- hsh-mkchroot: use generic qemu-arm static helper name for arm
  flavours (by Sergey Bolshakov).
- Allowed install of packages from incompatible architectures
  (by Sergey Bolshakov).

* Tue Jun 05 2012 Dmitry V. Levin <ldv@altlinux.org> 1.3.23-alt1
- hsh-mkchroot: create /dev/shm directory with permissions 01777.
- Updated package description (closes: #18853).

* Sun Oct 30 2011 Dmitry V. Levin <ldv@altlinux.org> 1.3.22-alt1
- Fixed duplications in generated hsh.1 manpage (closes: #20893).
- hsh-run: reverted the change made in previous release to disable
  network isolation when X11 forwarding is requested.
- mkaptbox: fixed a typo in readlink options (by Kirill A. Shutemov).
- hsh-sh-functions.in (print_uris): fixed stderr truncation
  in verbose mode (by Michael Shigorin; closes: #26217).

* Wed Jul 27 2011 Dmitry V. Levin <ldv@altlinux.org> 1.3.21-alt1
- hsh-run: disable network isolation when X11 forwarding is requested.
- hsh: added --printenv option (closes: #23955)
- hsh-sh-functions.in (print_uris): in verbose mode, print a message
  about obtaining packages (closes: #25686).

* Wed Feb 16 2011 Dmitry V. Levin <ldv@altlinux.org> 1.3.20-alt1
- hsh-initroot:
  + Do not copy /etc/skel/* to /usr/src/.
  + Create $TMPDIR with default permissions.

* Tue Sep 14 2010 Dmitry V. Levin <ldv@altlinux.org> 1.3.19-alt1
- hsh-initroot: Provide an empty /proc/filesystems stub file
  for chroots where /proc filesystem is not mounted.

* Sat Sep 11 2010 Alexey Tourbin <at@altlinux.ru> 1.3.18-alt1
- rebuild-functions (make_srpm_from_pkgtar): Enabled fast compression
  mode (w1.gzdio) for temporary src.rpm package.
- hsh-rebuild (query_req): Likewise.

* Sat Dec 19 2009 Alexey Tourbin <at@altlinux.ru> 1.3.17-alt1
- mkaptbox: In sources.list, enabled rpm-dir access to hasher repo.
- mkaptbox, hsh-sh-functions.in: Removed most of genbasedir stuff.
- mkaptbox: Preserved limited support for genbasedir - use
  $workdir/aptbox/regenbasedir e.g. before uploading your repo to ftp.
- hsh-sh-cache-contents-functions: Implemented support for rpm-dir.

* Wed Sep 09 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3.16-alt1
- hsh-rebuild: Call rpmbuild with stdout redirected to stderr.

* Sat Aug 29 2009 Alexey Tourbin <at@altlinux.ru> 1.3.15-alt1
- hsh-sh-cache-contents-functions: Adjusted for
  /usr/lib/kde4bin -> /usr/lib/kde4/bin migration.

* Fri Jul 17 2009 Alexey Tourbin <at@altlinux.ru> 1.3.14-alt1
- hsh-rpmi-print-files: New helper program, to replace 'apt-get --print-uris'
  with 'apt-get -o RPM::PM=external -o Dir::Bin::rpm=hsh-rpmi-print-files'.
- hsh-sh-functions.in (print_uris): Updated for hsh-rpmi-print-files.
- FAQ, README: Discarded remote repo limitations.

* Fri Jul 17 2009 Alexey Tourbin <at@altlinux.ru> 1.3.13-alt1
- mkaptbox: Eliminated read_apt_config() usage.
- hsh-sh-functions.in (read_apt_config): Removed.
- hsh-sh-cache-contents-functions: Set pkglists_dir from Dir::State::lists.

* Wed Jul 15 2009 Alexey Tourbin <at@altlinux.ru> 1.3.12-alt1
- hsh-sh-cache-contents-functions: Reimplemented contents index routines.
- Contents index is now generated from apt pkglist files.
- Added /usr/lib/kde4bin to contents_index_bin directories.
- Disabled contents_index_all.

* Thu May 07 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3.11-alt1
- hsh-sh-functions.in: Pass --bloat option to genbasedir (Alexey Tourbin).
- hsh-install: Calculate and apply mountpoints (closes: #16645).

* Fri Mar 27 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3.10-alt1
- mkaptbox: Pass --bloat option to genbasedir, to avoid
  semi-unmet dependencies (patch by Alexey Tourbin).
- FAQ:
  + Fixed syntax errors (patch by Mikhail Gusarov).
  + Described where to add hasher-priv config lines (reported by Taras Ablamsky).

* Fri Feb 13 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3.9-alt1
- hsh-sh-functions.in (chrootuid1, chrootuid2): Changed to
  tolerate setarch wrapper absence (closes: #18823).

* Wed Jan 28 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3.8-alt1
- Extended --number option semantics to allow zero subconfig identifier.
- mkaptbox: Added setarch wrapper.
- hsh-sh-functions.in: Changed to use setarch wrapper.
- hsh (cleanup_workdir, handle_package): Changed to remove chroot
  before removing aptbox.

* Fri Oct 31 2008 Dmitry V. Levin <ldv@altlinux.org> 1.3.7-alt1
- mkaptbox: Define APT::Architecture in aptbox's apt.conf (Alexey Froloff).
- hsh-sh-cache-chroot-functions: Use lzop(1) to compress
  chroot.cpio (Alexey Tourbin).
- hsh(1): Make clear that some options can be controlled from
  config file (Mikhail Gusarov; closes: #16709).
- Redirected stdout to stderr for all verbose coreutils invocations.

* Tue Apr 22 2008 Dmitry V. Levin <ldv@altlinux.org> 1.3.6-alt1
- hsh-rmchroot: Workaround nodev /dev/null when deleting
  files inside chroot.
- hsh-sh-cache-chroot-functions (unpack_chroot_cache,
  create_chroot): Always preserve modification time.

* Fri Apr 11 2008 Dmitry V. Levin <ldv@altlinux.org> 1.3.5-alt1
- Do not pass -h/-v options to chrooted rpmi,
  information from syslog should be enough.
- hsh-sh-functions.in (noinstall_pattern_list): Added dev-minimal.

* Thu Mar 20 2008 Dmitry V. Levin <ldv@altlinux.org> 1.3.4-alt1
- hsh-sh-functions.in (copy_chroot_incoming):
  Show the whole list of missing files (Alexey Tourbin)
- hsh-sh-rebuild-functions (make_srpm_from_pkgtar, install_source_package):
  Redirect verbose output to stderr.

* Wed Mar 12 2008 Dmitry V. Levin <ldv@altlinux.org> 1.3.3-alt1
- hsh-sh-cache-chroot-functions (archive_chroot_cache): Do not use ls.
- hsh-initroot: Do not create /dev/log socket, this is not our business.
- Use shell-error, shell-quote and shell-args from libshell >= 0:0.0.2-alt4,
  to replace several functions originally developed within hasher project.
- Avoid potential argument list overflow in hsh-install
  and similar places (#14107).

* Fri Dec 21 2007 Dmitry V. Levin <ldv@altlinux.org> 1.3.2-alt1
- Alex V. Myltsev:
  hsh: Clearer diagnostic if the workdir does not exist (#13476).
  mkaptbox: Support absolute def_repo.
  mkaptbox: Use `getconf SLIB` instead of hardcoded "lib".
- Alexey Tourbin:
  hsh-sh-cache-contents-functions (contents_index_bin_dirs): Added /usr/games.
  hsh-rebuild, rebuild-prog.sh: Removed nice(1).
  cache-chroot-functions: Don't break early, show the whole list of missing RPMs.
- Dmitry V. Levin:
  mkaptbox: Fixed typo which made --apt-prefix option unusable.
  hsh-sh-cache-chroot-functions (unpack_chroot_cache, create_chroot):
  Pass --preserve-modification-time option to cpio --extract.

* Tue Oct 23 2007 Dmitry V. Levin <ldv@altlinux.org> 1.3.1-alt1
- Packaged functions files without execute permissions set.
- hsh, hsh-mkchroot: Extended --number option syntax:
  When --number argument starts with slash character, it
  specifies a directory to deduce hasher config number from.

* Fri Oct 19 2007 Dmitry V. Levin <ldv@altlinux.org> 1.3.0-alt1
- Changed utilities to lock workdir by default.
- Changed utilities which operate with prepared chroot to
  deduce subconfig identifier from chroot directory ownership.
- Changed workdir locking algorithm to lock workdir itself.
- Implemented hasher-priv locking.
- hsh, hsh-mkchroot: Choose subconfig identifier randomly
  unless --number option is used.
- Enabled wait-for-lock behavior by default.
  Added --wait-lock/--no-wait-lock options to control wait mode.

* Mon Oct 08 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.9-alt1
- hsh-sh-functions.in (lock_workdir, hasher_exit_handler):
  Do not remove pid file.

* Sat Oct 06 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.8-alt1
- hsh-sh-functions.in (lock_workdir):
  Rewritten locking using lockf bash builtin.
- hsh, hsh-fakedev, hsh-install, hsh-run, hsh-sh-functions.in:
  Added --wait-lock/--no-wait-lock options.

* Tue Sep 18 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.7-alt1
- mkaptbox: If setarch does not support given arch, do not use setarch.
- hsh-rebuild: Added --source-only and --install-only options.
- Redirected chrootuid{1,2} stdin to /dev/null where appropriate.
- hsh-initroot: Replaced non-portable rpminit with raw initialization (#11586).

* Wed Aug 29 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.6-alt1
- hsh-fakedev, hsh-sh-functions.in, mkaptbox:
  Secured readlink(1) usage (ldv).
- Added qemu support (kas).
- mkaptbox:
  Added setarch to apt wrappers (ldv).
- cache-contents-functions:
  Refactored; introduced contents_index_all (at).
- Implemented alternative cache directory support (legion, ldv).
- hsh-sh-functions.in (lock_workdir):
  Rewritten locking using lock files (ldv).
- Run grep in C locale to speedup grep calls (ldv).
- hsh-sh-rebuild-functions:
  Fixed pkg.tar build deps filter (legion, ldv).

* Mon May 21 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.5-alt1
- hsh-initroot: Do not pass --nodeps option to rpmi
  unless some packages were filtered out (avm).
- hasher.7.in: Fixed man section number (#11613).
- hsh-initroot: Fixed --pkg-{init,build}-list=+ support
  (Sergey Kurakin, #11827).
- hsh-fakedev: Implemented fifo support (#11811).

* Thu Apr 12 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.4-alt1
- hsh-fakedev: Fixed typo in -g option support (sbolshakov, #11489).

* Sun Apr 08 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.3-alt1
- mkaptbox: When copying files from Dir::State::lists,
  take only readable files into account.

* Thu Mar 29 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.2-alt1
- mkaptbox: If cdroms.list is not empty,
  copy it and apt indices into aptbox.

* Mon Mar 12 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.1-alt1
- hsh-fakedev:
  + Enhanced error diagnostics.
  + Fixed hsh-run(1) invocation to propagate --number and --hasher-priv-dir options.
- hsh-sh-functions.in (opt_check_number):
  + Disallowed numbers starting with zero.
  + Optimized check to avoid execution of extra processes.
  Suggested by Sergey Vlasov.

* Wed Feb 21 2007 Dmitry V. Levin <ldv@altlinux.org> 1.2.0-alt1
- Fixed build to use plain "cp -a" for better portability.
- hsh-fakedev: New utility, creates fake device files.
- mkaptbox:
  Disabled creation of internal repository in --without-stuff mode.

* Thu Jan 11 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1.1-alt1
- mkaptbox: Implemented absolute repository path support in --repo
  (Alex Myltsev).
- Fixed required mountpoints calculation regression introduced in
  previous release.

* Thu Jan 04 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt1
- Removed boldface from the NAME section of man pages;
  suggested by Sergey Vlasov.
- Made all hasher utilities available for external use.
- Moved hasher function files to %_bindir/ as well.
- hsh-rebuild:
  Factored out rebuild functions to hsh-sh-rebuild-functions file.
- hsh-sh-cache-contents-functions (create_contents):
  Ignore missing cache/contents/list.new/index file (#9844).
- hsh-shell: Removed redundant --execute and --pty options.
- hsh-install, hsh-rebuild, hsh-run, hsh-shell:
  Deprecated --save-fakeroot option.
- Changed set_workdir() and utilities to allow $workdir to be
  defined in config file instead of command argument, and
  changed default $workdir value to $HOME/hasher;
  suggested by Mikhail Yakshin.
- Updated documentation to reflect these changes.

* Sun Dec 10 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.35-alt1
- apt.conf: Use C-style comments (#10158).
- FAQ: Updated section about remote repositories (#10167).
- functions (create_entry_fakeroot_header): Load/save fakeroot state
  iff /.fakedata exists, regardless of --save-fakeroot value (#10313).

* Mon Sep 04 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.34-alt1
- rebuild:
  + Pass --target option to "rpmbuild -bE" and "rpmbuild -bs" invocations.
  + Honor "rpmbuild -bE" exit code.
- cache_chroot:
  + Invalidate chroot cache in case of fakeroot options change.
- functions, hsh, mkaptbox, rebuild:
  + New options: --repo-bin, --repo-src (legion@).

* Wed May 31 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.33-alt1
- functions, mkaptbox:
  + Changed def_target and current_arch values to whatever rpm decides.

* Thu May 25 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.32-alt1
- hsh, initroot: Implemented --packager option.
- rebuild: Enhanced srpm detection.

* Fri May 12 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.31-alt1
- Changed code to use aptbox wrappers instead of direct apt commands.
- rebuild: make_srpm_from_pkgtar: filter_spec_buildreq: Ignore deps with %% symbol.
- mkaptbox: Create aptbox version of ~/.rpmrc if necessary.
- mkaptbox: Create regenbasedir wrapper.

* Fri May 05 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.30-alt1
- Enhanced $hasher_dir initialization, to make execution of
  hasher placed to exotic custom directory work as designed.
- rebuild: Handle tar packages made by gear utility.

* Mon Apr 10 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.29-alt1
- rebuild:
  + Do not export $target variable in default rebuild script.
- mkaptbox:
  + When creating internal apt.conf, place user apt config after
    internal Dir::State and Dir::Cache, to let users override
    these directories (legion@).
  + Cleanup apt wrappers (legion@).
- Removed keywords used for CVS keyword substitution.

* Tue Feb 21 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.28-alt1
- functions (print_uris): Fixed package download implementation
  to support mixed repos (see #8902).

* Fri Feb 17 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.27-alt1
- cache_chroot: Use find and cpio from host system
  if native tools are not available.
- initroot: Added --pkg-{init,build}-list=+ syntax (closes #9102).
- hsh-run: Added optional argument to --shell option (closes #9103).

* Sun Feb 12 2006 Dmitry V. Levin <ldv@altlinux.org> 1.0.26-alt1
- Enhanced manpages, based on idea and implementation
  from George Kouryachy.
- Parametrized default values for most of program options,
  see manpages for details.
- Parametrized rpmi: use $rpmi to override default rpmi.
- rebuild --query-repackage: allow undefined rpm macros
  during repackage.
- hsh-install: honor noinstall_pattern_list parameter like
  in initroot stage.
- Added example apt.conf file to documentation.

* Tue Nov 29 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.25-alt1
- initroot: Adopted "prepare /proc and /sys for potential mount"
  code to work in --save-fakeroot mode.
- hsh: New options: --eager-cleanup/--lazy-cleanup
  (option names suggested by Alexey Rusakov).
  Changed default operation mode to --eager-cleanup.

* Sat Nov 26 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.24-alt1
- rebuild: s/--reply=yes/-f/ (closes #8325).
- cache_chroot, hsh-install: Corrected check for
  adjust_kernel_headers presense before execution.
- Fixed hasher_dir initialization, to make execution of hasher
  placed to custom directory work as designed.
- functions (print_uris): Implemented package download using
  APT::Get::PrintLocalFile option (closes #8121).
- rebuild: Pass target to /.host/rebuild.

* Sun Oct 09 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.23-alt1
- initroot: new option: --pkg-noinstall-pattern-list.
- cache_chroot: fixed workaround for the dev package,
  implemented new initroot's option support.

* Mon Sep 05 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.22-alt1
- Changed default target to $(uname -m).
- Made the package noarch again.
- Updated FSF postal address.

* Sat Aug 13 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.21-alt1
- hsh-run: new options: --pty, --shell.
- hsh-shell: obsoleted by "hsh-run --shell".

* Mon Aug 01 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.20-alt1
- Fixed --number option support which was broken as result of
  previous cleanup.

* Tue Jul 05 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.19-alt1
- hsh-run(1): changed usage semantics.
- functions:
  new functions: parse_xauth_entry, prepare_x11_forwarding.
- hsh-run(1), hsh-shell(1):
  added options to control X11 forwarding.
- Fixed build with make-3.81beta3.
- Cleaned up options parser.

* Fri Jun 17 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.18-alt1
- cache_chroot (create_chroot):
  Fixed grave chroot initialization bug introduced in 1.0.17.

* Sun Jun 12 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.17-alt1
- cache_chroot, cache_contents: save cache validation data
  after cache regeneration.
- mkchroot: create /dev symlinks.
- hsh(1), hsh-shell(1), cache_chroot, initroot, install,
  rebuild, rmchroot: implemented --save-fakeroot option.
- hsh-install(1), hsh-run(1): New programs.

* Fri May 27 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.16-alt1
- rebuild: pass sources as arguments to query-req-prog script.
- cache_chroot: caller user and/or group may exist,
  do not fail when unable to create them.
- Added query-req-prog and rebuild-prog examples.

* Tue May 17 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.15-alt1
- hsh(1): new option: --cleanup-only.
- hsh(1), rebuild: new option: --query-repackage.
- initroot: copy /etc/skel contents to the builder's homedir.
- cache_chroot: create group and passwd entries for caller
  and pseudoroot users.
- functions: new function: show_usage.
- Reduced size of usage messages to necessary minimum.
- Enforced policy on messages format.
- hsh-shell(1): new program.
- FAQ: updated.

* Tue May 03 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.14-alt1
- rebuild: really handle --mountpoints as comma-separated list
  [take 3].
- functions,hsh,mkaptbox,rebuild:
  + new option: --repo (Ivan Fedorov, closes #6739).
- hsh,initroot:
  + new option: --no-repackage-source;
  + repackage source by default.

* Sun Apr 10 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.13-alt1
- Fixed handling of options with file or dir arguments.
- rebuild: really handle --mountpoints as comma-separated list.
- Documented --without-stuff instead of --no-stuff as preferred
  way to build without internal package repository.

* Wed Mar 16 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.12-alt1
- mkaptbox: fixed regression introduced by previous change.

* Tue Mar 15 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.11-alt1
- hsh: handle traps in more portable way.
- rmchroot: chgrp chroot directory itself, too.
- functions/{get_apt_config,read_apt_config}: new functions.
- mkaptbox: use them.

* Tue Jan 25 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.10-alt1
- functions: removed no longer needed "am I root?" sanity check
  (fixes #5869).
- hsh(1), rebuild: implemented --query-req-prog option.

* Mon Jan 03 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0.9-alt1
- Changed hasher-priv helper directory to %helperdir,
  updated package dependencies.
- install: export RPM_EXCLUDEDOCS=1 if $exclude_docs is set.
- functions: source user config from ~/.hasher/config if any.
- hsh,initroot,install,rebuild: added --excludedocs option.
- Unhardcoded work limits (fixes #5804).
- Updated documentation:
  + hasher(7): applied fixes from Egor Grebnev;
  + hsh(1), mkaptbox(1): added NAME section.
  + hsh(1): document ~/.hasher/config and ~/.hasher/install/post.

* Thu Nov 11 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.8-alt1
- hsh: enhanced early diagnostics for invalid source files.

* Tue Nov 09 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.7-alt1
- cache_contents: fixed find warning.
- mkaptbox: create wrapper for genbasedir.

* Thu Aug 26 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.6-alt1
- rebuild: enhanced --mountpoints implementation.

* Wed Aug 25 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.5-alt1
- rmchroot: fixed bug introduced in previous release.

* Thu Aug 19 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.4-alt1
- rmchroot:
  + increased time limits;
  + when verbose mode is set, be more verbose.
- Updated package dependencies.

* Sun Aug 08 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.3-alt1
- initroot,install,mkchroot,rebuild,rmchroot:
  + implemented --version parameter.
- rebuild:
  + calculate required mountpoints from installed file dependencies.
- Updated FAQ.

* Tue Aug 03 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.2-alt1
- rebuild: run rebuild script as login shell.
- Added multilib support.

* Mon Jul 26 2004 Kachalov Anton <mouse@altlinux.ru> 1.0.1-alt2
- Added libdir, deftarget variables to makefile

* Mon Jul 19 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0.1-alt1
- initroot:
  + removed --no-build option, use --pkg-build-list= instead.
- hsh, initroot:
  + handle comma as package name delimiter in values of the
    --pkg-init-list and --pkg-build-list options.
- hsh:
  + new option: --initroot-only.
- archive_chroot_cache:
  + optimized find/cpio.

* Thu Jul 15 2004 Dmitry V. Levin <ldv@altlinux.org> 1.0-alt1
- Added hasher(7) manpage.
- Added more docs to hsh(1) manpage.
- Updated FAQ.

* Fri Jul 09 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.7-alt1
- Implemented mount/umount support.

* Wed Jul 07 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.6-alt1
- rebuild:
  + execute sisyphus_check for source package
    before analysis of its build dependencies;
  + execute all sisyphus_check calls inside chroot;
  + execute query for packager inside chroot.
- initroot: added sisyphus_check>=0:0.7.3 to build list.
- README: described this change.
- cache_chroot,initroot,rebuild,rmchroot:
  + Added wlimit hints for each chrootuid call.

* Sat Jul 03 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.5-alt1
- cache_chroot: recognize dev_* as dev-*, too.

* Thu Jun 24 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.4-alt1
- functions/print_uris, rebuild, hsh:
  + separate user-defined arguments from command options.

* Wed Jun 23 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.3-alt1
- cache_contents, initroot: fix potential breakage
  introduced in previous release.

* Tue Jun 22 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.2-alt1
- all:
  + fixed "echo" usage;
  + fixed error handling in "while read" constructions.
- initroot:
  + added support for exotic package filenames.

* Sun Jun 13 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9.1-alt1
- mkaptbox: include custom apt.conf (if any) to header
  of the generated apt.conf file.
- Minor changes:
  + mkchroot: create chroot/.out with mode 1770 and group gid2.
  + rmchroot: chmod chroot/.out, too.
  + copy_chroot_incoming(): call purge_chroot_in() before copying.
  + do not call purge_chroot_in() before copy_chroot_incoming().

* Tue Feb 03 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.9-alt1
- hsh,rebuild: implemented --rebuild-prog option.
- hsh,install: implemented --pkg-init-list/--pkg-build-list options.
- Added: FAQ, QUICKSTART.

* Sat Jan 31 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.8-alt1
- mkaptbox:
  + added --no-uptdate option;
  + enabled --update mode by default;
  + implemented creation of the apt wrappers in aptbox;
  + added mkaptbox(1) manpage;
  + added %_bindir/mkaptbox symlink.
- Optimized getopt handling code.
- Updated README.

* Tue Jan 13 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.7-alt1
- functions: fixed bug introduced by apt_prefix support.
- create_contents: optimize --no-contents-indices case.
- initroot,cache_chroot: implemented --no-build option.

* Thu Jan 08 2004 Dmitry V. Levin <ldv@altlinux.org> 0.9.6-alt1
- functions/print_uris: enhanced error diagnostics.
- functions,mkaptbox,hsh: implemented apt_prefix support.
- functions,initroot,install,rebuild:
  define and export TMPDIR="$HOME/tmp" inside build chroot,
  to ease tracking of illegal /tmp use issues.
- Added hsh(1) manpage.

* Thu Dec 04 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9.5-alt1
- mkchroot:
  + install postin program ($HOME/.hasher/install/post
    if available) into /.host/;
- install: execute /.host/postin if available.

* Wed Nov 26 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9.4-alt1
- Make use of new rpm-build-4.0.4-alt28 features:
  + initroot: define %%_rpmbuild_clean to 0 in .rpmmacros.
  + initroot,hsh: new option: --repackage-source.

* Sun Nov 02 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9.3-alt1
- Extended sisyphus_check support.
- Updated README.

* Mon Oct 27 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9.2-alt1
- initroot: changed default packager to hasher@localhost.
- rebuild: pass packager through .rpmmacros.

* Thu Oct 23 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9.1-alt1
- Include files inside /etc/ in content index.

* Fri Oct 17 2003 Dmitry V. Levin <ldv@altlinux.org> 0.9-alt1
- Fixed Usage() in all scripts.
- Added sisyphus_check support and enabled it by default.

* Wed Oct 15 2003 Dmitry V. Levin <ldv@altlinux.org> 0.8.4-alt1
- initroot: install all locales by default.
- Updated README.

* Mon Oct 06 2003 Dmitry V. Levin <ldv@altlinux.org> 0.8.3-alt1
- install: call ldconfig after install.
- initroot: be more verbose about filelist generation errors.

* Sun Oct 05 2003 Dmitry V. Levin <ldv@altlinux.org> 0.8.2-alt1
- Added -q/--quiet option.
- install,cache_chroot: be more verbose by default.

* Mon Sep 22 2003 Dmitry V. Levin <ldv@altlinux.org> 0.8.1-alt1
- initroot: manifest hasher via defining __BTE macro
  to "hasher" (#3008).
- Spelling fixes (s/indeces/indices/g).

* Wed Sep 17 2003 Dmitry V. Levin <ldv@altlinux.org> 0.8-alt1
- Implemented initial chroot caching.
- Implemented contents indices caching.
- Implemented support of several contents indices.
  Content indeces are enabled by default, use
  --no-contents-indices option to disable this feature.

* Thu Sep 11 2003 Dmitry V. Levin <ldv@altlinux.org> 0.7-alt1
- Enhanced --no-stuff support.
- Fixed --number support.

* Mon Sep 08 2003 Dmitry V. Levin <ldv@altlinux.org> 0.6-alt1
- hsh:
  + implemented locking.
- mkaptbox:
  + implemented more rigorous apt-config error checking.
- initroot:
  + create /dev/log socket.

* Wed Aug 20 2003 Dmitry V. Levin <ldv@altlinux.org> 0.5-alt1
- functions:
  + relaxed umask: 077 -> 022.
- initroot:
  + fixed nprocs initialization (#0002861, imz).

* Mon Aug 11 2003 Dmitry V. Levin <ldv@altlinux.org> 0.4-alt1
- rmchroot:
  + install .host programs if required;
  + use "find -delete" instead of "rm -rf".
- mkaptbox:
  + added --target option (#0002817);
  + added --apt-config option.
- hsh:
  + pass --target and --apt-config to mkaptbox.

* Wed Jul 30 2003 Dmitry V. Levin <ldv@altlinux.org> 0.3-alt1
- Added "adjust_kernel_headers --first" support.
- rmchroot:
  + explicitly remove /var/lib/texmf/ as well.
- Updated README.

* Fri Jul 04 2003 Dmitry V. Levin <ldv@altlinux.org> 0.2-alt1
- functions: unset CDPATH.
- rmchroot:
  + explicitly remove /var/tmp/ and /usr/src/ as well as /*/.
- Updated README.

* Thu Jul 03 2003 Dmitry V. Levin <ldv@altlinux.org> 0.1-alt1
- Added apt "copy" source method support.
- Enhanced error diagnostics.

* Mon Jun 30 2003 Dmitry V. Levin <ldv@altlinux.org> 0.0.3-alt1
- Initial revision.