haiku.git
8 years agoDeskBar: refactor expander code.hrev46195
John Scipione [Wed, 9 Oct 2013 00:23:59 +0000 (8 20:23 -0400)]
DeskBar: refactor expander code.

With the Tracker thread code in shared now it is possible to use the same
trick for the expanders in Deskbar to open and close in a separate thread
that we use in Tracker. See Find Panel and Info window for examples
of the code being used in Tracker.

Also eliminates the fClickedExpander variable and allow you to expand with any
mouse button.

Hopefully fixes #9676

8 years agoMenuField: Filter out additional MouseDown messages.
John Scipione [Wed, 9 Oct 2013 00:09:41 +0000 (8 20:09 -0400)]
MenuField: Filter out additional MouseDown messages.

...while mouse is down on a menufield

This makes it so that you can't open 2 menufields simultaneously
by clicking and holding the right mouse button on one menufield while
clicking a second with the the left mouse button opening it.

This matches the behavior on BeOS R5.

Should help with #6408 comment:9

8 years agoMove Thread classes from Tracker to shared
John Scipione [Tue, 8 Oct 2013 23:46:21 +0000 (8 19:46 -0400)]
Move Thread classes from Tracker to shared

So that they may be utilized outside of Tracker

8 years agolibroot: Properly fix linking with libgcc without cmdline overflowhrev46194
François Revol [Tue, 8 Oct 2013 20:45:31 +0000 (8 22:45 +0200)]
libroot: Properly fix linking with libgcc without cmdline overflow

Instead of listing all the objects we want from the libgcc archive
we just make a copy of it and remove those we don't want, and link
to it.

This should allow returning MAXLINE in jam to a sane value.

8 years agoipro1000: fixed the build after the 9.2 updatehrev46193
Jérôme Duval [Tue, 8 Oct 2013 20:07:51 +0000 (8 22:07 +0200)]
ipro1000: fixed the build after the 9.2 update

8 years agoUpdate FreeBSD network drivers with the 9.2 release
Jérôme Duval [Tue, 8 Oct 2013 19:42:40 +0000 (8 21:42 +0200)]
Update FreeBSD network drivers with the 9.2 release

8 years agoboot loader: Optimize heap implementationhrev46192
Ingo Weinhold [Tue, 8 Oct 2013 19:03:20 +0000 (8 21:03 +0200)]
boot loader: Optimize heap implementation

* Increase general allocation alignment from 4 to 8 byte. That was even
  incorrect.
* Use a splay tree instead of a singly linked list to manage the free
  chunks. That increases the size of the per-chunk structure to manage
  the free chunks, i.e. the of minimally allocatable memory size (from
  align(sizeof(void*)) to align(3 * sizeof(void*))), but make finding
  and inserting chunks much faster.

Fixes #10063 respectively improves the situation significantly.

8 years agoboot loader: mount_file_systems(): Fix warning
Ingo Weinhold [Tue, 8 Oct 2013 18:48:30 +0000 (8 20:48 +0200)]
boot loader: mount_file_systems(): Fix warning

8 years agoboot loader: bios IA32: Add optional timestamps to debug output
Ingo Weinhold [Tue, 8 Oct 2013 18:48:08 +0000 (8 20:48 +0200)]
boot loader: bios IA32: Add optional timestamps to debug output

8 years agoIteratableSplayTree: Add FindClosest()
Ingo Weinhold [Tue, 8 Oct 2013 18:38:45 +0000 (8 20:38 +0200)]
IteratableSplayTree: Add FindClosest()

8 years agoRevert "MenuBar: Fix sticky menu issue. #6408 comment:9"hrev46191
John Scipione [Tue, 8 Oct 2013 17:29:56 +0000 (8 13:29 -0400)]
Revert "MenuBar: Fix sticky menu issue. #6408 comment:9"

This reverts commit 74627342028d4a2ca7cf4e64d5ea9a07efab87ef.

Fixes #10072, breaks #6408 comment:9 again.

8 years agoU-Boot: Remove duplicate target for <build>makebootablehrev46190
François Revol [Tue, 8 Oct 2013 17:04:53 +0000 (8 19:04 +0200)]
U-Boot: Remove duplicate target for <build>makebootable

And comment the use of libbe, which isn't needed for now and
didn't build anyway.

8 years agoRefactor UrlRequest/UrlProtocol in the Service Kithrev46189
Adrien Destugues [Tue, 8 Oct 2013 09:30:56 +0000 (8 11:30 +0200)]
Refactor UrlRequest/UrlProtocol in the Service Kit

 * Remove the BUrlRequest class, which was only delegating work to
BUrlProtocol and subclasses
 * Rename BUrlProtocol to BUrlRequest, and BUrlRequestHttp to BHttpRequest
 * Creating a request is now done through the BUrlProtocolRoster. For
now there is just a static MakeRequest method, this will be completed
when we get to actually allowing add-ons to provide different request
handlers.

This allows cleanup of the API for requests:
 * Remove the universal SetOption method with constants, and have
dedicated setters for each protocol option.
 * Setters can now have multiple parameters, for example you can give
BHTTPRequest a BDataIO and a known size
 * In this case, the BHttpRequest will not use HTTP chunked transfers,
which were always used before and made most servers unhappy (tested and
failed with lighttpd, google accounts and github).

8 years agoHaikuDepot: Add TODO note.hrev46188
Rene Gollent [Tue, 8 Oct 2013 03:07:00 +0000 (7 23:07 -0400)]
HaikuDepot: Add TODO note.

8 years agoHaikuDepot: Resolve system dependencies.
Rene Gollent [Tue, 8 Oct 2013 03:05:48 +0000 (7 23:05 -0400)]
HaikuDepot: Resolve system dependencies.

- While building the installed package list, resolve the dependencies
  of the OS packages. Flag the resulting list as protected so as
  to disallow uninstallation of them in addition to the OS packages.

8 years agoHaikuDepot: Disallow actions on system deps as well.
Rene Gollent [Tue, 8 Oct 2013 03:05:31 +0000 (7 23:05 -0400)]
HaikuDepot: Disallow actions on system deps as well.

8 years agoHaikuDepot: Add PackageInfo flag for system dependencies.
Rene Gollent [Tue, 8 Oct 2013 03:05:07 +0000 (7 23:05 -0400)]
HaikuDepot: Add PackageInfo flag for system dependencies.

8 years agoFixed directories. Thanks jessica.hrev46187
Matt Madia [Mon, 7 Oct 2013 01:33:14 +0000 (6 21:33 -0400)]
Fixed directories. Thanks jessica.

Note to self: Don't push on an empty coffee cup.

8 years agoUpdate script for package-management related changes.hrev46186
Matt Madia [Mon, 7 Oct 2013 01:17:39 +0000 (6 21:17 -0400)]
Update script for package-management related changes.

A hpkg will be created locally, which contains the firmwares. This hpkg will
be copied to system. IIRC, the firmware must live in their respective
subdirectories.

To note, once the approve_license flags are implemented on the end-user
applicacation side, the Intel ipw2100 and Intel ipw2200 could be moved
to a separate package. However (and IIRC) the Broadcom involves using a closed
binary blob, that should not become a pre-made package.

8 years agoFix build.hrev46185
Rene Gollent [Mon, 7 Oct 2013 01:00:06 +0000 (6 21:00 -0400)]
Fix build.

8 years agoFix permission of text files within archive.hrev46184
Matt Madia [Sun, 6 Oct 2013 22:48:45 +0000 (6 18:48 -0400)]
Fix permission of text files within archive.

LICENSE.iwlwifi-4965-ucode and README.iwlwifi-4965-ucode were mistakenly marked
as executables.

8 years agoFix permission of text files within archive.
Matt Madia [Sun, 6 Oct 2013 22:31:41 +0000 (6 18:31 -0400)]
Fix permission of text files within archive.

README.iwlwifi-3945-ucode and LICENSE.iwlwifi-3945-ucode were mistakenly marked
as an executable. Was uncertain if iwlwifi-3945-2.ucode should or should not
be marked as an executable and was unchanged.

8 years agoFix permission of text file within zipfile.hrev46183
Matt Madia [Sun, 6 Oct 2013 22:19:22 +0000 (6 18:19 -0400)]
Fix permission of text file within zipfile.

LICENSE.marvell-firmware.txt was mistakenly marked as an executable.

8 years agoHaikuDepot: Clean up some aspects of package handling.hrev46182
Rene Gollent [Sun, 6 Oct 2013 22:11:39 +0000 (6 18:11 -0400)]
HaikuDepot: Clean up some aspects of package handling.

- A package can potentially be installed in more than one location. As
  such, track all of them on PackageInfo (not yet exposed/used).

- Rather than attempting to use location, check the package's flags to
  see if it's a system package. If so, disallow deinstallation. Not quite
  complete yet though, as we still needs to also resolve the deps of any
  system package, and likewise disallow removal of those.

8 years agoSet system package flag on OS packages.
Rene Gollent [Sun, 6 Oct 2013 21:55:55 +0000 (6 17:55 -0400)]
Set system package flag on OS packages.

8 years agoFix #10045.hrev46181
Rene Gollent [Sun, 6 Oct 2013 15:01:18 +0000 (6 11:01 -0400)]
Fix #10045.

- app_server's FontManager also needs to watch ~/config/non-packaged/fonts.

8 years agoDon't code the Haiku version into all the package infoshrev46180
Ingo Weinhold [Sat, 5 Oct 2013 23:37:13 +0000 (6 01:37 +0200)]
Don't code the Haiku version into all the package infos

8 years agoAdd some missing B_USER_*_DIRECTORY constantshrev46179
Ingo Weinhold [Sat, 5 Oct 2013 22:31:49 +0000 (6 00:31 +0200)]
Add some missing B_USER_*_DIRECTORY constants

8 years agoHaikuDepot: Show packages that don't have a repository.hrev46178
Rene Gollent [Sat, 5 Oct 2013 21:31:38 +0000 (5 17:31 -0400)]
HaikuDepot: Show packages that don't have a repository.

- If a package was installed, but didn't have a corresponding remote
  repository package, it would have been missed in the list. Detect these
  and create a special local depot object to house them, so they also make
  their way into the visible package list.

Thanks to diver for reporting the discrepancy.

8 years agoFilterView: Fix depot list.
Rene Gollent [Sat, 5 Oct 2013 21:24:56 +0000 (5 17:24 -0400)]
FilterView: Fix depot list.

- Since the package list is built lazily in the background, the list of
  depots won't actually be available immediately at construction time.
  Defer building the menu for both that and the categority list until the
  model has actually been populated.

8 years agoAlso add repository cache files to imagehrev46177
Ingo Weinhold [Sat, 5 Oct 2013 20:49:25 +0000 (5 22:49 +0200)]
Also add repository cache files to image

This makes package management operations that require a repository cache
immediately usable (even offline). Also makes sense for the
update-{all,packages} build profile actions, since those update the
repository config which would otherwise no longer match a potentially
existing cache.

8 years agoupdate-{all,packages} build action: Update repository config
Ingo Weinhold [Sat, 5 Oct 2013 20:40:15 +0000 (5 22:40 +0200)]
update-{all,packages} build action: Update repository config

8 years agoupdate-{all,packages} build profile action: empty packages dir
Ingo Weinhold [Sat, 5 Oct 2013 20:28:59 +0000 (5 22:28 +0200)]
update-{all,packages} build profile action: empty packages dir

... before copying the new contents to the image. This caters to the
typical use case of updating an existing Haiku, making manual
intervention to get the new packages activated unnecessary. The downside
is that manually added packages will be removed as well.

8 years agoFix update-all build profile action
Ingo Weinhold [Sat, 5 Oct 2013 20:10:01 +0000 (5 22:10 +0200)]
Fix update-all build profile action

The same disclaimer as before package management applies (i.e. voids
warranty, use at your own risk).

8 years agoUpdate Vision package to r946.hrev46176
Rene Gollent [Sat, 5 Oct 2013 15:52:36 +0000 (5 11:52 -0400)]
Update Vision package to r946.

8 years agoIntegrate comments from Axel over the ML.hrev46175
Adrien Destugues [Sat, 5 Oct 2013 08:09:44 +0000 (5 10:09 +0200)]
Integrate comments from Axel over the ML.

8 years agoUpdate translations from Pootlehrev46174
Niels Sascha Reedijk [Sat, 5 Oct 2013 04:15:53 +0000 (5 06:15 +0200)]
Update translations from Pootle

8 years agoAdd symbol versioning for find_directory()hrev46173
Ingo Weinhold [Fri, 4 Oct 2013 23:32:44 +0000 (5 01:32 +0200)]
Add symbol versioning for find_directory()

Should already have been done back when the semantics for the
B_COMMON_*DIRECTORY constants was changed.

Currently old and new version behave the same. So this is just a
contingency measure ATM.

8 years agofind_directory(): Fix build
Ingo Weinhold [Fri, 4 Oct 2013 23:24:29 +0000 (5 01:24 +0200)]
find_directory(): Fix build

8 years agoUse ssize_t to allow returning a negative error codehrev46172
Adrien Destugues [Fri, 4 Oct 2013 14:55:24 +0000 (4 16:55 +0200)]
Use ssize_t to allow returning a negative error code

8 years agoDocument some classes for the Network Kit.
Adrien Destugues [Fri, 4 Oct 2013 14:54:13 +0000 (4 16:54 +0200)]
Document some classes for the Network Kit.

8 years agoFix mismatched prototypes in the Haiku Book.
Adrien Destugues [Fri, 4 Oct 2013 14:52:49 +0000 (4 16:52 +0200)]
Fix mismatched prototypes in the Haiku Book.

8 years agops2: rename a constant also used in padshrev46171
Jérôme Duval [Fri, 4 Oct 2013 14:05:59 +0000 (4 16:05 +0200)]
ps2: rename a constant also used in pads

8 years agops2: disable elantech support until it's more functional
Jérôme Duval [Fri, 4 Oct 2013 14:04:25 +0000 (4 16:04 +0200)]
ps2: disable elantech support until it's more functional

8 years agotty: fixed warnings about an uninitialized variable.
Jérôme Duval [Thu, 3 Oct 2013 15:17:58 +0000 (3 17:17 +0200)]
tty: fixed warnings about an uninitialized variable.

8 years agortf: fixed a warning about an uninitialized variable.
Jérôme Duval [Thu, 3 Oct 2013 15:17:21 +0000 (3 17:17 +0200)]
rtf: fixed a warning about an uninitialized variable.

8 years agoneomagic: fixed a warning about an uninitialized variable.
Jérôme Duval [Thu, 3 Oct 2013 15:16:28 +0000 (3 17:16 +0200)]
neomagic: fixed a warning about an uninitialized variable.

8 years agopegasus: cleanup
Jérôme Duval [Thu, 3 Oct 2013 15:15:32 +0000 (3 17:15 +0200)]
pegasus: cleanup

8 years agoRemove B_COMMON*_DIRECTORY and kCommon*Directory constantshrev46170
Ingo Weinhold [Fri, 4 Oct 2013 00:30:30 +0000 (4 02:30 +0200)]
Remove B_COMMON*_DIRECTORY and kCommon*Directory constants

* This does intentionally break source compatibility, so that a review
  of concerned code is forced.
* Binary compatibility should be maintained in most cases. The values
  of the constants for the writable directories are now used for the
  writable system directories. The values for the non-writable
  directories are mapped to "/boot/system/data/empty/...", an empty or
  non-existent directory, so that they will simply be skipped in search
  paths. Only code that explicitly expects to find something in a
  B_COMMON_* directory, will fail.

8 years agoHaiku package: Add a data/empty directory
Ingo Weinhold [Fri, 4 Oct 2013 00:19:31 +0000 (4 02:19 +0200)]
Haiku package: Add a data/empty directory

Can be used when a path to a directory is needed that is certainly
emtpy.

8 years agoMake the "build" build profile action more intelligenthrev46169
Ingo Weinhold [Thu, 3 Oct 2013 22:20:53 +0000 (4 00:20 +0200)]
Make the "build" build profile action more intelligent

If additional parameters are specified, only those targets are built,
but under the influence of the build profile. E.g. "jam @alpha-raw build
haiku.hpkg" builds the package with SSL support, while "jam haiku.hpkg"
would build it without (unless explicitly enabled in UserBuildConfig).

8 years agoHaikuPortCross repository: Update libsolv versionhrev46168
Ingo Weinhold [Thu, 3 Oct 2013 21:01:13 +0000 (3 23:01 +0200)]
HaikuPortCross repository: Update libsolv version

8 years agoFix incorrect uses of getpwuid_r()hrev46167
Ingo Weinhold [Thu, 3 Oct 2013 19:50:43 +0000 (3 21:50 +0200)]
Fix incorrect uses of getpwuid_r()

The function's behavior was recently fixed to succeed, but return a NULL
pointer, when the entry was not found. Fixes a crash in this case.

8 years agoMake secondary haiku_devel package depend on the primary
Ingo Weinhold [Thu, 3 Oct 2013 19:49:02 +0000 (3 21:49 +0200)]
Make secondary haiku_devel package depend on the primary

Only the primary haiku_devel package contains the system headers.

8 years agoDeclare libicu* requirements in the haiku* packages
Ingo Weinhold [Thu, 3 Oct 2013 19:48:11 +0000 (3 21:48 +0200)]
Declare libicu* requirements in the haiku* packages

8 years agoUpdate packages that hard-coded references to /boot/common
Ingo Weinhold [Thu, 3 Oct 2013 19:47:10 +0000 (3 21:47 +0200)]
Update packages that hard-coded references to /boot/common

There are a few more (like gcc still including there respective search
paths), but those should be harmless and can be adjusted later.

8 years agoRemove /boot/common for good
Ingo Weinhold [Thu, 3 Oct 2013 19:44:44 +0000 (3 21:44 +0200)]
Remove /boot/common for good

* Remove support for the "common" installation location from packagefs,
  package kit, package daemon, package managers.
* Rename the B_COMMON_*_DIRECTORY constants referring to writable
  directories to B_SYSTEM_*_DIRECTORY.
* Remove/adjust the use of various B_COMMON_*_DIRECTORY constants.
  I'm sure some occurrence still remain. They can be adjusted when the
  remaining B_COMMON_*_DIRECTORY constants are removed.

8 years agoruntime loader: 64-bit ktrace output fixes
Ingo Weinhold [Thu, 3 Oct 2013 18:12:06 +0000 (3 20:12 +0200)]
runtime loader: 64-bit ktrace output fixes

8 years agoInitial changes to remove /boot/common
Ingo Weinhold [Sun, 29 Sep 2013 20:09:00 +0000 (29 22:09 +0200)]
Initial changes to remove /boot/common

* find_directory() and hard-coded paths use /boot/system instead of
  /boot/common.
* The build system creates the writable directories in /boot/system
  instead of /boot/common.
* The build system no longer installs any packages in /boot/common.

8 years agoForce AF_INET when resolving addresseshrev46166
Adrien Destugues [Thu, 3 Oct 2013 15:02:45 +0000 (3 17:02 +0200)]
Force AF_INET when resolving addresses

 * The default is to use IPv6 addresses, but these don't quite work yet
in Haiku.
 * Also, some debug messages improvements and fix a crash when the
payload has % inside it (parsing it as a printf string isn't such a
good idea)

8 years agoac97: added support for missing realtek codecs.hrev46165
Jérôme Duval [Thu, 3 Oct 2013 05:45:47 +0000 (3 07:45 +0200)]
ac97: added support for missing realtek codecs.

* based on ALSA.
* code cleanup

8 years agoImplement #10051.hrev46164
Rene Gollent [Thu, 3 Oct 2013 02:48:44 +0000 (2 22:48 -0400)]
Implement #10051.

- Add a simple download progress meter to pkgman that prints a hash mark
  for every 2% of the download completed. Improvements welcome.

8 years agox86_64: ssize_t is arch specific, reuse read_pointer_from_buffer_swap()hrev46163
Jérôme Duval [Tue, 1 Oct 2013 21:47:27 +0000 (1 23:47 +0200)]
x86_64: ssize_t is arch specific, reuse read_pointer_from_buffer_swap()

... instead of read_from_buffer_swap32. The function could be renamed.
found with GCC 4.8.

8 years agoFixed x86_64 broken build introduced in hrev46161.hrev46162
Jérôme Duval [Tue, 1 Oct 2013 21:31:04 +0000 (1 23:31 +0200)]
Fixed x86_64 broken build introduced in hrev46161.

8 years agoadded a check for HOST_EXTENDED_REGEX_SED presencehrev46161
Jérôme Duval [Tue, 1 Oct 2013 17:35:36 +0000 (1 19:35 +0200)]
added a check for HOST_EXTENDED_REGEX_SED presence

8 years agoAdd s_tanhl.c to x86 jamfile
Sam Toyer [Sat, 1 Dec 2012 14:25:20 +0000 (2 00:25 +1000)]
Add s_tanhl.c to x86 jamfile

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
8 years agoAdd s_ldexpl.c to x86 jamfile
Sam Toyer [Sat, 1 Dec 2012 14:17:26 +0000 (2 00:17 +1000)]
Add s_ldexpl.c to x86 jamfile

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
8 years agoAdd glibc ilogbl implemenation
Sam Toyer [Sat, 1 Dec 2012 14:08:31 +0000 (2 00:08 +1000)]
Add glibc ilogbl implemenation

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
8 years agoAdd missing definitions to math.h
Sam Toyer [Sat, 1 Dec 2012 09:18:57 +0000 (1 19:18 +1000)]
Add missing definitions to math.h

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
8 years agoRAWTranslator: fixed a warning
Jérôme Duval [Sun, 29 Sep 2013 17:02:54 +0000 (29 19:02 +0200)]
RAWTranslator: fixed a warning

the code uses a double[4][3] array as a double cameraXYZ[0][12] array.

8 years agovirtio_pci: fixes the build and an unused variable warning.
Jérôme Duval [Sun, 29 Sep 2013 16:40:06 +0000 (29 18:40 +0200)]
virtio_pci: fixes the build and an unused variable warning.

8 years agobuild: Reenable debug mode for tarfshrev46160
Pawel Dziepak [Tue, 1 Oct 2013 17:32:51 +0000 (1 19:32 +0200)]
build: Reenable debug mode for tarfs

8 years agokernel/util: Make exit() available in bootloader as well
Pawel Dziepak [Tue, 1 Oct 2013 17:31:48 +0000 (1 19:31 +0200)]
kernel/util: Make exit() available in bootloader as well

8 years agoAdd more keywords, variables and functionshrev46159
Adrien Destugues [Tue, 1 Oct 2013 16:54:59 +0000 (1 18:54 +0200)]
Add more keywords, variables and functions

8 years agoRename parameters to avoid compile errorhrev46158
Adrien Destugues [Tue, 1 Oct 2013 15:13:58 +0000 (1 17:13 +0200)]
Rename parameters to avoid compile error

 * warning: declaration of `signal' shadows global declaration

8 years agoRemove which command from default imagehrev46157
Adrien Destugues [Tue, 1 Oct 2013 14:26:05 +0000 (1 16:26 +0200)]
Remove which command from default image

 * This was a script relying on a working /etc/profile, which may not be
there
 * Instead, use GNU which, available as an haikuport recipe
 * Since the command does not seem to be needed for Haiku to run (and
also because I don't know how to do it), GNU which isn't in the default
 install.
 * Typing "which" in a terminal still works, as that uses an alias
defined directly in /etc/profile.

8 years agokernel/util: Make exit() available in kernel modehrev46156
Pawel Dziepak [Tue, 1 Oct 2013 13:51:07 +0000 (1 15:51 +0200)]
kernel/util: Make exit() available in kernel mode

Since we are using libraries originally intendent for user mode in kernel
mode providing them with some userland functions is inevitable. This
particular patch is to make zlib happy and able to call exit() when
its debug assertions fails.

8 years agokits/support: Skip debug check in boot loader
Pawel Dziepak [Tue, 1 Oct 2013 13:47:53 +0000 (1 15:47 +0200)]
kits/support: Skip debug check in boot loader

8 years agobuild: Add stub _get_thread_info() needed by support/Referenceable.cpphrev46155
Pawel Dziepak [Tue, 1 Oct 2013 13:06:17 +0000 (1 15:06 +0200)]
build: Add stub _get_thread_info() needed by support/Referenceable.cpp

This is a step towards fixing #10042.

When DEBUG is set BReferenceable::~BReferenceable() performs some checks
ensuring that the object is destroyed correctly. These checks require
information on thread stack, which is obtained by get_thread_info().

_get_thread_info() stub is added (actually, readded) which always returns
B_ERROR. Moreover, the check in BReferenceable destructor is modified
so that it does not fail when get_thread_info() fails.

8 years agousb_disk: retry when usb disk not readyhrev46154
Julian Harnath [Tue, 1 Oct 2013 03:32:13 +0000 (30 22:32 -0500)]
usb_disk: retry when usb disk not ready

* Resolves #10043
* Fixes a non-booting issue due to hrev46099

8 years agousb_disk: fix line endings; no functional change
Alexander von Gluck IV [Tue, 1 Oct 2013 02:38:42 +0000 (30 21:38 -0500)]
usb_disk: fix line endings; no functional change

* Occurred in hrev46099
* Line endings dos2unix
* Remove extra lines at end of file
* Jerome! Get a better text editor :-)

8 years agoHaikuDepot: improve progress tracking.hrev46153
Rene Gollent [Tue, 1 Oct 2013 03:07:19 +0000 (30 23:07 -0400)]
HaikuDepot: improve progress tracking.

- PackageManager: Adjust progress listener interface to also supply
  the package name to the hook. Adjust implementors.

- PackageActions now get a pointer to the model. InstallPackageAction
  uses that to resolve the package name given in the download progress hook
  to the package currently being downloaded, and updates progress accordingly.
  Consequently, if one requests installation of a package that has dependencies,
  Depot now correctly updates the download progress status of those
  accordingly, rather than updating the original package repeatedly.

8 years agoActually fix the buildhrev46152
François Revol [Tue, 1 Oct 2013 01:57:24 +0000 (1 03:57 +0200)]
Actually fix the build

Looks like I was too quick on previous commit.

It seems -pthread is actually not that much needed on Linux though...
although the manpage says "compile and link with -pthread". Go figure.

Now dlopen() uses RTLD_LAZY | RTLD_LOCAL for Linux, which seems
to work here.

8 years agoFix build
François Revol [Tue, 1 Oct 2013 00:37:54 +0000 (1 02:37 +0200)]
Fix build

Declare a HOST_PTHREAD_LINKFLAGS variable to hold the flags
required to link with pthreads, and use it for the solver addon.

Works on GNU/Linux, please test and fix for other platforms.

8 years agoUpdate libsolv and zlib packages for consolidation.hrev46151
Oliver Tappe [Mon, 30 Sep 2013 22:59:36 +0000 (1 00:59 +0200)]
Update libsolv and zlib packages for consolidation.

* only the source package are actually relevant, as the source paths
  within older versions of those source packages no longer match the
  expectations of the build system

8 years agoAdjust paths in source packages to what haikuporter produces.
Oliver Tappe [Mon, 30 Sep 2013 22:57:10 +0000 (1 00:57 +0200)]
Adjust paths in source packages to what haikuporter produces.

8 years agolibroot_build: fs_darwin: fdopendir(): close FD on successhrev46150
Ingo Weinhold [Sun, 29 Sep 2013 20:37:07 +0000 (29 22:37 +0200)]
libroot_build: fs_darwin: fdopendir(): close FD on success

fdopendir() is supposed to consume the specified FD on success.

8 years agoDetermine how to invoke sed with extended regexp
Niels Sascha Reedijk [Sun, 29 Sep 2013 19:27:47 +0000 (29 21:27 +0200)]
Determine how to invoke sed with extended regexp

This will require re-running configure

8 years agoAdd HOST_LIBSUPC++ to fix compilation on MacOS X
Niels Sascha Reedijk [Sun, 29 Sep 2013 15:38:37 +0000 (29 17:38 +0200)]
Add HOST_LIBSUPC++ to fix compilation on MacOS X

8 years agoAlways use dlopen and dlsym to load libsolv
Niels Sascha Reedijk [Sun, 29 Sep 2013 15:35:14 +0000 (29 17:35 +0200)]
Always use dlopen and dlsym to load libsolv

Previous implementation used weak symbols on all platforms except Haiku. Mac OS X also does not support this use of weak symbols. In the discussion of #10028 it was decided that probably more platforms will have problems with this approach, so instead use the approach that always works.

8 years agoVim syntax files for haikuporter recipes.hrev46149
Adrien Destugues [Mon, 30 Sep 2013 15:37:43 +0000 (30 17:37 +0200)]
Vim syntax files for haikuporter recipes.

8 years agoMake sure the boot driver tgz doesn't overflow the boot floppyhrev46148
François Revol [Mon, 30 Sep 2013 02:38:50 +0000 (30 04:38 +0200)]
Make sure the boot driver tgz doesn't overflow the boot floppy

At least on 68k it does. Seems to be ok on x86, for now...

8 years agoM68K: More gcc options fixes
François Revol [Mon, 30 Sep 2013 02:21:41 +0000 (30 04:21 +0200)]
M68K: More gcc options fixes

8 years agoM68K: Account for extra parameter to create_area_etc()hrev46147
François Revol [Mon, 30 Sep 2013 02:15:27 +0000 (30 04:15 +0200)]
M68K: Account for extra parameter to create_area_etc()

Would have been nice to also fix 68k code... just sayin.

8 years agoM68K: drop dupplicate strlen
François Revol [Mon, 30 Sep 2013 02:09:27 +0000 (30 04:09 +0200)]
M68K: drop dupplicate strlen

Seems we have our own now.

8 years agoM68K: Switch to new gcc options for specifying cpuhrev46146
François Revol [Mon, 30 Sep 2013 01:58:54 +0000 (30 03:58 +0200)]
M68K: Switch to new gcc options for specifying cpu

Latest gcc converts the old ones to the new ones anyway...
including when passing to gas, which of course is not new enough,
so we have to also force gcc to pass the old one around in one case.

8 years agorevert 787843b
François Revol [Mon, 30 Sep 2013 01:28:36 +0000 (30 03:28 +0200)]
revert 787843b

Restore the Clean action as "together".

Jam splits the args according to MAXLINE, which was too large.

8 years agoCleanups.hrev46145
Rene Gollent [Mon, 30 Sep 2013 00:55:11 +0000 (29 20:55 -0400)]
Cleanups.

8 years agoAdd definitions for M68K repositories and package infoshrev46144
François Revol [Mon, 30 Sep 2013 00:35:28 +0000 (30 02:35 +0200)]
Add definitions for M68K repositories and package infos

8 years agoDrop the together keyword on the Clean actionhrev46143
François Revol [Mon, 30 Sep 2013 00:23:17 +0000 (30 02:23 +0200)]
Drop the together keyword on the Clean action

Since the PM merge we now have way too many targets,
here jam clean just fails in execve() due to too long arguments.

jam clean is now very verbose but at least it works.

Another option could be to override the Clean rule itself
to clean in batch by splitting the list...
Patches welcome.