Commit Graph

47104 Commits

Author SHA1 Message Date
Ingo Weinhold
014eed80e2 Change repository directory layout
* Under the base URL there are supposed to be the repository files and a
  subdirectory "packages".
* Fix the repository URL related confusion introduced earlier. The URL
in
  the repository info (and thus in the repository file) is supposed to
  be the base URL for the repository. It is not a (potentially)
  different base URL for the package files. Package and repository
  files were supposed to live in the same directory. Now, by requiring
  the package files to live in a subdirectory -- which can also be a
  symlink -- we gain some flexibility.
  The URL in the repository config is usually the same as the in the
  repository info, unless it refers to a mirror site. This allows for
  mirrors to copy the original repository verbatim.
* Remove the PackageURL rule and introduce a DownloadPackage rule
  instead. The URL for a package file cannot be computed in the jam
  parsing phase anymore, as it contains the hash value of the package
  list.
* BRepositoryConfig: Add PackagesURL() for convenience.
2013-07-06 18:06:02 +02:00
Ingo Weinhold
600620e790 package_daemon: create the administrative dir when mounted 2013-07-06 17:48:03 +02:00
Ingo Weinhold
3942ca0d5e configure: fix sha256sum/sha256 checks 2013-07-06 12:19:46 +02:00
Niels Sascha Reedijk
9cb70c69b6 Update translations from Pootle 2013-07-06 06:14:11 +02:00
Ingo Weinhold
2afaeda8b7 Copy repository config files to the image
... to common/settings/package-repositories. This way the used
repositories are already known to pkgman.
2013-07-06 02:31:31 +02:00
Ingo Weinhold
d72ce06673 Adjust to changed HaikuPorts repository layout
The package kit actually requires the files "repo", "repo.info",
"repo.sha256" to be located under the repository base URL, so the
approach to name the repository file "repo-<hash>" doesn't work.
Now there's a directory "<hash>" which contains the files.

This commit moves the computation of the hash and downloading the
repository file from the build_haiku_image script to the jam build
system. The repo.info is also downloaded and a repository config file
is generated.
2013-07-06 02:29:51 +02:00
Ingo Weinhold
f4e265d53c Add build tool create_repository_config
Given a repository base URL and a repository info, it creates a
repository config file.
2013-07-06 02:21:47 +02:00
Ingo Weinhold
531a3d42bc Add rule ChecksumFileSHA256 2013-07-06 02:19:51 +02:00
Ingo Weinhold
46686fe6c0 Download*File rules: add optional source target
If specified the path to the source target can be used in the URL via
"$source".
2013-07-06 02:19:38 +02:00
Ingo Weinhold
2a5d0aafa6 configure: set new variable HOST_SHA256
sha256sum and sha256 are detected.
2013-07-06 02:17:15 +02:00
Ingo Weinhold
bbd644b00b libsolv_build: add support for building on FreeBSD
Also fail immediately when an unsupported platform is encountered.
2013-07-06 02:15:39 +02:00
Ingo Weinhold
ee64a0a6db BRepositoryConfig::SetTo(): fix use after deallocation
The strings retrieved from the driver settings were used after
unload_driver_settings(). Use BDriverSettings which also simplifies
things quite a bit.
2013-07-06 02:13:54 +02:00
Ingo Weinhold
30cdb26b5f Add BDriverSettings to libbe_build 2013-07-06 02:11:18 +02:00
Ingo Weinhold
3758560637 BuildSetup: remove obsolete dir variables 2013-07-06 02:10:10 +02:00
Ingo Weinhold
a28a0ac6b2 BPackageInfo::_ExtractUsers(): fix no group case 2013-07-06 02:09:08 +02:00
Ingo Weinhold
4174191272 BPackageInfo: fix range check in c'tor 2013-07-06 02:08:29 +02:00
Alexander von Gluck IV
53f26450a3 RadeonHD: Bit-bang LVDS for edid
* Older cards have to use the LVDS_Info table,
  newer cards also have an ddc pin for EDID.
* Some buggy sbios don't inject the EDID into
  the vbios as they should
* This corrects hrev45812 as we need to still
  call connector_read_mode_lvds to obtain the
  spread spectrum data for the lvds.
* Call connector_read_mode_lvds, bit-bang the
  connector, choose the best outcome.
2013-07-05 11:53:46 -05:00
Jerome Duval
055a62645e intel_extreme: only init overlay registers
... when memory allocation succeeded.
2013-07-05 16:25:01 +02:00
Rene Gollent
54bd958039 Cleanups, no functional change. 2013-07-05 09:51:44 -04:00
Rene Gollent
193c869185 Style fix. 2013-07-05 08:44:24 -04:00
Rene Gollent
bd503ae4cf Relocate "Stop on image load" option.
Rather than a menu item, it's now a checkbox located in the breakpoints
tab.
2013-07-05 08:41:27 -04:00
Ingo Weinhold
627626afd4 GeneratedRepositoryPackageList: defeat localization
Set LC_ALL=C, so "sort" produces useful results.
2013-07-05 14:28:09 +02:00
Ingo Weinhold
458b56a68c Also install the be_book package in system 2013-07-05 14:09:09 +02:00
Ingo Weinhold
f0273200d4 devel packages for mandatory packages must be in system as well 2013-07-05 14:09:09 +02:00
Ingo Weinhold
4dd0ed48e3 BSolver: fix for gcc 2
Missed one #if, so sCreateSolver was never initialized.
2013-07-05 13:53:25 +02:00
Ingo Weinhold
fdf111aa57 libsolvext requires libz 2013-07-05 13:45:25 +02:00
Ingo Weinhold
1faf74732d Update packages binutils, gcc, add missing bepdf source package 2013-07-05 13:26:12 +02:00
Ingo Weinhold
a65099bbe4 libsolv_build: fix build on gcc 2 Haiku
* Fix the "UseHeaders" invocation for libsolvext to use the correct
  directory.
* Reorder things slightly, merely for aesthetical reasons.
2013-07-05 13:23:48 +02:00
Ingo Weinhold
bd915d9f53 BSolver: fix build host build for gcc 2
gcc 2 doesn't support the weakref attribute. Rather use the regular
(target) method to initialize sCreateSolver instead (pthread once,
dlopen()). Since we know that we're on Haiku, that doesn't add any
dependencies that aren't available anyway.
2013-07-05 13:16:08 +02:00
Ingo Weinhold
812baf3925 libsolv_build: declare missing dependency 2013-07-05 12:14:59 +02:00
Ingo Weinhold
98c6dfa41e Switch build system from optional package to repositories
* Build libsolv and the dependency solver part of the package kit for
  the build platform.
* Add build tool get_package_dependencies. Given a list of package files
  and a list of repository files it determines the additional packages
  that need to be retrieved from the repositories and prints their URLs.
* Add rules to work with external repositories in the build system
  (build/jam/RepositoryRules):
  - PackageRepository declares an external repository with all its
    packages. The URL of the repository file isn't specified. It is
    computed from a given base URL and the SHA256 hash of the list of
    package files.
  - GeneratedRepositoryPackageList generates a file containing the file
    names of all packages in a repository.
  - IsPackageAvailable returns whether a package is available in any
    repository.
  - PackageURL returns the URL for a package.
* Declare the HaikuPorts repository for x86_gcc2
  (build/jam/repositories/HaikuPorts/x86_gcc2).
* Add rule AddHaikuImagePackages to add a package to the image and rule
  IsHaikuImagePackageAdded to determine whether a package has been
  added.
* OptionalPackages: Remove all entries that just downloaded and
  installed an external package. AddHaikuImagePackages can be used
  instead and is used in the remaining entries. Also move the remaining
  optional package dependency declarations from
  OptionalPackageDependencies here.
* ExtractBuildFeatureArchives: Instead of the URL parameter a package
  name must be specified now. This allows to simplify BuildFeatures
  significantly, since there's no dealing with URLs anymore. "if" out
  the entries that aren't supported yet.
* build_haiku_image: For the packages installed in system and common
  resolve their dependencies and download and install them as well.
2013-07-05 10:51:42 +02:00
Ingo Weinhold
43d96d8f7a haiku package-info: fix some provides/requires 2013-07-05 10:09:38 +02:00
Ingo Weinhold
001e9064e0 LibsolvSolver: missing include 2013-07-05 09:59:34 +02:00
Ingo Weinhold
bf5b4b25c8 package_repo list: add missing cases
It probably would be better to share code with package's list, since it
is very similar.
2013-07-05 09:58:37 +02:00
Rene Gollent
0635bcc98f Media prefs: layout fixes. 2013-07-04 13:46:29 -04:00
Rene Gollent
3007aa0092 MediaPlayer settings: layout fixes. 2013-07-04 13:44:10 -04:00
Ingo Weinhold
e85334022e Repository file format: group attributes of a package
* Introduce new package attribute B_HPKG_ATTRIBUTE_ID_PACKAGE (valid
  only in a repository file) to group the attributes belonging to a
  package.
* BRepositoryContentHandler:
  - No longer derive from BPackageContentHandler.
  - Add hooks HandlePackage() and HandlePackageDone() that bracket the
    attributes for a package. This is more explicit and robust than
    handlers having to guess when one package ended and the next began.
* BRepositoryCache: Make use of BPackageInfoContentHandler. No need to
  duplicate the code for reading a package info from package info
  attributes.
2013-07-04 19:20:14 +02:00
Rene Gollent
cd28fb0331 Expander: Fix layout regression.
- Adjust ExpanderWindow to use BLayoutBuilder.
- Adjust content pane layout to explicitly use unlimited size, since
it no longer implicitly gets it due to the recent checkbox changes.
2013-07-04 13:15:21 -04:00
Ingo Weinhold
17d00ecd27 pkgman: RepositoryBuilder: add BRepositoryCache c'tor 2013-07-04 19:06:57 +02:00
Ingo Weinhold
383cd08d72 BSolverRepository: add SetTo(const BRepositoryCache&) 2013-07-04 19:06:42 +02:00
Ingo Weinhold
6a7e3406be BSolverRepository: fix gcc 4 build 2013-07-04 19:03:03 +02:00
Ingo Weinhold
c8928835c5 BRepositoryCache: use BStandardErrorOutput 2013-07-04 19:02:10 +02:00
Ingo Weinhold
69f67e6de6 BRepositoryInfo: make sure fInitStatus is always set correctly 2013-07-04 19:00:39 +02:00
Jerome Duval
575f2f598a intel_gart: fixed bridge detection
... for bridges used with multiple displays.
Should fix #9853
2013-07-04 18:02:43 +02:00
Rene Gollent
5b402aa2a3 Implement #9855.
The Team menu now has a menu item allowing one to tell the debugger to
stop whenever a new executable image is loaded by the debugged team.
This setting is not currently persisted, though that can be changed if
desired.
2013-07-04 10:41:38 -04:00
Ingo Weinhold
695a1b248a repository writer: fix use of incorrect header size
The header size of the package file header was used, which resulted in
broken repository files.
2013-07-04 16:37:24 +02:00
Alex Smith
e818b9707c Call debug_cleanup() before converting kernel_args to 64-bit addresses, fixes #9842.
In debug_cleanup(), if the debug syslog buffer is disabled (the default when
KDEBUG_LEVEL is 0), then a new buffer is allocated with kernel_args_malloc().
This is done after kernel_args addresses have been converted to 64-bit, so
the address the kernel gets will be 32-bit, resulting in the page fault seen
in #9842. Fixed by moving the call to debug_cleanup() to before
convert_kernel_args().
2013-07-04 13:01:07 +01:00
Rene Gollent
df75e436dd Don't try to read data for output capture if the syscall didn't succeed. 2013-07-04 07:44:45 -04:00
Rene Gollent
3c26fbf06b Fix #9854.
The post syscall debug events used for output capture have an
unfortunate side effect: when asked to debug a thread, the thread is
interrupted, which, if currently blocked in a syscall will cause it to
unblock and send a post syscall event indicating such. However, this
will also absorb the debug stop flag that was set by the initial debug
request, and so we won't actually get the separate event indicating
thread debugged.

Consequently, we now set a pending stop request flag on the
corresponding Thread object, and check if it's set when processing
syscall events. If so, we treat such an event as having triggered a
debug stop even though the received event type is not explicitly
B_DEBUGGER_MESSAGE_THREAD_DEBUGGED.
2013-07-04 07:39:42 -04:00
Rene Gollent
cc6b4a3cb1 Add StopRequestPending field/accessors to Thread. 2013-07-04 07:34:41 -04:00