Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #191717
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How to rebuild a Debian package for a foreign architecture? |
| Date | 2018-01-29 13:00 +0100 |
| Message-ID | <vdggp-3LG-1@gated-at.bofh.it> (permalink) |
| References | <vbQem-6FO-9@gated-at.bofh.it> <vbQR3-79g-7@gated-at.bofh.it> <vbRap-7g3-1@gated-at.bofh.it> <vbXSz-3dW-57@gated-at.bofh.it> <vc8XD-1AB-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2018-01-26 09:47:58 +0000, Curt wrote: > On 2018-01-25, Vincent Lefevre <vincent@vinc17.net> wrote: > > On 2018-01-25 14:53:14 +0000, Curt wrote: > >> On 2018-01-25, <tomas@tuxteam.de> <tomas@tuxteam.de> wrote: > >> > > >> > It seems that you are missing the '386 (or more precisely the '686) > >> > executables. Perhaps you need the package dpkg-cross. > >> > > >> >> If I need binutils-i686-linux-gnu, shouldn't dpkg-buildpackage fail > >> >> when checking the build dependencies? > >> > > >> > I'll leave that question to someone more knowledgeable. > >> > >> I'm much less so, but I've heard people recommending pbuilder for > >> this (chroot). > >> > >> pbuilder --create --architecture i386 > >> pbuilder --build mypackage.dsc > > > > IMHO, this is overkill, at least in my case. And I don't like to > > require root just to build a package. > > Apparently you need root to satisfy the build *dependencies* (which > means you need to be root to install a package--but we new that > already). When I want to build a package for the native architecture, I don't need to be root. If there are missing build dependencies, then the missing packages are listed, so that I can install them as root, then I can retry the package build as a normal user. So, the only things I do as root is to install packages. The build is entirely done as a normal user. > However > > ...most packages do not need root privilege to build, or even > refused to build when they are built as root. pbuilder can create a user > which is only used inside pbuilder and use that user id when building, > and use the fakeroot command when root privilege is required. > > https://pbuilder.alioth.debian.org/#nonrootchroot Or perhaps I can try pbuilder-user-mode-linux. The issue is that all this will require a major rewrite of my scripts... -- Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to rebuild a Debian package for a foreign architecture? Vincent Lefevre <vincent@vinc17.net> - 2018-01-25 15:00 +0100
Re: How to rebuild a Debian package for a foreign architecture? <tomas@tuxteam.de> - 2018-01-25 15:40 +0100
Re: How to rebuild a Debian package for a foreign architecture? Curt <curty@free.fr> - 2018-01-25 16:00 +0100
Re: How to rebuild a Debian package for a foreign architecture? Vincent Lefevre <vincent@vinc17.net> - 2018-01-25 23:10 +0100
Re: How to rebuild a Debian package for a foreign architecture? Curt <curty@free.fr> - 2018-01-26 11:00 +0100
Re: How to rebuild a Debian package for a foreign architecture? Vincent Lefevre <vincent@vinc17.net> - 2018-01-29 13:00 +0100
Re: How to rebuild a Debian package for a foreign architecture? Vincent Lefevre <vincent@vinc17.net> - 2018-01-25 23:10 +0100
[SOLVED] How to rebuild a Debian package for a foreign architecture? Vincent Lefevre <vincent@vinc17.net> - 2018-05-15 13:40 +0200
csiph-web