Skip to content

Instantly share code, notes, and snippets.

@ilyaevseev
Last active June 26, 2017 09:17
Show Gist options
  • Save ilyaevseev/8c2c8b2e0a742f79c992ad082ec9180a to your computer and use it in GitHub Desktop.
Save ilyaevseev/8c2c8b2e0a742f79c992ad082ec9180a to your computer and use it in GitHub Desktop.
sdwdate-gui package building notes
diff --git a/usr/share/genmkfile/make-helper.bsh b/usr/share/genmkfile/make-helper.bsh
index 46596fc..8621814 100755
--- a/usr/share/genmkfile/make-helper.bsh
+++ b/usr/share/genmkfile/make-helper.bsh
@@ -10,6 +10,18 @@
## master location:
## https://github.com/Whonix/genmkfile/blob/master/usr/share/genmkfile/make-helper.bsh
+# Workaround "No such file or directory" bug..
+realpath_binary="$(which realpath 2>/dev/null)"
+realpath() {
+ test -x "$realpath_binary" || exit 1
+ test -n "$1" || exit 1
+ if test -e "$1"; then
+ "$realpath_binary" "$1"
+ else
+ echo "$(realpath $(dirname "$1"))/$(basename "$1")"
+ fi
+}
+
make_init() {
cd "$GENMKFILE_ROOT_DIR"
}
@@ -657,14 +669,13 @@ make_dist() {
--verbose \
--owner=0 --group=0 --numeric-owner \
--mode=go=rX,u+rw,a-s \
- --sort=name \
--mtime='2015-10-21 00:00Z' \
--xz \
--file="$make_upstream_tarball_real_path" \
-T \
-
- strip-nondeterminism "$make_upstream_tarball_real_path"
+ dh_strip_nondeterminism "$make_upstream_tarball_real_path"
test -f "$make_upstream_tarball_real_path"
}
@@ -686,14 +697,13 @@ make_debdist() {
--verbose \
--owner=0 --group=0 --numeric-owner \
--mode=go=rX,u+rw,a-s \
- --sort=name \
--mtime='2015-10-21 00:00Z' \
--xz \
--file="$make_debian_tarball_absolute_path" \
-T \
-
- strip-nondeterminism "$make_debian_tarball_absolute_path"
+ dh_strip_nondeterminism "$make_debian_tarball_absolute_path"
test -f "$make_debian_tarball_absolute_path"
}

Build dependencies:

  • build-essential
  • debhelper
  • ruby-ronn

Whonix dependencies:

Build DEB:

Install DEB:

Runtime bugs:

  • Console messages:

      $ /usr/lib/sdwdate-gui/start-maybe
      Unexpected error: <class 'FileNotFoundError'>
      QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
      QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    
  • Tray icon is displayed when sdwdate-gui is started manually, but not displayed when started via /etc/xdg/autostart/sdwdate-gui.desktop

TrayIcon bugreports:

Notices:

  • gpg signing name is taken from debian/changelog, new build record should be added for that
  • sudoers and app refers to systemctl, so it cannot be used on the old distros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment