[Gtkradiant] Bundled libraries

Christopher weblionx at gmail.com
Mon Apr 1 16:32:46 EDT 2013


If you're not a programmer you're going to have a hard time making
Radiant comply with having to have packages externally. Radiant
requires the libraries it uses to perform functions, e.g. the image
libraries to load textures. Removing the code would mean Radiant
couldn't show textures at all.

What you would have to do is basically leave the code as-is, change
the compiling script to not statically-link the libraries, then write
some code to load the libraries when it loads. I haven't looked at the
code base in ages and I haven't used dynamically loaded libraries yet
in any of my own code so I don't know the specifics on making that
work.

On Mon, Apr 1, 2013 at 2:58 PM, bebo_sudo <bebo.sudo at gmail.com> wrote:
> Il 01/04/2013 18:46, Christopher ha scritto:
>
>> Why not dynamically load the library instead of stripping the
>> functions they provide?
>>
>> On Mon, Apr 1, 2013 at 12:12 PM, bebo_sudo <bebo.sudo at gmail.com> wrote:
>>>
>>> Hi folks,
>>> in my attempt to do the, by now famous, rpm for fedora, I bumped into the
>>> embedded libraries, libpng and libjpeg.
>>> The fedoraproject doesn't allow built-in libraries in rpm, so I have to
>>> remove them, as said here by Hans de Goede:
>>> https://bugzilla.redhat.com/show_bug.cgi?id=836840#c15
>>>
>>> The needed libraries will be required by the rpmbuild itself at the
>>> moment
>>> of the install.
>>> Now my question is: how to patch the sources to remove any sort of these
>>> libs?
>>>
>>> I tried to remove the most part of files in which I encountered the "png"
>>> or
>>> "jpeg" words but I think I made some errors.
>>> Here I uploaded my attempt of a patch: http://pastebin.com/iG4nDEWf
>>> and here the exit status when I try to build the rpm:
>>> http://pastebin.com/FY3f2rEA
>>>
>>> How can I avoid scons to build these libraries?
>>>
>>>
>>> Greetings,
>>> bebo
>>> _______________________________________________
>>> Gtkradiant mailing list
>>> Gtkradiant at icculus.org
>>> http://icculus.org/mailman/listinfo/gtkradiant
>>
>> _______________________________________________
>> Gtkradiant mailing list
>> Gtkradiant at icculus.org
>> http://icculus.org/mailman/listinfo/gtkradiant
>
> Thank's for your reply.
>
> I have to tell I'm not a programmer and I don't know exactly what
> "dinamically load" means.
> I think the fedoraproject want packages done in this way because if every
> package would bundle in itself its libs, the fedora repositories would be
> very heavy.
>
> Are there differences between the embedded version and the version i take
> from the fedora repos? didn't have the same functions?
>
> If you want to contribute to packaging gtkradiant for fedora I will be glade
> to see you on bugzilla.
>
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant at icculus.org
> http://icculus.org/mailman/listinfo/gtkradiant


More information about the Gtkradiant mailing list