From 8e3af725bce2f73e73df0b5ca18ef86190c5a0261e921f9b78811bed20e0778d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 24 Jul 2018 09:40:08 +0000 Subject: [PATCH] Accepting request 624870 from home:iznogood:branches:GNOME:Factory - Add gcc-user-accounts-Force-symlink-creation.patch: user-accounts: Force symlink creation. So that we can run Settings more than once in GNOME Builder. Without the -f flag, ln errs out after these symlinks are created, and Builder refuses to run after that (glgo#GNOME/gnome-control-center#107). OBS-URL: https://build.opensuse.org/request/show/624870 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=394 --- ...user-accounts-Force-symlink-creation.patch | 34 +++++++++++++++++++ gnome-control-center.changes | 9 +++++ gnome-control-center.spec | 3 ++ 3 files changed, 46 insertions(+) create mode 100644 gcc-user-accounts-Force-symlink-creation.patch diff --git a/gcc-user-accounts-Force-symlink-creation.patch b/gcc-user-accounts-Force-symlink-creation.patch new file mode 100644 index 0000000..65aa9b9 --- /dev/null +++ b/gcc-user-accounts-Force-symlink-creation.patch @@ -0,0 +1,34 @@ +From 4f3035effef08e72cffea75ec8b3dd5b8051d0c7 Mon Sep 17 00:00:00 2001 +From: Georges Basile Stavracas Neto +Date: Tue, 6 Mar 2018 22:02:58 -0300 +Subject: [PATCH] user-accounts: Force symlink creation + +So that we can run Settings more than once in GNOME Builder. +Without the -f flag, ln errs out after these symlinks are +created, and Builder refuses to run after that. + +Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/107 +--- + panels/user-accounts/meson.build | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/panels/user-accounts/meson.build b/panels/user-accounts/meson.build +index 65341410d..0b0a4fecf 100644 +--- a/panels/user-accounts/meson.build ++++ b/panels/user-accounts/meson.build +@@ -78,9 +78,9 @@ install_data( + + # create symlinks for legacy images to not break current images for people + meson.add_install_script('sh', '-c', +- 'for f in $DESTDIR@0@/*; do +- ln -s legacy/$(basename $f) $DESTDIR@1@/$(basename $f); +- done'.format(legacy_image_dir, image_dir)) ++ '''for f in $DESTDIR@0@/*; do ++ ln -sf legacy/$(basename $f) $DESTDIR@1@/$(basename $f); ++ done'''.format(legacy_image_dir, image_dir)) + + polkit = 'org.gnome.controlcenter.@0@.policy'.format(cappletname) + +-- +2.17.1 + diff --git a/gnome-control-center.changes b/gnome-control-center.changes index e3c454c..d4e8893 100644 --- a/gnome-control-center.changes +++ b/gnome-control-center.changes @@ -4,6 +4,15 @@ Mon Jul 23 10:31:30 UTC 2018 - dimstar@opensuse.org - Help translation-update-upstream finding the right gettext domain name: pass "po gnome-control-center-2.0" to the call. +------------------------------------------------------------------- +Wed Jul 11 23:12:34 UTC 2018 - bjorn.lie@gmail.com + +- Add gcc-user-accounts-Force-symlink-creation.patch: + user-accounts: Force symlink creation. So that we can run + Settings more than once in GNOME Builder. Without the -f flag, ln + errs out after these symlinks are created, and Builder refuses to + run after that (glgo#GNOME/gnome-control-center#107). + ------------------------------------------------------------------- Sat Jun 2 21:22:15 UTC 2018 - bjorn.lie@gmail.com diff --git a/gnome-control-center.spec b/gnome-control-center.spec index 9d6a27c..ec45e84 100644 --- a/gnome-control-center.spec +++ b/gnome-control-center.spec @@ -40,6 +40,8 @@ Patch0: gnome-control-center-disable-error-message-for-NM.patch Patch1: control-center-network-add-domain-suffix-match.patch # PATCH-FIX-UPSTREAM control-center-ignore-unmanaged-wifi-devices.patch bsc#1079320 glgo#GNOME/gnome-control-center#54 sckang@suse.com -- wifi: only manage Wi-Fi devices managed by NM Patch2: control-center-ignore-unmanaged-wifi-devices.patch +# PATCH-FIX-UPSTREAM gcc-user-accounts-Force-symlink-creation.patch -- user-accounts: Force symlink creation +Patch3: gcc-user-accounts-Force-symlink-creation.patch ### patches for Leap >= 15 plus SLE >= 15, but not TW # PATCH-FEATURE-SLE gnome-control-center-info-never-use-gnome-software.patch bsc#999336 fezhang@suse.com -- info: Never search for gnome-software as an option when checking for updates on SLE and Leap 42.2, because we use gpk-update-viewer. Patch1001: gnome-control-center-info-never-use-gnome-software.patch @@ -181,6 +183,7 @@ GNOME control center. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 translation-update-upstream po gnome-control-center-2.0 # patches for Leap >= 15 plus SLE >= 15, but not TW