WPrefs binary path

Doug Torrance dtorrance at piedmont.edu
Sun Aug 19 00:21:31 BST 2018


Hi Andreas,

On 08/18/2018 07:33 AM, Andreas Metzler wrote:
> Hello,
> 
> 1st a warning: I have pushed a whitespace-fix change to
> debian/changelog.
> 
> GIT head contains this cange:
> | Install WPrefs into the correct directory (LP: #1742842)
> ... which install the WPrefs binary to
> usr/share/lib/GNUstep/System/Applications/WPrefs.app/
> 
> We cannot do this, WPrefs is a compiled binary and not arch-indepent.
> Therefore it *must* not be installed to /usr/share. A hotfix would be to
> revert this change and use a symlink instead
> ----------------------------- debian/wmaker.links -----------------------------
> index db363d6b..95183be4 100644
> @@ -1,2 +1,3 @@
>   usr/bin/wmaker usr/bin/WindowMaker
>   usr/lib/GNUstep/System/Applications/WPrefs.app/WPrefs usr/bin/WPrefs
> +usr/lib/GNUstep/System/Applications/WPrefs.app/WPrefs usr/share/lib/GNUstep/System/Applications/WPrefs.app/WPrefs
> 
> However "/usr/share/lib/" just looks wrong. I have browsed over
> GNUstep packages
> https://qa.debian.org/developer.php?login=pkg-gnustep-maintainers@lists.alioth.debian.org
> and they seem to use a saner layout:
>    arch-indep data: below /usr/share/GNUstep/
>    arch-dep data: below /usr/lib/GNUstep/
>    program binary: /usr/bin/
> 
> The wmaker build system does not support this layout (yet). So we have
> two choices:
> 
> 1. Use abovementioned hotfix
> 2. patch wmaker
> 3. go upstream
> 
> Thoughts?

I think going upstream is definitely the correct choice, at least in the 
long term -- the GNUstep directory stuff is very out of date.  I was 
puzzled by the whole "/usr/share/lib" thing when I noticed it while 
responding to the Ubuntu bug.  I got some advice from the GNUstep 
maintainers about what's usually done in [1], which looks to be what 
you've found as well.  Correcting things upstream has been on my TODO 
list for a while, but I haven't gotten around to it yet...

Of course you're absolutely right about no arch-dependent files in 
/usr/share.  I'm not sure why I didn't think about that!

The problem right now appears to be that Window Maker throws all the 
WPrefs stuff under the directory indicated by the "--with-gnustepdir" 
configure option, regardless of whether it's arch-dependent or 
arch-independent.  So we'd need to separate that out.

Doug

[1] 
https://alioth-lists.debian.net/pipermail/pkg-wmaker-devel/2018-January/000596.html



More information about the Pkg-wmaker-devel mailing list