Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206772 - ebuild [pack] clean doesn't perform the custom bashrc call.
Summary: ebuild [pack] clean doesn't perform the custom bashrc call.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 200044
  Show dependency tree
 
Reported: 2008-01-20 13:31 UTC by Luigi 'Comio' Mantellini
Modified: 2008-02-01 05:36 UTC (History)
0 users

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


Attachments
enable bashrc for the clean phase (bashrc_clean.patch,428 bytes, patch)
2008-01-22 22:15 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luigi 'Comio' Mantellini 2008-01-20 13:31:08 UTC
Hi,

"ebuild [pack] clean" doesn't import the custom /etc/portage/bashrc file that should contain an user defined clean-callback.

Instead, other ebuild function (setup, compile, ...) calls correctly the user bashrc file, permitting to customize the emerge/ebuild behavior.

We using the custom bashrc to implement a useful memory based compiling. The EBUILD_PHASE=setup creates a tmpfs working dir while a EBUILD_PHASE=clean should umount safetly the working directory. Now during the EBUILD_PHASE=clean the bashrc is not invoked making impossible to remove the mounted working directory.

With previous portage versions the callback was correctly performed... I noticed this wrong(?) behavior using the portage-2.1.4.

Best regards

luigi

Reproducible: Always

Steps to Reproduce:
always

Actual Results:  
ebuild clean doesn't call /etc/portage/bashrc

Expected Results:  
ebuild clean should call /etc/portage/bashrc

emerge --info
Portage 2.1.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.24-rc7-git3 x86_64)
=================================================================
System uname: 2.6.24-rc7-git3 x86_64 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
Timestamp of tree: Sun, 20 Jan 2008 10:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
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="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ http://mirror.bih.net.ba/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirror.qubenet.net/mirror/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/portage/local/layman/gechi /usr/portage/local/layman/nx /usr/portage/local/layman/gentopia /usr/portage/local/comio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X accessibility acl acpi alsa amd64 apache2 avahi bash-completion beagle berkdb bitmap-fonts branding bzip2 cairo cdr cli cracklib crypt cups dbus dell dri dv dvb dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran galago gdbm gif gnome gpm gstreamer gtk hal iconv ieee1394 imagemagick imlib ipv6 isdnlog jack java jbig jpeg jpeg2k kerberos keyring laptop-mode lcd ldap libnotify lm_sensors lzo lzw mad midi mikmod mmap mmx mono mp3 mpeg mplayer mtp mudflap ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppp pppd pptp python qt3 qt3support qt4 quicktime rar readline reflection samba screen sdl session spell spl sse sse2 ssl svg sysfs syslog tcpd threads tiff truetype truetype-fonts unicode upnp usb v4l v4l2 vorbis wifi wmf xcb xcomposite xinerama xml xorg xv zeroconf zip 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="vmware fglrx vesa radeon avivo none ati"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Luigi 'Comio' Mantellini 2008-01-20 13:36:19 UTC
Complementary information: I'm using the bashrcng-shmfs package from gechi overlay (http://gechi-overlay.sourceforge.net/) to compile using memory working dir instead disk working dir.

luigi
Comment 2 Zac Medico gentoo-dev 2008-01-22 22:15:01 UTC
Created attachment 141611 [details, diff]
enable bashrc for the clean phase
Comment 3 Luigi 'Comio' Mantellini 2008-01-23 21:19:24 UTC
(In reply to comment #2)
> Created an attachment (id=141611) [edit]
> enable bashrc for the clean phase
> 

This patch will be integrated in the next version of portage?
Thanks a lot,

luigi
Comment 4 Zac Medico gentoo-dev 2008-02-01 05:36:38 UTC
This has been released in 2.1.4.1.