|
2023-09-19
, 18:33
|
Posts: 263 |
Thanked: 301 times |
Joined on Oct 2021
@ Poland
|
#2
|
|
2023-09-19
, 20:00
|
|
Posts: 1,718 |
Thanked: 4,764 times |
Joined on Apr 2018
@ Helsinki, Finland.
|
#3
|
|
2023-09-21
, 16:37
|
Posts: 263 |
Thanked: 301 times |
Joined on Oct 2021
@ Poland
|
#4
|
#!/usr/bin/env python3.1 import subprocess import sys args = ["gcc-4.4", "-D_Static_assert(a,b)=(1)", "-I/opt/wunderw/include", "-L/opt/wunderw/lib", "-lncursesw", "-lpng", "-lunistring"] for i, arg in enumerate(sys.argv): if i == 0: continue else: args.append(arg) result = subprocess.call(args) sys.exit(result)
#!/usr/bin/env python3.1 import subprocess import sys args = ["g++-4.4", "-I/opt/wunderw/include", "-L/opt/wunderw/lib", "-lncursesw", "-lpng", "-lunistring"] for i, arg in enumerate(sys.argv): if i == 0: continue args.append(arg) result = subprocess.call(args) sys.exit(result)
|
2023-10-21
, 12:50
|
Posts: 263 |
Thanked: 301 times |
Joined on Oct 2021
@ Poland
|
#5
|
|
2023-10-21
, 12:54
|
|
Posts: 1,718 |
Thanked: 4,764 times |
Joined on Apr 2018
@ Helsinki, Finland.
|
#6
|
The Following 2 Users Say Thank You to Maemish For This Useful Post: | ||
|
2023-10-21
, 17:29
|
Posts: 1,293 |
Thanked: 4,319 times |
Joined on Oct 2014
|
#7
|
Great news!
1. I compiled OpenSSL 1.1.1w (!!!) (not 1.1.0h) - with TLS 1.3 support!!!
2. I packaged full set of Mozilla certificates from Arch Linux for above OpenSSL
3. Latest curl compiled against above OpenSSL 1.1.1w gives NO errors when downloading TLS 1.3-only sites (also NO errors related to certificates!)
4. I compiled Python 3.11.3 with full SSL/TLS support and even things like SQLite3 and even Tkinter should work after my latest work!
Everything is already packaged and will be published soon!
The Following User Says Thank You to nieldk For This Useful Post: | ||
|
2023-10-21
, 18:43
|
Posts: 263 |
Thanked: 301 times |
Joined on Oct 2021
@ Poland
|
#8
|
I recently had some fun compiling modern CLI things for Nokia N9.
So far I did:
- Python 3.9.18 (CPython) compiled against OpenSSL 1.1.0h. This resulted in Python having all modules except tkinker (although some cmath / float tests failed during optimizing - but only few. Modules itself work.). Even with working ssl (TLS 1.2) and pip.
./configure arguments used:
./config arguments used:
[CODE]shared --prefix=/opt/openssl.1.1.0h --openssldir=/opt/openssl.1.1.0h -Wl,-rpath=/opt/openssl.1.1.0h/lib
- Curl 8.3.0 against OpenSSL 1.1.0h. postinst adds insecure to config so it won't check certs - temporary workaround.
./configure arguments used:
./configure arguments used:
./configure arguments used:
Compiled using cross (Viu is written in Rust) with
- OpenSSH 9.3p2 Compiled against OpenSSL 1.1.0h.
-------------------------------------
What I use for compiling? An old 2017 X1 Carbon running Arch Linux and QEMU User Static. I mount Harmattan SDK, bind-mount a directory in my /home to SDK so I have much space.
I use what SDK provided with Thecust repo mirror. GCC 4.4. If I need more libs, I try to compile them too - usually works.
Now the important part - how to package the program properly? For now I do it as following:
- compile with /opt/<package>.<version> prefix
- right after make install I do
- I make symlinks. I.e. everything in /opt/<package>.<version>/lib to /opt/lib, /opt/<package>.<version>/bin to /opt/bin. I made an Optified PATH package which adds them to PATH.
- package into DEB with N9-specific things like digsigsums, md5sums, etc. Using
But I believe it's not the right way to do so. Packages should be in one /opt/<dir> directory. But how to package them, then? Checkinstall seems to be very outdated and better not to be used - but in past it was used to exactly the same thing.
Also what is the best way to edit environment variables on N9? /etc/profile doesn't seem to be always sourced by ash.
Anyway, you can grab current results here:
http://wunderwungiel.pl/MeeGo/apt-repo/pool/testing/
In addition, I packaged pfetch and neofetch for MeeGo
My next goal is to build new GCC and BusyBox.
Thanks for all tips!
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps