66417 Commits

Author SHA1 Message Date
Alexander von Gluck
f5db9be04a
HaikuPorts/riscv64: Update, openssl3, libssh2, nghttp2, etc
Change-Id: I8a56aa43f767a8b049ea3a6275f2265fb14b57e2
hrev57980
2024-08-16 19:44:09 -05:00
Pascal Abresch
41d2224b7e Switcher: fix build
Change-Id: I69b3643b89374d4aa4e6d8fe9cee105374bb8640
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6009
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev57979
2024-08-16 14:28:14 +00:00
PulkoMandy
174a9dbf80 ACPI: buffer output before sending it to dprintf
ACPI sometimes print a single message line using several calls to
its printf function. We directly map it to dprintf, which causes two problems:
- In the syslog, each call to dprintf is prefixed with 'KERN:'. So,
  several 'KERN:' were added in the middle of such messages.
- The successive calls to dprintf may be intertwined with logs from
  other places, making it difficult to see what message came from where.

To avoid these problems, store data in a buffer until we have a complete
line, and only then send it to dprintf. The resulting syslog is much
easier to read then.

Change-Id: I745e50b6fbbc3c875716fb68951d8d47312f96f6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6896
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev57978
2024-08-16 12:38:52 +00:00
PulkoMandy
81c6ba2aee acpica: Demote #error to #warning
Needed for the acpi_call tool.

Change-Id: I6b8440e9d011892b7f2fedc76cc34cf459ccbf22
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8000
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-08-16 12:38:52 +00:00
PulkoMandy
6221fe6648 ACPICA: re-apply Haiku patches
These were upstreamed in https://github.com/acpica/acpica/pull/918

Unfortunately the last release of ACPICA is just before merging these
changes.

Change-Id: Ib183235d9197bed0a421eec9adfa68c1a13c6bf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7999
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-08-16 12:38:52 +00:00
PulkoMandy
6dde014f76 ACPICA: update to 20240321
Change-Id: I7a763e212e9a658d7655ae0910e0d00559826121
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7998
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-08-16 12:38:52 +00:00
Maite Gamper
ba4478ce60 openfirmware: set the console write handle properly
This change fixes the console on PowerPC machines

Change-Id: I3fdf3fb37e5358e828195803b21153a506e6c7e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8040
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57977
2024-08-15 21:06:01 +00:00
Augustin Cavalier
ccc8dff0cc kernel/timer: Fix up previous commit.
Incorrect 'rebase' from working tree changes...
hrev57976
2024-08-15 12:48:16 -04:00
Augustin Cavalier
74238e36f2 kernel/timer: Code cleanup.
* Remove some unnecessary casts.
 * Clean up linked-list logic in add_event_to_list(). As previous->next
   will just be the same as "next", we can use that directly and thus
   remove some code duplication.

No functional change intended.
hrev57975
2024-08-15 12:38:51 -04:00
John Scipione
3fb85af36c Tracker: Enable/disable New Folder/Template menu on context-click.
(kWindowPopUpContext not kPosePopUpContext).

Fixes #18975 again on context-click

Change-Id: I4e3cf134f318e513c40aad42001257437aea70c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8039
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57974
2024-08-15 16:17:49 +00:00
PulkoMandy
c251e4e13b BMenuItem: draw checkmark on marked item in matrix-layout menus
Fixes #18990

Change-Id: Id2f3b78bb443b8f76ab0bdde4318ddfd95d283bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8038
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57973
2024-08-15 11:18:20 +00:00
Augustin Cavalier
950900a9e8 ramfs: Add static_assert regarding VMCache class size. hrev57972 2024-08-14 18:59:03 -04:00
Augustin Cavalier
c0a12a6b7d ramfs: Properly acquire/release references to the vnode in VMCache.
This is what AcquireStoreRef/ReleaseStoreRef are for. We don't use
VMVnodeCache here because that is a non-"temporary" cache that
writes its pages back to disk, while we need a store for the pages
that won't discard unmodified ones when memory is low.

Add a close() to the mmap_cut_tests, which triggers the case where
this is important (a file is unlinked, mmap'ed, and then the lone
FD referring to it is closed, triggering the file's deletion unless
the mmap also acquired a reference to the vnode.)

Fixes KDLs with Firefox test builds.
2024-08-14 18:36:33 -04:00
Augustin Cavalier
a8877df135 kernel/vm: Add "unmergeable" flag to VMCache.
ramfs needs to create caches that are both temporary and unmergeable,
so add another flag to make this state possible.

Otherwise, mmap'ed files from ramfs might wind up in VMCache
trying to merge the caches when the last one is closed, which
we don't want.
2024-08-14 18:34:02 -04:00
Augustin Cavalier
1f1be52007 runtime_loader: Properly unload libraries whose dependencies fail to load.
If some (but not all) of the dependencies failed to load, they
will be in an inconsistent state (some NEEDED unset/uninitialized, etc.)
In order to neither leak this data nor have it cause problems later,
we should unload actually call unload_library() and thus put_image()
to have the unused/uninitialized dependencies be propery unloaded.

To make this work correctly, adjust unload_library to only call
the exit hooks if the initialization hooks were also called.

Fixes a crash in Firefox startup when some dependencies aren't installed.
hrev57970
2024-08-14 15:45:50 -04:00
calisto-mathias
78c0fc35a7 Find Panel: Implement Folder Filtering
This commit introduces folder filtering to the Find Panel and associated
results window.

--> Features:
	--> Directory Selection: Users can select directories using the
	"Select a Directory..." option, now available in the same menu
	as volume selection.

	--> File Panel Integration: Upon selecting this option, a File
	panel will appear, displaying only folders or symlinks to
	folders for selection.

	--> Folder Filter Management: Selected Folders are shown in the
	same menu, with the corresponding menu item marked. Clicking on
	the menu item removes the folder filter.

	--> Recursive Search: The folder filters are combined using the
	OR method. Results will show items from any selected folder,
	recursively checking all subfolders.

--> Bug Fixes
	--> Resolved an issue with the saving functionality when resetting
	volumes or loading a query.

Change-Id: I8eaab6ad8ebd3de09944a8bcf03f100c451225ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7845
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
hrev57969
2024-08-14 19:19:10 +00:00
Andrew Lindesay
c8dfbad953 HaikuDepot: Show all publishers
Change-Id: Ib59ce631c97568e4625e6921f917aab0fb51733f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8012
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57968
2024-08-14 17:29:41 +00:00
Humdinger
eea5774f46 HIG: add section on "Recently Used Files"
Change-Id: I6d4190adc8a77ce755435f415b6bd281921990d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8005
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57967
2024-08-14 10:49:07 +00:00
Augustin Cavalier
b3a64f5856 BListView: Do not call virtual ScrollTo(BPoint) method in ScrollTo(index).
ScrollTo(index) was introduced only in 82bfaa954dcfd90582fb2c1a0e918971eea57091,
in the implementation of autoscroll-on-drag. But if we call the virtual
methods from here, subclasses might recurse back into us when calling
other methods (MouseMoved() in particular), so in order to avoid
an infinite recursion we have to call ourselves explicitly here.

Fixes a crash on drag in list views in WonderBrush.

Change-Id: Ie7a1bbb75161815bac1f5a800c9ba5830ac43a0f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8014
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
hrev57966
2024-08-14 00:38:40 +00:00
Augustin Cavalier
cb92249c88 kernel/timer: Use lockers in add_timer().
No functional change intended.
hrev57965
2024-08-13 19:20:40 -04:00
Augustin Cavalier
9921f44462 kernel/x86: Clear %edx in syscall handler if the return value isn't 64-bit.
Otherwise, we will leak random kernel values to userland, and
also have incorrect output in strace for anything that doesn't
have a 64-bit return value.

Fixes strace displaying return values on 32-bit x86.

Change-Id: Ibd6304bd989580f64b25f1505a5e02fb928dce84
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8013
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57964
2024-08-13 21:49:48 +00:00
Augustin Cavalier
a26c33bd97 DefaultBuildProfiles: We now have Python 3.10.
Change-Id: I848dfecf13409e642e642e1538f74debe144f72b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8010
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit fbd5066b1af60dd6566f3beb7486d41706dd1269)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8023
hrev57963
2024-08-13 00:10:46 +00:00
Augustin Cavalier
72be912bae BuildFeatures: Don't specify libtiff SOVERSION.
Let the compiler figure it out.
hrev57962
2024-08-12 16:47:41 -04:00
X512
ebe72d868b build: put each package build entry to separate line, adjust code style
Change-Id: Ib682fc276a08131e69fcdaa2cdba8c22d9e54a1a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8004
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57961
2024-08-12 20:40:07 +00:00
Augustin Cavalier
427d0b067b HaikuPorts: Synchronize. hrev57960 2024-08-12 16:31:27 -04:00
Augustin Cavalier
380ed24e11 libbsd: Fix kqueue reporting errors when selection fails.
We shouldn't proceed to "wait" if we got errors back from "select",
but should just return the count of errors-reported-as-events
directly, or return the status if we can't report them that way.

Fixes libevent kqueue backend hanging forever on startup.
hrev57959
2024-08-12 15:51:24 -04:00
Augustin Cavalier
a432595dc4 nvme_disk: Don't reallocate the vtophys array if it was too small.
The "(request->Length() / B_PAGE_SIZE) + 2" calculation should suffice
for any physical_entry runs that we can actually use as unbounced I/O,
since all entries except the first and last must start and end on a
page boundary.

Also, use alloca() if the buffer length is small enough.
hrev57958
2024-08-12 14:52:40 -04:00
Humdinger
d9739e69b8 FSUtils: Fix entry_ref of renamed file, locale fixes
FSCreateNewFolder(): Fix entry_ref of renamed file
* If FSMakeOriginalName() renames a file, because the file name
  already exists, FSCreateNewFolder() needs to set the ref to the
  new filename.

* Fix copy-suffix in FSCreateNewFolder(). The space comes before the dash: " -".
  Before, you ended up with "File name-  2"

FSMakeOriginalName(): Make truncation localization aware

* In FSMakeOriginalName() don't hardcode the 4 characters of "copy" when
  determine to truncate an overly long filename.

* Adjust comment in that regard + typo fixes.

* Localize default suffix " copy".

Change-Id: Ica880a8b831b321657f3f2d3825509b7fb9fe72d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7960
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57957
2024-08-12 18:20:27 +00:00
Máximo Castañeda
978af2370b app_server: avoid duplicate scan of font directories
When scanning a directory for fonts we also include its subdirectories.
Those may already be in the list and may even have been scanned before.
That happens in a typical setup, where the system fonts directory is
obviously included and then a subdirectory is added as part of the
default mappings.

See #18979

Change-Id: I92c6b7965aee030520402e2d53c4190fdca8b0e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8001
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57956
2024-08-12 17:26:50 +00:00
John Scipione
6edfc6e012 Tracker: Repopulate menus when entering/leaving volumes
Change-Id: Ifef64abb6ae2865d281b66fd2de7e2b7ba067ca6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8003
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57955
2024-08-12 16:56:27 +00:00
John Scipione
8717bb87dd Tracker: Enable/disable New Folder/Templates on UpdateMenu()
Fixes #18975

Change-Id: Icbcf4bb95a999bdf7ce0afed2051c2d3cfb59971
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8002
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-08-12 16:56:27 +00:00
Niklas Poslovski
19289f5b3a Appearance: Make B_MENU_SELECTED_BACKGROUND_COLOR darker in dark theme
Change-Id: Ia9845b45b04f92e6e1e40fa16ef172760d75a664
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7937
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57954
2024-08-12 16:55:48 +00:00
Augustin Cavalier
8997ebb0a5 kernel/int: Add assertion that interrupts are still disabled after calling handlers.
They should be, but in the case of misbehaving drivers they may not.
Should help with debugging #18982.
hrev57953
2024-08-11 20:02:06 -04:00
PulkoMandy
909af08f43 pkggraph: merge _devel packages with their main package
Makes the graph a bit more reasonable.

Change-Id: Ib1ef182fb0c6c0c88fafe2dd194cae72200d7826
hrev57952
2024-08-11 10:51:39 +02:00
Augustin Cavalier
dad66ad308 OptionalPackages: Re-add perl. hrev57951 2024-08-11 00:05:33 -04:00
Augustin Cavalier
39d510f7dd HaikuPorts/x86_gcc2: Synchronize.
Still TODO: libtiff.
2024-08-10 17:35:12 -04:00
Augustin Cavalier
050c34d5d1 Updates in preparation for package sync on gcc2h. 2024-08-10 17:34:55 -04:00
PulkoMandy
9d62be21bf gnu/sched.h: missing features.h include
Change-Id: I5032dbf08a034df77ab4b436178d08fba2137da5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7974
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57949
2024-08-10 11:26:53 +00:00
Autocomitter
902479359a Update translations from Pootle hrev57948 2024-08-10 08:18:13 +00:00
Autocomitter
b622b2066e Update translations from Pootle 2024-08-10 08:18:13 +00:00
Autocomitter
4aa39172c0 Update translations from Pootle 2024-08-10 08:18:13 +00:00
Autocomitter
1780e1dc6c Update translations from Pootle 2024-08-10 08:18:12 +00:00
Autocomitter
28f7332345 Update translations from Pootle 2024-08-10 08:18:12 +00:00
Augustin Cavalier
5a09cea418 FAT: Fix type of volumeCluster.
pcbmap takes a u_long.

Fixes #18958.
hrev57947
2024-08-10 00:53:24 -04:00
Augustin Cavalier
7dea48f378 HaikuPorts/x86_64: Synchronize.
Includes OpenSSL 3.0, Python 3.10, and more.
hrev57946
2024-08-09 22:49:52 -04:00
Augustin Cavalier
101769a583 BuildFeatures: Updates for libtiff >= 6.0. 2024-08-09 22:49:51 -04:00
Augustin Cavalier
a79f10b8d1 JPEG2000Translator: Tweaks for usage with the new JasPer version. 2024-08-09 22:49:51 -04:00
PulkoMandy
0ea56347bd Update to OpenSSL 3.
- Rename the package in Jamfiles as appropriate (but don't rename the
  build feature)

- Remove libnetapi SSL class (not needed anymore, OpenSSL now knows how
  to use pthread functions directly and seed its random generator)

- Rename or remove a few other deprecated functions

Change-Id: I624833923e113a8235932d7ce8020bf27c6e2ea6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7717
2024-08-09 22:49:51 -04:00
Augustin Cavalier
3ecbb34240 IORequest: Correct major oversight in finished callback API.
The IORequest internally likes to deal with transferEndOffset
not transferredBytes because of sub-requests potentially being
prepared all at once (in some paths in the I/O scheduler),
thus fTransferSize can get incremented in Advance() before we have
actually executed that transfer.

But external consumers much prefer just knowing transferredBytes
not transferEndOffset. And many of them actually named their
variables that (or "bytesTransferred") and just passed the
transferEndOffset through to variables with that name! That's
obviously wrong, and it's surprising it wasn't discovered before now.

The problem was uncovered by repeated KDLs in PrecacheIO.
That method used the "bytesTransferred" value as a count of
pages transferred, which would then run past the end of the array
if the transfer start offset was not 0 (which the majority
of the time it would be, since this method gets called on
the first mmap() of a file, probably before any pages are read in.)

Most other consumers of this API did not check the value, it seems,
or otherwise had some mitigating factor that prevented it from
causing more problems. An exception is the page code, which
may have spuriously considered writes as successful when they
really weren't.

May fix some of the "invalid concurrent access to page" KDLs.
hrev57945
2024-08-09 18:04:27 -04:00
Augustin Cavalier
4909eb2091 app_server: Move user-path management more into GlobalFontManager.
The Desktop instance is currently a singleton, and by the time it starts
the GlobalFontManager's initial scan is already running, so if we
register the user paths then it will spend a long time waiting for
the lock. GlobalFontManager didn't even use the provided UID,
so just move the add-user-paths logic into the constructor.

This helps with #18669 on systems that have the default fonts set
and no font settings file. (On systems that do, the global font
manager lock will be acquired in desktop settings initialization.)
hrev57944
2024-08-09 17:10:13 -04:00