Commit Graph

4244 Commits

Author SHA1 Message Date
Fancy2209
eef163e299 Fix Ci Errors 2024-01-14 01:10:55 +00:00
CuriousTommy
1aa1d3cd6e
Merge pull request #1461 from darlinghq/coredump_rework
Rework `darling-coredump` To Avoid Hardcoding x86/x64 Logic
2023-12-13 18:59:12 -08:00
Thomas A.
4b8daade36 [coredump] Avoid Hardcoding x86/x64 Logic
While I was working on fixing up `darling-coredump` for ARM64 support, I noticed that there is some x86 code that doesn't really need to be hardcoded at compile time.

If there aren't any other unexpected issues, this should also allow one (in theory) to process a x86 core dump on a non-x86 device.
2023-12-13 10:34:11 -08:00
Ariel Abreu
34351655a4 Temporarily revert 9980fa0a10
Turns out that it causes regressions for some users (see #1443). I'm going to move this change into a branch for testing and debugging and merge it back in once it's working reliably for everyone.

This change isn't too important for most users of Darling; at the moment, the only significant thing it does is allow xcodebuild to work, but that's not essential at the moment.
2023-11-07 13:41:31 -05:00
Ariel Abreu
141c24aaa8 [ci/deb] Allow using an existing UID/GID for the CI user 2023-11-01 21:28:48 -04:00
Ariel Abreu
8e3da42792 [deb,rpm] Remove python2 dep
[ci] Allow Dockerfiles to be reused for different base images
2023-11-01 18:29:48 -04:00
CuriousTommy
82525f6d3a
Merge pull request #1401 from darlinghq/mldr_thread_entry_rework
Rewrite darling_thread_entry Inline Assembly
2023-10-30 16:06:14 -07:00
Thomas A
2c0c72dd76 Update Submodules 2023-10-30 13:03:06 -07:00
Thomas A
c061846e42 [mldr] Rewrite darling_thread_entry Inline Assembly
From the discussion in Discord, there are some strange/potentionally problematic design choices with the current inline assembly code.

To take advantage of the GNU register asm(...) feature, the std version need to be set to gnu11, instead of c11.
2023-10-30 10:38:04 -07:00
Ariel Abreu
98c5c8abf7 Update darlingserver 2023-10-26 07:49:11 -04:00
Ariel Abreu
7b2aa573bd Update XNU 2023-10-21 10:49:23 -04:00
Ariel Abreu
8dca987418 Update submodules 2023-10-20 23:34:58 -04:00
Ariel Abreu
74d3356210 Force some native libraries to be static libraries
This should fix #1441
2023-10-20 13:43:19 -04:00
Ariel Abreu
fbcd182dfb
Update submodules 2023-10-16 17:23:45 -04:00
Ariel Abreu
ce551e0164
Update dyld again 2023-10-15 19:24:46 -04:00
Ariel Abreu
1a0200b25c
Update dyld 2023-10-15 19:15:54 -04:00
Ariel Abreu
fe0da14074
Update Cocotron, CF, and Foundation 2023-10-13 10:33:50 -04:00
Ariel Abreu
efc8aac1d1
Update Cocotron and Foundation 2023-10-07 23:52:24 -04:00
Ariel Abreu
72a824ae10
Update Foundation 2023-10-07 11:45:33 -04:00
Ariel Abreu
e0c250855a
PDFKit and ImageKit stubs for Xcode 2023-10-07 11:09:05 -04:00
Ariel Abreu
9f6e0731bc
CoreServices: move constants into LaunchServices
CoreServices itself doesn't define any constants other than its
version number and string. Plus, some of the values we had were just
flat-out wrong, while the same constants in LaunchServices were correct
(but unused since they were being shadowed by CoreServices).
2023-10-07 11:08:39 -04:00
Ariel Abreu
da9885580a
Update submodules 2023-10-07 11:06:48 -04:00
Ariel Abreu
9980fa0a10 Emulate LoginWindow behavior in when starting a shell
LoginWindow is responsible for setting up the user session with launchd.
For us, shellspawn serves the same purpose as LoginWindow, so we
initialize the session there. This does require some additional dancing
around with processes and sockets since launchd only expects a single
process to register a session for a given user; this means that we
couldn't just keep the old behavior with each shellspawn connection
getting a new process and simply add-on launchd session initialization.

In the new approach, we introduce a new shellsession daemon that forks-off
instances for a user sessions; shellspawn now becomes a LaunchAgent that gets
started by launchd when the user session starts. We then connect to this
instance of the shellspawn daemon.
2023-10-04 23:35:01 -04:00
Ariel Abreu
a6857a38c3
Update libsystem and XNU 2023-10-04 23:34:28 -04:00
Ariel Abreu
7783b11291
Use Darling reserved key definitions from libpthread 2023-10-04 23:32:09 -04:00
Ariel Abreu
55bcc0bf89
Add ditto command stub 2023-10-04 23:28:25 -04:00
Ariel Abreu
47c204a243
Update darlingserver and libkqueue 2023-10-04 00:27:49 -04:00
Ariel Abreu
aa9eddbc04
Fix clang version check to use build dir 2023-09-25 17:36:06 -04:00
Ariel Abreu
985a66bd5f
Add some stubs and definitions needed for Xcode 2023-09-25 16:33:02 -04:00
Ariel Abreu
59bc0cab7e
Add stubs for some Quartz subframeworks 2023-09-25 16:32:27 -04:00
Ariel Abreu
77ec7f3f58
Add IconServices stubs 2023-09-25 16:31:35 -04:00
Ariel Abreu
e35561d139
Add SceneKit stubs 2023-09-25 16:31:01 -04:00
Ariel Abreu
1b74e1dd94
Add CoreSimulator stubs 2023-09-25 16:29:52 -04:00
Ariel Abreu
ea276591da
Update submodules 2023-09-25 16:28:17 -04:00
Ariel Abreu
9d84a2a4fa
[build] Support arbitrary framework directories
This is necessary for stubs for the CoreSimulator framework (needed for
Xcode), which lives in `/Library/Developer/PrivateFrameworks`.
2023-09-25 16:28:01 -04:00
Ariel Abreu
6a8943df80
Update submodules 2023-09-20 21:27:47 -04:00
Ariel Abreu
a80614a165
Update submodules
With this commit, we now build and install `secd`, but it doesn't
actually run yet because it's a LaunchAgent, not a LaunchDaemon. I've
got some work in-progress to try to get LaunchAgents running.
2023-09-20 21:23:37 -04:00
Ariel Abreu
d4fbcb256f
Add various stubs needed for secd 2023-09-20 21:21:03 -04:00
Ariel Abreu
bcb8fcd17c
Add AppleAccount stub framework 2023-09-20 21:19:11 -04:00
Ariel Abreu
9944ae22c9
Update CI Dockerfiles 2023-09-13 16:51:50 -04:00
Ariel Abreu
7e4e81f52a
Add TCC framework stub 2023-09-13 16:51:24 -04:00
Thomas A
c3c5c1f042 [xtrace] Add Missing Return Statements 2023-09-04 14:08:23 -07:00
CuriousTommy
eb18d733cb
Merge pull request #1423 from darlinghq/ubuntu_20.04_adjustments
Fix Building For Ubuntu 20.04. Add Clang Checks.
2023-09-03 23:22:08 -07:00
Thomas A
a60a0920c5 Update Submodules 2023-09-03 19:27:07 -07:00
Thomas A
8f43828a46 Fix Linking Errors 2023-09-03 16:59:09 -07:00
Thomas A
252d7f75b1 Add Basic Checks For Clang Compiler 2023-09-03 16:59:09 -07:00
Thomas A
5d5a364a79 Update Submodules 2023-09-03 16:58:15 -07:00
CuriousTommy
c084a48c96
Merge pull request #1427 from darlinghq/xtrace_implement_buffer
implement Buffered Output For XTrace
2023-09-03 11:36:07 -07:00
Thomas A
71a77ca89f Update Submodule 2023-09-03 08:47:41 -07:00
Thomas A
5bc93a0999 [xtrace] Update Methods To Implement Buffered String 2023-09-03 08:47:41 -07:00