When tucan starts the first time, it copies configurations files from /usr/local/share/tucan/default_plugins to the user home directory (~/.tucan/plugins/). Then the wizard starts and try to save plugins configurations and failed. Configurations files (service.conf) are not writable by the user: .tucan/plugins/megaupload: total 42 -r--r--r-- 1 seb seb 0 7 oct 2009 __init__.py -r--r--r-- 1 seb seb 134 18 oct 11:59 __init__.pyc -r--r--r-- 1 seb seb 2055 7 oct 2009 anonymous_download.py -r--r--r-- 1 seb seb 2328 18 oct 11:59 anonymous_download.pyc -r--r--r-- 1 seb seb 3065 7 oct 2009 captcha.py -r--r--r-- 1 seb seb 3351 18 oct 11:59 captcha.pyc -r--r--r-- 1 seb seb 1938 7 oct 2009 check_links.py -r--r--r-- 1 seb seb 1812 18 oct 11:59 check_links.pyc -r--r--r-- 1 seb seb 318 7 oct 2009 favicon_megaupload.ico -r--r--r-- 1 seb seb 1424 7 oct 2009 premium_cookie.py -r--r--r-- 1 seb seb 1054 18 oct 11:59 premium_cookie.pyc -r--r--r-- 1 seb seb 2078 7 oct 2009 premium_download.py -r--r--r-- 1 seb seb 2095 18 oct 11:59 premium_download.pyc -r--r--r-- 1 seb seb 2003 7 oct 2009 premium_parser.py -r--r--r-- 1 seb seb 1909 18 oct 11:59 premium_parser.pyc -r--r--r-- 1 seb seb 360 18 oct 11:59 service.conf .tucan/plugins/rapidshare: total 30 -r--r--r-- 1 seb seb 0 7 oct 2009 __init__.py -r--r--r-- 1 seb seb 134 18 oct 11:59 __init__.pyc -r--r--r-- 1 seb seb 2638 7 oct 2009 anonymous_download.py -r--r--r-- 1 seb seb 3187 18 oct 11:59 anonymous_download.pyc -r--r--r-- 1 seb seb 1629 7 oct 2009 check_links.py -r--r--r-- 1 seb seb 1307 18 oct 11:59 check_links.pyc -r--r--r-- 1 seb seb 1150 7 oct 2009 favicon_rapidshare.ico -r--r--r-- 1 seb seb 1540 7 oct 2009 premium_cookie.py -r--r--r-- 1 seb seb 1179 18 oct 11:59 premium_cookie.pyc -r--r--r-- 1 seb seb 2779 7 oct 2009 premium_download.py -r--r--r-- 1 seb seb 3334 18 oct 11:59 premium_download.pyc -r--r--r-- 1 seb seb 361 18 oct 11:59 service.conf Fix: A solution is to add write permission to /usr/local/share/tucan/default_plugins/**/service.conf Then, you can remove your ~/.tucan and restart the wizard. How-To-Repeat: Install tucan, start it, and try to complete the wizard.
Hello, I shortly looked at this problem and the bug is in the upstream software in core/config.py. In line 79 shutil.copytree is used, afterwards the permissions should be checked and changed if necessary. Gustau, can you submit this upstream? Another issue with the port, the COMMENT= is not really descriptive.
I'll take a look at it as soon as possible.
This diff should do the trick. I had to use a custom ${FIND} because COPYTREE-* change the bits (i think it's because ${SHAREMODE} and I don't want to mess with those. Best regards, Gus
As posted before, Changing the mode of the files in DATADIR is not the right solution. config.py should be modified to do the right thing.
I'm attaching a new shar file that contains the changes to the port. It adds a file directory with a patch that changes permissions to each service.conf with python when saving a service. I guess it also does the permission changes when a service gets updated. I tested it with a user without configured-tucan (rm -fr ~/.tucan) and seems to work. It also changes the COMMENT entry in the port's makefile. Please test and commit.
Responsible Changed From-To: freebsd-ports-bugs->mandree I'll take it.
mandree 2011-05-22 21:24:04 UTC FreeBSD ports repository Modified files: net/tucan Makefile pkg-descr Added files: net/tucan/files patch-core__service_config.py Log: - Fix first-start failure by correcting permissions in ~/.tucan (adds files/patch-core__service_config.py). - Bump PORTREVISION. - As the README says 'requires Python 2.5', state so in Makefile. - Modify COMMENT (maintainer note: limit 70 characters). - Remove *.orig file leftover from patching, to avoid installing it (it's not in pkg-plist) - Upgrade to newer upstream release shelved pending further maintainer PR (he rejected ports/155563 and wants to do his own). Reported by: Posé Sébastien <sebastien.pose@gmail.com> Fixed by: Gustau Pérez <gustau.perez@gmail.com> (maintainer) PR: ports/151572 Revision Changes Path 1.5 +10 -3 ports/net/tucan/Makefile 1.1 +19 -0 ports/net/tucan/files/patch-core__service_config.py (new) 1.2 +9 -2 ports/net/tucan/pkg-descr _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, with minor changes. Thanks!