Commit Graph

41250 Commits

Author SHA1 Message Date
Ingo Weinhold
635d2ac485 Add some missing B_USER_*_DIRECTORY constants 2013-10-06 01:13:22 +02:00
Rene Gollent
3697e7e8b1 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.
2013-10-05 17:35:36 -04:00
Rene Gollent
f302cc52a4 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.
2013-10-05 17:35:36 -04:00
Ingo Weinhold
de49e34927 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.
2013-10-05 01:33:26 +02:00
Ingo Weinhold
c471444a33 find_directory(): Fix build 2013-10-05 01:33:26 +02:00
Adrien Destugues
49e7165f9d Use ssize_t to allow returning a negative error code 2013-10-04 16:57:02 +02:00
Jérôme Duval
f0d09d4925 ps2: rename a constant also used in pads 2013-10-04 16:05:59 +02:00
Jérôme Duval
df6c32e882 ps2: disable elantech support until it's more functional 2013-10-04 16:04:25 +02:00
Jérôme Duval
6eb9729145 tty: fixed warnings about an uninitialized variable. 2013-10-04 15:21:52 +02:00
Jérôme Duval
da9508d5e3 rtf: fixed a warning about an uninitialized variable. 2013-10-04 15:21:52 +02:00
Jérôme Duval
fa49d9714d neomagic: fixed a warning about an uninitialized variable. 2013-10-04 15:21:51 +02:00
Jérôme Duval
b449921515 pegasus: cleanup 2013-10-04 15:21:48 +02:00
Ingo Weinhold
38fa81bf8f 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.
2013-10-04 02:30:30 +02:00
Ingo Weinhold
45b3329d9f 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.
2013-10-03 21:55:26 +02:00
Ingo Weinhold
6bbd7bf3a0 Make secondary haiku_devel package depend on the primary
Only the primary haiku_devel package contains the system headers.
2013-10-03 21:55:26 +02:00
Ingo Weinhold
730939f2a7 Declare libicu* requirements in the haiku* packages 2013-10-03 21:55:25 +02:00
Ingo Weinhold
4b7e219688 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.
2013-10-03 21:52:25 +02:00
Ingo Weinhold
ded25be197 runtime loader: 64-bit ktrace output fixes 2013-10-03 21:52:25 +02:00
Ingo Weinhold
f73f5d4c42 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.
2013-10-03 21:52:25 +02:00
Adrien Destugues
bf9b153fcc 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)
2013-10-03 17:09:00 +02:00
Jérôme Duval
eb864c53e7 ac97: added support for missing realtek codecs.
* based on ALSA.
* code cleanup
2013-10-03 07:47:21 +02:00
Rene Gollent
d3f4a86549 Implement #10051.
- Add a simple download progress meter to pkgman that prints a hash mark
  for every 2% of the download completed. Improvements welcome.
2013-10-02 22:49:40 -04:00
Jérôme Duval
4ea76fdfa3 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.
2013-10-01 23:55:16 +02:00
Jérôme Duval
a2a5b28214 Fixed x86_64 broken build introduced in hrev46161. 2013-10-01 23:31:04 +02:00
Sam Toyer
97d6f117e3 Add s_tanhl.c to x86 jamfile
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-10-01 19:48:55 +02:00
Sam Toyer
2a6a28e4bb Add s_ldexpl.c to x86 jamfile
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-10-01 19:48:53 +02:00
Sam Toyer
894dfa1e75 Add glibc ilogbl implemenation
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-10-01 19:48:52 +02:00
Jérôme Duval
4f2c820dda RAWTranslator: fixed a warning
the code uses a double[4][3] array as a double cameraXYZ[0][12] array.
2013-10-01 19:48:50 +02:00
Jérôme Duval
1b63e0a3a8 virtio_pci: fixes the build and an unused variable warning. 2013-10-01 19:48:45 +02:00
Pawel Dziepak
ffd5393620 kernel/util: Make exit() available in bootloader as well 2013-10-01 19:31:48 +02:00
Adrien Destugues
37343ca1f6 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.
2013-10-01 16:32:21 +02:00
Pawel Dziepak
7aecb0b276 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.
2013-10-01 15:51:07 +02:00
Pawel Dziepak
d06885888d kits/support: Skip debug check in boot loader 2013-10-01 15:47:53 +02:00
Pawel Dziepak
1238bebddc 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.
2013-10-01 15:06:17 +02:00
Rene Gollent
88cd0fd25b 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.
2013-09-30 23:07:45 -04:00
François Revol
8bf87f9341 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.
2013-10-01 03:57:24 +02:00
François Revol
4135f9cde3 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.
2013-10-01 02:37:54 +02:00
Ingo Weinhold
5fd3766e03 libroot_build: fs_darwin: fdopendir(): close FD on success
fdopendir() is supposed to consume the specified FD on success.
2013-09-30 21:41:56 +02:00
Niels Sascha Reedijk
a69102a1f3 Add HOST_LIBSUPC++ to fix compilation on MacOS X 2013-09-30 21:41:50 +02:00
Niels Sascha Reedijk
57405de578 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.
2013-09-30 21:41:45 +02:00
François Revol
68bccdf6b4 M68K: More gcc options fixes 2013-09-30 04:21:41 +02:00
François Revol
4046c49f88 M68K: Account for extra parameter to create_area_etc()
Would have been nice to also fix 68k code... just sayin.
2013-09-30 04:15:27 +02:00
François Revol
835545cfd1 M68K: drop dupplicate strlen
Seems we have our own now.
2013-09-30 04:09:27 +02:00
François Revol
f7d6c2f8e5 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.
2013-09-30 04:02:21 +02:00
François Revol
b019bb2f4f Add definitions for M68K repositories and package infos 2013-09-30 02:35:28 +02:00
Rene Gollent
6114dd1fc2 Clean up FreeBSD build support as suggested by Ingo. 2013-09-29 19:50:00 -04:00
Rene Gollent
3d97f9a0a9 package_daemon: Cleanups.
- Remove no longer needed context object, as well as dummy
  BDecisionProvider implementation, as the base class now does the same
  directly by default.
2013-09-29 19:31:34 -04:00
François Revol
55cc9f852a Add definitions for PPC repositories and package infos 2013-09-30 01:29:03 +02:00
Axel Dörfler
cf06f96628 libshared: Factored out driver settings class from net_server.
* The new class is called DriverSettingsMessageAdapter which can translate
  between a driver_settings file, and a BMessage.
* The net_server Settings class is now just using this class.
2013-09-30 01:13:13 +02:00
Axel Dörfler
8be52869c8 Minor style cleanup. 2013-09-30 01:13:12 +02:00