57078 Commits

Author SHA1 Message Date
Adrien Destugues
b5aaac027e GPT: lower our identify score if only one header is present.
GPT should have its partition table both at the start and end of the
disk. Our GPT partitionning system is able to cope with just one of the
two being available. However this has the unwanted effect that when
erasing only the start of the disk, it is still recognized with its old
GPT scheme.

To avoid this, lower the score of GPT if it finds only one of the two
headers, allowing MBR and BFS to get more priority in that case.

Should fix #12290, #13434.
hrev51114
2017-04-22 09:45:17 +02:00
A-star-ayush
315633e13e getaddrinfo now accepts shorthand ipv4 notation
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

As required by POSIX:
"If the specified address family is AF_INET or AF_UNSPEC, address
strings using Internet standard dot notation as specified in inet_addr
are valid." (which allows IP in a.b.c.d, a.b.c, a.b, and a forms, and
also accepts the numbers in hex and octal).

Fixes #3884.
hrev51113
2017-04-22 08:04:35 +02:00
Brian Hill
73c2c7b4b5 SoftwareUpdater updates
*Added a check-only option to check for updates and display a
  notification when updates are available.
*Added argv commands to specify an action when using Terminal or
  BRoster to launch app: commands [update | check | full-sync]
*Draw a download progress bar on the package icon
*Increased the size of the package icon to improve the bar look
*Added package counts to each list category
hrev51112
2017-04-20 18:08:51 -04:00
Augustin Cavalier
0fb349bc5d network_settings/dialup: Initial move to layouting. hrev51111 2017-04-20 15:54:12 -04:00
Augustin Cavalier
adae1a12b8 network_settings/dialup: Update copyright headers.
Also reformat the rdef to match the other network_settings.
2017-04-20 15:54:12 -04:00
Augustin Cavalier
922badcfe1 network_settings/Jamfile: Add dialup SubInclude.
(Still not included in the build, of course.)
2017-04-20 15:54:12 -04:00
Jérôme Duval
43542cabdd runtime_loader: increase max length for image names.
* was previously 32, which would truncate longer shared object names.
* fixed #13436.
hrev51110
2017-04-20 18:23:36 +02:00
Jérôme Duval
41458d977a limits.h: define PIPE_BUF. hrev51109 2017-04-19 17:52:28 +02:00
Augustin Cavalier
15d60d5e45 stickit_BJoystick: Remove unused .proj file. hrev51108 2017-04-18 16:02:49 -04:00
Augustin Cavalier
c6c3303630 network_settings/dialup: Remove unneeded/unused posix directory. 2017-04-18 15:58:21 -04:00
Augustin Cavalier
9390158822 network_settings/dialup: Fix the build.
Badly needs layouting and a lot of other fixes to get it
working with the new PPP stack. But it's a start.
hrev51107
2017-04-18 15:40:10 -04:00
Augustin Cavalier
0a694375a9 network preflet: Add B_NETWORK_INTERFACE_TYPE_DIAL_UP. 2017-04-18 15:39:40 -04:00
Augustin Cavalier
a325aa030f DialUpAddOn: Move to add-ons/network_settings/dialup. 2017-04-18 14:21:26 -04:00
Jérôme Duval
00796434c6 limits.h: bump _POSIX_SEM_NSEMS_MAX to 256.
128 was too low for Python3.
hrev51106
2017-04-16 13:49:41 +02:00
Jérôme Duval
c2d8105024 Restore PAGE_SIZE from vendor sources. Fix build for echo24, echogals. hrev51105 2017-04-16 12:01:07 +02:00
Augustin Cavalier
8dcdf72d72 Update userguide translations hrev51104 2017-04-15 22:40:25 +02:00
Augustin Cavalier
b95e90657e docs/user: Update search URL following docs migration. hrev51103 2017-04-15 16:28:06 -04:00
autonielx
d99ff922ae Update translations from Pootle hrev51102 2017-04-15 06:50:46 +02:00
Augustin Cavalier
17f5ac9149 libroot: Restore exit() call after debugger().
Thanks PulkoMandy for the review.
hrev51101
2017-04-14 18:29:29 -04:00
Augustin Cavalier
a5d208c7d6 libroot: abort() should behave like a crash, not just a 'failure' exit.
Calling debugger() means that the crash dialog will be shown, and so
users will not be left wondering why an app just spontenously disappeared.
hrev51100
2017-04-14 16:07:02 -04:00
Adrien Destugues
302f451214 pcnet: _XOPEN_SOURCE. hrev51099 2017-04-14 21:04:45 +02:00
Adrien Destugues
71d017f1f0 More _XOPEN_SOURCE :/ hrev51098 2017-04-14 20:44:32 +02:00
Adrien Destugues
fd6603d99a Yet another missing _XOPEN_SOURCE. hrev51097 2017-04-14 20:19:15 +02:00
Adrien Destugues
c9d506a65e Another missing _XOPEN_SOURCE define... hrev51096 2017-04-14 19:00:13 +02:00
Dario Casalinuovo
0cc5ecb8ca MediaClient: IDs should be signed integers
* It's very important to use a negative value to identify
non valid or uninitialized connections. Additionally, it's preferred
to don't interfere with media_kit types as long as the framework use
it in the backend.
hrev51095
2017-04-14 17:28:35 +02:00
Axel Dörfler
3431d8f20e BFS: Fixed readdir() again.
* We still need to return B_BUFFER_OVERFLOW if the passed in buffer was
  smaller than INODE_FILE_NAME_LENGTH, as that's what must be expected
  from the caller.
hrev51094
2017-04-14 14:39:20 +02:00
Adrien Destugues
5bb8320035 Fix a few more uses of PAGE_SIZE hrev51093 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
hrev51092
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.
hrev51091
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.
hrev51090
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.
hrev51089
2017-04-10 21:56:31 +02:00
Fredrik Holmqvist
0cfd77ac3b Print elantech touchpad version. hrev51088 2017-04-10 21:17:58 +02:00
Humdinger
54d48f1666 Updated Vision package to v0.10.1-1 hrev51087 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.
hrev51086
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
hrev51085
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.
hrev51084
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.
hrev51083
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.
hrev51082
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.
hrev51081
2017-04-08 19:50:24 +02:00
Adrien Destugues
99edf9d9ed Remove another overzealous assert.
Fixes playing "swinging.mp4" from our demo video package.
hrev51080
2017-04-08 19:08:34 +02:00
Jérôme Duval
95a7451112 Adjust liwebp soname for x86_64. hrev51079 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
hrev51078
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.
hrev51077
2017-04-08 12:09:13 +02:00
Adrien Destugues
1f09ef45b6 Update libwebp to current version. hrev51076 2017-04-08 11:30:25 +02:00