58796 Commits

Author SHA1 Message Date
Andrew Lindesay
130ba61846 HaikuDepot : Fix Rating of Installed Pkg
This commit resolves a problem where a user would be
unable to rate an installed packge.

fixes #14554

Change-Id: I3141eaebbdf531f17eb05302a536c6e0d722a164
Reviewed-on: https://review.haiku-os.org/611
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 9fa0d70f99e9c9c734897af9014a23ca4a87b2cb)
Reviewed-on: https://review.haiku-os.org/615
2018-10-04 19:47:32 +00:00
Andrew Lindesay
6b00878854 HaikuDepot : Performance for Package List Updates
Performance improvements for the application updating
lists of packages when the user is operating with the
locale set to Russian.

fixes #14513

Change-Id: I1e2514a2afbd43503ac0edfe280a856411738026
Reviewed-on: https://review.haiku-os.org/612
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 871ec42d4c4d4f7ad3fc706ee777142b75451056)
Reviewed-on: https://review.haiku-os.org/614
2018-10-04 19:46:10 +00:00
Janus
e6691ce134 BeDecorator: Avoid to draw an invalid zoom button
* Fixes #13119

Change-Id: Ia75f06c61476324951d44cfe2a1b281bf014b5f4
Reviewed-on: https://review.haiku-os.org/607
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 1b437a3d7652e642eee71a871e4b7c8d3580f358)
Reviewed-on: https://review.haiku-os.org/608
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-10-02 19:23:39 +00:00
Kacper Kasper
dea0185146 Revert "HaikuDepot: don't scale bitmaps"
This reverts commit 2ba2d603518c6d00c8de4ab00b7f39726ba5f02c.

...and properly fix the scaling issue.

Change-Id: I871cc96b4b5db1cbb3c40d2ff73d709afaf8a932
Reviewed-on: https://review.haiku-os.org/601
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-29 17:25:23 +00:00
Andrew Lindesay
91e6e8cab2 HaikuDepot : Improvement for Buffer Management
Changes the logic flow around reverting the position of
the request / response buffers when the buffer is logged
during trace logging.

Change-Id: I025ca9988b32447e225e3ad1b1d4da1174d2d122
Reviewed-on: https://review.haiku-os.org/599
Reviewed-by: Rene Gollent <rene@gollent.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
(cherry picked from commit 66f8dcb1f1580d1812a37c3a17559b0994534f86)
Reviewed-on: https://review.haiku-os.org/603
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-29 17:22:22 +00:00
Andrew Lindesay
96dc91bfd8 HaikuDepot : Fixes for User-Ratings Related API Calls
Corrections to some areas where the 'position' of a
data stream was not being set correctly before reading.

Change-Id: I0030a113008028d5480dc36d034cf06915d928de
Reviewed-on: https://review.haiku-os.org/588
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
(cherry picked from commit 88575af1d2b4431136a15cfe83e3728b658bfbef)
Reviewed-on: https://review.haiku-os.org/602
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-29 17:22:00 +00:00
waddlesplash
12b78b3b47 Update userguide and welcome pages.
This is the first userguide export on the Postgres-based translation tool
(previously it used MySQL), so please double-check it extra carefully.
(I spotted a few minor problems in the export and fixed the relevant
bugs already.)

Change-Id: Icbe2a3e5bb016ed178ddca6b9f27a048c8d603e5
Reviewed-on: https://review.haiku-os.org/598
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2018-09-27 14:22:28 +00:00
Augustin Cavalier
3d2ecfd91d HaikuPorts: Update build-packages again to pull in new Mesa. 2018-09-27 00:35:15 -04:00
Augustin Cavalier
74c6bc27c9 HACK: determine_haiku_revision: Get rid of "dirty".
Buildbot builds with EFI are presently always "dirty", so, don't keep that
information.
2018-09-26 23:48:13 -04:00
Augustin Cavalier
f0f0307ba8 build: Include extra information in the package version.
Previously only the "effective revision", i.e. the hrev by itself,
was used. Now we include the "commits ahead" count and the "dirty" flag,
if they're there, using _ instead of - of course.

Change-Id: I5238d01926c2cca242bffbdef30bff606a173a06
Reviewed-on: https://review.haiku-os.org/596
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-27 03:37:56 +00:00
Alexander von Gluck IV
dd18be07f9 installer: Bump installer logo
* Version font is https://fonts.google.com/specimen/Oswald
* We're no longer alpha, lets refine our logo a bit :-)

Change-Id: Ic7297944252e28281a928112ddf718b8ad5dbd62
Reviewed-on: https://review.haiku-os.org/595
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2018-09-27 00:46:49 +00:00
Alexander von Gluck IV
ff2059f2bd build: Enable HAIKU_OFFICIAL_RELEASE
Change-Id: I231b57b137e676f138a2b769199763a588879aae
Reviewed-on: https://review.haiku-os.org/504
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-26 07:01:08 +00:00
Augustin Cavalier
82087025be userlandfs: Make the "request data" area user-cloneable.
Fixes #14497. Thanks to leorize for helping debug!
2018-09-26 03:00:25 -04:00
Augustin Cavalier
c746d403d8 HaikuPorts: Update the build-packages set. 2018-09-26 02:50:36 -04:00
Augustin Cavalier
ef902dc053 DefaultBuildProfiles: Make sure the final CD image is <= 694MB. 2018-09-26 02:50:35 -04:00
Autocomitter
cf072b40a1 Update translations from Pootle 2018-09-25 23:48:14 -04:00
Augustin Cavalier
445bcdf157 intel_extreme: Disable some non-working chipsets.
Thanks Vidrep for testing!
2018-09-25 23:41:57 -04:00
Augustin Cavalier
f8fba177ff Remove bluetooth_server.
Not ready for primetime yet.
2018-09-25 23:40:15 -04:00
Augustin Cavalier
3d0db15a6f repository_infos: Switch HaikuPorts to r1beta1.
It's just a direct mirror of master for the time being, but might not
be later.
2018-09-25 23:38:14 -04:00
Augustin Cavalier
5eb46b1219 kernel: Do not panic about full/partial slabs. 2018-09-25 23:36:44 -04:00
François Revol
4efc7b4068 radeon: make the framebuffer user-cloneable
This avoids an annoying panic...
2018-09-25 23:30:16 -04:00
Augustin Cavalier
e244c368a9 MediaPlayer: Quit the VideoProducer when we reach the last buffer.
Fixes #13622.

The "media_node_framework" is such a huge mess. We really should sit down
and design a MediaKit2 someday that doesn't require ~15,000 lines of media
node support code just to have a "fully functioning media player."
2018-09-25 23:30:06 -04:00
Augustin Cavalier
ea2ee3386b add-ons/media/ffmpeg: Use SWS for color-space conversion universally.
It seems to be as if not faster than the built-in method now as far
as I can tell, and this means one less arch-specific difference.
I haven't ripped all of it out yet, though.
2018-09-25 23:30:02 -04:00
Augustin Cavalier
53ef6a0ff5 add-ons/media/ffmpeg: Rework usage of AVPicture in AVCodecDecoder.
It has been deprecated since FFmpeg ~3.0, and is internally implemented
using these functions now, so this should largely be a no-op change.

AVCodecEncoder still uses it.
2018-09-25 23:29:58 -04:00
Augustin Cavalier
54cb67a43f add-ons/media/ffmpeg: Remove global initializer system.
All of the functions it calls are deprecated and no longer needed,
as FFmpeg loads all codecs automatically now, and uses pthreads internally
for locking as needed.
2018-09-25 23:29:55 -04:00
Augustin Cavalier
a52a856f6c add-ons/media/ffmpeg: Enable deprecation warnings.
There sure are a lot of them...
2018-09-25 23:29:51 -04:00
Augustin Cavalier
aef2ee83ba kernel: Handle the user buffers properly in _user_xsi_semctl.
Should fix #14512.
2018-09-25 23:29:18 -04:00
Augustin Cavalier
807ad0cf46 DefaultBuildProfiles: Without sources, release images fit in 700MB.
We don't want to ship these images as the ones for main distribution,
but at least we can make them available as downloads for those who do want
to use CDs.
2018-09-25 23:29:18 -04:00
Augustin Cavalier
3926374604 package_infos: x86_gcc2/* depend on FFmpeg.
Previously, secondary arch FFmpeg was not installed at all. This commit
fixes that.

Also pare down the dependencies a little to what we actually use.
2018-09-25 23:29:13 -04:00
Augustin Cavalier
ef5705f0aa netfs_mount: chmod +x. 2018-09-25 23:29:13 -04:00
Augustin Cavalier
1e7c2b627e kernel: Print interrupt line when assuming no interrupt use on PCI device. 2018-09-25 23:29:12 -04:00
Alexander von Gluck IV
cf3f615a25 profiles: Bump release to 1100/1300 MiB
* This gives us plenty of space for source packages.
* A Mini-DVD is 1.4 GiB, and USB sticks of 2 GiB are at
  the sweet spot of low-price vs size.
* Unused space will be compressed in release zip.
* We blew by 700 MiB long ago. Sorry CD-R folks.

Change-Id: I3bbe4508777027f6fe7c0ee2992637541feeb88f
Reviewed-on: https://review.haiku-os.org/592
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-25 23:04:13 +00:00
Augustin Cavalier
1eff2f5001 kernel: Treat 255 as an invalid interrupt line on x86.
From mmlr's analysis in #13370 comment:22: "We actually do ignore a missing
routing in case the interrupt line is 0. In this case it isn't 0 but 0xff,
which is invalid and generally treated the same as 0 in the rest of the code.
Ignoring the missing routing on 0xff seems like the way to go here."

Indeed, I managed to locate a footnote in the PCI 3.0 specification which
confirms that this is the case on x86, and a commit in the Linux kernel
which essentially does the same thing this change does:
https://github.com/torvalds/linux/commit/e237a5518425155faa508a087f2826
Interestingly, that commit is only from 2016, while PCI 3.0 is from 2004.

This probably fixes #13370 ("Haiku doesn't MBR boot on Ryzen"), and potentially
other interrupt-routing-related boot failures.

Change-Id: I88129f6507c62d24cb50cf5c78597ca7bd7872d7
Reviewed-on: https://review.haiku-os.org/590
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 821599e8e889a48ffa50ccbed489e30bdba64f1a)
Reviewed-on: https://review.haiku-os.org/591
2018-09-22 20:50:52 +00:00
Kacper Kasper
ab7138c7f3 HaikuDepot: don't scale bitmaps
* There was an off-by-one error in initialization code;
  BRect(0, 0, 15, 15) does not create 16x16 bitmap - it is 15x15.
  As a result vector icons were rendered at 15x15 and then scaled to
  16x16.

Change-Id: If1b57148e5a887a4bf71e01606d3d0d6fd0ed149
Reviewed-on: https://review.haiku-os.org/585
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 789ad279538192be95ca2ab392333c8c42171ec6)
Reviewed-on: https://review.haiku-os.org/586
2018-09-18 20:29:53 +00:00
Augustin Cavalier
afca0e5eee Tracker: Clean up AddPoses threads properly.
They may still be running at the point we detach from the window, and
as we stop watching everything else at that point (and the threads
themselves depend on the window looper as the global "lock"), we
need to tear them down then.

We especially cannot do this in the destructor, as there are some
virtual methods that the threads need during their teardown which
obviously will not work in ~BPoseView.

Fixes #13371, and potentially other Tracker crashes that occured
as a result of closing the window while the add-poses tasks were
still operational.

Change-Id: I48ff7ddc4443180a59f9b50dd4b123885ef13bb2
Reviewed-on: https://review.haiku-os.org/576
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-18 19:51:17 +00:00
waddlesplash
2b1ae982fc determine_haiku_revision: Properly get rid of the commit hash.
Change-Id: I3f57b1cd4d819e7f531001d747bf7b103954a918
Reviewed-on: https://review.haiku-os.org/581
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 670ed496951132f6a2e3c9e92f859062531c2f90)
Reviewed-on: https://review.haiku-os.org/582
2018-09-18 19:51:06 +00:00
Augustin Cavalier
be117bfaa0 demangle/gcc2: Do not trust inputs.
We do not know anything about the symbols we are being asked to demangle;
it is entirely possible they are malformed, or that we parse them incorrectly,
which previously led to buffer overflows. E.g. the "2","8" in "SetTo__Q28_GLOBAL_"
is presently incorrectly parsed as a length, leading to an access 21 bytes past
the end of the string.

This caused a page fault under the guarded heap, a fact I had the misfortune
to discover when trying to attach Debugger to a guarded-heap'd application
which somehow ran the demangler under the guarded heap also, and that symbol
above was in runtime_loader, so it crashed while loading its symbols.

So now we do what the GCC3+ demangler does here, and keep track of the input
buffer through the use of a state class, which will prevent us from incrementing
past the buffer's end.

I've tested this patch using the new haikuc++filt utility against libtracker
(indeed, it took multiple rounds of testing to get the diff to be 0 bytes)
and it seems to work exactly as before, though now without out-of-bounds
accesses.

As this demangler is also used in the kernel, it's possible that some
triple-faults on x86_gcc2[h] are caused by this bug (although that would
be rare; one of the incorrectly-parsed symbols would have to be in the
stack trace, and then it would have to read past the end of the buffer
containing the symbol.)

Change-Id: I343991cebd7d2887812c8c6b3dc2e0df2fcd79fa
Reviewed-on: https://review.haiku-os.org/579
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 6668f401f8bf3eb077737e4c939699c5166cff2b)
Reviewed-on: https://review.haiku-os.org/580
2018-09-18 02:19:33 +00:00
Alexander von Gluck IV
3066e6bb4e UEFI: Greasy edition
* This is a last minute hack to get UEFI into R1 Beta 1
* This is extremely greasy and not that great

Change-Id: I3519dba7c97e3e01fe1d7f23d7b06f61f2ffedb7
Reviewed-on: https://review.haiku-os.org/578
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com>
2018-09-17 18:19:34 +00:00
Augustin Cavalier
9396f1649f Tracker: Eliminate the double border in the OpenWithWindow.
Change-Id: I903c50d95a8f33798985c2a3f4f3c0acd32f3de3
Reviewed-on: https://review.haiku-os.org/577
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-16 23:21:28 +00:00
Augustin Cavalier
d60cdf9452 BString: Treat NULL passed as replaceWith as an empty string.
Fixes the tests added in the previous commit, and also #8552.

Change-Id: Idf9459474bc66054f94cf66065ed6fcf9c60cece
Reviewed-on: https://review.haiku-os.org/572
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit e5b17738bcd57325aa16a53c8f129d5bd7f053f8)
Reviewed-on: https://review.haiku-os.org/573
2018-09-16 17:57:16 +00:00
Augustin Cavalier
ed2098b992 iprowifi4965: Add -100 firmware.
Should fix #14492.

Change-Id: If755bc1dc37f84da85cb0377a5e3105b89729735
Reviewed-on: https://review.haiku-os.org/570
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-16 00:09:10 +00:00
Augustin Cavalier
b94118ef25 determine_haiku_revision: Rework "no tag on HEAD" output.
When HEAD is tagged, the output will be identical to what it was
before (the latest hrev tag and nothing else.) When HEAD is not tagged,
and the most recent tag is further back, we now use a format like this:

hrevXXXXX+N(+dirty)

... where N is the number of commits since hrevXXXXX, and +dirty is added
if the working tree is dirty. This is significantly shorter than the
previous model (as it does not have the Git revision.)

Fixes #14445.

Change-Id: I66d4c7c57538a88a5fa13cfceebb65835ca53c7c
Reviewed-on: https://review.haiku-os.org/569
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-16 00:08:57 +00:00
Augustin Cavalier
812f406645 src/tests: Fix some incorrect filemodes.
Change-Id: Id8628116ddd58bf6286512f3532abc193dcfb6e7
Reviewed-on: https://review.haiku-os.org/568
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-16 00:08:41 +00:00
Michael Lotz
03411d58bf kernel: Apply user iframe determination logic to SMAP/SMEP.
Change-Id: I394492a289f01303ac28e6d6670fbfdb326fa4db
Reviewed-on: https://review.haiku-os.org/561
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
(cherry picked from commit 99888f6b696f3bf5e10adc3822e146ffe7098bf0)
Reviewed-on: https://review.haiku-os.org/564
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-15 00:08:57 +00:00
Michael Lotz
35b6396bc3 kernel: Determine kernel vs. user page fault depending on iframe.
The action vm_page_fault takes should depend on whether the iframe to be
handled is a user iframe or not. The check for the user flag in the
error code does however only check if the fault happend in user or
kernel space. Use IFRAME_IS_USER() instead which checks the privilege
level of the iframe. Under 32 bit x86 this also handles vm86
compatibility mode properly.

This is the same logic as used on FreeBSD (TRAPF_USERMODE).

Fixes #13930.

Change-Id: I9c348b6ab4c60daaaaa2c0fe33bcc3336aa29f7b
Reviewed-on: https://review.haiku-os.org/560
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
(cherry picked from commit 8c005190c455f3722c64a6ffc7dece9020da7258)
Reviewed-on: https://review.haiku-os.org/563
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-09-15 00:08:33 +00:00
Michael Lotz
46f5676786 Cleanup: Use symbolic names, compare != 0 and whitespace.
Change-Id: I34c60b3ab8387fe57dbcd91f9b5d278468455cf6
Reviewed-on: https://review.haiku-os.org/559
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 0de5a83940e56b9f9b910e8550d0f64c45362cff)
Reviewed-on: https://review.haiku-os.org/562
2018-09-15 00:08:23 +00:00
Augustin Cavalier
16f483e022 BNetworkDevice: Fix memory leaks and address comments.
Thanks Axel and Jerome for the reviews!

Change-Id: I4f116c540cf59ba74b79d9d2f95ed40edc9c4174
Reviewed-on: https://review.haiku-os.org/557
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 67f692f306f383db512ac0b077fffcc9798499d9)
Reviewed-on: https://review.haiku-os.org/558
2018-09-13 19:53:49 +00:00
Augustin Cavalier
7ff0296cbc libroot: Use RETURN_AND_SET_ERRNO from the utils header in ioctl.
No functional change intended.

Change-Id: I5e6a060fe8e036bc4d4b8b8cc95a4e8d0ea00f81
Reviewed-on: https://review.haiku-os.org/549
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 38a9853e5092fcb982b9456b870fbbf3ab4d1782)
Reviewed-on: https://review.haiku-os.org/553
2018-09-13 04:14:21 +00:00
Augustin Cavalier
a0cb3e066a network/ethernet: ioctl returns -1 and stores the error in errno.
Previously, if a device driver returned an error of any kind, -1 was
propagated the rest of the way up through the stack instead of the
actual error code.

Change-Id: I6839763c6b2eb86d6112d3732e6cb80d022f1fe8
Reviewed-on: https://review.haiku-os.org/550
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit e9073260a7054be876ec67bfefbfdaba05ea3142)
Reviewed-on: https://review.haiku-os.org/554
2018-09-13 04:14:13 +00:00
Augustin Cavalier
549b4453f0 BNetworkDevice: Implement Scan().
This depends on the previous commit to return the correct error code
from ioctl().

If there are no VAPs running (which is the case after a forced disconnect
from an access point), scans will fail. In that case, we call
IEEE80211_IOC_HAIKU_COMPAT_WLAN_UP, which will restart a VAP, and then
initiate the scan.

Change-Id: I732aefe67e386dbb0ed3d232ed9deda678132601
Reviewed-on: https://review.haiku-os.org/551
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 4e5aaaa700f4f6911514e7f469ba14201a66581c)
Reviewed-on: https://review.haiku-os.org/555
2018-09-13 04:14:07 +00:00