Commit Graph

56902 Commits

Author SHA1 Message Date
Adrien Destugues
5bb8320035 Fix a few more uses of PAGE_SIZE 2017-04-14 07:23:23 +02:00
Adrien Destugues
6caa391f67 Fix another use of PAGE_SIZE
Not detected when building locally, probably I should have done a clean
build.
2017-04-14 07:18:38 +02:00
Adrien Destugues
743088d40b Fix users of PAGE_SIZE
- Replaced by B_PAGE_SIZE where possible
- Enabled the _XOPEN_SOURCE feature define otherwise
2017-04-13 21:32:08 +02:00
Adrien Destugues
56403b6373 limits.h: define PAGE_SIZE only if XSI is requested
limits.h is part of the C standard, but POSIX and XSI extend it with
various defines. We should not add these unless the application requests
support for them.

In this case, PAGE_SIZE should only be defined if XSI support is
requested by defining _XOPEN_SOURCE. Note that PAGESIZE (plain POSIX for
the same thing) and B_PAGE_SIZE are alternatives that remain available.
2017-04-13 21:14:41 +02:00
Adrien Destugues
b68cf9d6f6 elf.h: add more architectures.
Mostly I need EM_AVR to build avrdude on Haiku.
2017-04-11 18:59:06 +02:00
Adrien Destugues
fd8d1d5656 launch_daemon: fix check for existing directory
BEntry.InitCheck returns B_OK even if the leaf does not exist. So the
code in launch daemon to create directories (/tmp and
/var/shared_memory) was never run.

Fixes #12760.
2017-04-10 21:56:31 +02:00
Fredrik Holmqvist
0cfd77ac3b Print elantech touchpad version. 2017-04-10 21:17:58 +02:00
Humdinger
54d48f1666 Updated Vision package to v0.10.1-1 2017-04-10 19:30:16 +02:00
Humdinger
8f22a9cf03 Adding icon Server_NFS_Idmapper
...by combining the "server hand" and the icon of jua's FuseSMB.
Fixes #1429.
2017-04-09 20:07:25 +02:00
Fredrik Holmqvist
044cab8e74 Activate Elantech toucpad probe but fail.
Now we can see who has Elantech touchpad.
Driver is currently in very bad shape on my hw:
 * mouse jumps
 * mouse clicks maps to wrong button
 * keyboard not working properly when enabled
 * power button only works in force shutdown mode
2017-04-09 15:14:02 +02:00
Adrien Destugues
34ac7f7ac3 BListView: manage horizontal scrollbar
BListView automatically sets the vertical scrollbar range already. Do
the same for the horizontal scrollbar.

Also fix BOutlineListView to compute the preferred size taking into
account the items outline levels (it needs a little more space).

This fixes the horizontal scrollbars in Locale preferences, second part
of #6747.
2017-04-09 12:03:33 +02:00
Jérôme Duval
456e971517 Update podofo, grep, mercurial and scribus packages for x86_64.
* podofo 0.9.5 isn't compatible with 0.9.4.
* grep compatible with version 2.
* mercurial requires python2 instead of python.
* scribus is rebuilt with newer podofo.
2017-04-09 11:17:25 +02:00
Axel Dörfler
48063a420c BFS: Use MAX_INDEX_KEY_LENGTH for queries.
* INODE_FILE_NAME_LENGTH makes no sense here, even though this change
  is not supposed to actually change anything besides the naming.
2017-04-08 22:50:54 +02:00
Axel Dörfler
6609c1a03a BFS: Removed match empty string logic.
* This produces more reliable query results no matter which index
  gets chosen to run the query.
* This fixes the final part of #13254.
2017-04-08 22:50:54 +02:00
Axel Dörfler
b27b37812e bfsinfo: Added option to list/count B+tree entries.
* -l now lists the contents of string B+trees.
* -c now counts the keys in a B+tree.
* Use BPLUSTREE_MAX_KEY_LENGTH to determine the maximum allowed
  key length (was hardcoded to 255 before).
2017-04-08 22:50:54 +02:00
Axel Dörfler
4069e1f302 BFS: Fixed maximum index key length.
* The maximum key length of the B+tree, and the one BFS uses are now
  separated. This allows to stay BeOS compatible to only put a maximum
  of 255 bytes into the index, but also to handle the already existing
  larger keys (we did allow 256 bytes) without issue.
* TreeIterator::Traverse() now always cuts off string keys at the
  maximum buffer length, and only reports a B_BUFFER_OVERFLOW for the
  fixed length types.
* This fixes the important part of #13254.
2017-04-08 22:50:54 +02:00
Humdinger
a8ef140948 Update grep package to 2.24-1 (gcc2)
for tqh.
2017-04-08 19:50:24 +02:00
Adrien Destugues
99edf9d9ed Remove another overzealous assert.
Fixes playing "swinging.mp4" from our demo video package.
2017-04-08 19:08:34 +02:00
Jérôme Duval
95a7451112 Adjust liwebp soname for x86_64. 2017-04-08 13:45:10 +02:00
Jérôme Duval
35777ad7ad Mass update for x86_64.
Highlights:
* switch to python 3.6.
* update to Qt 5.8, to LLVM 4.0, to Mesa 17.
* Scribus, Lyx, Wireshark to name a few additions.
2017-04-08 13:44:59 +02:00
Adrien Destugues
459188a437 Do not fail when the display mode is sanitized
The goal of sanitize_display_mode is to create a mode that the hardware
can use. The code was doing that, but if any change was required to the
initial mode, it threw the result away.

Now accept the sanitized mode, and log it for debugging purposes.

This should fix #12927
2017-04-08 13:30:34 +02:00
Adrien Destugues
2c953daef7 Fix build also for secondary arch
Use a variable not affected by MultiArchBuildSetup, so we use the new
libwebp when gcc2 is the main arch, even when building for secondary.
2017-04-08 13:29:49 +02:00
Adrien Destugues
ac0cb4e046 Fix build after libwebp update.
The update is only for gcc2 for now. This needs to be adjusted once the
other archs make the switch too.
2017-04-08 12:09:13 +02:00
Adrien Destugues
1f09ef45b6 Update libwebp to current version. 2017-04-08 11:30:25 +02:00
Adrien Destugues
2f6aa1c7cc locale: -m option should print character sets, only.
Required by mosh testsuite.
2017-04-08 08:45:29 +02:00
Adrien Destugues
fbd8cde183 ffmpeg: remove overzealous assert.
Fixes #12370.
2017-04-07 21:38:55 +02:00
Axel Dörfler
bc600adbd8 launch_daemon: Don't allow restarting.
* Check if the port already exists on startup. This fixes #12901.
2017-04-07 18:01:14 +02:00
Axel Dörfler
99ccb18d97 Kernel IOBuffer: Fixed potential memory leak.
* IOBuffer::FreeVirtualVecCookie() did not put the last physical page
  back. This was only an issue in case GetNextVirtualVec() wasn't
  iterated through the end, for example in case of an error.
* Fixed the condition when to put back a physical page; the current
  solution will also work with the generic page mapper implementation.
* This fixes the low hanging fruits of Ingo's comment in #5777.
2017-04-06 23:31:48 +02:00
Axel Dörfler
f17488662a network stack: Fixed double mutex lock.
* device_removed() no longer uses get_device_interface() to avoid
  the double locking.
* Introduced net_device_interface::busy member to avoid locking in
  device_removed() for too long.
* This should fix #7252.
2017-04-06 18:19:25 +02:00
Alexander von Gluck IV
ceff2b88ae ppp: Basic build fixes on x86_64 2017-04-05 19:33:07 +00:00
Automatic Committer
c931e464e8 Update pci.ids from pciids.sourceforge.net 2017-04-06 05:20:16 +02:00
Alexander von Gluck IV
dfe2d34fcb network preflet: Fix OpenVPN resource def 2017-04-05 18:55:37 +00:00
Alexander von Gluck IV
5c08c83412 network preflet: Introduce early OpenVPN add-on
* Not included in image... will likely be quite some
  time until it is :-)
2017-04-05 18:50:00 +00:00
Alexander von Gluck IV
6516aed58b network preflet: Make InterfaceListItem dumber
* Allows us to use InterfaceListItem for non-physical
  interface things (like a VPN connection)
2017-04-05 18:46:10 +00:00
Alexander von Gluck IV
476da4a52f network preflet: Fix interface icon spacing 2017-04-05 17:34:44 +00:00
Alexander von Gluck IV
5fbe0dd4d7 haikuporter: Update to 1.2.0 on x86_gcc2 2017-04-03 15:58:04 +00:00
Alexander von Gluck IV
e42501663a haikuporter: Update to 1.2.0-1 on x86_64 2017-04-03 15:55:58 +00:00
hy che
d1012e4522 stream is re-defined which misplaces size of item data.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Follow-up fix for #12788.
2017-04-03 20:26:47 +02:00
Humdinger
eff44d2fee Added keymap for Russian (Udmurt, Komi, Mari)
Provided by 'iam' via the forums [1]. It adds additional characters for
Udmurt, Komi and Mari languages.
Thanks, iam.

[1] https://discuss.haiku-os.org/t/adding-russian-keymap-with-udmurt-characters-to-haiku/5518
2017-04-03 08:51:28 +02:00
Humdinger
c8dea2a7a8 Updated package gutenprint to 5.2.12-2
Thanks korli, for the gcc2 build fix and Vidrep's testing.
2017-04-03 08:48:38 +02:00
Axel Dörfler
742b85c1f1 vfs: Let new_vnode() and publish_vnode() wait for busy vnodes.
* Both functions need to wait when encountering a busy vnode, in order
  not to create a race condition in combination with get_vnode().
* This should fix both #5262, and #9839.
* I did not implement Ingo's suggestion to burden the file systems with
  solving the problem for the following reasons:
  - I think the file system interface should be as simple as possible.
  - I can't think of a possible locking issue at least for BFS.
  - The solution on the file system side would look pretty similar to
    what the VFS already does or has to do (minus controlling the locking
    directly), so it would cause quite a functional duplication.
2017-04-02 14:30:45 +02:00
Adrien Destugues
d5bff72ed8 Fix use after free.
As pointed by Marcus, FindString returns a pointer to the internal data
of the BMessage, so the message must stay in scope as long as we use the
pointer.

Thanks for reviewing!
2017-04-02 08:23:01 +02:00
Alexander von Gluck IV
ad7a5be908 x86_64: Update sdl2_ttf to 2.0.14-5
* Fixes broken shared library symlink
2017-04-01 13:59:54 -05:00
Adrien Destugues
737e508de0 ffmpeg: give a little hint about the file type.
ffmpeg, especially older versions, is not very good at detecting file
types and relies on us giving it a file extension for a better guess.

Use our MIME sniffing to have a first try at detecting the file we are
about to play, and pass this information to ffmpeg.

Fixes #13150.
2017-04-01 19:11:02 +02:00
Brian Hill
b105213b81 SoftwareUpdater improvements
*Bug fix- list item colors use Appearance settings
*Problem Solver window buttons right aligned, window now app modal
*The main window's stripe and icon now use the same scaling as BAlert
*A pop-up menu displays an option to view more details (replaces the
	tooltips)
*New prompt at application start to choose between doing an Update or
	a Full Sync.  Also lays the ground work for implimenting silent
	check-only feature.
2017-04-01 12:40:39 -04:00
autonielx
c5c0dd6c8b Update translations from Pootle 2017-04-01 06:43:41 +02:00
Humdinger
a1483eb904 New package for QuickLaunch v1.1
Needed a quick new release:

*	Fix disappearing favorites.
*	Add context menu with quick access to favorites and QuickLaunch's
	"About" to Deskbar replicant.
*	Updated localization and documentation.
*	Tiny tweaks to the QuickLaunch icon.
2017-03-31 19:58:22 +02:00
Axel Dörfler
fe9ddedc07 BBox: Fixed broken fBounds position update.
* FrameMoved() is only for frame movements; only scrolling affects the
  bounds position.
* Thanks stippi!
2017-03-31 18:21:44 +02:00
Adrien Destugues
6bbb8b3022 Build fix. 2017-03-30 18:40:34 +02:00
wangxingdsb
c8a27537a7 ext2: check some more values for ext2_super_block
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13401.
2017-03-30 07:31:29 +02:00