-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Consider using pacman and PKGBUILD ? #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also: PKGBUILD usually require md5 or sha1 checksums so they are a bit more secure! This would be a great improvement :) |
Hashes aren't a "security" feature, yet I would also like to see pacman as the package manager, purely because I'm used to it :) It is simple, lightweight and secure and it's much easier for contributors to create new packages (the aforementioned PKGBUILDs) than for apt or its derivates (such as opkg). This alone could be a good reason to switch. |
Apt starts by downloading a GPG-signed file InRelease file containing containing SHA-256 hashes for the Package files, which themselves contains hashes for listed package. So as long as the trusted GPG key ( With that said, I'm open to try out pacman (I've never used it myself)! An initial step would be in creating a |
That sounds great! |
Not making any promises but is there some kind of a "package dev/maintainer guideline"? Maybe (or maybe not) I'll have some time during holiday I can put into creating the package. |
The README in this project is the best starting point available, as well as following what Just ask here or create an issue if you run into any problem! |
I'm trying to build pacman on this branch: https://github.com/franciscod/termux-packages/tree/pacman Currently getting this:
Any ideas? @fornwall |
@franciscod Yes, it's due to Termux patching <syslog.h> to redirect syslog calls (which doesn't do anything on Android) to the system logging system (as used by logcat). However, this requires that the system library A fix could be either:
|
great! searched for
now it complains about
I thought this would be solved by installing
|
Great! The For the
|
awesome! I'm starting to get all these patterns... 💃 |
now it has errors on |
Nice to see your quick progress :)! For
should be enough (by adding it to the stdio.h patch). Then the patching in |
okay, that should be a different issue, right? i'll try to patch stdio :) now pacman seems to build but i have certain nesting of TERMUX_PREFIX... when i fix this I'll try to compile a basic pkgbuild :D |
okayyyyyy:
no clue on how to continue :D |
@franciscod Well that looks strange. You are welcome to submit what you have as |
done. hope this helps! |
When I try to build pacman,it says "configure:3850: error: C compiler cannot create executables" This is a part of config.log. |
@4679 The errors
means that you have to build these requirements first:
|
@fornwall Thanks,I'll try. |
@franciscod The |
@fornwall I'll try it! EDIT: docker is somehow broken on my machine and I can't figure out why yet... |
EDIT: But the second error is still present:
|
This comment was marked as spam.
This comment was marked as spam.
For now there no plans to change package manager. But we have apk-tools (package manager from Alpine Linux) packaged, though there no repository for it: https://github.com/termux/termux-packages/tree/master/packages/apk-tools. |
This is required on Android where glob is not in the standard library. See termux/termux-packages#104.
This is required on Android where glob is not in the standard library. See termux/termux-packages#104.
* Use TMPDIR, not TMP TMPDIR is specified by POSIX, TMP is not mentioned anywhere that I can find, see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html On Android, /tmp actually doesn't exist, so this is necessary on some systems. * Add compatibility for non-GNU expr Leading dashes in options confuses FreeBSD expr. * Pass user-defined LDFLAGS in build/compile.sh This is required on Android where glob is not in the standard library. See termux/termux-packages#104. * Comment compatibility changes
Hi @franciscod. I want to tell you that it is already possible to install (compile) pacman on termux. It is still in development and is not completely set up, but there are already some successes. |
Personally, I'm all for switching to pacman in termux, for the following reasons:
I'd love to help out in a porting/migration to pacman, possibly a bit more into July as my exams ease up ;) |
@danog will greatly appreciate your help. |
There is a project similar to termux, that instead of targeting Android targets Windows.
Check its packages here: https://github.com/Alexpux/MSYS2-packages
MSYS2 uses the Arch Linux format for package building, and also uses its package manager:
pacman
.Maybe pacman could serve useful to this project too :)
Any thoughts?
The text was updated successfully, but these errors were encountered: