Commit Graph

4219 Commits

Author SHA1 Message Date
luchsj@rpi.edu
983d339866 Updated uninstall script to remove darlingserver and darling-coredump. 2024-05-19 21:33:57 -07:00
CuriousTommy
195684fc15
Merge pull request #1515 from darlinghq/ubuntu_older_clang_build_fix
Fix Building Darling With Older Version Of Clang
2024-05-19 21:10:44 -07:00
Thomas A
f542b59cbd Fix Building For Older Version Of Clang
Resolves #1483
2024-05-17 16:39:33 -07:00
CuriousTommy
327488e0d7
Merge pull request #1514 from alekitto/fix/debian-build
fix iosurface and python2 debian packages generation
2024-05-14 17:48:15 -07:00
Alessandro Chitolina
dd7318ea5a
fix: fixed iosurface and python2 debian package generation 2024-05-14 22:02:11 +02:00
CuriousTommy
f46eb721c1
Merge pull request #1513 from darlinghq/mig_fix
Mig Fixes
2024-05-11 12:18:04 -07:00
Thomas A.
0b6b8a3e5c Set Fall Back Arch To The Primary Arch For MIG
I was looking through the build scripts in XNU to see how MIG is being used. While there are some cases where we need to explicitly set the arch to its 32-bit equivalent (ex: i386 instead of x86-64), those situations seem to be the exception rather than the norm.

As a result, I don't think we should be hardcoding i386 as a fallback. We should use the primary architecture instead.
2024-05-07 18:20:14 -07:00
Thomas A.
42203fa265 Set Target Triplet To APPLE_TARGET_TRIPLET_PRIMARY For MIG 2024-05-05 13:33:29 -07:00
CuriousTommy
7c8415e679
Merge pull request #1504 from CKegel/Extern-Variable-Warning-Fix
Remove extra `extern` declarations from frameworks in Darling
2024-04-05 19:08:30 -07:00
ckegel
00c4fd66fb Remove extern declarations from constant definitions in ShazamKit. 2024-04-02 18:22:45 -04:00
ckegel
e8d00531c8 Remove extern declarations from constant definitions in private frameworks. 2024-04-02 18:19:05 -04:00
ckegel
b7b36f607f Remove extern declarations from constant definitions in SceneKit. 2024-04-02 18:09:15 -04:00
ckegel
03e15c1274 Remove more extern declarations from constant definitions in QuartzComposer and ImageKit 2024-04-02 17:29:06 -04:00
ckegel
405a4b79eb Remove extern declarations from constant definitions in QuartzFilters.m. 2024-04-02 17:21:02 -04:00
ckegel
4a785bc749 Remove extern declarations from constant definitions in UniformTypeIdentifiers. 2024-04-02 17:13:41 -04:00
CuriousTommy
4a73e139f7
Merge pull request #1501 from darlinghq/increase_backlog_size
Fix Simultaneously Launching Multiple Instances Of Darling
2024-03-28 21:20:07 -07:00
Thomas A.
9fb515c774 Fix Simultaneously Launching Multiple Instances Of Darling
Increase the backlog value from 1 to 16384. Fixes #1499

Co-Authored-By: tihmstar <tihmstar@gmail.com>
2024-03-27 21:14:43 -07:00
CuriousTommy
25afbc7642
Merge pull request #1487 from darlinghq/update_submodules
General Submodule Updates
2024-02-03 15:20:54 -08:00
Thomas A.
f48009c573 Update Submodules 2024-02-03 13:02:15 -08:00
Thomas A.
3e9ec8b648 Add libressl Branch Information To ".gitmodules"
This is so we can take advantage of `git submodule update --remote`. Some submodules don't use the default branch.
2024-02-03 12:53:34 -08:00
CuriousTommy
f3b0ae0c35
Merge pull request #1479 from darlinghq/fix_simple_abort
Fix "__simple_abort" Method
2024-01-21 16:16:58 -08:00
Thomas A.
ea6e6c6f9a Fix "__simple_abort" Method 2024-01-21 14:28:43 -08:00
CuriousTommy
5ee6a68f1f
Merge pull request #1470 from Fancy2209/SemaphoreStubs
Implement Semaphore CarbonCore Stubs
2024-01-14 07:43:21 -08:00
Paulo Medeiros
882fec3102 Implement Semaphore CarbonCore Stubs 2024-01-14 13:00:32 -01:00
CuriousTommy
c28d63693d
Merge pull request #1469 from Fancy2209/patch-1
Update actions.yaml
2024-01-13 23:48:53 -08:00
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