Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89812 - emerge --buildpgkonly --usepkg strangeness
Summary: emerge --buildpgkonly --usepkg strangeness
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 89860 100114 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-20 07:32 UTC by b52
Modified: 2005-07-24 08:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description b52 2005-04-20 07:32:29 UTC
Hi

i tried to build a Binaryhost without its own environment or coresystem. Anyway, to solve this i need "emerge --buildpgkonly --usepkg" to only compile packages which are not already here and save the binary. If the binary is there it should unpack it and pack it again into binary directory.
The point is, it should not install the package into the system, but generate binaries.
With this flags emerge installs the package and doesn't generate binaries. This should be fixed :)

Reproducible: Always
Steps to Reproduce:
1. emerge --buildpgkonly --usepkg foobar
2.
3.

Actual Results:  
emerge installs foobar

Expected Results:  
generate a binary of foobar

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 18 2005, 01:09:19)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.4, 1.5, 1.8.5-r3, 1.4_p6, 1.6.3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -mmmx -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=i686 -mmmx -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks fixpackages
sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at ftp://gentoo.inode.at/source
rsync://rsync.fhh.opensource-mirror.de/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
rsync://ftp.join.uni-muenster.de/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_IE@euro"
MAKEOPTS="-j6"
PKGDIR="/data-asterix/share/ftp/gentoo"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 acl acpi activefilter alsa amd apache2 avi berkdb bitmap-fonts
bluetooth cdparanoia cdr cgi chroot clamav crypt cups curl dga dvd dvdr emboss
encode esd ethereal fam fastcgi fax fbcon ffmpeg foomaticdb fortran freetds gd
gdbm gif gnome gphoto2 gpm gtk gtk2 imagemagick imap imlib innodb ipv6 isdn java
javascript jpeg lcd ldap libg++ libwww mad maildir md5sum memlimit mikmod mmx
motif mozcalendar moznocompose moznoirc mp3 mpeg mysql nagios-dns nagios-ntp
nagios-ping nagios-ssh ncurses nls ogg oggvorbis opengl oss pam parse-clocks
pcap pcmcia pdflib perl php png pnp python qt quicktime readline samba sasl
scanner sdl skey slang snmp socks5 spell sse ssl svga tcpd tiff transcode
truetype truetype-fonts type1-fonts unicode usb vcd virus-scan vorbis wavelan
wmf xchattext xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-04-20 08:40:15 UTC
You want to compile binaries from binaries? How is this supposed to work? Why don
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-04-20 08:40:15 UTC
You want to compile binaries from binaries? How is this supposed to work? Why don´t you copy the packages there?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-04-20 13:23:35 UTC
*** Bug 89860 has been marked as a duplicate of this bug. ***
Comment 4 b52 2005-04-20 13:32:07 UTC
No yo you didn't understand my point. For example when i want to compile a binary of kde-base then emerge has to compile all packages kde-base depends on. Now emerge should not download and compile packages (which are needed to compile kde-base) it already has as precompiled binaries in the PKGDIR. It has to use the binaries which are already there to solve the depencies of the new binary kde-base.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-04-20 16:32:48 UTC
--buildpkgonly with --usepkg doesn't make sense. --buildpkgonly means don't *install* anything whether from source or binary. Hence, it doesn't matter if deps are available in binary packages or not. The bug here is that emerge decides to install all the dependencies (even from ebuilds) when it shouldn't.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-04-20 16:38:26 UTC
# emerge --buildpkgonly --usepkg gnome
Calculating dependencies ...done!

!!! --buildpkgonly requires all dependencies to be merged.
!!! Cannot merge requested packages. Merge deps and try again.


It works as it should.

It is *not possible* to create binaries if the dependencies are not *installed* already. At least, it won't be possible without modifying almost every ebuild. The packages being built need to be able to find their deps' libs which won't happen unless the deps are installed.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-07-24 07:38:47 UTC
*** Bug 100114 has been marked as a duplicate of this bug. ***
Comment 8 Abraham Smith 2005-07-24 08:08:15 UTC
I'll repeat what I said in the duplicate bug report above:

An issue that hasn't been addressed here is that this behavior (which I also
consider to be a bug) breaks "-B" completely if FEATURES="getbinpkg" is enabled.  

Since FEATURES="getbinpkg" implies always using "-k", it is impossible to use
"-B" in the intended way.  That is, there is no way to build binary packages
without emerging onto the system. 

Furthermore, at the very least, a note should be put in the emerge and make.conf
manpages regarding this behavior.  People keep running into it when making
automated emerge scripts, and the man page gives no indication of this conflict. 
Comment 9 Jason Stubbs (RETIRED) gentoo-dev 2005-07-24 08:16:31 UTC
Perhaps --buildpkgonly should disable --usepkg? 
Comment 10 Abraham Smith 2005-07-24 08:58:29 UTC
I think that "-B disables -k" would be an acceptable solution.  

Just one note:

Since -g activates -k and -B would deactivate -k, whoever makes this change has
to be sure wierd conflicts don't happen if someone calls -Bg.  In particular, -B
should probably disable -g and FEATURES="getbipkg" as well.  Actually, this is
also good to do logically since it doesn't make sense to grab new packages from
a server if I really want to build them myself.