DragonFlyBSD/src 76ebd41lib/libusb libusb.h

libusb(3): Define LIBUSB_API_VERSION

This macro may be used by ports, e.g., emulators/qemu.

Obtained-from: FreeBSD (commit fa6ef1c45f636043d7b0ec164c94db7095c2b113)
DeltaFile
+2-0lib/libusb/libusb.h
+2-01 files

DragonFlyBSD/src c2a9515gnu/usr.bin/mpc Makefile config.h

mpc: Update config.h and makefile
DeltaFile
+23-30gnu/usr.bin/mpc/config.h
+17-15gnu/usr.bin/mpc/Makefile
+40-452 files

DragonFlyBSD/src e840728contrib/mpc README.DELETED README.DRAGONFLY

contrib/mpc: Update README.DELETED and README.DRAGONFLY
DeltaFile
+14-5contrib/mpc/README.DRAGONFLY
+8-8contrib/mpc/README.DELETED
+22-132 files

DragonFlyBSD/src dde5640contrib/mpc/src pow.c log10.c

Merge branch 'vendor/MPC'

Upgrade from 1.0.3 to 1.4.1.
DeltaFile
+710-0contrib/mpc/src/radius.c
+452-32contrib/mpc/src/asin.c
+425-0contrib/mpc/src/balls.c
+399-10contrib/mpc/src/fr_div.c
+121-248contrib/mpc/src/log10.c
+263-104contrib/mpc/src/pow.c
+2,370-39445 files not shown
+4,793-1,44251 files

DragonFlyBSD/src 92a61c6gnu/usr.bin/mpfr mparam.h Makefile

mpfr: Update mparam.h and makefile
DeltaFile
+102-61gnu/usr.bin/mpfr/Makefile
+43-42gnu/usr.bin/mpfr/mparam.h
+145-1032 files

DragonFlyBSD/src 00a9d15contrib/mpfr README.DRAGONFLY README.DELETED

contrib/mpfr: Update README.DELETED and README.DRAGONFLY
DeltaFile
+23-11contrib/mpfr/README.DELETED
+13-7contrib/mpfr/README.DRAGONFLY
+36-182 files

DragonFlyBSD/src ad1b08fcontrib/mpfr/src add1sp.c mpfr.h

Merge branch 'vendor/MPFR'

Upgrade from 3.1.2 to 4.2.2.
DeltaFile
+1,654-490contrib/mpfr/src/sub1sp.c
+1,456-617contrib/mpfr/src/mpfr-impl.h
+1,350-271contrib/mpfr/src/sum.c
+900-495contrib/mpfr/src/vasprintf.c
+740-530contrib/mpfr/src/mpfr.h
+929-221contrib/mpfr/src/add1sp.c
+7,029-2,624291 files not shown
+30,577-11,426297 files

DragonFlyBSD/src 087e70ccontrib/mpfr/src add1sp.c mpfr.h

vendor/MPFR: Upgrade from 3.1.2 to 4.2.2
DeltaFile
+1,654-490contrib/mpfr/src/sub1sp.c
+1,456-617contrib/mpfr/src/mpfr-impl.h
+1,350-271contrib/mpfr/src/sum.c
+901-496contrib/mpfr/src/vasprintf.c
+740-530contrib/mpfr/src/mpfr.h
+929-221contrib/mpfr/src/add1sp.c
+7,030-2,625291 files not shown
+30,578-11,427297 files

DragonFlyBSD/src 073d983contrib/mpc/src pow.c log10.c

vendor/MPC: Upgrade from 1.0.3 to 1.4.1
DeltaFile
+710-0contrib/mpc/src/radius.c
+452-32contrib/mpc/src/asin.c
+425-0contrib/mpc/src/balls.c
+399-10contrib/mpc/src/fr_div.c
+121-248contrib/mpc/src/log10.c
+263-104contrib/mpc/src/pow.c
+2,370-39445 files not shown
+4,793-1,44251 files

DragonFlyBSD/src d1b2f62gnu/usr.bin/gmp Makefile config.h, gnu/usr.bin/gmp/lib Makefile Makefile.src

gmp: Update and rewrite makefiles

* Update the makefiles to build the imported 6.3.0.

* Split the building of file generation tools into a separate makefile
  in the `tools/` subdirectory, and move the library building to the
  `lib/` subdirectory.

* Use <bsd.hostprog.mk> to build the generation tools.

* Keep `gmp.h` at the main directory so there is no `config.h` that
  may possibly confuse the GMP users, such as the case with MPC that's
  got fixed in commit 140e2138b6e2614a71884aa87702138fe3691e53.

* Re-organize the sources in a separate `Makefile.src`. Just copy the
  `mpn_objs_in_libgmp` list from the generated Makefile, and thus
  greatly simplify the makefile rules.

* Adjust cc80/cc120 to use the updated `libgmp.a` location.
DeltaFile
+0-672gnu/usr.bin/gmp/config.h
+672-0gnu/usr.bin/gmp/lib/config.h
+2-276gnu/usr.bin/gmp/Makefile
+130-0gnu/usr.bin/gmp/lib/Makefile.src
+99-0gnu/usr.bin/gmp/lib/Makefile
+10-0gnu/usr.bin/gmp/tools/Makefile
+913-9484 files not shown
+919-95410 files

DragonFlyBSD/src 07429f9gnu/usr.bin/gmp config.h gmp.h

gmp: Update generated headers (gmp.h, config.h)
DeltaFile
+542-485gnu/usr.bin/gmp/gmp.h
+114-37gnu/usr.bin/gmp/config.h
+656-5222 files

DragonFlyBSD/src 0edc264contrib/gmp README.DRAGONFLY README.DELETED

contrib/gmp: Update README.DELETED and README.DRAGONFLY
DeltaFile
+25-15contrib/gmp/README.DELETED
+11-5contrib/gmp/README.DRAGONFLY
+36-202 files

DragonFlyBSD/src 1687ae1contrib/gmp COPYINGv3 longlong.h, contrib/gmp/mini-gmp mini-gmp.c

Merge branch 'vendor/GMP'

Upgrade from 5.0.5 to 6.3.0
DeltaFile
+4,627-0contrib/gmp/mini-gmp/mini-gmp.c
+2,057-1,378contrib/gmp/gmp-impl.h
+0-922contrib/gmp/dumbmp.c
+502-306contrib/gmp/longlong.h
+684-100contrib/gmp/mpz/bin_uiui.c
+674-0contrib/gmp/COPYINGv3
+8,544-2,706549 files not shown
+39,842-18,717555 files

DragonFlyBSD/src fb311ecshare/syscons/mapsmk Makefile, share/syscons/scrnmaps Makefile

share/syscons: Rewrite mapsmk's makefile with new <bsd.hostprog.mk>

While there, clean up scrnmaps's makefile.
DeltaFile
+12-18share/syscons/mapsmk/Makefile
+4-6share/syscons/scrnmaps/Makefile
+16-242 files

DragonFlyBSD/src 8d3e637share/mk bsd.dep.mk bsd.hostprog.mk

bsd.hostprog.mk: Reimplement to support multiple programs

Introduce PROGS and PROGS_CXX together with per-program variables to
support the multiple-program mode, allowing to build multiple programs
with one makefile.  This mode can help simplify the makefiles as well as
the hierarchies.

The original single-program mode is kept backward compatible.
DeltaFile
+105-40share/mk/bsd.hostprog.mk
+1-1share/mk/bsd.dep.mk
+106-412 files

DragonFlyBSD/src 140e213gnu/usr.bin/mpc Makefile

mpc: Fix inclusion paths to correctly include its own 'config.h'

It wrongly included the GMP's 'config.h', as the '../gmp/' directory has
both 'gmp.h' and 'config.h'.
DeltaFile
+2-1gnu/usr.bin/mpc/Makefile
+2-11 files

DragonFlyBSD/src 7afd530contrib/gmp COPYINGv3 longlong.h, contrib/gmp/mini-gmp mini-gmp.c

vendor/GMP: Upgrade from 5.0.5 to 6.3.0
DeltaFile
+4,627-0contrib/gmp/mini-gmp/mini-gmp.c
+2,057-1,378contrib/gmp/gmp-impl.h
+0-922contrib/gmp/dumbmp.c
+502-306contrib/gmp/longlong.h
+684-100contrib/gmp/mpz/bin_uiui.c
+674-0contrib/gmp/COPYINGv3
+8,544-2,706549 files not shown
+39,842-18,717555 files

DragonFlyBSD/src 893cca2lib/libncurses/tic_next Makefile

libncurses: Add a missing 'DPADD' for host program 'tic_next'

LDADD should have a companion DPADD.
DeltaFile
+1-0lib/libncurses/tic_next/Makefile
+1-01 files

DragonFlyBSD/src 576356alib/libncurses/libtic Makefile

libncurses: Remove obsolete targets from libtic's Makefile

The <bsd.hostlib.mk> already handles the 'afterdepend' and 'install'
targets, so no need to manually define them.
DeltaFile
+0-5lib/libncurses/libtic/Makefile
+0-51 files

DragonFlyBSD/src cf643e3bin/csh/gethost Makefile, games/adventure/setup Makefile

world: Remove obsolete 'build-tools' uses for host programs

These host programs (except share/syscons/mapsmk) are built with
<bsd.hostprog.mk>, which has replaced the 'build-tools' target in 2004.
So just remove the obsolete 'build-tools' target as well as the
'install' target.

Also remove the 'build-tools' target from <bsd.sys.mk>.
DeltaFile
+1-7share/syscons/mapsmk/Makefile
+1-5games/fortune/strfile/Makefile
+1-5games/boggle/mkindex/Makefile
+1-5games/boggle/mkdict/Makefile
+1-5games/adventure/setup/Makefile
+0-5bin/csh/gethost/Makefile
+5-3210 files not shown
+6-7816 files

DragonFlyBSD/src ae01cb2. Makefile

Makefile: Remove the obsolete '_build-tools' item

I missed it in commit 606249699fd1df85bcf274bacde6d5ab4e555135.
DeltaFile
+1-1Makefile
+1-11 files

DragonFlyBSD/src c0de80fcontrib/binutils-2.34 README.DRAGONFLY, contrib/binutils-2.34/binutils readelf.c

binutils234: Patch readelf(1) to recognize DragonFly-specific notes

* Define NT_DRAGONFLY_ABI and NT_DRAGONFLY_NOINIT in
  'include/elf/common.h' according to 'lib/csu/common/notes.h'.
* Add process_dragonfly_elf_note() to readelf.c to decode
  DragonFly-specific notes.

Before:
```
% readelf -n /bin/sh

Displaying notes found in: .note.tag
  Owner                Data size        Description
  DragonFly            0x00000004       NT_VERSION (version)
   description data: c8 29 09 00
  DragonFly            0x00000004       Unknown note type: (0x00000020)
   description data: 00 00 00 00
```


    [10 lines not shown]
DeltaFile
+47-0contrib/binutils-2.34/binutils/readelf.c
+5-0contrib/binutils-2.34/include/elf/common.h
+2-0contrib/binutils-2.34/README.DRAGONFLY
+54-03 files

DragonFlyBSD/src c3cb740sys/kern subr_diskgpt.c

kernel: Fix two bugs in gptinit()

* Fix the wrong type for 'table_lba'; should be 'uint64_t' instead of
  'uint32_t', and fix the read to use le64toh().

* Allow the partition table has entries more than 128 (MAX_GPT_ENTRIES).
  The UEFI specification basically has no upper limit, but we limit to
  parsing the first 128 (MAX_GPT_ENTRIES) entries.

  This actually happens with a Proxmox v9.2 ISO, which uses GPT and
  allocates 44 blocks for the partition table, so there are 176 entries.

  For example, here is the gpt(8) of a USB stick written with this ISO:

  ```
  Disk da8: 57.3GB (120225792 512-byte sectors)
      Start    Sectors    Size  Index  Contents
          0          1    512B      -  PMBR
          1          1    512B      -  Primary GPT header

    [13 lines not shown]
DeltaFile
+15-10sys/kern/subr_diskgpt.c
+15-101 files

DragonFlyBSD/src afae396gnu/lib/gcc120/libgomp Makefile, gnu/lib/gcc120/libstdc++/headers Makefile

gcc120,gcc80: Fix depend generation for multiple libraries

In the makefiles of these libraries, the `depend` and `all` targets were
used to create the generated files, so the builtin `depend` rules that
call mkdep(1) were simply overridden and ignored.

Fix this by using the `beforedepend` target instead.  This convention
has been already used in a few other libraries, such as
gcc*/libstdc++/components/*.
DeltaFile
+1-1gnu/usr.bin/cc120/support-libs/libiberty_pic/Makefile
+1-1gnu/usr.bin/cc120/support-libs/libdecnumber/Makefile
+1-1gnu/usr.bin/cc120/libbackend/Makefile
+1-1gnu/lib/gcc80/libgomp/Makefile
+1-1gnu/lib/gcc120/libstdc++/headers/Makefile
+1-1gnu/lib/gcc120/libgomp/Makefile
+6-62 files not shown
+8-88 files

DragonFlyBSD/src 91d8839gnu/usr.bin/cc120/libbackend Makefile, share/mk bsd.files.mk bsd.hostlib.mk

mk: Fix ${group}_FLAGS_FILES to support sources with subdirs

Previously ${group}_FLAGS_FILES required bare filenames as the
per-group flags were propagated into build commands via
${_${.IMPSRC:T}_FLAGS}, where the `:T` suffix required the subdirs
be ignored for the sources. However, this caused the following problems:

* `make depend` on ${group}_FLAGS_FILES will fail when the subdirs of
  the sources are excluded, because `make` will be unable to find them.
* Ignoring the subdir portion of the sources can make the flags be
  wrongly set for unwanted files in different directories that share a
  same filename.

To fix the above problems, propagate the per-group flags via variables
that use the target names, which are predictable and includes the
subdirs that avoid the ambiguity.  In addition, strip the filename
suffix so the flags apply to all kinds of objects such as *.o, *.po and
*.So.

Adjust cc120/libbackend/Makefile accordingly.
DeltaFile
+35-35share/mk/bsd.lib.mk
+23-23share/mk/sys.mk
+10-0share/mk/bsd.dep.mk
+4-4share/mk/bsd.hostlib.mk
+0-6share/mk/bsd.files.mk
+1-1gnu/usr.bin/cc120/libbackend/Makefile
+73-696 files

DragonFlyBSD/src dec8bf5gnu/usr.bin/gmp Makefile, share/mk bsd.dep.mk

mkdep(1): Fix target conflicts by prepending relative subdirs

* mkdep(1) calls cc/c++ to generate the dependency lists for the source
  files.  However, the targets in the output are bare names (e.g.,
  `example.o`), so multiple sources share a file name in different
  subdirectories have the same targets, which can cause build failures
  or broken output.

  To fix this problem, introduce the '-S srcdir' option to specify the
  root directory of the source files on the command line, and use it to
  determine the relative subdirectories that are prepended to each
  target.  As a result, the targets and their sources are 1:1 correlated
  and the duplicate targets are avoided.

* Further add a check to catch duplicate targets and fail the generation
  if there are any.

* Introduce MKDEPSRCDIR in <bsd.dep.mk> to set the new option for
  mkdep(1).

    [17 lines not shown]
DeltaFile
+81-2usr.bin/mkdep/mkdep.sh
+58-13usr.bin/mkdep/mkdep.1
+12-1share/mk/bsd.dep.mk
+3-1gnu/usr.bin/gmp/Makefile
+154-174 files

DragonFlyBSD/src 448268dusr.sbin/802_11/wpa_supplicant Makefile

wpa_supplicant(8): Remove duplicate defines from CFLAGS
DeltaFile
+0-2usr.sbin/802_11/wpa_supplicant/Makefile
+0-21 files

DragonFlyBSD/src 332c68fusr.bin/mkdep mkdep.sh

mkdep(1): Clean up the shell script

No functional changes.
DeltaFile
+29-36usr.bin/mkdep/mkdep.sh
+29-361 files

DragonFlyBSD/src 22b0532tools gitrev.sh

tools/gitrev.sh: Remove duplicate "cd" command

The 'cd $srcdir' was added in commit
f5a0be5909f64049304cc253123a5f9e4c5f38a3, which can cause the later
'cd $(dirname $0)' to fail, e.g.,

```
% sh ./sys/conf/../../tools/gitrev.sh
cd: ./sys/conf/../../tools: No such file or directory
$ bash ./sys/conf/../../tools/gitrev.sh
./sys/conf/../../tools/gitrev.sh: line 14: cd: ./sys/conf/../../tools: No such file or directory
```

The above invocation happens with:

```
$ env KERN_IDENT=XXX sh ./sys/conf/newvers.sh
```

So fix the issue by removing the duplicate "cd" command in gitrev.sh.
DeltaFile
+1-3tools/gitrev.sh
+1-31 files

DragonFlyBSD/src 26cefe5initrd/rescue Makefile, initrd/rescue.libcrypto Makefile

initrd: Enable WARNS=6 for building the final rescue exe

This is a follow-up change to my previous commit
b1c60d0b1c9b1260bca55b0ba511eca2ac8c522c.
DeltaFile
+0-4initrd/rescue/Makefile
+0-4initrd/rescue.libcrypto/Makefile
+0-82 files