Haiku monthly activity report - 03 and 04/2019
Hi there! We're back for monthly (or almost) reports! I was at the JDLL in early april, and while preparing for that I didn't have time to write a report, and no one else did it. So here we go with a 2 month report, prepare for something a little longer than usual. This report covers hrev52945-hrev53094.
mt fixed various places where -Werror=class-memaccess was breaking the build. These are cases where we initialize a C++ object with memset, which is normally not allowed. Usually this does not result in too much problems, but it could bite us if we made the objects more complex later on.
He also reviewed several of the results from the PVS studio analysis, and made fixes for the ones that pointed to actual bugs.
waddlesplash fixed various issues related to endianness management, unused fields, a few cleanups in the buildsystem, and a lot more. He also removed some remaining support for building parts of our code for BeOS or Zeta, which we don't really need anymore, and removed support for "version 1" hpkg files (we have never released any version of Haiku using it, the current format is version 2).
Lee Mon ran parts of the code through cppcheck and fixed various warning found by the tool.
PulkoMandy got the sparc build as far as bootstrapping a complete boot image. The next step is getting the bootloader to actually run on the hardware.
Kallisti5 made some progress on getting the RISC-V build up and running as well, work is currently in progress to backport RISC-V floating point math support into our C library.
The work on both architecture also led to cleanup of various endianness problems, as well as merging some old patches improving PowerPC support, and a cleanup of the floating point support in the C library - but much remains to be done. Waddlesplash was also involved in reviewing the changes and cleaning up the use of byte swap functions to have a single implementation for them.
Along the way, fixes were also made to the bootstrapping support, making it a little easier to use. This may be needed whenever we decide to have a major ABI breakage and need to rebuild all packages from scratch.
mmu_man made it easier to build "big endian BFS" for x86 machines. This makes it possible to mount PowerPC formatted BFS volumes on an x86 machine. For performance reasons, the Be filesystem uses the native endianness of the machine it runs on, and therefore there are two variants of the on-disk format.
Command line tools
Andrew Lindesay fixed the output of pkgman --help.
mmu_man added support for webloc files to urlwrapper.
The in-tree implementation of uptime was broken, we are now using the one from GNU coreutils.
Greg Crain improved timeout management in the XHCI driver.
Waddlesplash also put a lot of work into XHCI, fixing many issues and reworking large parts of the driver, making it behave a lot better on most machines.
Thanks to Waddlesplash we also now have an NVMe driver, based on the existing libnvme library. NVMe is a new way to connect SSD disks directly to the PCIe bus, avoidsing much of the overhead and complexity of SATA.
Waddlesplash made the "disable user add-ons" setting also ignore files in non-packaged, making it less risky and easier to test drivers by putting them there.
He also fixed an issue in the BIOS bootloader, which would confuse some BIOS versions by adding an extra field in requests to read data from disk. This should fix booting with these picky BIOS implementations.
Waddlesplash also fixed the usb_audio driver for SMAP, so at least it won't immediately trigger a kernel panic.
korli made minor fixes to the HDA driver.
PulkoMandy fixed timeout handling in the DHCP client, which would have trouble synchronizing in some cases as it would timeout immediately and send a lot of bogus packets to the DHCP server. This was especially visible on busy public networks.
SuperPower fixed the intel_extreme driver for the GMA960 chipset, where there was some confusion about the use of video modes extracted directly from the video card BIOS.
Calvin Hill added missing USB IDs in the Wacom tablet driver.
Les De Ridder and Hy Che worked on the btrfs code, cleaning various parts of the code and adding initial support for initializing btrfs volumes.
mmu_man added a work in progress driver for TUN/TAP devices, which will eventually allow support for VPNs, as well as sharing network interfaces with virtual machines running inside Haiku, when we get to that.
jessicah reworked the driver loading code in the bootloader, fixing a compatibility issue with the UEFI implementation in VirtualBox.
waddlesplash synchronized some network drivers with the FreeBSD implementations.
Often an overlooked part of our codebase, tests are very useful to make sure things continue working as expected. They allow to cover specific use cases for the API, hopefully in a way that makes them easy to debug.
korli reworked some tests for dlopen support in runtime_loader.
korli added various common pthread API extensions: pthread_attr_getstack, pthread_attr_setstack, pthread_getattr_np. These will ease porting of software written on Linux or BSD, since we now have similar APIs.
He also worked on improving fcntl and in particular the support for duplicating file descriptors.
Andrew Lindesay made some fixes to the buildsystem, making sure a version of python is available before trying to use it.
mmu_man re-added AutoRaise to the image, it's a DeskBar add-on that will automatically raise the active window to front after a short delay. This can be useful for focus-follow-mouse users who do not want to manually raise windows.
CodeForEvolution added a check in BPackageRoster to determine if a reboot is needed after updating packages. SoftwareUpdater can now make use of this and notify the user accordingly.
Jakob L Kreuze added support for M3U playlist in MediaPlayer.
Humdinger fixed some unusable keyboard shortcuts in Magnifier (they were in the user guide, but did not work. This shows the need for a QA team doing regression tests).
Waddlesplash fixed the launch process dependencies so that the system clock is synchronized as soon as the network is up. No more offset clocks!
mmu_man made it possible to run multiple instances of GLTeapot. If you were looking for an exciting demo of our software 3D rendering capabilities, this is it.
Some very old patches from Dancsò Ròbert were finally merged, bringing some new functionalities to DriveSetup. These were submitted as a large patch with many features and also several coding style violations. PulkoMandy split it into smaller parts to ease reviewing. If there is a single disk on the system, it is now enabled by default. A new menu allows to easily open a partition in DiskProbe for inspection.
John Scipione added right click and middle click emulation to the default window behavior, making it easier for users with 2 or 1 button mouse and touchpads to get around the system.
Preetpal Kaur made the touchpad preferences disable itself when there is no compatible touchpad found on the system.
mmu_man added a "catarea" tool, allowing to peek at the content of a particular area. Areas are shared memory allocations, to which any program may get access, given that it knows the identifier for the specific area. This allows sharing data between running programs in a very efficient way, since no copy of the data is needed.
Waddlesplash added and reworked various error checks in the kernel locking primitives, searching for a hard deadlock of the system where it wouldn't even be possible to enter KDL.
- Haiku activity report - February and March 2020
- Haiku field trip report - January 2020
- Google Code-in 2019 finished
- No, I'm not Haiku's lead developer
- Haiku monthly activity report - 12/2019
- Haiku almost-monthly activity report - October and November 2019
- Haiku monthly activity report - September 2019
- Node.js now available in Haiku
- Haiku monthly activity report - 08/2019
- GSOC 2019 Final Report