User Tools

Site Tools


blog:pushbx:2026:0606_early_june_work_setting_up_the_bug_tracker

Early June work: Setting up the bug tracker

2026-06-05

This week I copied the bugtracker and its companion tool called "buggy" from the Dillo browser. I forked both to use as a bug tracker on https://pushbx.org/ecm/bug/

Buggy (bug tracker format tool)

Bugtracker

The Dillo bugtracker repo didn't actually track only the bug report contents, it also carried some scripting, the stylesheet, and the favicon. Therefore to prepare a complete installation, I forked the bugtracker repo as well.

ETA:

Scriptlets used to import (linear) git history

The same scriptlet was used for the buggy repo and the bugtracker repo, except for the "Imported from" line in the changeset message. This is that scriptlet:

git -C ../git log --format=%H |
  tac |
  xargs -rn1 bash -c '
    echo "$1"
    if [ -z "$(git -C ../git log --format=%p "$1")" ]
    then
      git -C ../git diff "$(git -C ../git hash-object -t tree /dev/null)" "$1"
    else
      git -C ../git diff "$1^" "$1"
    fi | patch -p1
    body="$(git -C ../git log -n1 -r "$1" --format="%B")"
    author="$(git -C ../git log -n1 -r "$1" --format="%aN <%aE>")"
    dt="$(git -C ../git log -n1 -r "$1" --format="%aD")"
    hg addremove
    hg ci -u "$author" -d "$dt" -m "$body

Imported from https://git.dillo-browser.org/buggy/commit/?id=$1"
  ' scriptlet

All the rest

I also had to clone the md4c (git) repo, which I didn't import into a hg repo as I expect little need for modifying this library. Aside everything mentioned yet, I have a mak.sh script located in ~/proj/buggy next to the historical git and current hg repos, as well as the historical bugtracker/git and current bugtracker/hg repos. This script runs the commands needed to build the md4c library and the buggy utility, passing the library, include, and rpath pathes needed for the utility to find the library. The contents of this script are:

~/proj/buggy$ cat mak.sh 
#! /bin/bash

(cd md4c; cmake . -DBUILD_SHARED_LIBS=ON && make)
MAKDIR="$PWD"
(cd hg; make CFLAGS="-L$MAKDIR/md4c/src/ -I$MAKDIR/md4c/src/ -Wl,-rpath,$MAKDIR/md4c/src/")

Other than that I symlinked ~/wwwecm/bug to point to ~/proj/buggy/bugtracker/hg/out which is sufficient to install the bug tracker.

You could leave a comment if you were logged in.
blog/pushbx/2026/0606_early_june_work_setting_up_the_bug_tracker.txt · Last modified: by ecm