Commit Graph

4423 Commits

Author SHA1 Message Date
Jérôme Duval
3bf4cdb73b network/ping: update to freebsd-current
* our ip modules don't support connect()/send(). Just use sendto().
* ping6 disappears, ping supports -4 or -6 to force IPv4 or IPv6

Change-Id: I1e982e354cc75d3a314c5bbbfffa0373e8f4d9af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7427
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-26 14:06:29 +00:00
Alexander von Gluck IV
cac7a2f426 icu: bump OS (and all dependencies) to ICU 74
* Non-x86 will likely break until they get an updated icu74
  build-package

Change-Id: I5762d14f848e1c4e9b837e1dea9c1a54efa8401d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7346
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2024-02-07 18:14:48 +00:00
Augustin Cavalier
123fa38638 usb_audio: Add to regular image.
Requires multiple media server restarts to switch
outputs to it, but that's a known media services
problem (#12777 and #12776.)

Input doesn't work quite right with the hardware
I've been testing with, but that's also a known
problem it seems (#9951). Meanwhile, output
seems to work pretty well, once it gets going.
2024-01-31 23:05:43 -05:00
Joachim Mairböck
cbe17a5f23 haiku_extras: add provides for TV and acpi_call
Also fix the broken DeskBar symlink for TV.

Change-Id: I23a9cc5cf3e3d0c6ae1608a3b96a37e9a8c431a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7362
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-01-30 21:19:57 +00:00
Alexander von Gluck IV
6738595a67 build-packages/x86_64: align gcc to current repo gcc
* Tested no issues on boot.

Change-Id: I2825ac8614172d649d1821a7a6c25e6cf63f716f
2024-01-25 12:31:48 -06:00
Humdinger
15037a29f1 Move TV app into haiku_extras package
As discussed at
https://discuss.haiku-os.org/t/what-does-the-tv-program-do/14511

Change-Id: I7d9501cad2b9d4b3c6898ec39398101727c2eee8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7344
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-01-24 09:56:30 +00:00
Jérôme Duval
b352d8ccd8 virtio_gpu: add the accelerant to the regular image
fix 32-bit warnings

Change-Id: If85acfce1ac93998c13e5d9fa2e02823e219e428
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7342
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: X512 X512 <danger_mail@list.ru>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-01-24 09:54:55 +00:00
Augustin Cavalier
b6c24e6b40 network: Overhaul TUN/TAP subsystem.
* Rename the "tun" network device to "tunnel". FreeBSD calls theirs
   "tuntap" but speaks of both TUN and TAP devices as interfaces for
   tunnels. The other BSDs seem to do likewise.

 * Fold the "tun" driver into the "tunnel" network device. The
   network device now publishes entries in devfs when interfaces
   are created, and unpublishes them when interfaces are destroyed.

   This removes the need for the driver and device to communicate
   through a file descriptor, and thus allows the receive queue
   to be totally eliminated, massively simplifying that logic.

 * Use standard net-stack FIFOs instead of TCP BufferQueue, which is
   specialized to TCP's needs in far too many ways. Thanks to the
   previous commit adding support for interrupting semaphore waits,
   we can use the FIFO wait mechanisms, too.

 * Restructure the TAP logic, and generate MAC addresses more like
   Linux does.

 * Actually set type = IFT_TUN, and use the "loopback" frame handler
   instead of the "ethernet" frame handler. This allows significant
   cleanup of the header handling logic.

 * In TUN mode, reject packets that don't look like IP packets.

 * Delete "tunconfig"; it was mostly stubs and is now unnecessary.

TUN mode tested and confirmed as working by kallisti5 with OpenVPN.
TAP mode partially tested, but not yet confirmed as working.

Fixes #18673.

Change-Id: Ibd803139474e8db556a4f567901da15ee4083621
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7143
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-11-30 20:44:44 +00:00
Swangeon
cbb44d0ab6 Add TUN/TAP interface and driver to build definitions
Change-Id: I19f37ef75250526d7a7f9e254fd0bf3693582c92
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6898
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-11-17 16:58:45 +00:00
Kacper Kasper
6f58244192 Support repositories created with git worktree
* .git is a file in worktree-created copies.
* Determines the correct directory using git command, when
  running configure.
* Fixes #16808.

Change-Id: I72c7b2e79aac5140d35e0339fad16160a35911ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6914
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-11-01 09:09:27 +00:00
PulkoMandy
51355272b3 ArchitecturesRules: error on use of deprecated functions
The previous commits have cleaned all the remaining ones.

Change-Id: I6b12ba4f23779f3e2e4fd5a00c6acfaaeb50f4d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6804
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-10-26 10:50:02 +00:00
Alexander von Gluck IV
dd04895cfa build: retry-on-host-error while downloading files
* We might as well "try as hard as we can" to get build files.
* With this setting, DNS resolution errors count as retryable
  errors.  wget will retry to get files up to 20 times by default.
* Should improve build relability on less-than-ideal network
  connections. (aka, a brief network disconnection shouldn't stop
  a local build if possible)

Change-Id: I39652fafb5eee237c463e1b777b1057ee1d53db1
2023-10-22 09:36:47 -05:00
Augustin Cavalier
8764a29843 build/jam: Only add C++ header directories to include path for C++ code.
There are now some system headers (e.g. <stdatomic.h>) that have outright
different versions for C and C++ which are not compatible with each other.

Change-Id: Ibf797e0817f0fe4d5241424d7d06023b19888c02
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6991
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-10-13 16:18:47 +00:00
Alexander von Gluck IV
5f351a4650 build-packages: Bump riscv64 for gcc13. Thanks X512!
Change-Id: Ic95763b88b0e6880f6466047e85b523fe12dc554
2023-10-10 11:18:55 -05:00
Yn0ga
cbb88108d5 Various PowerPC fixes
* Removed atomic operations placeholders for modern ones
* Fix chrpscript & hfsmaps location for CDBootImage (haiku-boot-cd target)
* add of_blocks & of_blocksize openfirmware call

Change-Id: Iaaddc2c566d108976ac5e5e08caea1fc59523e06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6987
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-10-06 20:38:24 +00:00
Augustin Cavalier
35bc8b401a ArchitectureRules: Disable autovectorization for the kernel (for now.)
See #18593.
2023-09-22 16:27:37 -04:00
Alexander von Gluck IV
3e2b187899 build: Update arm64 build-packages for gcc13
Change-Id: I1143072d4783310f37ef68cd9e3793579f3388cb
2023-09-21 13:12:15 -05:00
Alexander von Gluck IV
bcd89a79ad build: Update arm build-packages for gcc13
Change-Id: Idc18fb42e18165fc35f657e0a1d19de479c137ed
2023-09-20 10:30:55 -05:00
David Karoly
31199cd950 update bootstrap package versions for ppc
Change-Id: I84d8e32cbba725e952d0864c4a82028fa91b5209
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6912
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-09-17 19:14:00 +00:00
David Karoly
dfc8e0741a update bootstrap package versions for m68k
Change-Id: I813ddbd1619b57aceac6f303e6ea716736d8db2d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6902
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-09-10 11:43:30 +00:00
Vladimir Serbinenko
3cfeaf2617 ufs2: Enable module
Change-Id: I1f9b92da13980637925be5e9c813af427b25feb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6853
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 19:10:34 +00:00
David Karoly
3568a4e11f update bootstrap package versions for x86_64
Change-Id: I623b927096547a1bc98d1011169142d841c78eac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6846
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-20 16:08:31 +00:00
David Karoly
6308236831 arm, arm64, riscv64: use gcc-13.2.0 for bootstrap build
Change-Id: I3cda82b46a224bddc51f9850c1fee9006a51b73e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6844
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-19 12:24:18 +00:00
David Karoly
2b514ce830 riscv64: update bootstrap package versions
Change-Id: I45b96ae1249985a2d92bcae7c826e40186d3b4a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6813
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:33:47 +00:00
David Karoly
26bd8b3958 arm: update bootstrap package versions
Change-Id: Iaea37926246a95764253dcb24c47ab6b931c538c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6812
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:25:06 +00:00
David Karoly
45e19f162a arm64: update bootstrap package versions
Change-Id: Ifc42e09d1fed8ca51c214bee53dda8d0a203b5b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6811
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-08-13 19:24:49 +00:00
Adrien Destugues
2468c9e5bf Remove -Wno-error=deprecated
This disables -Werror for the use of old GCC extensions listed here:
https://gcc.gnu.org/onlinedocs/gcc/Deprecated-Features.html

We do not apparently use any of those anymore (if we ever did). I think
this was accidentally enabled at the same time as
deprecated-declarations (which we still need, for example because we
still have some uses of auto_ptr).

Change-Id: I147276b42d9d066df56e8b135bc8fd885dc937a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6798
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-08-07 14:38:36 +00:00
Niels Sascha Reedijk
13e2db9609 build-packages: update to the latest packages
The main motivator is the update to GCC 13. As part of this, some of the other
dependencies have been updated as well.

Newly introduced:
 - gawk on x68_64 (new dependency of texinfo)
 - libjx (new dependency of haikuwebkit)
 - openexr30 (new indirect dependency of haikuwebkit)
 - brotli (new indirect dependency of haikuwebkit)

On x86_gcc2, some packages have switched to the modern GCC version:
 - diffutils
 - findutils
 - libpsl
 - tcpdump

Change-Id: Ic617b5b4af9eb34c0d28259a3c0ddbcc33f98a5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6772
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-08-05 11:52:00 +00:00
Adrien Destugues
4fbc89c3f2 Remove -Wno-error=trigraphs
All (accidental) trigraphs have been removed in the source.
2023-07-31 10:25:22 +02:00
Vladimir Serbinenko
e16045db2c i2c_elan: Support I2C Elan devices
They are not HID devices as they need special polling and interpreting. As
a result only descriptor is shared with other i2c HID devices. So it's easier
to have it as a separate driver.

Partially based on FreeBSD ietp driver

Change-Id: Iddc64d216eefeda235a1b15521cba9189dd2ffd8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6660
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-07-14 20:58:01 +00:00
Alexander von Gluck IV
2bd91dc18b HaikuPortsCross: Correct misaligned bootstrap package versions
Change-Id: Ia836711b471318283a2b1ecb7c5a2e10963e8b7f
2023-06-22 10:03:00 -05:00
Alexander von Gluck IV
73c451087f drivers/wlan: Enable on riscv64
Change-Id: I20c755a05b43f9166558a2b9f2d3da8961b52d0b
2023-06-17 09:41:38 -05:00
Alexander von Gluck IV
06898ee467 build/profile: Add nightly-mmc for riscv64 (and arm later)
Change-Id: I6aeddabedb8cf3e1505519f4393e4d0f2af5ea7f
2023-06-16 14:45:25 -05:00
X512
4a6b1e401c repo/riscv64: Bump HaikuPorts build-packages for riscv64
Change-Id: Idba2bc58c46deaa182ad27011b5a99e3231afe56
2023-06-16 14:44:48 -05:00
Alexander von Gluck IV
5676ddf7ca repo/riscv64: Bump HaikuPorts build-packages for riscv64
Change-Id: Ib230422bc514831983cd8b4d2794c37f46d62343
2023-06-16 13:10:53 -05:00
Augustin Cavalier
b256fa4adf usb_disk: Transition to "new" driver API.
Change-Id: Ia46cb6ddc9f83917a8f797149508d35b770e44f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6473
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-05-29 18:11:26 +00:00
Jessica Hamilton
e673ca9491 cdboot: add missing PCI x86 module.
Fixes #18391; introduced in hrev56936.

Change-Id: I7c2166f9f0198bbbfbd296a19679345cfb82302d
2023-04-28 23:55:39 +00:00
X512
f33c8f9ce2 busses/pci/designware: add
Change-Id: I43dfc8a4b4fabe7b892e98aa192db95ba1b9378f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6225
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-04-25 15:54:32 +00:00
X512
912bdb2aca busses/pci/ecam: add
Change-Id: I8decef75a2d7f30bb5d45fc4774037d6a92bc161
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6223
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-04-25 15:54:32 +00:00
X512
a23ac85fa9 bus_managers/pci: split PCI controller to separate add-on
busses/pci/x86: add
Other add-ons are in following commits.

Change-Id: I7a77bfaef0e8995917b4b54c8369d7075533ec26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6220
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-04-25 15:54:32 +00:00
X512
a83ee8cf77 build: enable network driver build for riscv64
Change-Id: I954c78a98103abdf98ed96e1a639e9d9e2f0ddc8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6235
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Automation <automation@haiku-os.org>
2023-03-20 22:14:15 +00:00
Alexander von Gluck IV
30d8d75640 minimum: Add Installer to minimum image
* Assists on early boot platforms to install / upgrade when
  no network is available.
* Doesn't introduce any additional dependencies
* Creates shine-though directories too.

Change-Id: I11dd207b2ffbae1768bab7a118a51034df238878
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6185
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2023-03-12 16:38:38 +00:00
PulkoMandy
dd8d24ee62 build: remove most of MathRules.
We shouldn't be doing these crazy things.

The only usage of this is the NextID rule which computes an unique
number by incrementing a variable. This is used for example to generate
names for the extra files used in xattr emulation.

But we certainly don't need multiplication, division, etc. That's better
done in scripts (Python, for example) in rule actions. So keep just
enough of this for NextID to work, and we could probably make it even
simpler.

Change-Id: Id06d4f5e236205203fe8d604de440753b63801bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6088
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-02-26 00:54:53 +00:00
Alexander von Gluck IV
8eb9f41407 data: Drop ARM FDT dts from repo
* We depend on FDT passed to the bootloader now
  from EFI or u-boot via fdt_addr_r now
* We leave an fdt path within the boot partition
  (for now) to allow / encourage users to optionally
  plug in their own DTB's for troubleshooting. (only
  on u-boot loader)

Change-Id: I3f2d81b60d46f388f333d5caa27aa77e6e36447d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6081
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Tested-by: Automation <automation@haiku-os.org>
2023-02-23 18:24:21 +00:00
Adrien Destugues
0849c914a7 xfs: Enable -Werror, fix all warnings
Define a dedicated OnDiskData structure for each on-disk structure. This
must match the on-disk layout, except for endianness, which is handled
by _SwapEndian methods. These structure are "plain old data" so we can
use offsetof on them. They are wrapped in an easier to use C++ API.

This resolves a lot of problems with the previous code: warnings caused
by the use of offsetof as well as a much simpler instanciation of the
objects from on-disk data.

Also fixed another problem with UUIDs, where the UUIDs were handled by
pointers in a lot of place where it was not necessary. Use references
instead. The V4 structures which don't have an UUID will return a "null"
(zero-filled) one.

Change-Id: Ifb2bf6ab94906ca50410dd3446d3566615392ca2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6021
Reviewed-by: Raghav Sharma <raghavself28@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-02-14 15:36:25 +00:00
Jessica Hamilton
49df70db7a build: include zstd_devel in Development optional package.
* zstd_devel is now required for building Haiku.

Change-Id: I75f6482322b01c5e675c93ec04a9584ca21f95d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6055
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-02-10 19:15:28 +00:00
Augustin Cavalier
6f7201128c Drop "play" command.
It was used only for playing CDs via SCSI commands, which is what
CDPlayer also did; but this is not really much supported anymore,
so CDPlayer was removed years ago, and now this is too.

Its source code lives on at HaikuArchives.

Fixes #18236.
2023-01-31 17:32:51 -05:00
Augustin Cavalier
da49d61cb7 rtl8125: Modifications and additions to make it compile.
Tested by andreasdr and confirmed to work. Thanks!

Fixes #17835.

Change-Id: Ied6dd316741b9f0451fc0aeda69abdf9d8a5fb43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6042
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-31 03:00:36 +00:00
PulkoMandy
90e87426ac ffmpeg: enable Werror and fix all warnings
Warnings fixed include usage of various deprecated functions, structures
and fields of ffmpeg.

Change-Id: I8d6338ad282f214a805b8d746ce22e2f0895fb25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5954
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2022-12-26 15:16:19 +00:00
Jérôme Duval
3b8430dfcf strace: add an option to filter syscalls by name or by type
the type lists are hardcoded for now.

Change-Id: Iae89046ee52d3812354de619bfd9625217479c49
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5597
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-12-23 09:57:37 +00:00