Note that there are some explanatory texts on larger screens.

plurals
  1. POLocation of perl libraries
    primarykey
    data
    text
    <p>First of all, I'm not familiar with Perl and it's practices.</p> <p>I'm trying to develop an <a href="https://en.wikipedia.org/wiki/Ebuild" rel="nofollow">ebuild</a> that installs a Perl application. However I don't know where to put the library files of the application.</p> <p>The application's directory structure is</p> <pre><code>binary share/app/*.pl share/app/icons/*.png </code></pre> <p><code>binary</code> being the Perl executable.</p> <p>In the binary I see lines like <code>require 'someLibrary.pl';</code> these refer to the Perl libraries in the <code>share/app/</code> directory. I also notice a <code>use lib "$BIN/share/app";</code> line, which tells the binary where to locate the additional libraries I guess.</p> <p>Now I face the problem how to install the application.</p> <p><strong>Solution #1:</strong> Install the binary in <code>/usr/bin/</code> and the libraries in <code>/usr/lib/perl5/</code>.</p> <p><strong>Problem:</strong> Where to put the icons? The icons are referred in the binary and libraries using <code>$Bin/share/app/icons/*.png</code>. This won't work I guess.</p> <p><strong>Solution #2:</strong> Install everything in <code>/usr/share/app/</code>.</p> <p><strong>Problem:</strong> Where to put the binary? Create a symlink in <code>/usr/bin/</code> to the binary?</p> <p><strong>Solution #3:</strong> Patch the Perl files so they look for icons in <code>/usr/share/app/icons</code>, place the binary in <code>/usr/bin/</code> and the libraries in <code>/usr/lib/perl5/</code>.</p> <p><strong>Problem:</strong> I have to create a patch for the files. This doesn't seem like a good/normal way.</p> <p>Of course other solutions are more than welcome.</p> <p><strong>Update:</strong> I've tried solution #2 and as I suspected, when I execute <code>/usr/bin/binary</code> the library path gets turned into <code>/usr/bin/share/app</code>. This of course results in the libraries not being found.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload