help needed to build a package from source

If none of the more specific forums is the right place to ask

Re: help needed to build a package from source

Postby stevepusser » 2018-12-18 19:32

So many questions!

The guide which recommended "~bpo50+1" dates back to Debian 5. You can actually put anything you want instead--the important part is the tilde "~" at the beginning, which will make it a lower version than the original. This is important if you want to do a smooth in-place upgrade to the next Debian release, and want that release's version to upgrade over your backport instead of having it stay installed and possibly not work.

The numbers with the colon at the beginning of the version are called epochs, and are usually used to fix packager's mistakes (at least in my case :oops:) A version with a higher epoch number will always be seen as higher than one with a lower one, no matter what the actual version is.

But you should read the Debian packager's manual if you want these answers and more.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: help needed to build a package from source

Postby MagicPoulp » 2018-12-19 10:43

Thank you.

What about the previous question?

Does chroot allow to install programs in a sandbox way?

Can one install docker in a chroot?

The documentation says it fakes the root folder. But will the program be runnable?
https://wiki.debian.org/chroot
MagicPoulp
 
Posts: 80
Joined: 2018-11-05 21:30

Re: help needed to build a package from source

Postby xepan » 2018-12-19 11:59

#chroot /media/debian_chroot
DEBIAN_CHROOT# apt-get install lynx
...
...
...
DEBIAN_CHROOT# which lynx
/usr/bin/lynx
DEBIAN_CHROOT#


https://help.ubuntu.com/community/BasicChroot

In general the default answer:
tias
try it and see.
xepan
 
Posts: 86
Joined: 2018-11-28 06:38

Re: help needed to build a package from source

Postby MagicPoulp » 2018-12-19 13:59

But how can an application mix things it needs from the real root folder and from the fake root folder?

If you run docker, you need to use things only the real root has access to.

Is there a way to duplicate the dependency of the root to sandbox?
MagicPoulp
 
Posts: 80
Joined: 2018-11-05 21:30

Re: help needed to build a package from source

Postby xepan » 2018-12-19 16:22

MagicPoulp wrote:But how can an application mix things it needs from the real root folder and from the fake root folder?


It doesn't mix things.

At least not usually, shit knows if and how this is possible.
ls /media/debian_chroot/
bin boot dev etc home lib media mnt opt proc root run sbin srv sys tmp usr var
$
Just a typical filesystem, and you enter it via "chroot /path/to/"
Well: you usually do mount proc, sys and dev from the host-system, you can get away without, depending on what you are planning to do.

And if you want to run docker, then run docker.
xepan
 
Posts: 86
Joined: 2018-11-28 06:38

Re: help needed to build a package from source

Postby MagicPoulp » 2018-12-20 08:53

Thank you.

If I install docker in a chroot, it will create the command in /usr/bin/docker in the chroot /media/myroot
If docker needs another program in /usr then it canot because it was redirected to the chroot.

I was just considering this scenario. I don't think docker needs another program in /usr. This is what I mean by mixing. If you redirect a root folder, then you do not have access to the old one at the exact same path. You could remount it to another path though.
MagicPoulp
 
Posts: 80
Joined: 2018-11-05 21:30

Re: help needed to build a package from source

Postby xepan » 2018-12-20 12:15

I got no clue about docker. Hence no clue if it is a thing to "install docker in a chroot".
I'd just install the program in the chroot too.
xepan
 
Posts: 86
Joined: 2018-11-28 06:38

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable