Commit Graph

62681 Commits

Author SHA1 Message Date
CruxBox
19488d5c68 xfs: Reading Node Directories
Node directories can now be read. With this, extent directories are
complete.
Change-Id: Ic42c8464e810137cff4946e8c975edc121daaa4f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3045
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 14:03:24 +00:00
Alexander G. M. Smith
3376ed1a72 Package Kit: Proper Installation for First Boot Packages
Do the final installation operations for all the packages in the
/system/packages directory when the OS is booted for the first time.

This will run their post-install scripts, create users, groups and generate
settings files (marked with a package version attribute).  Previously we just
ran all the shell scripts found in the /system/boot/post-install directory
(don't do that as much now).

Fixes bug #14382

This patch has simpler code flow in CommitTransactionHandler::_ApplyChanges
Tested on 32 and 64 bit systems.  Once it's official, need to remove the
open_ssh redundant post-install script that creates users etc. from HaikuPorts.
Now we can notice bugs like package version attributes on settings files aren't
fully working. :-)

Didn't remove special case for add_catalog_entry_attributes.sh since it
still does stuff that the build system doesn't do.  Might be able to add
that script as part of the Haiku.hpkg.  See change 3751 for removing it,
https://review.haiku-os.org/c/haiku/+/3751

Change-Id: I3807b78042fdb70e5a79eca2e2a45816ece0236f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2342
Reviewed-by: Alexander G. M. Smith <agmsmith@ncf.ca>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-14 09:10:18 +00:00
Murai Takashi
e459857d1c BMessage: Fix declared variable-length array has negative size
Add checks for value of 'size', since FlattenedSize() may return
negative value (B_NO_INIT).
Pointed out by Clang Static Analyzer.

Change-Id: I68176ee47076512a0b96539f9986ac5edbb587af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3772
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 09:16:47 +00:00
Jérôme Duval
06a78d0d88 runtime_loader: set default alignment to max_align_t if available
...as done by mmlr in malloc_debug.
TLS blocks are expected to be aligned, gcc happily uses SSE instructions,
triggering exceptions.

Change-Id: I5a7bfe287600286e724cd13fe9aa7c7916091979
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3768
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 09:16:31 +00:00
Autocomitter
9aed476999 Update translations from Pootle 2021-03-13 08:45:30 +00:00
Andrew Lindesay
564de1924a Locale: Support for Percent Formatting
Updates BNumberFormat to be able to format
percentages.  Also re-introduces some unit
tests and updates the BNumberFormat ones.

This doesn't actually fix #16312 as the
defaults for percentage formatting don't seem
to track the selected language, but goes part
way there.

Related to #16312

Change-Id: Id6ddf426ce5571f4e8513c0eb1663cf42ac53cb1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3767
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-13 00:29:32 +00:00
Humdinger
4c2d3a38ad Web+: Copy script console items to clipboard
For easier bug reporting.

* Allow multiple selected items
* Copy the selected items to clipboard with ALT+C
* Remove unnecessary horizontal separator
* Adjust spacing around list and button

Change-Id: Ie8fb104b85e95acec92bd6226779d4de7ee11878
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3769
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-03-11 10:53:01 +00:00
Andrew Lindesay
dfbcbde1e1 HaikuDepot: Remove Custom List
Closes #15534

Change-Id: I23fa60145607c3e8f25552f24c5e2c630b940537
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3758
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-11 08:34:16 +00:00
Andrew Lindesay
0b69420bc8 HaikuDepot: Fix Redraw Featured Pkgs
The invalidation logic for when packages are
added or removed from this view was broken.  The
new approach involves demarcating the mutation
of the data with a begin operation and
terminating it with an end operation with the
view invalidation happening in the end operation.

Resolves #16260

Change-Id: I012610c72714323cc2f7471ad05cc758d9127ef0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3764
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-08 10:50:36 +00:00
Jérôme Duval
a44af2ec16 libroot: call thread exit hooks before destroying tls
Change-Id: Ide2799ccf8620e42650a8f45177fb5fac4f09696
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3762
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-03-06 10:31:51 +00:00
Andrew Lindesay
d13981d199 HaikuDepot: Fix Open Button
Resolves #16826

Change-Id: Id7d32a1a4c7d776f462817f72bcb80377452f5f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3763
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-06 10:30:24 +00:00
Autocomitter
46c7a1d9de Update translations from Pootle 2021-03-06 08:44:18 +00:00
Murai Takashi
08f2b4d50a filepanel: Fix -Wformat-security and remove unused options.
Change-Id: Iedf3bb500de15a29188c30940b5fd64dcaf043f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3319
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-03-06 08:03:38 +00:00
Pascal Abresch
e5feb3a7ae Webpositive: Change default search engine to duckduckgo
Change-Id: I4cb519453b0697260778fb34449ba5ac36972dcd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3757
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-05 08:00:50 +00:00
Zoltán Mizsei
a1d14e4d75 WavPack support
Change-Id: Id731621f39defd8f065b5460a9a5fb8c5b868c98
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3752
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-05 08:00:35 +00:00
Daniel Schaefer
bc33f9dd87 efi/riscv64: Fix NumberOfRvaAndSizes of PE header
The riscv64 UEFI executable has inconsistent header and therefore cannot
be loaded by the EDK2 implementation of UEFI. Apparently Uboot doesn't
care about this detail but EDK2 validates it.

Specifically NumberOfRvaAndSizes should be the number of data directory
entries. It is set to 6 but there are actually 16.
(All entries below NumberOfRvaAndSizes until section_table)

This was probably a typo 0x6 -> 16 (or 0x10).

This is the check of EDK2:
https://github.com/tianocore/edk2/blob/stable/202011/MdePkg/Library/BasePeCoffLib/BasePeCoff.c#L313-L321

Fixes #16824

Change-Id: I5c0dc080cb1cd191b44e016298656db9edd9ca8d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3761
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-03-02 19:41:53 +00:00
Niels Sascha Reedijk
ec8bba1587 PackageKit: fix download logic for remote files
This was broken in hrev54968, as some code was lost while switching to the new
way the network services kits writes files to disk.

This should fix #16822

Change-Id: I104d82e268ded287fd64db1cb902f94b71bad53b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3760
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-02 15:17:58 +00:00
Murai Takashi
8cd3603b99 compat/freebsd_network: Fix Use of zero-allocated memory
If device is not found, 'list' is allocated to size 0.
So, modify function to return 0 as FreeBSD's subr_bus.c
when 'count' is 0.
Pointed out by Clang Static Analyzer.

Change-Id: Ice24ae939bfcdb6e1276a86dba40d0b689030fbb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3753
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-02 14:19:54 +00:00
Murai Takashi
761714b3f6 kernel/util: Fix Null pointer passed as 1st argument to memset()
Pointed out by Clang Static Analyzer.

Change-Id: I8ee4c5d6adac129fc7f3d4117081e0ac26dd2ea0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3759
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-03-02 11:42:59 +00:00
Leorize
78b1442051 libbnetapi: BUrlRequest now outputs to BDataIO
Previously, BUrlRequest returns data received via a callback that can't
return any value. This approach have several issues:

- It's not possible to signify failures to the request.
- Users have to implement custom listeners just to handle the common
  case of outputting to a buffer/file/etc.
- The received data has to be serialized into BMessage when
  BUrlProtocolDispatchingListener is employed. This can cause a
  noticible slowdown in real-world scenarios as evident by #10748.

With this change, BUrlRequest will output directly into a BDataIO, which
exposes a richer API for request handlers to work with (for example a
BitTorrent client can request a BPositionIO for non-linear data
delivery), as well as simplifying common cases for users.

The adaptation only requires one additional API:
BHttpRequest::SetStopOnError(). This API simply instructs the HTTP
request handler to cancel the request if an HTTP error is occurred.

Change-Id: I4160884d77bff0e7678e0a623e2587987704443a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3084
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-28 20:39:31 +00:00
Leorize
3e27f8d5a7 libbnetservices: BUrlResult is no longer a BArchivable
The switch to make BUrlResult serializable was debuted in
f9e1854f19 with the rationale is that
BHttpRequest auto-redirection might cause the headers to become
obsolete by the time a client process the BMessage received from
BUrlProtocolDispatchingListener.

With the change to BHttpRequest to not notify listeners when
auto-redirection is enabled, this is no longer the case and the
serialization code can go away now. This simplifies BUrlResult and its
subclasses, and gain us some performance for clients using
BUrlProtocolDispatchingListener as the result object no longer has to be
serialized.

This also change the ABI of BUrlProtocolListener::HeadersReceived to no
longer passing a BUrlResult.

Additionally, BUrlResult and BHttpResult now express the size of the content
as an off_t, thus allowing results larger than 4 GB.

Change-Id: I9dd29a8b26fdd9aa8e5bbad8d1728084f136312d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3082
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-28 20:39:31 +00:00
Leorize
8e3c76b3d2 HttpRequest: Don't trigger listener on auto redirect
When the user enable auto-redirection, what they meant is that they do
not want to handle redirections, thus we should take total control of this
step and hide it from the user. In fact, a majority of in-tree users
write code to disable their listener when a redirection happen.

This should also allow us to simplify BUrlResult, which has been turned
into a BArchivable for the sole reason of "preserving" headers when
auto redirect is enabled when used with BUrlDispatchingListener, which
has been shown to have little (if any) practical usage.

Change-Id: I9b10b81de0a13edbaec25f6b48ed7a4335ea691a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3081
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-28 20:39:31 +00:00
Andrew Lindesay
3d2fd2acaf HaikuDepot: Remove Custom List
Further removal of the use of custom list class;
this time part of the test engine inside HD.

Relates To #15534

Change-Id: Ia1f1d7c2577f92bba96da392fd48949a13b5a169
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3745
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-28 11:17:30 +00:00
Máximo Castañeda
6c04dd4898 Fix subpixel scanline size for fonts with bitmaps
Fixes #16788

Change-Id: If4c5a6e37ab5950c2426286d5afab59652a2a61b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3743
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-28 11:16:22 +00:00
Autocomitter
1eac17132d Update translations from Pootle 2021-02-27 08:39:35 +00:00
Andrew Lindesay
64a0ec2d3e HaikuDepot: Add HTTP Header for JSON-RPC
Change-Id: Ibdc112378870cb29770b7938bc8d80631009c03e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3750
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-26 19:04:34 +00:00
Murai Takashi
e5b7c9e313 processcontroller: Fix memory leak
When getting icon is failed, get_team_name_and_icon()
does not return false, so bitmap allocated to
infoPack.team_icon can be leaked.

* Delete bitmap in get_team_name_and_icon(), not in caller.
* Return false when getiing icon is failed.

Change-Id: Ib65065b59b70cd839e6deda4e1142bd104072d84
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3744
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-24 05:52:05 +00:00
Jérôme Duval
c1e6e51a05 libroot: implement timegm calling the ICU backend
Change-Id: Ib4de4288e061670acbc2edea3671cee029305d33
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3748
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-02-24 05:51:44 +00:00
Andrew Lindesay
02ccdc6fa1 HaikuDepot: Drop Caches on Version Change
To avoid having to upgrade cache-data formats,
drop the caches when the application starts with
a different version from last time the
application launches.

Change-Id: I2f5b831b6a4fc570457bc633fd440a9021648b02
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3749
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-23 18:19:52 +00:00
Autocomitter
00fda04592 Update translations from Pootle 2021-02-20 08:45:21 +00:00
Murai Takashi
08f49f01e3 mediaplayer: Fix new[] / delete mismatch
fItems are allocated by new[] at line 31, but deallocated by delete.
Pointed out by Clang Static Analyzer.

Change-Id: I1d8ae0b2214290155612d4b5c6d1ce56676cc892
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3746
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-18 14:35:32 +00:00
Adrien Destugues
c05253c64e virtio RNG: fix SMAP violation
Change-Id: I82fadcef6d3f402b10273b6f378d5357f3c835c3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3716
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-16 11:36:51 +00:00
Jaidyn Ann
e248c98eb8 DNSSettingsView: Disable list buttons when nothing selected
Change-Id: I2ff2ab1b3e29b1a8b217506ae620926f0f51787f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3742
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-13 19:30:53 +00:00
Autocomitter
91b9cbbbb0 Update translations from Pootle 2021-02-13 08:41:51 +00:00
Adrien Destugues
6e1e87a3c3 Locale Kit: do not unload catalog add-ons
Follow-up to #16670.

I have previously changed the locale kit to load all add-ons once at
start, but did not notice that it would unload them later on. This can
also create race conditions if the locale kit is used from inside
load_add_on (as is the case in translation kit add-ons for example).

Should fix the remaining problems in #16670

Change-Id: I0e22f8e146abe4fc85d8357ebe178db948fec1cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3734
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-12 07:35:05 +00:00
Andrew Lindesay
1403313c7f HaikuDepot: Remove Custom List
Further removal of the use of custom list class;
this time with the generic undo functionality.

Relates To #15534

Change-Id: I804a31abc07f42f4f1695562b6f948feb465db0c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3739
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-10 08:22:34 +00:00
Jérôme Duval
99bd3b947f SupportDefs.h: remove the unichar type
irssi uses the unichar typename with a different type.

Change-Id: I2ee9dcf685f4832dd1b3c7d68f4686d69de50fb7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3656
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-09 16:47:55 +00:00
beaglejoe
6df09499e6 Implement reboot for x86_64 efi menu
Fixes #15050

Change-Id: I9b0d8dab9cc0eba85f6d242e946d0291c59580eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3740
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-02-08 22:00:38 +00:00
kerwizzy
a7cda27731 Mandelbrot: Implement fullscreen and saving
* Fullscreen view without window border or deskbar
 * Save current view as .png

Change-Id: I8abbc7c5dc0af06ee26aa29afdef79a41944438c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/867
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: Ryan Leavengood <leavengood@gmail.com>
2021-02-08 19:37:10 +00:00
Fredrik Holmqvist
a2def606ed ARM64 packageinfo and haikuports
Change-Id: Id5ad7682ecb7b4bda364f839b106b016ca4f4b0b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3738
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-07 12:17:21 +00:00
Fredrik Holmqvist
d81df6ce84 Add byteorder.S for ARM64
Change-Id: I346e83683ad2318948914c5027123f84d4038451
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3737
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-07 12:17:21 +00:00
Fredrik Holmqvist
fecc9c1295 HaikuPortsCross/arm64 minor version update
Change-Id: I2dc46e5c99aae6ac372857c8065741e56847bddc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3736
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-07 12:17:21 +00:00
Andrew Lindesay
6f07fead0c HaikuDepot: Remove Custom List
Further removal of the use of custom list class;
this time with the package action lists.

Also resolve an error created by a last minute
change in the last pull request for this ticket.

Relates To #15534

Change-Id: I85dd40b7ef664f93b24ca5041fa58cca17d72299
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3735
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-07 08:54:48 +00:00
Andrew Lindesay
d75b4d610d HaikuDepot: Remove Custom List
Further removal of the use of custom list class;
this time with the package lists.

Relates To #15534
Change-Id: I1f01ed9d5ddbd7754097ce0adbf505d6ba17fd2f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3732
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-06 19:45:53 +00:00
Autocomitter
f01bc2121f Update translations from Pootle 2021-02-06 08:44:58 +00:00
Alexander von Gluck IV
0cbad7f3a3 boot/platform/efi: Fill out riscv64 kernel entry assembly
Change-Id: I18867f2c1188b43d5c663a7ceb3aab4a4dedb454
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3731
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-02-05 21:55:53 +00:00
Fredrik Holmqvist
9e4c5cf124 Add -std=c++14 to build_cross_tools_gcc4
CLang fails to build ISL otherwise, and if you are setting up
cross compiling, you should have a modern enough compiler

Fixes #16434

Change-Id: Ieb4a33015899896ea3bb2d1abc59b10fe0b4b3f2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3730
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-02-02 17:44:47 +00:00
X512
0dcedf62b9 HaikuDepot: remove unneeded .Get() calls
Dereference operator is defined in BReference.

Change-Id: Iccba8ad4a29e354aa9cdbf2e1a5ddbc9687af677
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3489
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-02-02 15:22:23 +00:00
X512
779ab335dd use .IsSet() instead if .Get() != NULL
Change-Id: Ia2b7a719fd398e78cc3b11d4f7b02cb81179f65f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3488
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2021-02-02 15:17:54 +00:00
Jérôme Duval
89dae40a65 net_server: handle EINTR on select()
Change-Id: I90af101cef72b33ecb6decec911d03f592c1ec7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3729
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-02-01 19:35:02 +00:00