66099 Commits

Author SHA1 Message Date
Andrew Lindesay
43e19c4715 HaikuDepot: Fixes for Language Handling
Change-Id: Ic6d5a59396f778f684985fad0e39985197c380b3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7524
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57649
2024-03-18 04:10:28 +00:00
Alexander von Gluck IV
a40cec84d6 riscv64: Bump icu to 74, bump bash, add file, bump xz
* Update bash to a less-buggy working native build.
* Add file for python3
* Add readline for bash
* Update xz_utils to a working native build.

Change-Id: Iedfcb8277b242ea43a2fd870850057429c6b09e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7528
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
hrev57648
2024-03-16 12:22:21 +00:00
Autocomitter
be3a0d6043 Update translations from Pootle hrev57647 2024-03-16 08:17:42 +00:00
Anarchos
935c0c739c vfs: rename is a no-op when same path.
The old behavior was introduced by the commit f40c5e32115c22bd1b76ee1abe607040c09681a9 (05 Nov 2009),
while the new behavior is specified by POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html

The new behavior permits to rename an empty folder to itself without error, which was
encountered here: https://github.com/ocaml/ocaml/blob/trunk/testsuite/tests/lib-sys/rename.ml#L85

Fixes #18851.

Change-Id: Ie4e2999b695b8bb3ee69b1e3ae487323d8315d5e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7527
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57646
2024-03-15 16:46:25 +00:00
Augustin Cavalier
2812960782 network: Remove unnecessary WeakReferenceable::PrivatePointer checks.
These aren't needed anymore after the last commit.
hrev57645
2024-03-14 17:15:59 -04:00
Augustin Cavalier
776d091d8a WeakReferenceable: Return NULL in GetReference if the pointer is gone.
Fixes a major API footgun that caused #18759.
2024-03-14 17:15:59 -04:00
Augustin Cavalier
45bd581b70 media/ffmpeg: Pass most packet metadata to decoder.
While AVPacket itself contains other fields, the
important ones are all static, and fit in 64 bytes.
So we can put them into the chunk media header directly
and then grab them again in AVCodecDecoder.

With that passed through, we can then use the
best_effort_timestamp, as it's more likely to be
correct.

Change-Id: Ied82137694f1307d4dcb177f3f9a7cb6b798461a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7525
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57644
2024-03-14 20:39:02 +00:00
Augustin Cavalier
6c05cfc094 media/ffmpeg: Add cast to appease GCC2. hrev57643 2024-03-14 16:07:23 -04:00
Augustin Cavalier
3a3b54380a media/ffmpeg: Fix frameCount calculation when the stream duration is unset.
Fixes #18844.
hrev57642
2024-03-14 15:40:23 -04:00
milek7
04ac3d9687 arm64: Implement arch_cpu_sync_icache
Change-Id: I9df1e272971e1a3fd34297f24c6dd7b3d247c190
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7522
Reviewed-by: David Karoly <karolyd577@gmail.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57641
2024-03-13 18:06:18 +00:00
milek7
490d2ed427 arm64: Remove arch_cpu_memory_read/write_barrier functions as they are not used anywhere
Change-Id: I48af0ea175b32f86ed7cbceb079fa3866e8882ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7521
Reviewed-by: David Karoly <karolyd577@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
hrev57640
2024-03-12 20:45:00 +00:00
milek7
93c6a62bee arm64: Reset state in _fp_save to prevent it from affecting kernel
Change-Id: I5ef64eefc05735bd38314415f644f0124aaf607b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7520
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: David Karoly <karolyd577@gmail.com>
hrev57639
2024-03-12 20:44:43 +00:00
milek7
6034ee94a2 arm64: Use WFI for idling
Change-Id: I00f17c1db7c032879da59d17c67c13c24e0b9ef8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7519
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: David Karoly <karolyd577@gmail.com>
hrev57638
2024-03-12 20:44:21 +00:00
milek7
6f1b41351e acpi: Fix ACPI_FLEX_ARRAY in acgcc.h
acgcc.h defines ACPI_FLEX_ARRAY as struct containing empty struct
and flexible array member. This leads to unintended consequences when
it is compiled as C++ code, because empty struct in C++ is not zero-sized.
This breaks querying interrupt numbers in acpi_irq_routing_table.cpp.
Apply fix from upstream: bce7c55e99

Change-Id: I8cadbacd564660b0fad9addd2ce58f39c6f45ac2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7516
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57637
2024-03-11 19:09:37 +00:00
milek7
cd806508a8 acpi: Use device node when resolving routing table link devices, because it could be relative path.
Change-Id: I2f0d3e5e8af27f5f42913d0cda23ad38437c5ed3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7515
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-03-11 19:09:37 +00:00
milek7
357ab76ef2 acpi: Fix cleanup at initialization failure.
Aside from leaking resources it caused a race that could segfault
DPC thread when its stack was unmapped.

Change-Id: If6943e7fd834cac8f9807b85ecbb77e227f47a94
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7512
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-03-11 19:09:37 +00:00
Andrew Lindesay
866b1c0efe Locale : Tests for lang parsing
Additional tests for parsing the language from
an ID.

Change-Id: Ia22b5e528a0dd9bdf10f3f060b01429fc95a799b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7517
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57636
2024-03-11 14:13:29 +00:00
Máximo Castañeda
a31ade72ce BFont: remove default values from ambiguous method
Noticed by Joachim Mairböck after I hastily merged change 7402.

Also add named variation instance selection for fonts loaded from memory
areas like there already is for files.

Change-Id: I76de22181dc39559956c25987165be2f8a8c4a37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7493
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57635
2024-03-10 09:18:45 +00:00
Autocomitter
993468cc20 Update translations from Pootle hrev57634 2024-03-09 08:22:06 +00:00
Jérôme Duval
142723d197 libbsd: fix timespeccmp()
Change-Id: I5c1b1e5c4c583c0758b9f1b6eee67cb83053461d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7514
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57633
2024-03-07 21:40:05 +00:00
Jérôme Duval
afeee28538 network/stack: fix trace build
Change-Id: Idbb27469bfcafaecbca5e13378a3e0c8d30d4201
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7513
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-03-07 21:40:05 +00:00
milek7
51edf9322c arm64: Save/restore TPIDR_EL0 in _arch_context_swap
It's not used for anything by the OS but userspace might want
to use it for its own purposes.

Change-Id: Icda4bcd6de9d68596555e81293c8bd075f80a2a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7511
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57632
2024-03-07 15:53:37 +00:00
Oscar Lesta
ea989da7f1 SetupEnvironment: export XDG_STATE_HOME env var.
Fixes: #18257.

Change-Id: Id7f81b4be3b63f383963f0d752e6ffeda41c3945
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7506
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57631
2024-03-07 15:53:06 +00:00
milek7
06fae14eb9 arm64: Save/restore FPU state when handling IRQ or syscall
Change-Id: I8b2a36d57f410c0d06ca5ce90d1b997494072c94
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7510
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57630
2024-03-07 13:28:27 +00:00
milek7
b6fd30b0ed arm64: Declare exception handlers as STATIC_FUNCTION
Branch inside exception vector slot is emitted through PLT veneer,
which clobbers x16 and x17.

Making the function static removes the veneer, and fixes the problem.

Change-Id: If8810999675b6e36926be9806e23a78b7e5c0f10
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7509
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev57629
2024-03-07 13:27:30 +00:00
X512
02463fb461 kernel/int: consolidate interrupt vector number to int32
This is no-op for 32 bit platforms because `int32` is defined as `long` there.

Change interrupt vector number from 64 bits to 32 bits for 64 bit platforms.

Change-Id: I52d1ad616cab16488804e9733c7afaf772a670ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7507
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
hrev57628
2024-03-06 16:03:45 +00:00
PulkoMandy
0e703d1f1e vfs: log in syslog which inode is preventing an unmount
This may be somewhat helpful to investigate problems when unmounting
fails.

Change-Id: I72b70a34ca43697f22a13db6aff342abce38cd78
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7501
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Rene Gollent <rene@gollent.com>
hrev57627
2024-03-05 11:49:21 +00:00
Jérôme Duval
49d736ca2a tcp: actually send finish when needed by the state
fix #18327 after hrev57546

Change-Id: I352a325f3c2068d06996c278246f7a30f5bfcbe0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7504
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57626
2024-03-04 19:23:28 +00:00
PulkoMandy
35718d84c3 ffmpeg: Fix build with tracing enabled
Change-Id: I72cf1ce895baf3380568fbb0f0e8a92e79c5a53b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7500
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
hrev57625
2024-03-04 15:33:35 +00:00
PulkoMandy
7845db65a2 Remove wqy_microhei font from Haiku release images
It has been replaced by Noto as the default font for CJK characters and
is not referenced anywhere else anymore.

Change-Id: I9eb706531deb44395d71e0a04b0ec5e2f2dea230
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7499
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-03-04 15:33:35 +00:00
Oscar Lesta
5c5467233d tests: fix format warnings on GetMouseTest.
Was giving:

"warning: long int format, different type arg (arg 2)"

On beta4 32 bits.

Change-Id: Ifd50eaff8d40bf31d24db4441b15aad5590b8c95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7502
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
hrev57624
2024-03-03 19:35:30 +00:00
Augustin Cavalier
92a87afc36 Appearance: Remove some dead code.
This is now managed in another class entirely.

Change-Id: Ib415b17b5785b9077b42146fff97d85184b23a67
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7478
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57623
2024-03-03 16:53:43 +00:00
Oscar Lesta
7eefe785ff keymaps: fix empty "right option" key.
Fixes #18833.

Change-Id: I5d46ea11581af48e6fd6f38003a589ca700b07f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7497
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57622
2024-03-03 15:09:55 +00:00
Pascal Abresch
03e4248786 AboutSystem: fix the build
Change-Id: Ie0c34be2cccf567d624449175b1e54f29c2e7602
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7498
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
hrev57621
2024-03-03 09:39:53 +00:00
Pascal Abresch
e908eeabb6 Credits: add nephele and humdinger to maintainers
Change-Id: I19731c575fbe380ef9f788476852d9a3f33bcbbd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7496
Reviewed-by: humdinger humdinger <humdinger@mailbox.org>
hrev57620
2024-03-03 09:20:08 +00:00
Andrew Lindesay
bf866d5ef7 HaikuDepot : Improve Language Code Handling
HDS is soon going to be enhanced to deal with more than
just the two-character ISO language codes that it
currently supports. The logic in HD is currently expecting
that HDS will only supply these two character codes. This
change is about making adjustments to be able to cater to
any ICU language IDs from HDS.

The naming in HDS is still going to continue to use the
terminology that it currently does; it will call the
identifier for a language a "natural language code". The
HD source will instead reflect the nomenclature of ICU
and call the same thing a language ID.

Change-Id: Ib138c2e3b7b667edf15cd497c2f710f80b3c29f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7424
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
hrev57619
2024-03-02 20:55:05 +00:00
Autocomitter
56030d2d7b Update translations from Pootle hrev57618 2024-03-02 08:21:29 +00:00
Jérôme Duval
d0f06357f5 app_server FontManager: load all fonts and named-variants from a file
BFont::LoadFont can now use an index (0-based) and an optional named-instance (1-based)
to select the font variant from a file.
BFont::LoadFont can also use an index when loading from memory.

Change-Id: I0ce3eb6cc77d32cf43847416561eafe3063ca693
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7402
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57617
2024-03-01 18:04:33 +00:00
Augustin Cavalier
fe8f7e314e TCP: Let EndpointManager set Local and Peer addresses.
The Local address will apparently be set by the module->bind() call
in EndpointManager::_Bind(), while the Peer address will be set by
EndpointManager::SetConnection().

This means that if BindChild() fails for some reason, we will now not
be left in a state where the LocalAddress is set but we are unbound.
That could be the cause of #17058, as that panic occurs when
TCPEndpoint::IsBound() returns true, but we have not been added to
the bound hash.
Change-Id: I3121d0d99289d8cf83c7ed3c3e2d413feb6dad70
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7490
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57616
2024-03-01 12:58:37 +00:00
Augustin Cavalier
8da8973460 iaxwifi200 & idualwifi7265: Port a fix from OpenBSD. hrev57615 2024-02-28 18:26:08 -05:00
Calisto Mathias
d62ce6347f Device Tab View: Remove Unnecessary Tab View By Replacing it with required Properties View
* Deleted all the unnecessary lines of code and replaced the tab view with its direct child view.
Also changed the MessageReceived Functions in order to incorporate the change.

[Review 1]: Added the required Whitespace

Fixes #18213

Change-Id: Ibe4e1c2e3cb3acca58b3cb76f93c8184157d3cfe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7489
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57614
2024-02-28 23:19:23 +00:00
Calisto Mathias
ffa42ceaf7 MediaPlayer Settings: Fix Misalignment Issue for 2nd and 3rd Checkboxes
* Replace GridLayout Implementation with the GroupLayout In order to fix the misalignment issues

It seemed that the GridLayout implementation for the alignment was causing issues in the position of the
two checkboxes. Replacing this implementation with the GroupLayout class fixes this issue in a rather
simple way. Made a certain fix (upon reading the review) in order to incorporate the fix for all font
sizes as well :)

[Review-nephele]: Removed the unwanted tab-space according to the rules listed in the style guide :)

Fixes #10475

Change-Id: Ic6804cf6c3d20261ab00ce4abd130c46e304e881
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7481
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
2024-02-28 23:19:23 +00:00
Pascal Abresch
b005f8c975 DeskCalc: Fix expressionView text color
Also makes DeskCalc use the Panel text color if the contast is
sufficient
Change-Id: Ibe2d0ad4ba5958f2629be3759091233ad86bcc9d

Change-Id: I51cd7a06e6ea236ec3325d1787ff72ad489fe868
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7488
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57613
2024-02-28 23:18:27 +00:00
X512
629f071bb9 pci: extend MSI interrupt vector number to 32 bits
Also increase MSI message data size to 32 bits according to PCIe spec.

Remove 0xff check for MSI interrupts because it is potentially valid
interrupt vector number. Reject 0xff only for legacy pin interrupts.

- MSI-X supports up to 2048 interrupts per device that do not fit to
`uint8`.

- Non-x86 systems may use separate interrupt vector ranges for
hard-wired interrupts and MSI interrupts so `uint8` is not enough to
represent all of them.

Change-Id: Iaf9ffb197ec23db0f97ffe3ea756d28d7bfc8705
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7433
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57612
2024-02-28 23:17:42 +00:00
Pascal Abresch
da24b14bf2 FlatControlLook: build fix
Change-Id: Iecc2e406dc5c97f9cd45c6ba1e4c279f63aa166c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7487
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57611
2024-02-28 18:36:23 +00:00
Pascal Abresch
4d120bec16 Tests: fix kit/interface/GetMouseTest
Change-Id: I7b17fe378aa7cc8e100e9cea526b2c1c04757681
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7486
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
hrev57610
2024-02-28 17:53:38 +00:00
Pascal Abresch
f3fc706a68 Tests: Disable PPP tests
Change-Id: I2f8957dd52c32dbfb6bb5efdef64c48aa599692e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7483
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-28 17:53:38 +00:00
Pascal Abresch
d260dfde10 Tests: fix app/messaging compile
Change-Id: Idf5311d8ad29bc96fc2d0d24b9e0b0124d69b43d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7482
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
2024-02-28 17:53:38 +00:00
Pascal Abresch
9c274ccd09 Document new rgb_color apis, apply their usage.
Change-Id: I48f1bedd3abfb3b445c1c7090ce43504bcff4537
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7485
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-28 17:53:38 +00:00
Jérôme Duval
b3a7feb168 network/ping: remove workarounds for connect()
Change-Id: I42829566a0f449f1a46f029aaff577efb30ef79b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7477
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57609
2024-02-27 22:20:01 +00:00