Commit Graph

49201 Commits

Author SHA1 Message Date
Ingo Weinhold af559cd6ee Add DetermineEffectiveHaikuRevision rule
Simplifies PreprocessPackageInfo a bit.
2014-01-19 00:49:10 +01:00
Ingo Weinhold d4bfbab374 Implement generic Sed rule 2014-01-19 00:49:10 +01:00
Rene Gollent e5ebc99d20 Update gcc4 webkit package to 1.2.3. 2014-01-18 12:20:45 -05:00
Ingo Weinhold 495b360b6b Add support for explicitly preventing rebuilding packages
Due to depending on dynamically built files, package files will always
be rebuilt when they are needed (e.g. when an image is built). The build
variable HAIKU_DONT_REBUILD_PACKAGES can be defined to prevent
rebuilding existing package files (even ones that are out-of-date).

Main target for this change is buildbot. We want to make sure that the
packages in the repository it builds are exactly identical to the ones
in the images, which may not be the case when the packages are rebuilt
(due to different timestamps of contained files). The respective build
order should be:

1. Build repository.
2. Without cleaning the generated directory, build different image types
   with HAIKU_DONT_REBUILD_PACKAGES defined.
2014-01-18 16:08:57 +01:00
Rene Gollent c1bcd68267 Update Vision x86{_gcc2} packages to r949.
Updated to no longer rely on deprecated get_system_info() call.
2014-01-18 09:36:27 -05:00
Rene Gollent 428bbe8906 DwarfFile: Add missing continue for skip case. 2014-01-18 09:35:27 -05:00
Humdinger 7409123922 Removed function to add screensavers
Removed "Add..." button and drag&drop awareness, as discussed in
http://www.freelists.org/post/haiku-development/Adding-screensavers-and-fonts
In short: all apps and add-ons will come as proper hpkg.
2014-01-18 13:21:06 +01:00
Stephan Aßmus 48ee828ae3 HaikuDepot: Disable editing for read-only text views. 2014-01-18 10:34:36 +01:00
Stephan Aßmus 1bce247b22 Fleshed out more TextEditor functionality.
TextDocumentView now always has a TextEditor, but editing can be disabled.
The selection code lives only in TextEditor. Implemented more cursor
navigation code.
2014-01-18 10:34:36 +01:00
Stephan Aßmus 00d04bc7f2 TextDocumentLayout: Added more utility methods
* CountLines(), FirstOffsetOnLine(), LastOffsetOnLine(), GetLineBounds().
* Common code for finding a line in _ParagraphLayoutIndexForLineIndex()
2014-01-18 10:34:35 +01:00
Stephan Aßmus e97d9097da ParagraphLayout: Added more utility methods
* FirtOffsetOnLine(), LastOffsetOnLine(), and GetLineBounds()
2014-01-18 10:34:34 +01:00
autonielx 8ed16a6959 Update translations from Pootle 2014-01-18 06:16:02 +01:00
Stephan Aßmus a512ed9a8f HaikuDepot: Implement support for a blinking cursor.
However, since the selection is actually maintained in TextEditor,
the cursor can't be navigated. The code needs to shuffle around a bit.
2014-01-17 23:33:30 +01:00
Stephan Aßmus 02d77b77aa HaikuDepot: Implement a BScrollView which works.
Need to investigate why the original one wouldn't layout the
TextDocumentView to the inner size...
2014-01-17 23:33:30 +01:00
Stefano Ceccherini 3828ba8a3f Fix build of the hpet driver.
It's not in the image so it doesn't get built by default.
2014-01-17 19:33:15 +01:00
Pawel Dziepak 955e4cff94 scheduler: Weaken time slept assertion 2014-01-17 18:07:47 +01:00
Adrien Destugues a61211c698 Remove FIND_NEXT message for find text control
BTextControl calls Invoke() when it loses the focus and the text has
changed. We don't want this to trigger a search, and instead rely on the
user pressing enter to run the search.

Fixes the search happening again when closing the search bar (escape key
or otherwise), or clicking on the page after searching. Fixes #10168.
2014-01-17 15:42:53 +01:00
Adrien Destugues ab390d3af3 Style fixes and allocation checks 2014-01-17 15:08:57 +01:00
Adrien Destugues bb03a92ef6 Some style fixes.
More work is needed for this new file to completely follow the style
guidelines. Also added several FIXMEs and TODOs.

This doesn't seem to break anything on my machine however, and was
confirmed to help by several users, so we may as well use it.
2014-01-17 14:46:42 +01:00
Adrien Destugues a35f568273 Revert part of previous patch
Checking only the visible resolution and colorspace isn't enough to call
two modes equal, otherwise it is not possible to change the refresh rate
anymore.
2014-01-17 14:45:11 +01:00
Adrien Destugues ef726c687a Intel_extreme: improve i855 support.
https://github.com/druga/haiku-stuff/tree/master/intel_extreme
Rebased against current sources.

* The BIOS video mode sometimes reports a scaled mode instead of the
physical panel dimensions. Get the data from the VBT table as well, and
use it if the reported resolution is bigger.
* On first boot, force the panel native mode so the user doesn't have to
set it manually.
* Only allow a single head at a time on i855gm, as the card can't drive
both heads at the same time.
* Detect when a new requested mode is the same as the current one, and
skip modesetting in that case. Avoids screen flickering when changing
workspaces.
* Fix some cases of misdetecting which pipes to enable
2014-01-17 12:42:20 +01:00
Adrien Destugues 9e9ccf69c0 Yet anoter noSSL build fix. 2014-01-17 12:13:27 +01:00
Adrien Destugues 76b3c7f420 More noSSL build fixes. 2014-01-17 11:21:13 +01:00
Adrien Destugues 0876ab98f9 fixed gcc2 package, following atomic_add change. 2014-01-17 10:53:29 +01:00
Adrien Destugues e1caa56b1e Add another mssing string::compare prototype.
Matches buildtools change 8b70c20ed25f905e7e217376c9e2f65a8dee6729.
2014-01-17 10:00:32 +01:00
Pawel Dziepak d0f2d8282f Merge branch 'scheduler'
Conflicts:
	build/jam/packages/Haiku
	headers/os/kernel/OS.h
	headers/os/opengl/GLRenderer.h
	headers/private/shared/cpu_type.h
	src/add-ons/kernel/drivers/power/acpi_battery/acpi_battery.h
	src/bin/sysinfo.cpp
	src/bin/top.c
	src/system/kernel/arch/x86/arch_system_info.cpp
	src/system/kernel/port.cpp
2014-01-17 04:06:15 +01:00
Pawel Dziepak 0269dd284e Revert "scheduler: SCHEDULER_EXIT_FUNCTION() is not needed"
This reverts commit 667617ad043a4587d8d366d5192d9ad291cfa37a.

Scheduler profiler uses CPU local data to store function information, hence
arch_thread_context_switch() usually is not a problem. However, when
we switch to a new thread we end up scheduler_new_thread_entry() instead
of scheduler_reschedule() what may corrupt data collected by the profiler.
2014-01-17 01:55:42 +01:00
Pawel Dziepak 3dce49af0e scheduler: Cache quantum length 2014-01-17 01:55:42 +01:00
Pawel Dziepak 4835c216f7 scheduler: low_latency: Try to keep all cores busy 2014-01-17 01:55:42 +01:00
Pawel Dziepak 0d27a57cf1 scheduler: Fix divide by zero on CPU disable 2014-01-16 23:26:10 +01:00
Pawel Dziepak f978518a52 scheudler: Cache ThreadData::IsCPUBound() result 2014-01-16 23:26:10 +01:00
Pawel Dziepak b7d404c2df scheduler: Add ThreadData::{GetPriority, IsIdle, IsRealTime}() 2014-01-16 23:26:09 +01:00
Pawel Dziepak 093c220267 scheduler: Improve latencies 2014-01-16 23:26:09 +01:00
Pawel Dziepak 7f212f45c3 scheduler: Update used time when thread yields or sleeps 2014-01-16 23:26:09 +01:00
Pawel Dziepak dd8a866adc libroot/x86: Fix indirect jump 2014-01-16 20:18:22 +01:00
Pawel Dziepak 79c9b824e4 libroot: sync() should not return any value 2014-01-16 20:18:22 +01:00
Murai Takashi f1a28e35ec Fix icon-o-matic build with gcc 4.8 (x86_64)
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-01-16 17:51:27 +01:00
Adrien Destugues e395fc4f3b NetworkCookieJar: use-after-free, memcpy overwrite
* Add some tracing, std::nothrow and null checks
* The HashString class doesn't like SetTo being called with a substring
of the current key, so use a copy of it instead.

Fixes #6667.
2014-01-16 16:54:51 +01:00
Adrien Destugues 547c1486ff Add some missing std::nothrow
... and allocation failure checks.
2014-01-16 13:29:15 +01:00
Adrien Destugues b70c72a692 Fix concurrency issues in BSecureSocket
* Use pthread_once to initialize the SSL context once, in a thread-safe
way.
* Do not delete the BIO immediately when closing a connexion, instead
delay this to the destructor. This makes sure the protocol loop is done
running when we do that.
* Instead of creating a new BIO when we reconnect an already used
connection, create the BIO upfront, and reuse it with the new file
descriptor.
* Fix a memory leak: the SSL struct from OpenSSL was never freed, only
the BIO was.

Fixes #10414.
2014-01-16 11:25:47 +01:00
Adrien Destugues 67af469ef0 Fix time_t/bigtime_t mixup.
Thanks stippi for noticing!
2014-01-16 09:41:01 +01:00
Adrien Destugues 3db3864644 Fix crash when trying to open a non-existing file. 2014-01-16 09:30:13 +01:00
Adrien Destugues 385a7d89b7 More style fixes. 2014-01-16 09:30:12 +01:00
John Scipione 969fac14a7 Evaluate asynchronously in a separate thread
Show calculating animation
2014-01-15 18:54:12 -05:00
Adrien Destugues 159d1fb69a Style fixes, build fix with OpenSSL disabled. 2014-01-15 23:32:10 +01:00
Jérôme Duval 66a7f29f59 x86_64: include the "32" dir when targeting 32-bit
* helps with building boot loader with GCC 4.8
2014-01-15 22:45:45 +01:00
Adrien Destugues 00b65b2d7b FileRequest: multiple fixes
* Don't crash when opening a symlink, traverse it instead.
* Add a ".." entry to navigate to the parent folder
* Set the encoding to utf-8 in the MIME header, but this doesn't seem to
work.
2014-01-15 20:20:58 +01:00
Adrien Destugues 4e4396fa46 Fix build. 2014-01-15 17:52:39 +01:00
Adrien Destugues 5ebdc79955 SecureSocket: add some certificate support
* Instead of creating an OpenSSL context ofor each socket, use a global
one and initialize it lazily when the first SecureSocket is created
* Load the certificates from our certificate list so SSL certificates
sent by servers can be validated.
* Add a callback for signalling that certificate validation failed, the
default implementation proceeds with the connection anyway (to keep the
old behavior).
* Introduce BCertificate class, that provides some information about a
certificate. Currently it's only used by the callback mentionned above,
but it will be possible to get the leaf certificate for the connection
after it's established.

Review of the API and implementation is welcome, before I start making
use of this in HttpRequest and WebKit to allow the user to accept new
certificates.
2014-01-15 17:45:21 +01:00
Alexander von Gluck IV b11772acca build: Update x86_gcc2 gcc packages
* Resolves problem with secondary arch builds
  not picking up secondary os kit headers
* Still need to build x86 gcc packages
* No binary changes, shouldn't need a bootstrap
2014-01-15 00:45:59 -06:00