Commit Graph

47658 Commits

Author SHA1 Message Date
Rene Gollent
efcb3de14e Debugger: Fix #9961.
- The previous solution was applying source path mappings too early, with
  the consequence that the file manager would incorrectly adjust some
  relocations due to not being aware of the presence of all the possible
  parent paths yet, leading to the observed "Source not available" behavior
  when restoring some combinations of mappings. We now lazily apply the
  mappings at the point when the source code itself is actually requested
  to be loaded, which doesn't occur until after all image loading, etc.
  has completed, so the information map is complete.
2013-09-19 20:55:18 +02:00
Rene Gollent
c848949bf1 Debugger: Fix crash in Inspector.
- If a selection was active, and the hex mode was switched to not
  display, a divide by zero crash would occur. Spotted by Olivier Coursiere.
2013-09-19 17:43:36 +02:00
Rene Gollent
b967ea4be4 Debugger: Temporarily disable file manager mappings.
- There seem to be cases where the file manager is incorrectly reapplying
  stored mappings, resulting in no source being displayed. As such, the
  functionality is being disabled until the cause can be found.
2013-09-19 17:01:52 +02:00
Rene Gollent
44698a437d HaikuDepot: Start implementing UserInteractionHandler hooks.
- Use package daemon's ProblemWindow/ResultWindow for the HandleProblems()
  and ConfirmChanges() hooks respectively.
2013-09-19 15:52:24 +02:00
Rene Gollent
4bee7f070b HaikuDepot: Add "Refresh repositories" menu item.
- Allows the user to request manually updating the package list
  from the server.
2013-09-19 15:32:47 +02:00
Rene Gollent
cea02697b4 HaikuDepot: Fix a few issues pointed out by Stephan. Thanks! 2013-09-19 14:59:51 +02:00
Rene Gollent
b4c8d2ff49 HaikuDepot: Show installation state in list view.
- Add package installation state to PackageInfo and update accordingly
  in Model.
- Add package listener event for installation state change (not yet used).
- PackageListView now fetches installation state from package and displays
  accordingly.
2013-09-19 13:45:12 +02:00
Oliver Tappe
50792d1199 Update openssh and perl for x86_gcc2. 2013-09-19 12:23:36 +02:00
Rene Gollent
adde35ff14 HaikuDepot: Flesh out PackageManager::GetPackageActions().
- Now actually checks if and where the package is installed, and
  correspondingly returns back the appropriate install/uninstall
  actions. Consequently, HaikuDepot now allows uninstallation of
  (non-system) packages.
2013-09-19 12:16:41 +02:00
Rene Gollent
f7bf1d3282 HaikuDepot: Add UninstallPackageAction class. Not yet used. 2013-09-19 12:16:32 +02:00
Rene Gollent
db259584ca HaikuDepot: Flesh out PackageActions a bit.
- Add background worker thread for asynchronous processing of
  package actions.
- Implement InstallPackageAction. As such, installing packages now
  actually works.
- Wrap requests in exception handlers, as the package manager uses those
  for various error cases. Fixes several cases of HaikuDepot spontaneously
  closing if a problem occurred. Still TODO: user error reporting, errors
  are currently reported on the console.
2013-09-19 11:52:32 +02:00
Rene Gollent
5af9dc2a77 Style fix. 2013-09-19 11:52:32 +02:00
Ingo Weinhold
be2254e30d package daemon: Handle post-installation scripts, users/groups
... specified by a package when it is going to be activated. We don't
try to remove users/groups when deactivating packages yet, nor is the
user properly identified in all error cases.
2013-09-18 23:56:43 +02:00
Ingo Weinhold
8b600ba48d package daemon: Use CommitTransactionHandler in all cases
... also when only activating/deactivating already moved packages.
2013-09-18 23:56:42 +02:00
Rene Gollent
976b547224 HaikuDepot: Implement publisher hyperlink handling.
- Clicking the publisher link now actually attempts to open the site
  in the browser.
2013-09-18 22:32:45 +02:00
Oliver Tappe
b3a05eede6 Fix keeping of package info during repository update.
* actually write the package info read from the repository, not the one
  from the package, as the latter is missing the checksum
2013-09-18 21:16:13 +02:00
Oliver Tappe
0a345af77e Separate notification from deletion in repository-handlers.
* Add NotifyDone() to all repository-attribute handlers and invoke that
  to notify any listeners.
* Unify deletion to a single implementation of Delete() in the base
  class. Before, the root handler for a repository didn't do that, but
  just triggered the notification.
2013-09-18 21:16:13 +02:00
Rene Gollent
b162bdaf1d Add HaikuDepot to Deskbar menu. 2013-09-18 19:52:11 +02:00
Rene Gollent
52660ce993 gcc2.x build fix. 2013-09-18 19:33:17 +02:00
Rene Gollent
c6a952d706 Add HaikuDepot to image. 2013-09-18 18:45:10 +02:00
Rene Gollent
d882cc2812 HaikuDepot: Move repo fetch to background worker thread.
- Factor out functions for refreshing the repositories and
  retrieving the package lists.

- Add a background worker thread which handles those tasks and
  then notifies the window when the model is ready.

- Check if we already have a repository cache, and if so, skip the
  refresh step, unless forced. The latter will eventually be possible
  via the UI.
2013-09-18 18:39:32 +02:00
Rene Gollent
2c287f5bae Model: Add Clear() method to empty out existing depot info. 2013-09-18 18:17:30 +02:00
Rene Gollent
f7c99dcc33 Remove unnecessary function. 2013-09-18 17:30:13 +02:00
Rene Gollent
e12c26ec2d ModelWindow: Populate publisher URL if available.
- Also rework things a bit to fix passing the same reference into the
  installed package list repeatedly, thus causing only the first package
  to be marked as actually being installed.
2013-09-18 17:30:13 +02:00
Ingo Weinhold
519bb60aef Add group{add,del,mod} 2013-09-18 16:33:19 +02:00
Ingo Weinhold
dc3be29614 Enable -Werror in src/bin/multiuser 2013-09-18 16:33:18 +02:00
Ingo Weinhold
6c346b88e1 passwd: Add option -d to delete a user's password 2013-09-18 16:33:18 +02:00
Ingo Weinhold
032ea9a485 useradd: Create the new user with a locked password 2013-09-18 16:33:18 +02:00
Ingo Weinhold
82a064b57d useradd: small style fix 2013-09-18 16:33:17 +02:00
Ingo Weinhold
e9d9ac713f Add userdel 2013-09-18 16:33:17 +02:00
Ingo Weinhold
0e9e586cac useradd: Support specifying group by name 2013-09-18 16:33:17 +02:00
Ingo Weinhold
de15b85e5c getgr{nam,gid}[_r](): Fix retrieving group members 2013-09-18 16:33:16 +02:00
Ingo Weinhold
fb8a9c4710 getpw{nam,uid}[_r]: Fix return value behavior
... when the user is not found.
2013-09-18 16:33:16 +02:00
Ingo Weinhold
222fb7a91a getgrgid_r()/getgrname_r(): Fix group not found return value 2013-09-18 16:33:16 +02:00
Ingo Weinhold
c13744f4c0 useradd: Improve usage text 2013-09-18 16:33:15 +02:00
Ingo Weinhold
9a85313bc6 X86PagingStructuresPAE: Zero fPageDirPointerTable in constructor
... and use it as a guard in the destructor. Fixes crash when running
out of memory and Init() is not called.
2013-09-18 16:33:15 +02:00
Oliver Tappe
7d09a8dc67 Fix build of '<build>package_repo' for real.
* add missing command_update.cpp
2013-09-18 15:42:36 +02:00
Ingo Weinhold
53b162523f Fix host-only build. 2013-09-18 15:41:12 +02:00
Oliver Tappe
d7cbcb13da Fix build of <build>package_repo. 2013-09-18 15:40:19 +02:00
Oliver Tappe
85caa0459d Use BPackageInfoContentHandler in package_repo 'update'.
* Ingo has pointed me at this class which already does the collecting
  of package attributes into a PackageInfo - so there's no need to
  do it manually.
2013-09-18 15:40:19 +02:00
Rene Gollent
2f89f68ee7 MainWindow: Initial hooks into package kit.
- MainWindow now attempts to refresh all available repositories and
  fetch their respective package lists on startup. Much still remains
  to be done, such as factoring this out into a background process so
  it doesn't prevent the window from showing, and making the refresh step
  optional if we already have valid repository information, but this at
  least gets us showing the available package list from HaikuPorts.
2013-09-18 15:31:15 +02:00
Rene Gollent
0c5468eef0 HaikuDepot: Stub out various support classes for package kit use.
- DecisionProvider and JobStateListener will be needed in order to
  interact with the package kit in various ways eventually, though
  the implementations are currently all empty.

- Adjust HaikuDepot's PackageManager class to inherit from
  BPackageManager, so as to be able to actually interface with
  the package repositories.
2013-09-18 15:31:15 +02:00
Rene Gollent
93cb796e37 Context: Add more uniqueness to temp directory names.
- If a single thread attempted to establish multiple package kit
  contexts, it would fail due to a collision between their respective
  temporary directories. As such, use both the thread ID and
  system_time() as a random elements in the directory name to ensure
  this doesn't occur.
2013-09-18 15:31:14 +02:00
Oliver Tappe
da33beab70 Add command 'update' to package_repo.
* 'update' takes an existing repository and a package list file and then
  creates a new repository from that, avoiding expensive
  checksum-recomputations where possible
2013-09-18 12:05:35 +02:00
Oliver Tappe
50ae264dad Add support for adding a package-info to BRepositoryWriter. 2013-09-18 12:05:34 +02:00
Oliver Tappe
30a517bc64 Add handling of B_PACAKGE_INFO_CHECKSUM to PackageInfoPrinter. 2013-09-18 12:05:34 +02:00
Ingo Weinhold
6dee6653c2 When switching to PAE don't copy not needed PTEs
Now we check whether the virtual address corresponding to the PTE lies
in an allocated virtual address range. This fixes a cause of #8345:
The assertion would trigger when such an entry was encountered. There
might be other causes that trigger the same assertion, though.
2013-09-18 00:42:45 +02:00
Ingo Weinhold
372a666344 X86VMTranslationMapPAE: Add some ktracing for page (un)mapping 2013-09-18 00:42:45 +02:00
Ingo Weinhold
6508ce9f52 X86VMTranslationMapPAE::Map(): More info in assert 2013-09-18 00:42:44 +02:00
Ingo Weinhold
bcb7463650 arch_vm_translation_map_early_map(): Fix debug output 2013-09-18 00:42:44 +02:00