Skip to content
staalmannenPublic

About

A repository of package management files for rebuilding legacy GTK and Motif applications with Qt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

qtify

(pronounced cute-ify)

A repository of package management files (for example PKGBUILD for Arch, APKBUILD for Alpine, cports templates for Chimera, ...) for rebuilding legacy GTK and Motif applications with Qt.

Core dependencies

GTK applications are built using gtk-made-qt, which require GLib and Cairo in addition to the normal Qt dependencies. Motif and Athena (Xaw) applications are built with motif-on-qt, where all X11 dependencies have been replaced with an API built on top of Qt (the Athena widgets, Xmu and Xpm included). A Motif application should thus be more portable (to Wayland, OSX, Windows, ...) when being rebuilt using Qt.

Packages and formats

Package Built from Arch Alpine Chimera Fedora / openSUSE Debian / Ubuntu
gtk-made-qt git master (Arch), snapshot 5ebef1c (others) PKGBUILD APKBUILD chimera/ gtk-made-qt.spec debian/
motif-on-qt git master (Arch), snapshot 4b231cb (others) PKGBUILD APKBUILD chimera/ motif-on-qt.spec debian/
leafpad (GTK 2) 0.8.19 PKGBUILD APKBUILD chimera/ leafpad-qtify.spec debian/
xmms (GTK 1.2) 1.2.11 PKGBUILD APKBUILD chimera/ xmms-qtify.spec debian/
xpdf3 (Motif) 3.04+git20260802 PKGBUILD APKBUILD chimera/ xpdf-qtify.spec debian/
asunder (GTK 2) 3.0.1 PKGBUILD APKBUILD chimera/ asunder-qtify.spec debian/
nedit (Motif) 5.7 PKGBUILD APKBUILD chimera/ nedit-qtify.spec debian/
galculator (GTK 3) 2.1.4 PKGBUILD APKBUILD chimera/ galculator-qtify.spec debian/
ddd (Motif + Athena) 3.4.1 PKGBUILD APKBUILD chimera/ ddd-qtify.spec debian/

Applications are named <program>-qtify and provide / conflict with the original package. The libraries come in two parts where the distribution splits them: the shared library (libgtk-made-qt.so.0, only used by programs with plugins such as XMMS) and the development package with headers, the static library and the gtk-made-qt-env / motif-on-qt-env build wrappers.

What was tested

  • Debian / Ubuntu: every package built with tools/build-deb.sh on Ubuntu 24.04, installed, and run (XMMS plays through its disk writer plugin, finds its plugins in the system directory).
  • Fedora / openSUSE: every spec built with rpmbuild (lib64 layout) on Ubuntu; not yet inside Fedora or openSUSE, so the dependency names (cmake(Qt6Widgets), pkgconfig(...), which both distributions provide) are unchecked.
  • Arch: the PKGBUILDs' functions run as makepkg does, with Arch's default flags and GCC 14; not yet with makepkg on Arch itself.
  • Alpine: every package built with abuild -r in an Alpine 3.24 root (musl, GCC 15, Qt 6.11, poppler 25), installed there, and each program started headless. This found real problems the glibc runs had hidden (glibc-only calls and missing headers in motif-on-qt, Qt 6.11's Q_OBJECT checks, XMMS's getopt.c on musl, xpdf against poppler 25); all fixed. APKBUILDs name the maintainer with an e-mail address, as abuild requires.
  • Chimera: every package built with cbuild (cports of 2026-11-14) in a Chimera root (clang, LLVM libc++, musl), installed there, and each program started headless. Found and fixed: the libraries' link scripts named libstdc++, Motif's headers had register parameters clang rejects in C++17, cbuild's template lint and layout rules, BSD sed/touch, glib-gettext's /usr/lib/locale on musl. (The build machine allows no user namespaces, so cbuild's sandbox ran without one; the recipes do not depend on that.)
  • XMMS and both libraries also build with GCC 14 and clang 18 (C code of 2007 meets their new default errors; see the notes in the recipes).
  • NEdit: built with every recipe here (and with clang 18 and GCC 14 in C23 mode, which is why the recipes pass -std=gnu17), edited, saved, tabs and dialogs used in scripted headless runs.
  • Galculator: built with every recipe here (real abuild and cbuild included), installed on Ubuntu, Alpine and Chimera and used there headless (typed and clicked calculations, scientific mode).
  • Asunder: built with every recipe here, installed from the .deb (its dependencies are Qt, GLib, cairo, Pango, libcddb and cdparanoia), main window and preferences used in scripted headless runs; no CD ripped yet.

Building

Arch

cd xmms && makepkg -si

Build gtk-made-qt / motif-on-qt first (they are -git packages that follow the default branch). To publish to the AUR (each package is its own AUR git repository):

tools/aur-prepare.sh xmms ~/aur      # clones, copies, writes .SRCINFO, stages

then review, commit and push in ~/aur/xmms-qtify.

Alpine

cd xmms && abuild -r

Chimera (cports)

Each package's chimera/ directory holds its template directory (named after the package) and the links of its subpackages. cbuild only builds templates that really are in user/ or main/, so copy them (-a keeps the subpackage links):

cp -a ~/qtify/gtk-made-qt/chimera/* ~/cports/user/
cp -a ~/qtify/xmms/chimera/* ~/cports/user/
cd ~/cports && ./cbuild pkg user/xmms-qtify

(motif-on-qt, leafpad, xpdf3, nedit, asunder, galculator and ddd the same way.)

Fedora / openSUSE

cd xmms
rpmbuild -ba --define "_sourcedir $PWD" --undefine=_disable_source_fetch xmms-qtify.spec

--undefine=_disable_source_fetch lets rpmbuild download Source0 (or use spectool -g). Install the build dependencies first: on Fedora sudo dnf builddep xmms-qtify.spec, on openSUSE sudo zypper install $(rpmspec -q --buildrequires xmms-qtify.spec).

Debian / Ubuntu

sudo apt build-dep ./gtk-made-qt      # or mk-build-deps -i gtk-made-qt/debian/control
tools/build-deb.sh gtk-made-qt
sudo apt install ./build-deb/libgtk-made-qt0_*.deb ./build-deb/gtk-made-qt-dev_*.deb
tools/build-deb.sh xmms

tools/build-deb.sh downloads the source named in debian/qtify-source, checks its SHA-256, adds debian/ and runs dpkg-buildpackage (it also leaves a source package for a PPA or OBS).

Updating a snapshot

The library recipes outside Arch pin a commit. tools/repin.py moves them to another one:

tools/repin.py gtk-made-qt ~/src/gtk-made-qt <commit> "what changed"

The snapshot stamp is the commit time (YYYYMMDDHHMM), so two snapshots of one day still sort in order. By hand, change the commit, version and checksum in each file: APKBUILD (_commit, pkgver, sha512sums), chimera/<pkgname>/template.py (_commit, pkgver, sha256), the .spec (commit, snapdate), debian/changelog and debian/qtify-source. GitHub's archive of a commit is reproducible: git archive --format=tar --prefix=<repo>-<commit>/ <commit> | gzip -n gives the same bytes, so checksums can be computed from a clone.

About

A repository of package management files for rebuilding legacy GTK and Motif applications with Qt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages