tr4mpass/README-REPRO.md
debian e3ecb9e14c build: drop the in-container usbmuxd and document the USB limits
usbmuxd inside the image competes with the host daemon for the device and is not mounted anyway. Add a .dockerignore so the build context does not carry host objects, and document that the binary links against trixie libraries and therefore is not meant to be copied out, plus the rootful/udev requirement for USB access.
2026-11-29 12:47:21 -03:00

1.6 KiB

Reproducing the build of tr4mpass (checkm8 A8/xHCI branch)

Branch: fix/checkm8-a8-xhci.

start.sh detects the OS, installs every dependency and builds:

git clone <repo-url>
cd tr4mpass
./start.sh

It installs packages through apt/brew/dnf/pacman/zypper/apk (needs sudo) and runs make clean && make. The device must be connected by USB to that same machine.

Option 2 — Container (reproducible build, nothing installed on the host)

podman build -t tr4mpass .

The Dockerfile (Debian trixie) installs libimobiledevice-dev, libirecovery-1.0-dev, libusb-1.0-0-dev, libplist-dev, libssl-dev, libcurl4-openssl-dev, libssh2-1-dev, pkg-config and build-essential, then builds the binary.

The binary is not portable

It links against trixie's shared libraries. Copying /build/tr4mpass to another machine fails with cannot open shared object file. The container is meant to build and run the binary inside the image, not to produce a portable artifact.

Running with USB access

The sequence drives EP0 directly through libusb, so it needs the real USB bus:

podman run --rm -it --device-cgroup-rule='c 189:* rwm' \
    -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v

189 is the USB major number. Two limits to be aware of:

  • Rootless podman cannot open the /dev/bus/usb nodes (they are root:root 0664), so this needs rootful podman or a udev rule on the host.
  • On macOS and Windows the Linux VM does not receive the USB device, so the container route does not work there. On SELinux hosts you may need --security-opt label=disable.