[aur-general] packaging a weird library, symlinks

Nathan Wayde kumyco at konnichi.com
Thu Jul 22 12:53:06 EDT 2010


On 22/07/10 17:41, Philipp Überbacher wrote:
> Excerpts from Nathan Wayde's message of 2010-07-22 18:25:04 +0200:
>> On 22/07/10 16:52, Philipp wrote:
>>> Hi,
>>> I try to package the IUP toolkit. The build system is fairly weird, but
>>> in cooperation with the upstream project manager I think I know the
>>> steps necessary to package it.
>>> It would need a custom environment variable LUA_CPATH set to something
>>> matching the installed lib. Afaik this would be something the user would
>>> need to do manually, which I'd like to avoid.
>>>
>>> The IUP project manager suggested that a symlink might do the trick
>>> instead:
>>> iuplua.so  ->   libiuplua51.so
>>>
>>> Is this something sensible to do?
>> yes and if you ever need to set environment variables you can add a
>> custom script in /etc/profile.d, no user intervention is required.
>
> Ah, and it would be sourced automatically?
> Could it be a one-liner like:
it will, but it must be named <NAME>.sh

>
> export LUA_CPATH=whatever
>
> Or does it need more?
>
that's all that's needed, it's just a regular script that's sourced at boot

> What about the symlink solution? Are both possible, and if so, which one
> is preferable?
> Thanks a lot.
I don't know anything about IUP apart from the fact that it's a GUI 
library or sorts so I can't tell if it will work with both. But the 
cleaner and I'd say more preferable option is to symlink as that's what 
more or less all other libraries do libxyz.so -> libxyz.1.2.so.



More information about the aur-general mailing list