Make Linux static build

This subforum contains all the issues which we already resolved.
Post Reply
Anrock
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Mar 03, 2013 9:44 am
Contact:

Make Linux static build

Post by Anrock »

Subj says it all. .deb-packages is good, but there is other linux distros. Devs certainly don't have enough time to make packages for every-every distro, so static build in .tar.gz will be perfect solution.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Make Linux static build

Post by MF- »

Shipping an archive with the libs would work equally well.

Running these commands is hardly any work, though.
Neither is getting the correct libs, either [ via package manager ] or [ by wget + setting LD_PRELOAD=<lib-dir> ]

Install:
$ ar x factorio.deb
$ tar -xzvf data.tar.gz
$ rm -r control.tar.gz debian-binary data.tar.gz
# ln -s usr/share/factorio /usr/share

Run:
$ usr/games/factorio

Or autoconvert the package with available tools / Alien.
There are no postinstall/prerm scripts, only info about deps and the would-be contents of .tar.gz.

PS: I would prefer 64bit builds over (even though nice) .tgz release

wrtlprnft
Fast Inserter
Fast Inserter
Posts: 155
Joined: Thu Feb 21, 2013 8:49 pm
Contact:

Re: Make Linux static build

Post by wrtlprnft »

I'm doing basically the same thing. I would prefer if there was some way to tell the game where to look for its data files.

My ideal package would be one that allowed you to run (not install) the game with

Code: Select all

tar -xzf factorio.tgz
cd factorio
./factorio

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Make Linux static build

Post by kovarex »

wrtlprnft wrote:I'm doing basically the same thing. I would prefer if there was some way to tell the game where to look for its data files.

My ideal package would be one that allowed you to run (not install) the game with

Code: Select all

tar -xzf factorio.tgz
cd factorio
./factorio
One of my friends is already preparing this kind of package.

wrtlprnft
Fast Inserter
Fast Inserter
Posts: 155
Joined: Thu Feb 21, 2013 8:49 pm
Contact:

Re: Make Linux static build

Post by wrtlprnft »

Very nice, thanks.

I actually played the windows version of the demo using wine because I couldn't be bothered to mess around with .deb. For some reason that did not work for the alpha, but by that time I was already hooked.

Anrock
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Mar 03, 2013 9:44 am
Contact:

Re: Make Linux static build

Post by Anrock »

kovarex, thanks.

Nemoder
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Fri Feb 22, 2013 11:14 am
Contact:

Re: Make Linux static build

Post by Nemoder »

cool!
I run Debian and I'd still prefer a static .tar.gz

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: Make Linux static build

Post by MF- »

Can someone explain to me the differences between static .tgz and .tgz that ships the then-dynamically-linked libs? (if there is any)
I am aware of the difference between dynamic and static linking.

I would be glad if the static .tgz looked for the systemwide libs if the shipped get missing/deleted :)

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Make Linux static build

Post by kovarex »

Static tar is now part of the release, so I moved this issue to resolved.

Post Reply

Return to “Resolved Problems and Bugs”