forked from mordak/playbook-dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 10
Porting
vaskas edited this page Dec 29, 2019
·
2 revisions
Porting software to the BlackBerry QNX is fun, at least that's what we think.
- Copy an existing port directory to a new one
cd ports
cp -R curl myport
cd myport
- Adjust and run
./build.sh
- Needs to patch an error out?
mkdir patches
cd ../../work/myport-1.2.3
cp offending.c offending.c.orig
diff -u offending.c.orig offending.c > ../../ports/myport/patches/offending.c.patch
- Go back to the port directory and re-run
./build.sh
, et voila!
- Expect that the first build of your beloved POSIX-compatible program will fail
- Embrace it, this is a cool opportunity to learn something new
- Use the source, Luke. See how the other Berrymuch ports work and the patches they bring.
- You can find a lot of cross-compilation wisdom in the Termux Packages repo. Despite being Android-specific it has a lot of useful nuggets you can apply for Berrymuch.
- Some good QNX-specific patches can be found in the RIM's pkgsrc repo
- Some 6000 packages were ported to QNX i386 back in 2012!