Commit Graph

61504 Commits

Author SHA1 Message Date
user
1132ecca07 PS/2 Keyboard: fix handling of Pause key.
- There is one single "Puase" key also acting as "Break"
- For historical reasons it sends a complex sequence (control + num lock) instead of having its own key code

Change-Id: If9fd84caf9a06cd8409b9c3642fe313a7c01fad1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3449
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-02 13:57:23 +00:00
CodeforEvolution
c6aa02dc69 wacom: SMAP Fixes and Refactoring
Utilize user_memcpy and IS_USER_ADDRESS when necessary to prevent SMAP violations.
Also add a "wacom_device_header" struct to more easily share data between the wacom
kernel driver and input_server addon.

Should fix #14589

Change-Id: I607a34c704b95eb80be38b6bd3ec3c915601a27c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3448
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-02 13:56:55 +00:00
Mitsunori YOSHIDA
6ef75c4f05 nfs: Fix panic occurs when creating a file
Fix an issue #5496 where panic occurs when creating a file with nfs v2
due to the newly generated vnode of the file is not published
and is still busy.

Change-Id: I4482fbe046e000eb799599fdeaab39b7812bd2ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3447
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-02 13:56:37 +00:00
Alexander von Gluck IV
478b23bf28 file_systems/nfs: Fix SMAP violations
* Try to return relevant errors when we can.
* The style on these needs cleaned up badly.
* I don't want the fix to be lost in style changes.

Change-Id: I8a1661385fbeb8eec86a2c15828b449980050a78
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3396
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-02 13:56:27 +00:00
Emir SARI
c19566e4c1 Set Noto Sans Mono as monospace default font
Should help improve [1].

[1]: https://github.com/haikuports/haikuports/issues/3116

Change-Id: I29dd94e3380c3a5935d47d97e2a2ac1c5fb7e774
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3070
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-29 18:40:39 +02:00
Adrien Destugues
fff9c8e3a4 Set a version for Noto font dependency 2020-07-29 18:40:38 +02:00
Andrew Lindesay
84ee86e3ee HaikuDepot: Fix Reference to NULL Ptr
Fixes a bug in R1B2 branch in relation to data
from HDS.

Fixes #16420

Change-Id: I8061b9ffd20962c8f56e11c72e8b08b58c9cb2e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3042
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-19 11:24:07 +00:00
Augustin Cavalier
cbab30ff92 CodyCam: Use "%s" instead of printf'ing a buffer directly.
Fixes #16375.
(cherry picked from commit 21e213d3b0)

Change-Id: Idde0810f6e0f92dcf23edc7cb82c82db66502815
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2999
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-08 00:50:29 +00:00
Augustin Cavalier
02b948fda7 app_server: Make use of BReferenceable in AlphaMask.
Extracted from https://review.haiku-os.org/c/haiku/+/2695
with a few minor tweaks.

May help with #16246, but I could only reproduce it intermittently.
(cherry picked from commit 176d0e1041)

Change-Id: I4dcd1e31d7c5f51d3d23ba6daae75d03875506ca
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2972
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-30 14:19:50 +00:00
Augustin Cavalier
f0a0bc14d5 app_server: Use RecursiveLocker in AlphaMask instead of BLocker.
This avoids creaing a semaphore where it is not needed, especially
as most of these locks are never used from another thread (in the
reports in #16246, there are thousands of semaphores from this
with only a small handful having a "last acquirer" != 0.)
(cherry picked from commit 67ace0bfab)

Change-Id: I9a879b2dda7534ce5587502d16af59fa9170a6bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2971
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-30 14:19:29 +00:00
Alexander von Gluck IV
c56aa038a0 radeon_hd: Fix chipset alignment bug, add missing Vega name
Change-Id: Id729d5ded86eee280db9eccf4165bef0db9e1f0f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2921
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:34:12 +00:00
X512
ff7f51f08d app_server: fix crash caused by missing locking
Change-Id: Ib9b0c2282f947c0c6ac61fc3e97f9eca7af8dda4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2891
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
(cherry picked from commit 638f8647a6)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2904
2020-06-11 18:24:54 +00:00
Autocomitter
bb9946aca6 Update translations from Pootle 2020-06-06 08:12:10 +00:00
Augustin Cavalier
4c383d13a8 HaikuPorts: Sync build-packages again.
Change-Id: I595af8dda23baad924a053ffa685ddddb83de11d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2884
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-06 01:35:52 +00:00
Humdinger
3ad7047a55 Updated Installer logo for R1/beta2
Back to the good old alpha release stamp.
The font of the stamp is called SISTEMAS by Manuel Lage, available at
https://www.dafont.com/sistemas-font-bt.font
Change-Id: Idb56b9f1c7aa75929dc629cb17ef0ecbc378defa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2881
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-05 16:05:25 +00:00
François Revol
dd035adcb1 strings.h: s/inline/__inline__/
As suggested by http://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Inline.html

This should fix building things like NBDkit.

Change-Id: I1da7fc140dd8451ff2ddaf599fe4e951401d0cb3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2794
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 8a9a366fef)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2880
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-05 15:32:17 +00:00
Augustin Cavalier
bb8c711b05 DefaultBuildProfiles: Enable HAIKU_OFFICIAL_RELEASE and force source inclusion. 2020-06-05 00:37:09 -04:00
Pascal Abresch
3c6422ea0f app_server: Fall back into non-matching font variants if necessary.
7a8d5a2db3 introduced that the fallback tries to match the style
instead of using regular, the fallback was broken in a different way until commit
4dcd8c81b1 fixed the remaining issue, this commit
makes the fallback first try the matching style and afterwards try the regular
style (so as to improve above falling back to regular in every case).

Fixes #16189.

Change-Id: Iee956c4c1461794b4836c94e09d66d8cbf196678
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Style fixes and use of BAutolock by me. Also changed the style fallback
to use style 0 instead of "Regular".
2020-06-05 00:22:44 -04:00
Augustin Cavalier
694af2941c HaikuPorts: Update build-package set.
This pulls in the final translations for applications for R1/beta2,
and also the new HaikuWebKit.

Change-Id: I2bfb8933dcf35239f6962f8bee2dea507dec6fd5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2869
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 734c1e0491)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2871
2020-06-03 04:12:15 +00:00
Augustin Cavalier
add96b6000 Revert "Add gmp and mpfr to the regular image package set."
This reverts commit ef78f1eda0.

The new package sets do not require this.

Change-Id: I009a242f16c44510940645e0b71baaf757eca44b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2868
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit e6bc6d8072)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2870
2020-06-03 04:11:56 +00:00
Augustin Cavalier
6a622cd71f repository_infos: Revert HaikuPorts to the "master" identifier.
See discussion in #16153.
2020-06-02 23:39:23 -04:00
Andrew Lindesay
d2d7e55ed8 HaikuDepot: Contents for Local Pkg (b)
Fixes a bug where contents are not displayed
for local files that are not installed.

Resolves #16161
Change-Id: I27abfd78bf7882b1961f8d9c6ade30d4c15ec2ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2865
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 16f2f8eb81)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2867
2020-06-02 23:02:48 +00:00
Augustin Cavalier
981ec23438 freebsd_network: Fix destruction of ref-counted ext_bufs.
The check as to whether or not the buf should be freed was wrong,
leading to incorrect frees.

Fixes double-free KDLs under the idualwifi driver that occur
on boot extremely frequently.

Change-Id: Ia411a6f5c31dd30764705cd87840797f862b4020
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2862
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit a68e59dd1d)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2863
2020-06-02 03:58:42 +00:00
Michael Lotz
7a6ce5791a kernel/vfs: Fix array size off by one in _user_open_query.
The BStackOrHeapArray was allocated with one byte less than user_strlcpy
would write to, corrupting random heap memory. The error was introduced
as part of hrev53864.

Fixes #16175.

Change-Id: I80e1a1bb104183545fbd2a2702cdf3dec089908d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2860
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 3ac5d98070)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2861
2020-06-01 23:06:16 +00:00
Andrew Lindesay
52267970dd HaikuDepot: Contents for Local Pkg
Enables the content tab for showing contents of
on-disk, but not yet installed package.

Resolves #16161

Change-Id: I5e4764cf3e9f1e46eafb3d98917a357fece854dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2853
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 6178aeb315)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2857
2020-06-01 00:34:15 +00:00
Augustin Cavalier
06f5af9c4d kernel/file_cache: Fix writing zeros in the cache_io case.
Should fix #16039 again.

Change-Id: I00c6566764a20e6ec5e8c99b0ebb2e304a5191ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2855
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 50c7fbacb7)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2856
2020-05-31 22:04:38 +00:00
Niels Sascha Reedijk
b24cb88492 Synchronize userguide with most recent translations 2020-05-30 10:36:55 +01:00
Autocomitter
122f96b011 Update translations from Pootle 2020-05-30 08:10:56 +00:00
Andrew Lindesay
5aea053d9f HaikuDepot: Refresh Repo Cache
When HD first loads in a new install, it will experience
a near-empty set of repositories.  This is because only
build-time repo caches are present.  This change will
cause HD to pull data from remotes on first load, in the
case that the cache is somehow missing and on a user-
initiated update.

Resolves #14840

Change-Id: I4f0e6c9fdba4141841cc167d7953967edb526033
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2821
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit d309d94089)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2848
2020-05-30 02:33:53 +00:00
Kyle Ambroff-Kao
d7d2c75f74 SecureSocket: Handle interrupted reads and writes
If a system call performed by SSL_read is interrupted by a signal, it
seems to set its error to SSL_ERROR_WANT_READ. This triggers logic
added in hrev53853 which assumes the caller is doing async reads and
returns B_WOULD_BLOCK.

This breaks uses of BSecureSocket that do blocking reads.

* Detect interrupted signal by checking for EINTR in errno.
* Adding this retry loop to BScureSocket::Write as well since it can
  have the same problem.

Resolves issue #15853.

Change-Id: I8198a8496fa3a2ccee00bda87375a482a0d4ba3d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2825
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 38963e7596)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2833
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-29 14:35:49 +00:00
Adrien Destugues
d2336febce WebPositive: update authors and version.
Change-Id: I273bad9a2fd7916867b52f1d4dd564755bc823d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2822
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 05bd53615a)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2823
2020-05-28 02:47:42 +00:00
Andrew Lindesay
b62b99f161 HaikuDepot: Changelog & Contents Tabs
Disable the changelog tab in the case that a package
has no changelog.  Also disable the contents tab and
do not attempt to load the package contents in the
case where a package is not installed on the host.

Resolves #15299

Change-Id: Id17daf46aba6709f35438db2ee30f3485fc251ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2749
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 8c6ebdec76)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2824
2020-05-28 02:47:24 +00:00
Autocomitter
f9b1dd0aef Update translations from Pootle 2020-05-26 05:55:35 +00:00
Augustin Cavalier
73383a0fb6 Locale: Enable folder/application translation by default.
Should fix #16076.

Change-Id: Ibf109453c11a83e840774c079c7878cc10f2dad4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2811
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f51ea162ef)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2812
2020-05-25 22:26:54 +00:00
Augustin Cavalier
926dd357ae HaikuDepot: GCC2 fix.
Change-Id: Idef303343a009df8ec858f5a2a596b6292366d57
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2806
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 60d011e07f)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2807
2020-05-25 02:18:40 +00:00
Augustin Cavalier
29bec8efb1 idualwifi7260: C89 fixes.
Change-Id: I8138f4ed4877b3f7e8eb54ad0bc64a60278e8b61
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2734
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f37d2d10a0)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2805
2020-05-25 01:40:19 +00:00
Augustin Cavalier
1c9e27c98d idualwifi7260: Port changes from newer FreeBSD.
This adds support for the 9xxx series of devices.

Change-Id: I43385e91b91201732397b79c38bd9bb4f3a18f1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2733
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit ba5694b017)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2804
2020-05-25 01:40:05 +00:00
Adrien Destugues
3568a92fa3 Create filesystem indices when creating Haiku image
Fixes #4424.

Change-Id: I737ee4f9bb70ce48c0c94f3a862a3073da8c0c4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2803
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-24 20:08:18 +00:00
Niels Sascha Reedijk
4f00c9cd55 AboutSystem: activate and update credits for hr and eo
Change-Id: Ie50b96823ad684bcaba39a85728a2ab2cf676613
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2785
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-24 15:53:41 +00:00
Adrien Destugues
e64e69fd87 Time preferences: fix button jumping position
Fixes #16102.

Change-Id: I8d89173009b21e1c31652bb2f011ceb46195c232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2795
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 307745c6ad)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2801
2020-05-24 15:53:25 +00:00
Andrew Lindesay
b05ceb5b54 HaikuDepot: Fix Crash on Quit During Load
If the system is currently loading-up and populating
data and the user quits then it was crashing because
of a call to a deleted ProcessCoordinator object.
This change implements the reference as BReference
ensuring that the ProcessCoordinator object is only
deleted after it is not used anywhere.

Resolves #16109

Change-Id: If535c151819da37d502283af3745e4148da69026
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2797
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f95ec23e95)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2800
2020-05-24 15:52:08 +00:00
Kyle Ambroff-Kao
6cd0211057 tcp: Don't skip TIME_WAIT state for loopback sockets
This fixes a SEGFAULT in the tcp add-on reported in issue #15952. See
that issue for some analysis.

The short version is that, when closing a session over the loopback
interface, there is a special branch which skips the TIME_WAIT state
and instead just releases the socket while handling a RST/ACK
segment. If the timing is right this can lead to the reference
counts becoming imbalanced, leading to the code in tcp_receive_data
segfaulting when it tries to release the reference it acquired from
EndpointManager::FindConnection.

I can't find any other systems which skip the TIME_WAIT state with
loopback sessions, and I'm not entirely certain that it's a totally
safe thing to do anyway. This patch instead just treats local sessions
the same way it does a remote session and uses the TIME_WAIT state.

Any workload which creates and discards lots of ephemeral sockets can
just use SO_REUSEADDR to handle this situation like any other system.

To add a final bit of safety, the only place where a net_socket can be
used after calling gSocketModule->release_socket(net_socket*) is in
tcp_receive_data(). release_socket() returns true if the reference
count falls to zero, deleting the socket. There was an unused segment
action flag DELETE_ENDPOINT that I renamed to DELETED_ENDPOINT, which
is used by tcp_receive_data to know whether its safe to release its
reference to the socket after calling TCPEndpoint::SegmentReceived().

Change-Id: I2652fb225c3c8419234cfd627f74ff2de8402003
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2793
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 51dd385e3e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2799
2020-05-24 15:48:18 +00:00
Andrew Lindesay
3594a3b432 HaikuDepot: Single Package Crash
In single package mode there was a crash owing to the
status bar not being present.  This may as well be
added because it provides some feedback that the
application is actually doing something.  The
behaviour of this is not ideal because the feedback
could be better, but it will resolve the crash
issue this ticket is raising.

Resolves #15964

Change-Id: I603a7b163139859f0c46a35ead0809e5d82e0f8d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2791
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 87016f8f49)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2792
2020-05-23 21:58:24 +00:00
Augustin Cavalier
e51536b91e app_server: Add locking to the Decorator class.
This class can potentially be accessed by multiple "tabs" (windows)
at once, so it must be read/write locked to account for that.

Fixes #16027.

Change-Id: I9cc741874caed4997497b03c8893bc2acb0e6fe7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2779
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f0a8640b45)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2790
2020-05-23 17:59:37 +00:00
Niels Sascha Reedijk
5527f11778 Documentation: add userguide in fur, id, ro and tr
Change-Id: Iee02ec9c62a3fdf14920c3b08ebb97c282a5aa91
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2788
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-23 17:52:39 +00:00
Adrien Destugues
0e55a366be FirstBootPrompt: adjust window size to font size
At 12pt, we try to fit a 640x480 display. But at larger font sizes we
have to allow some more space.

Fixes #16066.
2020-05-23 14:39:54 +02:00
Kyle Ambroff-Kao
96f1875f90 tcp: Remove sanity checks from BufferQueue in release builds
Each TCPEndpoint has two BufferQueue members, one for the send queue
and one for the receive queue.

If DEBUG_BUFFER_QUEUE is enabled, then most methods of BufferQueue
call BufferQueue::Verify(), sometimes twice. This member function
performs some sanity checking which requires iterating through every
net_buffer in the queue.

Disabling this in a debug build improved throughput by a factor of 5x
over the loopback interface on my laptop. Using iperf the measured
throughput went from 900Mbps to around 4.8Gbps.

This patch turns this sanity checking off for release builds.

* Rename DEBUG_BUFFER_QUEUE to DEBUG_TCP_BUFFER_QUEUE
* Change the default in BufferQueue.h to disabled
* Set DEBUG_TCP_BUFFER_QUEUE to KDEBUG_LEVEL_2 in
  kernel_debug_config.h

Change-Id: I262dac5d7e2889d2942bbdcf6b667cc0cbafa4c8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2780
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 44a4bc5fd6)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2782
2020-05-23 02:33:21 +00:00
Andrew Lindesay
9fa545e581 HaikuDepot: Performance
This change removes two mistakes I made a long time ago
that caused unnecessarily copying of lists of data. This
fix speeds up the UI alot.

This change also clears data in UI list elements when a
bulk load is requested.  It stops clearing otherwise and
instead uses "add" and "remove" operations in the lists
which is OK now because the UI list elements are much
faster than they have been in the past.  This removes
the strange clean-and-reload that was visible in the UI
previously.

A threaded package loading system was put in place a long
time ago, but with these performance improvements this
mechanism is no longer necessary; it has been removed to
simplify the code.

Fixes #16012

Change-Id: I393cee929695726539602b51630ae285fb8384f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2748
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit c419919252)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2777
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-22 14:16:10 +00:00
Andrew Lindesay
445d808c00 Packages: Local Repo Config Formats
The local storage of the various repositories' config
needs to cater for different generations of storage
formats and also needs to be able to swap out legacy
repository identifiers.

Change-Id: Ib4b3857254b7b703858eff6815e2d6c54d69da3c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1963
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 9d8d114499)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2776
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-22 14:15:53 +00:00
Adrien Destugues
4d34c12cd7 Fix building on Haiku 2020-05-22 16:13:00 +02:00