Mail archive
alpine-devel

Re: [alpine-devel] [PATCH] testing/sword: add new package

From: William Pitcock <nenolod_at_dereferenced.org>
Date: Wed, 16 Jul 2014 00:51:21 -0500

Hello!

On Tue, Jul 15, 2014 at 9:28 AM, Natanael Copa <ncopa_at_alpinelinux.org> wrote:
> On Tue, 15 Jul 2014 13:44:04 -0700
> Isaac Dunham <ibid.ag_at_gmail.com> wrote:
>
>> Sword is a library for free Bible software.
>> It can also be used for other books.
> ...
>
>> +++ b/testing/sword/01-corediatheke.patch
>> _at_@ -0,0 +1,18 @@
>> +diff --git a/utilities/diatheke/corediatheke.cpp b/utilities/diatheke/corediatheke.cpp
>> +index 6e05e7c..c2b6efb 100644
>> +--- a/utilities/diatheke/corediatheke.cpp
>> ++++ b/utilities/diatheke/corediatheke.cpp
>> +_at_@ -454,7 +454,6 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI
>> + if (font) { *output << "style=\"font:\"" << font << ";\" " ;}
>> + if (strcmp(modlocale,locale) !=0 ) { *output << "lang=\"" << modlocale << "\"";}
>> + *output << ">";
>> +- }
>> + }
>> +
>> + if (font && (outputformat == FMT_HTML || outputformat == FMT_HTMLHREF || outputformat == FMT_XHTML || outputformat == FMT_THML || outputformat == FMT_CGI)) {
>> +_at_@ -498,4 +497,4 @@ void doquery(unsigned long maxverses = -1, unsigned char outputformat = FMT_PLAI
>> + }
>> +
>> + }
>> +-
>> ++}
>
> I saw your work with upstream to get this fixed. What I find
> interesting is that they didn't catch an error like this upstream. Why
> didn't the problem show up on glibc?
>
> musl again causes hidden bugs bubble up to the surface.
>
> Good job!
>
> Applied. Thanks!
>
> -nc

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.

I am not sure about why it is malfunctioning, if you have any feedback
let me know.

- kaniini


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Jul 16 2014 - 00:51:21 UTC