[SRU] files install to home directory instead of boinc subdirectory of home

Bug #1772602 reported by Jonathan Brier
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boinc (Ubuntu)
Undecided
Unassigned
Bionic
Undecided
Unassigned

Bug Description

[ Info ]
* boinc pollutes the home directory because of a wrong change in its init script

[ Steps to reproduce ]
* install boinc in bionic

[ Regression potential ]
* Minimal, some WUs might be lost

[ Other info ]
The command sudo apt install boinc results in multiple files installing to ~/ instead of ~/boinc/. This creates a mess in the home directory and makes cleanup less clean. Installing to ~/boinc/ would make cleanup instructions simple and straightforward.

/home/usersname/all_projects_list.xml
/home/usersname/client_state_prev.xml
/home/usersname/daily_xfer_history.xml
/home/usersname/gui_rpc_auth.cfg
/home/usersname/client_state.xml

Last tested with Pop!_OS 18.04 LTS and Ubuntu 18.04 LTS.

Expected behavior are these files install in a subdirectory of home at ~/boinc/all_projects_list.xml and so on.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

This should be fixed for cosmic, unfortunately bionic is not fixed... I'll have a look about how to fix

Changed in boinc (Ubuntu):
status: New → Incomplete
status: Incomplete → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Can you please test the upcoming package in this ppa?
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa/+packages

note: I didn't add the code to move files around the system into the new location... I'm worried to do that, but I can if you want to help me

Changed in boinc (Ubuntu Bionic):
status: New → In Progress
summary: - files install to home directory instead of boinc subdirectory of home
+ [SRU] files install to home directory instead of boinc subdirectory of
+ home
description: updated
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Jonathan, or anyone else affected,

Accepted boinc into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/boinc/7.9.3+dfsg-5ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in boinc (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

I like it, it seems to work correctly now

ls -l .BOINC
total 0
-rw-r--r-- 1 locutus locutus 0 giu 22 15:02 stderrgui.txt
-rw-r--r-- 1 locutus locutus 0 giu 22 15:02 stdoutgui.txt

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

and files are back in /var/lib/boinc

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

ls -l /var/lib/boinc*
lrwxrwxrwx 1 boinc boinc 12 mag 22 18:33 /var/lib/boinc -> boinc-client

/var/lib/boinc-client:
total 92
-rw-r--r-- 1 boinc boinc 57920 giu 22 14:58 all_projects_list.xml
lrwxrwxrwx 1 root root 34 giu 22 14:58 ca-bundle.crt -> /etc/ssl/certs/ca-certificates.crt
lrwxrwxrwx 1 root root 31 giu 22 14:58 cc_config.xml -> /etc/boinc-client/cc_config.xml
-rw-r--r-- 1 boinc boinc 4245 giu 22 14:58 client_state_prev.xml
-rw-r--r-- 1 boinc boinc 4330 giu 22 15:02 client_state.xml
-rw-r--r-- 1 boinc boinc 1376 giu 22 14:58 coproc_info.xml
-rw-r--r-- 1 boinc boinc 112 giu 22 14:59 daily_xfer_history.xml
lrwxrwxrwx 1 root root 43 giu 22 14:58 global_prefs_override.xml -> /etc/boinc-client/global_prefs_override.xml
lrwxrwxrwx 1 root root 34 giu 22 14:58 gui_rpc_auth.cfg -> /etc/boinc-client/gui_rpc_auth.cfg
-rw-r--r-- 1 boinc boinc 0 giu 22 14:58 lockfile
drwxrwx--x 2 boinc boinc 4096 giu 22 14:58 notices
lrwxrwxrwx 1 root root 34 giu 22 14:58 remote_hosts.cfg -> /etc/boinc-client/remote_hosts.cfg
-rw-r--r-- 1 boinc boinc 0 giu 22 14:58 stderrgpudetect.txt
-rw-r--r-- 1 boinc boinc 0 giu 22 14:58 stdoutgpudetect.txt
-rw-r--r-- 1 boinc boinc 57 giu 22 14:59 time_stats_log

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package boinc - 7.9.3+dfsg-5ubuntu2

---------------
boinc (7.9.3+dfsg-5ubuntu2) bionic; urgency=medium

  * Use /var/lib/boinc as homedir, to avoid polluting user home directories.
    LP: #1772602

 -- Gianfranco Costamagna <email address hidden> Tue, 22 May 2018 18:33:29 +0200

Changed in boinc (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for boinc has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers