X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 1404CDC0093 for ; Wed, 16 Jul 2014 14:26:46 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id z10so1321672pdj.16 for ; Wed, 16 Jul 2014 07:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=DpSRFfRVRTQbkKyNSbYcj1lGlw7hSyGgtUQu/fb+mqM=; b=ss9bEM0BXawBkliuqKbNu8YDUrDq6owUs6fc/lgQIDDYaxZfz3t5tyuDD3wH3tJvUZ +V2JEgeu9gdG5mZCEyLDHWKenRdBYeHUKa3soggN3rHjLT6dWtDiJabRVxZ7LVWz9vdf 2bx0E6lA5lxHVKRV0DNnUN4PNpYekUcKLYhkui1bBBWJOYPyroEFLHSF6L4RVENpMZ3R vJuYgJNH8rRmV3srE+nzvGYGiBlONXhgrMZ6wFkf4AE/tU4XiZ6tmJ/k9gaWoggaDTnX hYVyH6sj7Mt+ag5rOZcpD7RThYcxz5S7wDgt48Wl6VzgkvwJVo34noyMlIj4qhBhQhxC 8t7w== X-Received: by 10.66.180.141 with SMTP id do13mr29792914pac.93.1405520805183; Wed, 16 Jul 2014 07:26:45 -0700 (PDT) Received: from newbook ([50.0.227.244]) by mx.google.com with ESMTPSA id js3sm17241776pbb.50.2014.07.16.07.26.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jul 2014 07:26:44 -0700 (PDT) Date: Wed, 16 Jul 2014 14:22:49 -0700 From: Isaac Dunham To: William Pitcock Cc: Natanael Copa , alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] testing/sword: add new package Message-ID: <20140716212248.GA1780@newbook> References: <1405457044-3186-1-git-send-email-ibid.ag@gmail.com> <20140715162818.0f5adca9@ncopa-desktop.alpinelinux.org> 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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. Thanks, Isaac Dunham --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---