57747 Commits

Author SHA1 Message Date
Augustin Cavalier
825700d34a configure: Rewrite implementation of --update.
Previously --update was kind of a hack, as it just dumped all
the variables from BuildConfig back into ./configure and attempted
to rerun from there.

Instead, now we store all of the variables and environs configure
was invoked with in the top of BuildConfig and re-call it using them.
This is much more robust, as configure will actually recompute
all of the values from the BuildConfig.

As a side effect, if configure was originally invoked to build crosstools,
it would have done so again, so instead add a check to see if they
exist, and skip them if they do. It's easy enough to delete the
directory if you want to force a crosstools rebuild.

Briefly discussed with mmlr on IRC.
hrev51656
2017-12-04 20:14:18 -05:00
A-star-ayush
bf1a86c199 TCP: Fixed RTO update and dup ACKs generation.
i) there was an integer promotion problem in updating the retransmission
timeout : a signed int was being divided by an unsigned int. This was causing
the values to overflow. Thus leading to huge values for timeout which
manifested in the perception of pause in data flow.

ii) for an ack to be recognised as a duplicate ack, the advertised window
must remain same. This was not taken care of in the code so I added it.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>

Helps with #13769 but does not fix it completely (upload gets
farther but still stalls.)
hrev51655
2017-12-04 15:12:03 -05:00
Michael Lotz
a88944c86e bootstrap: Add missing noto package to cross repos. hrev51654 2017-12-04 19:52:04 +01:00
Michael Lotz
1484b2336a bootstrap: Update cross packages for make, bash, icu. 2017-12-04 19:52:04 +01:00
Michael Lotz
22271bfdc2 bootstrap: Strip build down by removing unneeded packages.
Don't include makefile_engine, userguide, welcome, netfs and userland_fs
in the build for bootstrap.
2017-12-04 19:52:04 +01:00
Augustin Cavalier
f1e8af173c net_socket: control op should be uint32.
Where it is called from stack_interface_ioctl, the parameter
is already a uint32 there.

Fixes #13826.
hrev51653
2017-12-03 13:57:26 -05:00
Augustin Cavalier
acf02fd2cf locale: Fix another class/struct mixup. 2017-12-03 13:44:30 -05:00
Augustin Cavalier
8b222e6272 IORequest: NULL check does not belong in method body.
Found by Clang's -Wtautological-undefined-compare.
2017-12-03 13:44:16 -05:00
Augustin Cavalier
9c292427ec configure: Remove totally useless --enable-multiuser switch.
It's not used anywhere in the build system at all.
hrev51652
2017-12-02 23:27:09 -05:00
Augustin Cavalier
47bedf1601 PackageDataInlineReader: Do not use fData before it has been set.
Spotted by Clang.
2017-12-02 22:24:55 -05:00
Augustin Cavalier
7c234361eb Fix more class/struct mixups. 2017-12-02 22:24:06 -05:00
Augustin Cavalier
bf77c15232 kernel/vm: Correct virtual function declarations.
The base VMCache class changed to the generic_ types with their
introduction in in *2011* (435c43f5912b109e7d5cf682865d2061e62fad8c),
but these classes were never properly adapted. These functions should not
be called here (they panic() -- but the base class only returns B_ERROR,
so that is a difference at least.)

Found by Clang's -Woverloaded-virtual.
2017-12-02 21:42:50 -05:00
Augustin Cavalier
e33d3563dc RepositoryRules: Restore mistakenly deleted local variable. hrev51651 2017-12-02 18:48:21 -05:00
Augustin Cavalier
8dcb910a20 RepositoryRules: Do not use the downloaded repo.info.
Instead build the one in-tree from src/data/package_infos/. Fixes the
"HaikuPorts repos have wrong URL" problem that has occured since the
switch to buildmaster repos.
hrev51650
2017-12-02 18:36:26 -05:00
Augustin Cavalier
a992fe6af8 RepositoryRules: RepositoryConfig does not need/use URL now. 2017-12-02 18:29:13 -05:00
Augustin Cavalier
764c402a69 GraphicsDefs: Revert back to casting structs to integers to compare them.
This reverts commit d3abf525c5f0ba0260a11649eb439a4e4730d39d.
Clang's warning was a little overzealous; this is not a problem on x86.
hrev51649
2017-12-02 17:36:20 -05:00
Rene Gollent
737de463dd Debugger: Fix #13797.
- When reading the areas note, there was no check in place to ensure that a
  matching segment for the address was actually found. This would later lead
  to a crash when attempting to read memory from the corresponding (missing)
  piece of memory in the core.
hrev51648
2017-12-02 15:58:28 -05:00
Rene Gollent
dfc46d83b7 runtime_loader: Fix #13799.
- Don't remove .eh_frame in the linker scripts, as this saves little
  space in practice, and results in debug binaries of the runtime loader
  not being properly debuggable due to missing canonical frame
  information.
hrev51647
2017-12-02 15:41:41 -05:00
Alexander Coers
5797d59f94 ATA: Support for Highpoint HPT36x/37x PCI controller
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #13819. Some style fixes by me.
hrev51646
2017-12-02 11:45:57 -05:00
Augustin Cavalier
841d719fc8 MediaDefs: May be included as C not C++, so accommodate for that. hrev51645 2017-12-02 09:32:28 +01:00
Augustin Cavalier
2b1481f0dc Fix a few more miscellaneous (harmless) Clang warnings. hrev51644 2017-12-02 00:12:51 -05:00
Augustin Cavalier
d3eba978d3 shortcuts: Collapse needless SEARCH_SOURCE to a UseHeaders. 2017-12-02 00:00:51 -05:00
Augustin Cavalier
1812b1f732 preferences/bluetooth: Correct predefinitions.
Thanks to various Clang warnings/errors due to clashing definitions.
2017-12-01 23:59:56 -05:00
Augustin Cavalier
00aac5fdeb drivers: Add spaces around preprocessor macros in string literals.
It is illegal not to have these in C++11.
2017-12-01 23:59:09 -05:00
Augustin Cavalier
b4b5583536 hardlink_packages: Clarify packages directories in helptext. hrev51643 2017-12-01 22:29:56 +01:00
Augustin Cavalier
97599bfc05 build: Fix release build profile. 2017-12-01 22:28:43 +01:00
Augustin Cavalier
08ff3a4eea headers/clang: Remove.
Never used, and never will be following previous commit.
hrev51642
2017-12-01 21:16:58 -05:00
Augustin Cavalier
1f6fe0559b build: Copy and use Clang's vector intrinsics headers.
When compiling with GCC, these headers get pulled in from the
gcc_syslibs_devel package, but we cannot do something similar
for Clang as Clang adds/removes internal builtins used by
the headers nearly every version. So instead we just copy
all the intrinsics headers from current Clang into generated,
and make sure this directory is included before any others.
2017-12-01 21:16:13 -05:00
Augustin Cavalier
30c9d3c0cc kernel: Correct class/struct mixups.
Almost certainly harmless. Spotted by Clang.
2017-12-01 20:27:15 -05:00
Augustin Cavalier
d3abf525c5 GraphicsDefs: Do not cast structs to integers to compare them.
That requires more padding (1 byte vs 4 or 8 depending on integer size),
so just use regular loops and chained ==s.

Caught by Clang. No functional change intended.
2017-12-01 20:26:20 -05:00
Augustin Cavalier
220a7208a3 xres: Add missing braces.
Found by Clang's -Wmisleading-indentation.
hrev51641
2017-12-01 14:24:45 -05:00
Augustin Cavalier
6570684235 configure: Further fixes to Clang support.
* Actually locate the clang executable, and allow user overrides
 * Properly preserve arguments in get_build_tool_path
 * Fix get_build_tool_path for commands with dashes (e.g. "clang-5.0")
2017-12-01 14:23:57 -05:00
Augustin Cavalier
be622abddb fluidsynth: Remove from tree.
Not included in the build (or even wired to Jam) since the new package
repo changes merge.
hrev51640
2017-12-01 10:14:45 +01:00
Augustin Cavalier
6ecad0f315 Jamfile: Guard against building with non-Haiku Jams. 2017-12-01 10:11:57 +01:00
Automatic Committer
26b4b8319b Update usb.ids from www.linux-usb.org hrev51639 2017-11-30 05:21:36 +01:00
Julian Harnath
1d8d3ee32b Document workaround for using test_app_server
* Add a note about a workaround that can be used to run
  test_app_server, which currently fails to load the right
  library libbe_test.so. The bug should be fixed too, but
  with this, it can at least be used until then.
hrev51638
2017-11-29 19:43:16 +00:00
Greg Crain
af0c1fa658 xhci: fix hub descriptor command request
The command to get the hub descriptor needs to be a class request and was incorrect causing a Stall error for the hub. The the driver does not handle a stall error yet, causing odd behavior.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
hrev51637
2017-11-29 17:40:02 +01:00
Axel Dörfler
e96835a9a4 Added simple test_launch_daemon.
* Expects its config files in /boot/home/test_launch.
* Uses standard I/O, and is always in user mode.
* Also added test_launch_roster command that is able to talk to the test
  server like it does to the real thing.
hrev51636
2017-11-29 17:19:46 +01:00
Alexander von Gluck IV
2028f6e7fa repo/arm: Correct repo url hrev51635 2017-11-28 18:33:28 -06:00
Alexander von Gluck IV
5ec3b742e9 repo/arm: One more commit for good luck
* Update repository file to hardlink_packages modified one.
* Add some basic process overview to directory.
* We don't normally document in paths, but this stuff is complex.
* Documentation improvements welcome.
hrev51634
2017-11-28 18:20:31 -06:00
Alexander von Gluck IV
2694b5d602 repo/arm: Drop non-required missing any arch packages hrev51633 2017-11-28 17:46:24 -06:00
Alexander von Gluck IV
0674e71ca5 3rdparty/kallisti5/licenseReport: Add FSF check for GPL hrev51632 2017-11-28 17:13:38 -06:00
Alexander von Gluck IV
a0c92d9e9e repo/arm: Update url to new location 2017-11-28 17:13:38 -06:00
Alexander von Gluck IV
272510c371 bfs_tools/bfsinfo: Cleanup output, use human sizes
* Correct some warnings on 64-bit
hrev51631
2017-11-28 14:57:09 -06:00
Janus
3004f55c5c keystore: Clean up the code add an icon.
* Need more work see #13812 and #11315
hrev51630
2017-11-28 21:19:45 +01:00
Alexander von Gluck IV
ef854aff3a 3rdparty/kallisti5: License Guess Tool
* Pair it with a find, and pretty handy to
  highlight sources which have a non-standard,
  missing, or incompatible license.
hrev51629
2017-11-28 10:25:54 -06:00
Alexander von Gluck IV
8f087d87f9 bfs_tools: License clarification to MIT.
* Consulted with Axel D. via IRC to confirm license desires.
hrev51628
2017-11-28 09:26:04 -06:00
Janus
1abde80b3b ZipOMatic: modernize barberpole widget
* Use the code/graphic of the new barberpole (Haikudepot)
* See #13808
* I hope soon we will have a system standard widget
hrev51627
2017-11-28 14:07:02 +01:00
Janus
0588dd3ae2 [Haikudepot] Change barberpole colors
* Feel free to tweak tint and other parameters
* As suggested by waddlesplash this should extend the progressbar
* Should fix #13808
hrev51626
2017-11-27 23:16:54 +01:00
Julian Harnath
416c116003 HaikuDepot: resize window to largest screenshot of pkg
* When opening the screenshot window for a package, set the window
  size to the largest dimensions of all the screenshots of this
  package. Prevents it from resizing/jumping around when browsing
  through the images.
hrev51625
2017-11-27 22:15:02 +00:00