head	1.1;
access;
symbols
	pkgsrc-2026Q3:1.1.0.8
	pkgsrc-2026Q3-base:1.1
	pkgsrc-2026Q2:1.1.0.6
	pkgsrc-2026Q2-base:1.1
	pkgsrc-2026Q1:1.1.0.4
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.2
	pkgsrc-2025Q4-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.10.23.17.07.36;	author schmonz;	state Exp;
branches;
next	;
commitid	dJCzc8YPxOPftIfG;


desc
@@


1.1
log
@cdb: update to 20251021. Changes:

Add support for cdb64 (at least on 64-bit platforms).

Switch almost all internal integers to num, defined as long long.
Replace various uint32, fmt, scan functions with num functions.

For tests, avoid depending on csh; depend on ulimit instead of
softlimit; increase limit to handle current process bloat.

Split buffer interface into inbuf and outbuf.

Clean up hier interface.

Remove various function definitions and declarations not used in cdb.

Eliminate some wrappers: str_len, alloc, uint32, exit, error, systype.

Tweak code to avoid deprecated C features (old-style function
definitions, empty prototypes, old-style main definitions).

Make more use of const and static. Eliminate register. Add -Wall to
compiler options. Tweak code to avoid -Wall complaints.

Add some don't-be-stupid compiler options: -fwrapv,
-fno-delete-null-pointer-checks, -fno-strict-aliasing, and
-fno-strict-overflow.

Many updates to documentation.
@
text
@$NetBSD$

Support DESTDIR.

--- Makefile.orig	2025-10-21 10:56:07.000000000 +0000
+++ Makefile
@@@@ -14,6 +14,14 @@@@ auto-str.o: \
 compile auto-str.c outbuf.h num.h
 	./compile auto-str.c
 
+auto_destdir.c: \
+auto-str conf-destdir
+	./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
+
+auto_destdir.o: \
+compile auto_destdir.c
+	./compile auto_destdir.c
+
 auto_home.c: \
 auto-str conf-home
 	./auto-str auto_home `head -1 conf-home` > auto_home.c
@@@@ -259,16 +267,16 @@@@ compile hier.c auto_home.h hier.h num.h
 	./compile hier.c
 
 instcopy: \
-load instcopy.o hier.o auto_home.o buffer.a unix.a byte.a
-	./load instcopy hier.o auto_home.o buffer.a unix.a byte.a
+load instcopy.o hier.o auto_destdir.o buffer.a unix.a byte.a
+	./load instcopy hier.o auto_destdir.o buffer.a unix.a byte.a
 
 instcopy.o: \
 compile instcopy.c outbuf.h strerr.h open.h hier.h inbuf.h num.h
 	./compile instcopy.c
 
 instcheck: \
-load instcheck.o hier.o auto_home.o buffer.a unix.a byte.a
-	./load instcheck hier.o auto_home.o buffer.a unix.a byte.a
+load instcheck.o hier.o auto_destdir.o buffer.a unix.a byte.a
+	./load instcheck hier.o auto_destdir.o buffer.a unix.a byte.a
 
 instcheck.o: \
 compile instcheck.c strerr.h hier.h num.h
@
