Coder Social home page Coder Social logo

procursusteam / procursus Goto Github PK

View Code? Open in Web Editor NEW
863.0 68.0 125.0 17.99 MB

Modern *OS Bootstrap

Home Page: https://apt.procurs.us

License: BSD Zero Clause License

Makefile 88.32% C 1.33% Shell 4.96% Roff 3.97% Python 1.31% Assembly 0.11%
jailbreak procursus cross-compilation ios macos hacktoberfest

procursus's People

Contributors

0x6ff avatar 1conan avatar absidue avatar absolucy avatar asdfugil avatar beerpiss avatar brennanleblanc0 avatar captinc avatar crkatri avatar cryptiiiic avatar cutenatalie avatar daofficialrolex avatar deatondg avatar demhademha avatar diatrus avatar evelyneee avatar itsnebulalol avatar joshuah345 avatar kirb avatar m1stadev avatar miticollo avatar qtlunya avatar quiprr avatar randomblock1 avatar stekc avatar sunflsks avatar tale avatar teutates avatar therealketo avatar tihmstar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

procursus's Issues

Package requests

Hi, could you please add Pinentry and partial-zip-browser?
thanks

wget: can't open '/Procursus/build_source/openssl-1.1.1g.tar.gz': No such file or directory

I cloned Procursus and switched to the rust branch. Ran make rust:

bash-5.0# git clone https://github.com/ProcursusTeam/Procursus
Cloning into 'Procursus'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 2758 (delta 29), reused 34 (delta 12), pack-reused 2692
Receiving objects: 100% (2758/2758), 12.22 MiB | 9.52 MiB/s, done.
Resolving deltas: 100% (1925/1925), done.
bash-5.0# cd Procur*

bash-5.0# git checkout rust
Branch 'rust' set up to track remote branch 'rust' from 'origin'.
Switched to a new branch 'rust'

bash-5.0# make rust
Makefile:66: Building for iOS
Makefile:104: Building on Linux
Makefile:298: Using ldid. Abort now and install ldid2 if this ldid does not support SHA256
bash: brew: command not found
bash: brew: command not found
mkdir -p \
	/Procursus/build_base/iphoneos-arm64/1600 /Procursus/build_base/iphoneos-arm64/1600/{System/Library/Frameworks,usr/{include/{bsm,os,sys,IOKit,libkern,mach/machine},lib}} \
	/Procursus/build_work/iphoneos-arm64/1600 /Procursus/build_stage/iphoneos-arm64/1600 /Procursus/build_dist/iphoneos-arm64/1600 /Procursus/build_strap/iphoneos-arm64/1600
git submodule update --init --recursive
Submodule 'uikittools' (https://github.com/Diatrus/uikittools-ng) registered for path 'uikittools'
Cloning into '/Procursus/uikittools'...
Submodule path 'uikittools': checked out '373c0125d22ad90a406ab02f83e642dd417d5bd2'
wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include \
	https://opensource.apple.com/source/xnu/xnu-6153.61.1/libsyscall/wrappers/spawn/spawn.h
wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/machine \
	https://opensource.apple.com/source/xnu/xnu-6153.81.5/osfmk/mach/machine/thread_state.h
wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include/bsm \
	https://opensource.apple.com/source/xnu/xnu-6153.81.5/bsd/bsm/audit_kevents.h
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/{arpa,net,xpc} /Procursus/build_base/iphoneos-arm64/1600/usr/include
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/libkern/OSTypes.h /Procursus/build_base/iphoneos-arm64/1600/usr/include/libkern
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/sys/{tty*,proc*,ptrace,kern*,random,vnode}.h /Procursus/build_base/iphoneos-arm64/1600/usr/include/sys
cp -af /root/cctools/SDK/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/* /Procursus/build_base/iphoneos-arm64/1600/usr/include/IOKit
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/{ar,launch,libproc,tzfile}.h /Procursus/build_base/iphoneos-arm64/1600/usr/include
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/mach/{*.defs,{mach_vm,shared_region}.h} /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach
cp -af /root/cctools/SDK/MacOSX.sdk/usr/include/mach/machine/*.defs /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/machine
cp -af /Procursus/build_info/availability.h /Procursus/build_base/iphoneos-arm64/1600/usr/include/os
cp -af /Procursus/build_info/IOKit.framework.iphoneos /Procursus/build_base/iphoneos-arm64/1600/System/Library/Frameworks/IOKit.framework
cp: cannot stat '/Procursus/build_info/IOKit.framework.iphoneos': No such file or directory
make: [Makefile:553: setup] Error 1 (ignored)
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/stdlib.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/stdlib.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/time.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/time.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/unistd.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/unistd.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/mach/task.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/task.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/mach/mach_host.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/mach_host.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/ucontext.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/ucontext.h
sed -E s/'__IOS_PROHIBITED|__TVOS_PROHIBITED|__WATCHOS_PROHIBITED'//g < /root/cctools/SDK/iPhoneOS13.2.sdk/usr/include/signal.h > /Procursus/build_base/iphoneos-arm64/1600/usr/include/signal.h
Makeflags: -j2 -Otarget --jobserver-auth=3,4 --no-print-directory
Path: /Procursus/build_tools:/root/cctools/bin:/root/cctools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
wget -q -nc -P /Procursus/build_source https://www.openssl.org/source/openssl-1.1.1g.tar.gz{,.asc}
wget: can't open '/Procursus/build_source/openssl-1.1.1g.tar.gz': No such file or directory
make: *** [openssl.mk:22: openssl-setup] Error 1
make: *** Waiting for unfinished jobs....

If I try to rerun the wget command manually:

bash-5.0# wget -q -nc -P /Procursus/build_source https://www.openssl.org/source/openssl-1.1.1g.tar.gz{,.asc}
wget: can't open '/Procursus/build_source/openssl-1.1.1g.tar.gz': No such file or directory
bash-5.0# 

It works if I add the missing build_source directory:

bash-5.0# pwd
/Procursus
bash-5.0# mkdir build_source
bash-5.0# wget -q -nc -P /Procursus/build_source https://www.openssl.org/source/openssl-1.1.1g.tar.gz{,.asc}
bash-5.0# 

Issues with compiling on a Docker setup

Say, I build wget for the first time, right after cloning the repo. Everything goes smooth.

Now I try to build Rust:

bash-5.0# make rust
Makefile:66: Building for iOS
Makefile:104: Building on Linux
Makefile:298: Using ldid. Abort now and install ldid2 if this ldid does not support SHA256
bash: brew: command not found
bash: brew: command not found
Using previously built openssl.
mkdir -p \
	/Procursus/build_base/iphoneos-arm64/1600 /Procursus/build_base/iphoneos-arm64/1600/{System/Library/Frameworks,usr/{include/{bsm,os,sys,IOKit,libkern,mach/machine},lib}} \
	/Procursus/build_work/iphoneos-arm64/1600 /Procursus/build_stage/iphoneos-arm64/1600 /Procursus/build_dist/iphoneos-arm64/1600 /Procursus/build_strap/iphoneos-arm64/1600
git submodule update --init --recursive
wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include \
	https://opensource.apple.com/source/xnu/xnu-6153.61.1/libsyscall/wrappers/spawn/spawn.h
wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/machine \
	https://opensource.apple.com/source/xnu/xnu-6153.81.5/osfmk/mach/machine/thread_state.h
wget: can't open '/Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/machine/thread_state.h': File exists
make: *** [Makefile:542: setup] Error 1

Or any other package, really. It attempts to execute wget -q -nc -P /Procursus/build_base/iphoneos-arm64/1600/usr/include https://opensource.apple.com/source/xnu/xnu-6153.61.1/libsyscall/wrappers/spawn/spawn.hand similar wget commands, but all these header files already exist, because I've already built some other package, so it now always fails.

The only quick way to solve this is to delete /Procursus/build_base/iphoneos-arm64/1600/usr/include and re-run make rust.

Same for files in /Procursus/build_source:

wget -q -nc -P /Procursus/build_source https://ftpmirror.gnu.org/libidn/libidn2-2.3.0.tar.gz{,.sig}
wget: can't open '/Procursus/build_source/libidn2-2.3.0.tar.gz': File exists

System:

Linux f4077c4df32c 4.19.76-linuxkit #1 SMP Tue May 26 xx:xx:xx UTC 2020 x86_64 GNU/Linux

How to compile a C++ program with clang from repo?

I have installed clang-10, libclang-common-10-dev, libclang-cpp10, libc++-10-dev and libc++-dev from the Procursus, but when I used clang-10 to compile a C++ program, it gives me the following errors:

YTs-iPad-Pro:~ root# cat test.cpp
#include <iostream>

using namespace std;

int main(){
        cout << "test" << endl;
        return 0;
}
YTs-iPad-Pro:~ root# clang-10 test.cpp
In file included from test.cpp:1:
In file included from /usr/bin/../include/c++/v1/iostream:37:
In file included from /usr/bin/../include/c++/v1/ios:214:
In file included from /usr/bin/../include/c++/v1/iosfwd:95:
/usr/bin/../include/c++/v1/wchar.h:118:15: fatal error: 'wchar.h' file not found
#include_next <wchar.h>
              ^~~~~~~~~
1 error generated.
YTs-iPad-Pro:~ root# 

Does this mean that I have forgot to install some packages(such as a certain type of Standard C Libraries) ? or C++ programs are not supported now?

OS: iPadOS 13.5.1
Jailbreak: Odyssey 1.2
Device: iPad Pro 2020 11-inch
Package manager: Sileo

gettext is missing /usr/share/gettext/archive.dir.tar.xz

The gettext package is missing /usr/share/gettext/archive.dir.tar.xz.
An easy way to run into this problem is by cloning GNU make and attempting to build it on-device.

git clone https://git.savannah.gnu.org/git/make.git
cd make
./bootstrap

This fails with

/usr/bin/autopoint: line 495: /usr/share/gettext/archive.dir.tar.xz: No such file or directory
tar: This does not look like a tar archive
tar: gettext-0.19.4: Not found in archive
tar: Exiting with failure status due to previous errors
autopoint: *** infrastructure files for version 0.19.4 not found; this is autopoint from GNU gettext-tools 0.21
autopoint: *** Stop.

make, gettext, automake, autoconf, autopoint, etc. are all installed.

This did not fail a few months ago, but I am not sure what version broke it.

Package requests

Hi, could you please add support for clang (with arm64e support) aswell as libswift and the swift toolchain?
Thank you

`man` crashes until zstd is manually installed.

On my system, running man results in

man: can't execute zstd: No such file or directory

until zstd is manually installed.

I am not sure what is up with this: I just checked the build_info/man-db.control file, and it has a zstd requirement, so I’m not really sure why zstd doesn’t install with man-db.

Package Request Node

Hello there. I was wondering if node.js could be added to the repo. Thank you.

Remove the bloat of the main Makefile

The main Makefile shouldn't have every package, every link, every extraction, etc in it. They should all be moved to individual makefiles.

  • Links via LINKS += (link)
  • Verification and extraction within individual makefiles.

Issue with gettext on ubuntu

Hi, I've installed every dependency, and when I type say make curl", I get makefile 407, install gettext
It worked before, and gettext is certainly installed.

`screen` package request

I would appreciate seeing GNU screen package in Procursus. It's similar to tmux, as it allows to keep running tasks even if SSH disconnects, I'm using it in Linux distros all the time. Thanks in advance

PIP does not come preinstalled; Installing manually fails

Description
The current version of Python that the bootstrap hosts does not automatically install pip. A quick fix I've tried was to "manually" install pip by running python -m ensurepip, but that also didn't work.

I'm sure with some changes either pip can be installed automatically, or be installed manually by running the command above. I have provided a error log below for reference.

Ketos-iPod:~ root# python -m ensurepip
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.8/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/usr/lib/python3.8/ensurepip/__init__.py", line 210, in _main
    return _bootstrap(
  File "/usr/lib/python3.8/ensurepip/__init__.py", line 129, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/usr/lib/python3.8/ensurepip/__init__.py", line 32, in _run_pip
    runpy.run_module("pip", run_name="__main__", alter_sys=True)
  File "/usr/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/__main__.py", line 16, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/__init__.py", line 40, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 8, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 11, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/commands/__init__.py", line 6, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/commands/completion.py", line 6, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 21, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/download.py", line 14, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py", line 114, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/requests/utils.py", line 26, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/requests/_internal_utils.py", line 11, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/tmp/tmpxl5kqymk/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/requests/compat.py", line 62, in <module>
  File "/usr/lib/python3.8/urllib/request.py", line 2619, in <module>
    from _scproxy import _get_proxy_settings, _get_proxies
ModuleNotFoundError: No module named '_scproxy'
Ketos-iPod:~ root#  

Device Information
Device: iPod 6
Version: iOS 12.4.1
Bootstrap: Odyssey + Procursus
Jailbreak: checkra1n

apt-src repo

Create an apt-source repo to more properly follow FSF guidelines. A good implementation would be to do all patches in the *-setup stage, and then create an xz archive of the new source.

libunistring missing for git

When using git without installing libunistring manually you will receive this error:
dyld: dependent dylib '/usr/lib/libunistring.2.dylib' not found for '/usr/lib/libidn2.0.dylib', tried but didn't find: '/usr/lib/libunistring.2.dylib' '/usr/local/lib/libunistring.2.dylib' '/usr/lib/libunistring.2.dylib'

libpng16-dev should depend on zlib

Running pkg-config --libs libpng results in

Package zlib was not found in the pkg-config search path.                                                                                                                                  
Perhaps you should add the directory containing `zlib.pc'                                                                                                                                  
to the PKG_CONFIG_PATH environment variable                                                                                                                                                
Package 'zlib', required by 'libpng', not found          

but zlib is not in Procursus.

I will fix this with a PR (that also fixes a few other small things) in a few minutes.

Issue with swift

When using swift, and swift 5.3 and attempting to compile a swift file I get the following output
:0: error: unable to load standard library for target 'arm64-apple-ios12.0'
Cannot read termcap database;
using dumb terminal settings.
'cyclone' is not a recognized processor for this target (ignoring processor)
'+crypto' is not a recognized feature for this target (ignoring feature)
'+fp-armv8' is not a recognized feature for this target (ignoring feature)
'+neon' is not a recognized feature for this target (ignoring feature)
'+sha2' is not a recognized feature for this target (ignoring feature)
'+zcm' is not a recognized feature for this target (ignoring feature)
'+zcz' is not a recognized feature for this target (ignoring feature)
'cyclone' is not a recognized processor for this target (ignoring processor)

It seems that a library is missing.

Device info:
Version: iOS 13.5
DeviceName: ipad 7th generation
Jailbreak: odysseyra1n

tmux is missing the entitlements xml file.

tmux.mk references tmux.xml in the sign stage but tmux.xml does not exist.
tmux gets killed because the sign stage failed leading to tmux not having any entitlements.

Package Requests: librtlsdr, libnfc, dump1090

Basically a bunch of utilities that do dope things by communicating with the device using its USB interface (with the iPhone being USB host).

None of them has ever been previously available to iOS due to libusb not being available (or at least publicly) before this year. Now that I've tested libusb to be working with both the CCK (via lightning and external power supply) as well as Type-C extension docks (via USB C), these utilities should be able to work just fine.

https://github.com/antirez/dump1090
https://github.com/librtlsdr/librtlsdr
https://github.com/nfc-tools/libnfc

Unable to build various complex project on-device due to various `Operation not permitted` errors.

I am not savvy enough to understand exactly what is going wrong here, so please let me know if I should submit this issue to the Odyssey repo or some other repo instead.

I am unable to build various complex projects on-device (iPad Pro 4 iOS 13.5 Odyssey 1.2.2) due to various Operation not permitted errors. I had the same issue on Unc0ver using Sam Binger’s tools, and it was acknowledged as a bug on StackOverflow, but never fixed. I’ve recently switched to Odyssey and your tools.

The errors are all something like this: building make using

git clone https://git.savannah.gnu.org/git/make.git
cd make
./bootstrap

fails with

autoreconf: running: aclocal -I m4 --force -I m4
Can't exec "aclocal": Operation not permitted at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: Operation not permitted
./bootstrap: autoreconf failed

Building texlive using

git clone https://github.com/TeX-Live/texlive-source
cd texlive-source

fails with

/home/mobile/Developer/sources/texlive-source/libs/freetype2/freetype-src/builds/unix/configure  '--disable-shared' '--without-bzip2' '--without-zlib' '--without-png' '--without-harfbuzz' '--prefix=/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2/ft-install' '--libdir=/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2' '--includedir=/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2'
make[4]: /home/mobile/Developer/sources/texlive-source/libs/freetype2/freetype-src/builds/unix/configure: Operation not permitted
make[4]: *** [/home/mobile/Developer/sources/texlive-source/libs/freetype2/freetype-src/builds/unix/detect.mk:89: setup] Error 127make[4]: Leaving directory '/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2/ft-build'make[3]: *** [Makefile:606: ft-config] Error 2
make[3]: Leaving directory '/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2'make[2]: *** [Makefile:918: recurse] Error 1
make[2]: Leaving directory '/home/mobile/Developer/sources/texlive-source/Work/libs'
make[1]: *** [Makefile:488: all-recursive] Error 1make[1]: Leaving directory '/home/mobile/Developer/sources/texlive-source/Work/libs'make: *** [Makefile:582: all-recursive] Error 1

Importantly though, changing like 89 of detect.mk from

                $(TOP_DIR)/builds/unix/configure $(value CFG)

to

                bash $(TOP_DIR)/builds/unix/configure $(value CFG)

fixes this error, and the build progresses to a new one:

make[4]: /home/mobile/Developer/sources/texlive-source/Work/libs/freetype2/ft-build/libtool: Operation not permitted
make[4]: *** [config.mk:55: /home/mobile/Developer/sources/texlive-source/Work/libs/freetype2/ft-build/libfreetype.la] Error 127
make[4]: Leaving directory '/home/mobile/Developer/sources/texlive-source/Work/libs/freetype2/ft-build'

which can be alleviated in a similar way. Every time there is an error, the solution is just to prefix the line which errors with bash.

I can just keep doing this until the build succeeds, but I’d rather not do that.

I have installed all the required build tools, I am logged in a mobile, I am not building from /var/mobile/, and my environment variables are configured like so.

export SDK_ROOT="/usr/share/SDKs/iPhoneOS.sdk"
export ARCH=arm64

export CC="clang-10"
export CXX="clang++-10"
export CFLAGS="-isysroot $SDK_ROOT"
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CFLAGS
export LDFLAGS="-isysroot $SDK_ROOT"
export CCASFLAGS="-isysroot $SDK_ROOT"

export CCexe_CFLAGS=$CFLAGS
export CCexe_LDFLAGS=$LDFLAGS

Let me know if there’s anything I can do to help fix this, or if there’s any other info you need from me. I greatly appreciate your help.

Package request: sqlite3

Would be nice to have sqlite3, it's needed for keychaindumper.

I got it installed in a hacky way by installing from Bingner's repo and then symlinking some libraries, but this is not ideal:

ln -s /usr/lib/libreadline.8.dylib /usr/lib/libreadline.7.dylib
ln -s /usr/lib/libncursesw.6.dylib /usr/lib/libncurses.6.dylib

dpkg -l

I get an error when I type “dpkg -l”

Package Request: FFmpeg

I’d like to get FFmpeg added. It has a fair amount of dependencies, but MCApollo has already done pretty much all of the work at https://github.com/MCApollo/repo. All you need to do is convert their build system to Procursus’ and it should work.

I might be able to do this myself, but I haven’t built from Procursus before and I have to run MacOS inside a VM.

Compilation of curl on ubuntu

Hi, when compiling curl on ubuntu I get the following error:

make curl
Makefile:66: Building for iOS
Makefile:104: Building on Linux
mkdir -p
/home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600 /home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600/{System/Librar
y/Frameworks,usr/{include/{bsm,os,sys,IOKit,libkern,mach/machine},lib}}
/home/ahmed/downloads/Procursus/build_work/iphoneos-arm64/1600 /home/ahmed/downloads/Procursus/build_stage/iphoneos-arm64/1600 /home/ahmed/d
ownloads/Procursus/build_dist/iphoneos-arm64/1600 /home/ahmed/downloads/Procursus/build_strap/iphoneos-arm64/1600
git submodule update --init --recursive
wget -q -nc -P /home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600/usr/include
https://opensource.apple.com/source/xnu/xnu-6153.61.1/libsyscall/wrappers/spawn/spawn.h
wget -q -nc -P /home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600/usr/include/mach/machine
https://opensource.apple.com/source/xnu/xnu-6153.81.5/osfmk/mach/machine/thread_state.h
wget -q -nc -P /home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600/usr/include/bsm
https://opensource.apple.com/source/xnu/xnu-6153.81.5/bsd/bsm/audit_kevents.h
cp -af /home/ahmed/cctools/SDK/MacOSX.sdk/usr/include/{arpa,net,xpc} /home/ahmed/downloads/Procursus/build_base/iphoneos-arm64/1600/usr/include
cp: cannot stat '/home/ahmed/cctools/SDK/MacOSX.sdk/usr/include/arpa': No such file or directory
cp: cannot stat '/home/ahmed/cctools/SDK/MacOSX.sdk/usr/include/net': No such file or directory
cp: cannot stat '/home/ahmed/cctools/SDK/MacOSX.sdk/usr/include/xpc': No such file or directory
make: *** [Makefile:545: setup] Error 1
ahmed@ahmed-T90B-Pro:~/downloads/Procursus$

Any help would be appreciated

Package Request: Updated p7zip

The original p7zip this project uses hasn't been updated for 4 years. An updated fork of it that uses a more recent version of 7zip and adds 7 additional codecs is available at jinfeihan57/p7zip. It's a fork of the 7zip that's already being used, so it shouldn't be too hard to port over.
It also fixes some CVEs and whatnot, so the Debian patches currently used shouldn't be needed anymore.

package requests

hi, could you please add dock-xsl, gcc po4a,, libtoolize, flex, cmake, byson and pkg-config?
thank you very much

tmux appears broken

I cannot get tmux to work. Running tmux on my iPad Pro 4 results in

[server exited unexpectedly]
                            %                                                                                                                                                              Daviss-iPad:~ mobile% 
/1;2c_

I think this also used to work, but I don’t remember when. Let me know if there’s anything I can do to help debug.

Sidenote: thanks for fixing my last issue in less than 10 min. You’re incredible.

Package Request: rclone

A local installation of rclone - the "rsync for cloud storage" - would be pretty handy to have in some situations. It's written in Go. Thanks!

Overall testing

  • Run test suites where available
  • Review common packages and ensure none have missing dependencies
  • Possibly implement a test command that runs test suites on a connected device, and does “does it work” tests like Homebrew’s brew test does

How does Procursus handle Perl packages?

As you might know Perl packages are different than other types of packages, this depend on Perl to be executed.

But this also means adding things ourselves or resolving our own deps, say:

a -> depends on b
b -> c

We can handle the install of c ourselves but if C has more deps this is gonna become dependency hell, there are some tools that Debian offers for packing this type of software, does procursus use them?

glibtoolize in GNU Libtool appears to be broken

Trying to compile various projects on device that utilize GNU Libtool often results in the following error:
"glibtoolize: error: $pkgauxdir is not a directory: '/usr/share/libtool/build-aux'"

Upon further investigation I could see the program is actually trying to do "glibtoolize --copy --force" which for some reason glibtoolize is consistently giving an error. It seems to have something to do with an env variable error in the on-device build system but I couldn't be certain as I'm not exactly familiar with it. This is kind of annoying as cross-compiling sometimes isn't easily possible with certain packages and so on-device offers a better route.

This error can be easily triggered by running "autoreconf -vis" which exists in a fair amount of projects as it also depends on a working glibtoolize. Please correct me if I made an error somewhere but I hope this issue can be fixed :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.