Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package profile-sync-daemon for
openSUSE:Factory checked in at 2022-10-17 14:58:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/profile-sync-daemon (Old)
and /work/SRC/openSUSE:Factory/.profile-sync-daemon.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "profile-sync-daemon"
Mon Oct 17 14:58:08 2022 rev:2 rq:1011991 version:6.48
Changes:
--------
--- /work/SRC/openSUSE:Factory/profile-sync-daemon/profile-sync-daemon.changes
2020-12-21 10:23:39.519996347 +0100
+++
/work/SRC/openSUSE:Factory/.profile-sync-daemon.new.2275/profile-sync-daemon.changes
2022-10-17 14:58:10.042146613 +0200
@@ -1,0 +2,9 @@
+Sun Oct 16 21:31:34 UTC 2022 - Enrico Belleri <[email protected]>
+
+- Update to verion 6.48:
+ * Use CHROME_CONFIG_HOME as chrome profile location
+ * No ANSI escapes when logging
+ * Move $VOLATILE to dedicated dir in $XDG_RUNTIME_DIR
+ * psd.in: fix grep statement and VERSION
+
+-------------------------------------------------------------------
Old:
----
profile-sync-daemon-6.44.tar.gz
New:
----
profile-sync-daemon-6.48.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ profile-sync-daemon.spec ++++++
--- /var/tmp/diff_new_pack.PcgSZK/_old 2022-10-17 14:58:10.506147504 +0200
+++ /var/tmp/diff_new_pack.PcgSZK/_new 2022-10-17 14:58:10.514147519 +0200
@@ -1,8 +1,8 @@
#
# spec file for package profile-sync-daemon
#
+# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2013-2020 Artem Polishchuk & Christopher Meng
-# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,15 +19,15 @@
%global shortname psd
Name: profile-sync-daemon
-Version: 6.44
+Version: 6.48
Release: 0
Summary: Symlinks and syncs browser profile dirs to RAM thus reducing
HDD/SDD calls
License: MIT
URL: https://github.com/graysky2/profile-sync-daemon
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildRequires: fdupes
BuildRequires: rsync
BuildRequires: systemd-rpm-macros
-BuildRequires: fdupes
BuildRequires: zsh
Requires: rsync
BuildArch: noarch
@@ -83,5 +83,4 @@
%files zsh-completion
%{_datadir}/zsh/site-functions/_%{shortname}
-
%changelog
++++++ profile-sync-daemon-6.44.tar.gz -> profile-sync-daemon-6.48.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/profile-sync-daemon-6.44/Makefile
new/profile-sync-daemon-6.48/Makefile
--- old/profile-sync-daemon-6.44/Makefile 2020-12-16 02:59:23.000000000
+0100
+++ new/profile-sync-daemon-6.48/Makefile 2022-09-10 11:42:29.000000000
+0200
@@ -1,4 +1,4 @@
-VERSION = 6.44
+VERSION = 6.48
PN = profile-sync-daemon
PREFIX ?= /usr
@@ -29,21 +29,21 @@
$(INSTALL_PROGRAM) common/$(PN) "$(DESTDIR)$(BINDIR)/$(PN)"
$(INSTALL_PROGRAM) common/psd-overlay-helper
"$(DESTDIR)$(BINDIR)/psd-overlay-helper"
$(INSTALL_PROGRAM) common/psd-suspend-sync
"$(DESTDIR)$(BINDIR)/psd-suspend-sync"
- ln -s $(PN) "$(DESTDIR)$(BINDIR)/psd"
+ ln -sf $(PN) "$(DESTDIR)$(BINDIR)/psd"
$(INSTALL_DIR) "$(DESTDIR)$(ZSHDIR)"
$(INSTALL_DATA) common/zsh-completion "$(DESTDIR)/$(ZSHDIR)/_psd"
$(INSTALL_DIR) "$(DESTDIR)$(SHAREDIR)/browsers"
$(INSTALL_DATA) common/psd.conf "$(DESTDIR)$(SHAREDIR)/psd.conf"
- cp common/browsers/* "$(DESTDIR)$(SHAREDIR)/browsers"
+ $(INSTALL_DATA) common/browsers/* "$(DESTDIR)$(SHAREDIR)/browsers"
$(INSTALL_DIR) "$(DESTDIR)$(SHAREDIR)/contrib"
- cp contrib/* "$(DESTDIR)$(SHAREDIR)/contrib"
+ $(INSTALL_DATA) contrib/* "$(DESTDIR)$(SHAREDIR)/contrib"
install-man:
$(Q)echo -e '\033[1;32mInstalling manpage...\033[0m'
$(INSTALL_DIR) "$(DESTDIR)$(MANDIR)"
$(INSTALL_DATA) doc/psd.1 "$(DESTDIR)$(MANDIR)/psd.1"
$(INSTALL_DATA) doc/psd-overlay-helper.1
"$(DESTDIR)$(MANDIR)/psd-overlay-helper.1"
- ln -s psd.1 "$(DESTDIR)$(MANDIR)/$(PN).1"
+ ln -sf psd.1 "$(DESTDIR)$(MANDIR)/$(PN).1"
install-systemd:
$(Q)echo -e '\033[1;32mInstalling systemd files...\033[0m'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/profile-sync-daemon-6.44/README.md
new/profile-sync-daemon-6.48/README.md
--- old/profile-sync-daemon-6.44/README.md 2020-12-16 02:59:23.000000000
+0100
+++ new/profile-sync-daemon-6.48/README.md 2022-09-10 11:42:29.000000000
+0200
@@ -39,10 +39,10 @@
## Installation from Distro Packages
### Officially Packaged
* Arch: in the
community
[repo](https://www.archlinux.org/packages/community/any/profile-sync-daemon/).
-* Debian jesse+: in the official
[repos](https://packages.debian.org/unstable/profile-sync-daemon).
+* Debian jessie+: in the official
[repos](https://packages.debian.org/unstable/profile-sync-daemon).
*
Exherbo: in the official
[repos](http://git.exherbo.org/summer/packages/net-www/profile-sync-daemon).
* Gentoo: in
the official
[repos](http://packages.gentoo.org/package/www-misc/profile-sync-daemon).
-* Ubuntu
16.10+: in the universe
[repo](https://packages.ubuntu.com/search?keywords=profile-sync-daemon).
+* Ubuntu
16.10+: in Universe
[repo](https://packages.ubuntu.com/search?keywords=profile-sync-daemon).
* Fedora: in
the official [repos](https://src.fedoraproject.org/rpms/profile-sync-daemon).
### User Packaged
@@ -51,3 +51,13 @@
### Other Distros
If you are interested in packaging psd for your favorite distro, please
contact me.
+
+## logcheck
+Using logcheck? Here are some ways to filter out log lines:
+```regexp
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ profile-sync-daemon\[[0-9]+]\]:
.*(google-chrome|firefox) (re|un)sync successful
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ profile-sync-daemon\[[0-9]+\]: psd startup
check successful$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd\[[0-9]+\]: Started Timer for
profile-sync-daemon
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd\[[0-9]+\]: psd(-resync)?\.service:
Consumed [0-9\.]+s CPU time\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd\[[0-9]+\]: psd(-resync)\.timer:
Succeeded\.$
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/profile-sync-daemon-6.44/common/browsers/google-chrome
new/profile-sync-daemon-6.48/common/browsers/google-chrome
--- old/profile-sync-daemon-6.44/common/browsers/google-chrome 2020-12-16
02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/common/browsers/google-chrome 2022-09-10
11:42:29.000000000 +0200
@@ -1,2 +1,6 @@
-DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+if [[ -n "$CHROME_CONFIG_HOME" ]]; then
+ DIRArr[0]="$CHROME_CONFIG_HOME/$browser"
+else
+ DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+fi
PSNAME="chrome"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/profile-sync-daemon-6.44/common/browsers/google-chrome-beta
new/profile-sync-daemon-6.48/common/browsers/google-chrome-beta
--- old/profile-sync-daemon-6.44/common/browsers/google-chrome-beta
2020-12-16 02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/common/browsers/google-chrome-beta
2022-09-10 11:42:29.000000000 +0200
@@ -1,2 +1,6 @@
-DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+if [[ -n "$CHROME_CONFIG_HOME" ]]; then
+ DIRArr[0]="$CHROME_CONFIG_HOME/$browser"
+else
+ DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+fi
PSNAME="chrome"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/profile-sync-daemon-6.44/common/browsers/google-chrome-unstable
new/profile-sync-daemon-6.48/common/browsers/google-chrome-unstable
--- old/profile-sync-daemon-6.44/common/browsers/google-chrome-unstable
2020-12-16 02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/common/browsers/google-chrome-unstable
2022-09-10 11:42:29.000000000 +0200
@@ -1,2 +1,6 @@
-DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+if [[ -n "$CHROME_CONFIG_HOME" ]]; then
+ DIRArr[0]="$CHROME_CONFIG_HOME/$browser"
+else
+ DIRArr[0]="$XDG_CONFIG_HOME/$browser"
+fi
PSNAME="chrome"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/profile-sync-daemon-6.44/common/profile-sync-daemon.in
new/profile-sync-daemon-6.48/common/profile-sync-daemon.in
--- old/profile-sync-daemon-6.44/common/profile-sync-daemon.in 2020-12-16
02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/common/profile-sync-daemon.in 2022-09-10
11:42:29.000000000 +0200
@@ -10,11 +10,22 @@
# needed for debian >=8.x
PATH=$PATH:/sbin
-BLD="\e[01m"
-RED="\e[01;31m"
-GRN="\e[01;32m"
-BLU="\e[01;34m"
-NRM="\e[00m"
+if [[ -n "$LAUNCHED_BY_SYSTEMD" ]] ; then
+# This script was invoked by systemd
+# Thx to notes-jj:
https://serverfault.com/questions/926349/systemd-tell-if-script-was-run-by-systemd-or-by-user
+# No 'echo' ANSI escape codes
+ BLD=''
+ RED=''
+ GRN=''
+ BLU=''
+ NRM=''
+else
+ BLD="\e[01m"
+ RED="\e[01;31m"
+ GRN="\e[01;32m"
+ BLU="\e[01;34m"
+ NRM="\e[00m"
+fi
VERS="@VERSION@"
user=$(id -un)
@@ -24,8 +35,8 @@
PSDCONFDIR="$XDG_CONFIG_HOME/psd"
PSDCONF="$PSDCONFDIR/psd.conf"
SHAREDIR="/usr/share/psd"
-VOLATILE="$XDG_RUNTIME_DIR"
-PID_FILE="$VOLATILE/psd.pid"
+VOLATILE="$XDG_RUNTIME_DIR/psd"
+PID_FILE="$XDG_RUNTIME_DIR/psd.pid"
if [[ ! -d "$SHAREDIR" ]]; then
echo -e " ${RED}ERROR:${NRM}${BLD} Missing ${BLU}$SHAREDIR${NRM}${BLD} -
reinstall the package to use profile-sync-daemon.${NRM}"
@@ -94,7 +105,7 @@
unset USE_OVERLAYFS USE_SUSPSYNC BROWSERS USE_BACKUPS BACKUP_LIMIT
. "$PSDCONF"
# defining VOLATILE in the config is deprecated since v6.16
- VOLATILE="$XDG_RUNTIME_DIR"
+ VOLATILE="$XDG_RUNTIME_DIR/psd"
fi
fi
@@ -116,7 +127,7 @@
if [[ -z "$BROWSERS" ]]; then
mapfile -t BROWSERS < <(find "$SHAREDIR/browsers" -type f -printf "%f\n")
else
- if ! declare -p BROWSERS | grep -q 'declare \-a'; then
+ if ! declare -p BROWSERS | grep -q 'declare -a'; then
# did not setup as array so redefine it here
IFS=' ' read -r -a BROWSERS <<< "${BROWSERS[@]}"
fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/profile-sync-daemon-6.44/common/psd-suspend-sync
new/profile-sync-daemon-6.48/common/psd-suspend-sync
--- old/profile-sync-daemon-6.44/common/psd-suspend-sync 2020-12-16
02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/common/psd-suspend-sync 2022-09-10
11:42:29.000000000 +0200
@@ -40,6 +40,6 @@
dbus_process_sleep < <(gdbus monitor --system --dest "$dbus_interface") &
# kill the inhibitor so that the system can sleep
-[ ! -z "$bus_PID" ] && kill "$bus_PID"
+[ -n "$bus_PID" ] && kill "$bus_PID"
# vim:set ts=2 sw=2 et:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/profile-sync-daemon-6.44/init/psd-resync.service
new/profile-sync-daemon-6.48/init/psd-resync.service
--- old/profile-sync-daemon-6.44/init/psd-resync.service 2020-12-16
02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/init/psd-resync.service 2022-09-10
11:42:29.000000000 +0200
@@ -7,6 +7,7 @@
[Service]
Type=oneshot
ExecStart=/usr/bin/profile-sync-daemon resync
+Environment=LAUNCHED_BY_SYSTEMD=1
[Install]
WantedBy=default.target
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/profile-sync-daemon-6.44/init/psd.service
new/profile-sync-daemon-6.48/init/psd.service
--- old/profile-sync-daemon-6.44/init/psd.service 2020-12-16
02:59:23.000000000 +0100
+++ new/profile-sync-daemon-6.48/init/psd.service 2022-09-10
11:42:29.000000000 +0200
@@ -11,6 +11,7 @@
RemainAfterExit=yes
ExecStart=/usr/bin/profile-sync-daemon startup
ExecStop=/usr/bin/profile-sync-daemon unsync
+Environment=LAUNCHED_BY_SYSTEMD=1
[Install]
WantedBy=default.target