FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 04-23-2008, 07:59 PM
Ned Ludd
 
Default emerge tbz2's & INSTALL_MASK

Please show exact steps to reproduce the misbehavior. If it's indeed a
real bug. Then reopen the old one or file a new bug. But it's been
working for me fine as recently as yesterday afternoon and others as
noted here on this list.


On Wed, 2008-04-23 at 13:08 -0400, Christopher Friedt wrote:
> Hi everyone,
>
> I'm in the process of installing a bunch of packages to make an EEE pc
> root filesystem right now, and I've noticed that INSTALL_MASK is not
> masking out the *.h files that I don't need.
>
> After doing a bit of looking, I found this gentoo bug that seems to be
> from portage-2.1_pre6
>
> http://bugs.gentoo.org/show_bug.cgi?id=81025
>
> I'm using portage-2.1.4.4 and I can only guess that INSTALL_MASK is
> still not implemented for installing from binary packages.
>
> Does anyone know if that is correct?
>
> Cheers,
>
> Chris
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux

--
gentoo-embedded@lists.gentoo.org mailing list
 
Old 04-25-2008, 01:23 AM
Christopher Friedt
 
Default emerge tbz2's & INSTALL_MASK

Hi again,

What I've done is created a small chroot initially populated with a
2008.0 stage3 filesystem (should I be using a 2007.0 ?). That chroot
will be the image for the eee pc root (merging binary packages to a
magnetic disk takes a fraction of the time required merging to flash
devices - afterwards I can just rsync the image I've made).


I installed a very basic apache setup, directed the chroot to download
from localhost via a symbolic link in the apache webroot, and used the
genpkgindex from tinderbox to create the proper package index file. Both
emerge and qmerge download and read the Packages file and the tbz2 file
properly. Qmerge INSTALL_MASK properly when installing but emerge doesn't.


Below is the output of a very simple emerge operation on a .tbz2 package
fetched via http. Note that the package was not installed beforehand.
Also note that *.la, *.a, and *.h file slip by even though they are
obviously excluded via INSTALL_MASK.


Sorry for all of the excessive text :P

Cheers,

Chris

===================== emerge --info ==============================
sith / # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.23-gentoo i686)

================================================== ===============
System uname: 2.6.23-gentoo i686 Intel(R) Pentium(R) M processor 1.73GHz
Timestamp of tree: Sat, 19 Apr 2008 08:00:04 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python: 2.4.4-r9, 2.5.2-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"

CXXFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-K"
FEATURES="distlocks getbinpkg metadata-transfer nodoc noinfo sandbox
sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://lug.mtu.edu/gentoo/
ftp://mirror.datapipe.net/gentoo
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://pandemonium.tiscali.de/pub/gentoo/"
INSTALL_MASK="*.h *.a *.la /usr/share/locale /usr/share/info
/usr/share/*doc /usr/include"

LINGUAS="en en_GB de fr_CA"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/binpkgs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"

PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa amr avahi berkdb bluetooth branding bzip2
cairo cjk cli cracklib crypt cups dbus dga directfb djvu dri dvi eds
encode fbcon ffmpeg flac fontconfig fortran galago gif glitz gmp gnome
gnutls gpm gstreamer gtk hal iconv idn imlib java jpeg lcms ldap
libnotify mad midi mmx mono mpeg ncurses network networkmanager nptl
nptlonly odbc ogg opengl pcre perl png ppds python qt3 qt4 readline
samba sdl session spell sse sse2 ssl svg svga sysfs tcpd theora tiff
truetype unicode v4l v4l2 vorbis x264 x86 xattr xcb xinerama xml xorg
xpm xprint xulrunner xv xvid zlib" ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null
plug rate route share shm softvol" APACHE2_MODULES="actions alias
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
authz_dbm authz_default authz_groupfile authz_host authz_owner
authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache
env expires ext_filter file_cache filter headers include info log_config
logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text"
LINGUAS="en en_GB de fr_CA" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga"
Unset: CPPFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


===================== output of emerge op ==============================
sith / # emerge -av1 lzo

These are the packages that would be merged, in order:

Calculating dependencies -
/
Fetching bininfo from http://sith/packages/All
Loaded metadata pickle.
cache miss: '0' --- cache hit: '1046'
... done!
[binary N ] dev-libs/lzo-2.02-r1 USE="-examples"

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]
>>> Emerging (1 of 1) dev-libs/lzo-2.02-r1 to /
>>> Extracting info
>>> Extracting lzo-2.02-r1
* checking 28 files for package collisions
>>> Merging dev-libs/lzo-2.02-r1 to /
* Removing /usr/share/info
* Removing /usr/share/doc
--- /usr/
--- /usr/lib/
>>> /usr/lib/liblzo2.la
>>> /usr/lib/liblzo2.so.2.0.0
>>> /usr/lib/liblzo2.a
>>> /usr/lib/liblzo2.so.2 -> liblzo2.so.2.0.0
--- /usr/include/
>>> /usr/include/lzo/
>>> /usr/include/lzo/lzo1x.h
>>> /usr/include/lzo/lzo1z.h
>>> /usr/include/lzo/lzo1c.h
>>> /usr/include/lzo/lzodefs.h
>>> /usr/include/lzo/lzoconf.h
>>> /usr/include/lzo/lzo_asm.h
>>> /usr/include/lzo/lzo1b.h
>>> /usr/include/lzo/lzoutil.h
>>> /usr/include/lzo/lzo2a.h
>>> /usr/include/lzo/lzo1f.h
>>> /usr/include/lzo/lzo1y.h
>>> /usr/include/lzo/lzo1a.h
>>> /usr/include/lzo/lzo1.h
>>> /usr/lib/liblzo2.so -> liblzo2.so.2.0.0
>>> Regenerating /etc/ld.so.cache...
>>> dev-libs/lzo-2.02-r1 merged.

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

sith / # ls -la /usr/lib/liblzo*{so,a,la} /usr/include/lzo/lzo2a.h
-rw-r--r-- 1 root root 2984 Apr 24 21:03 /usr/include/lzo/lzo2a.h
-rw-r--r-- 1 root root 181136 Apr 24 21:03 /usr/lib/liblzo2.a
-rw-r--r-- 1 root root 798 Apr 24 21:03 /usr/lib/liblzo2.la
-rw-r--r-- 1 root root 798 Apr 24 21:03 /usr/lib/liblzo2.la
lrwxrwxrwx 1 root root 16 Apr 24 21:08 /usr/lib/liblzo2.so ->
liblzo2.so.2.0.0

sith / # grep "^INSTALL_MASK=" /etc/make.conf
INSTALL_MASK="*.h *.a *.la /usr/share/locale /usr/share/info
/usr/share/*doc /usr/include"



======================== make.conf =====================================
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
USE="aalib acl acpi alsa amr avahi berkdb bluetooth branding bzip2 cairo
cjk cli cracklib crypt cups dbus dga directfb djvu dri dvi eds encode
fbcon ffmpeg flac fontconfig fortran galago gif glitz gmp gnome gnutls
gpm gstreamer gtk hal iconv idn imlib java jpeg lcms ldap libnotify mad
midi mmx mono mpeg ncurses network networkmanager nptl nptlonly odbc ogg
opengl pcre perl png ppds python qt3 qt4 readline samba session sdl
spell sse sse2 ssl svg svga sysfs tcpd theora tiff truetype unicode v4l
v4l2 vorbis X x264 xattr xcb xinerama xml xorg xpm xprint xulrunner xv
xvid zlib -cdr -cdparanoia -cddb -cdda -dvd -dvdr -dvdread -gdbm -ipv6
-isdnlog -mudflap -nls -openmp -pam -pppd -reflection -spl -vcd"

ALSA_CARDS="hda-intel"
MAKEOPTS="-j2"
FEATURES="-ccache getbinpkg nodoc noinfo"
EMERGE_DEFAULT_OPTS="-K"
LINGUAS="en en_GB de fr_CA"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="i810 vesa vga"
LCD_DEVICES="ncurses text"
GENTOO_MIRRORS="ftp://lug.mtu.edu/gentoo/
ftp://mirror.datapipe.net/gentoo
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://pandemonium.tiscali.de/pub/gentoo/"

PORTAGE_BINHOST="http://sith/packages/All"
PKGDIR=/var/tmp/binpkgs
INSTALL_MASK="*.h *.a *.la /usr/share/locale /usr/share/info
/usr/share/*doc /usr/include"

================================================== =======================




Ned Ludd wrote:

Please show exact steps to reproduce the misbehavior. If it's indeed a
real bug. Then reopen the old one or file a new bug. But it's been
working for me fine as recently as yesterday afternoon and others as
noted here on this list.


On Wed, 2008-04-23 at 13:08 -0400, Christopher Friedt wrote:

Hi everyone,

I'm in the process of installing a bunch of packages to make an EEE pc
root filesystem right now, and I've noticed that INSTALL_MASK is not
masking out the *.h files that I don't need.


After doing a bit of looking, I found this gentoo bug that seems to be
from portage-2.1_pre6


http://bugs.gentoo.org/show_bug.cgi?id=81025

I'm using portage-2.1.4.4 and I can only guess that INSTALL_MASK is
still not implemented for installing from binary packages.


Does anyone know if that is correct?

Cheers,

Chris

--
gentoo-embedded@lists.gentoo.org mailing list
 

Thread Tools




All times are GMT. The time now is 10:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org