X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 3E8A6DC00C9; Tue, 22 Jul 2014 12:27:32 +0000 (UTC) Date: Tue, 22 Jul 2014 14:27:28 +0200 From: Natanael Copa To: Isaac Dunham Cc: William Pitcock , alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] testing/sword: add new package Message-ID: <20140722142728.6a7efbbe@ncopa-desktop.alpinelinux.org> In-Reply-To: <20140716212248.GA1780@newbook> References: <1405457044-3186-1-git-send-email-ibid.ag@gmail.com> <20140715162818.0f5adca9@ncopa-desktop.alpinelinux.org> <20140716212248.GA1780@newbook> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 16 Jul 2014 14:22:49 -0700 Isaac Dunham wrote: > On Wed, Jul 16, 2014 at 12:51:21AM -0500, William Pitcock wrote: > > Hello! > > > > On Tue, Jul 15, 2014 at 9:28 AM, Natanael Copa wrote: > > > On Tue, 15 Jul 2014 13:44:04 -0700 > > > Isaac Dunham wrote: > > > > > >> Sword is a library for free Bible software. > > >> It can also be used for other books. > > > ... > > > > > > > Since this package was added to testing, there was a discussion on an > > IRC channel where this software became interesting to test, as I > > wanted to factcheck some things being claimed on it. > > > > Unfortunately, I discovered that after installing sword and > > sword-utils, and then running: > > > > user$ installmgr -init > > [...] > > user$ installmgr -r CrossWire > > user$ installmgr -ri CrossWire KJV > > > > Then doing a query using diatheke: > > > > user$ diatheke -b KJV -k ... > > > > Nothing came up. Running strace(1) on diatheke showed it required the > > data files to be installed as root before the software would function > > correctly. > > > > With the software configured as root, it functions correctly, however > > I believe this is a policy violation as software is typically supposed > > to be accessible to the user without configuration systemwide, and > > installmgr does *something* with the data it downloads when running as > > a user. > > installmgr installs "modules" to a configured location. > This location is set by DataPath and extended by AddDataPath in the > [INSTALL] section. > /etc/sword.conf points it at /usr/share/sword; this is not writeable. > I'm not aware of any way to point it at a sane default that everyone can use. > If there are NO config files, it will look for ~/.sword/mods.d, and install > into ~/.sword/modules. > > installmgr won't work right unless it can find mods.conf or a writeable > mods.d directory in the DataPath. > If it can figure out where it /should/ put modules, it will run, > downloading the modules to a per-repository location. > Then it will move them into location or silently delete them. > > Now I need to figure out what's the right fix. > I guess installmgr should error out if it can't write somewhere. > Debian's approach is to require at least one package containing a > SWORD module. How about using /var/lib/sword as default and have a 'sword' group with write permissions there? They you can just add your users to the sword group to be able to install the data files. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---