LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Question about a SlackBuild (https://www.linuxquestions.org/questions/slackware-14/question-about-a-slackbuild-810799/)

Daedra 05-28-2010 04:10 PM

Question about a SlackBuild
 
So I made a slackbuild for darkplaces (quake 1 engine mod/port) for myself. I was thinking about maybe submitting it to SBO but I had a quick question. The source contains precompiled binaries and the source code in case you want to build your own. So If I were to submit the package later on would it be better just to have the build repackage the precompiled binaries or have it build them from source. Currently I have it to build from source since I don't need the i686/win binaries. I have done it both ways and the results are exactly the same, but I was wondering about the proper "etiquette" of this situation.

Opinions?

pwc101 05-28-2010 04:25 PM

I don't know that there's any particular etiquette, but personally, I'd go for the source build over the binary repackaging.

If you were feeling generous, you could make the script respond to a variable such as PACKBIN:
Code:

if [ "$PACKBIN" == "yes" ]; then
    # don't compile the source, just extract and repackage the binaries
else
    # go through the process of building from source
fi

This way, you get to do both :) This might be useful if people don't want to wait for the compile to finish, or if it fails for some magic reason.

edit: Also, are there binaries for all architectures (32 and 64 bit)? If not, then source is probably the most appropriate because then everyone can use it, whether they're on slackware 32 bit, or slackware 64 bit.

Daedra 05-28-2010 04:54 PM

There are binaries for both 32 and 64. And I did think about making the build support both options but since it was just for me I didn't bother. I guess I'll decide later if I want to put the effort in or not :).

Thanks.

dive 05-28-2010 05:08 PM

What sort of build time are we talking about?

Daedra 05-28-2010 05:23 PM

about a 45 sec. on my core2 duo.

dive 05-28-2010 06:09 PM

Then I would say source compile is good. Or you could submit both even.

Daedra 05-29-2010 06:03 AM

We'll I decided to just put them both into the script and let the Administrator choose, best of both worlds :)


All times are GMT -5. The time now is 08:05 AM.