Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121844 - emerge only produces "Please specify a valid command"
Summary: emerge only produces "Please specify a valid command"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-06 08:54 UTC by Brian F. Knutsson
Modified: 2006-02-07 01:43 UTC (History)
1 user (show)

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


Attachments
patch so ebuild.sh outputs invalid arguments (ebuild_invalid_command.patch,382 bytes, patch)
2006-02-06 14:02 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian F. Knutsson 2006-02-06 08:54:16 UTC
nc6220bfk ~ # emerge --info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl eds emboss encode esd exif expat fam foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib video_cards_i810 video_cards_i915 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Brian F. Knutsson 2006-02-06 08:55:59 UTC
Please bare with me .. This is my first bug report.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-06 09:03:32 UTC
Post/attach the messages here, *never* use pastebin for bug reports.
Comment 3 Brian F. Knutsson 2006-02-06 11:31:47 UTC
#
nc6220bfk ~ # emerge perl
#
Calculating dependencies ...done!
#
>>> emerge (1 of 2) sys-devel/libperl-5.8.7 to /
#
Please specify a valid command.
#
 
#
 
#
Portage
#
Copyright 1999-2004 Gentoo Foundation
#
 
#
How to use the ebuild command:
#
 
#
The first argument to ebuild should be an existing .ebuild file.
#
 
#
One or more of the following options can then be specified.  If more
#
than one option is specified, each will be executed in order.
#
 
#
  help        : show this help screen
#
  setup       : execute package specific setup actions
#
  fetch       : download source archive(s) and patches
#
  digest      : creates a digest and a manifest file for the package
#
  manifest    : creates a manifest file for the package
#
  unpack      : unpack/patch sources (auto-fetch if needed)
#
  compile     : compile sources (auto-fetch/unpack if needed)
#
  test        : test package (auto-fetch/unpack/compile if needed)
#
  preinst     : execute pre-install instructions
#
  postinst    : execute post-install instructions
#
  install     : installs the package to the temporary install directory
#
  qmerge      : merge image into live filesystem, recording files in db
#
  merge       : does fetch, unpack, compile, install and qmerge
#
  prerm       : execute pre-removal instructions
#
  postrm      : execute post-removal instructions
#
  unmerge     : remove package from live filesystem
#
  config      : execute package specific configuration actions
#
  package     : create tarball package in /usr/portage/packages/All
#
  rpm         : builds a RedHat RPM package
#
  clean       : clean up all source and temporary files
#
 
#
The following settings will be used for the ebuild process:
#
 
#
  package     : libperl-5.8.7
#
  slot        : 1
#
  category    : sys-devel
#
  description : Larry Wall's Practical Extraction and Reporting Language
#
  system      : i686-pc-linux-gnu
#
  c flags     : -O3 -march=pentium3 -pipe -fomit-frame-pointer
#
  c++ flags   : -O3 -march=pentium3 -pipe -fomit-frame-pointer
#
  make flags  : -j2
#
  build mode  : production (stripped)
#
  merge to    : /
#
#
Additionally, support for the following optional features will be enabled:
#
#
  x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups curl eds emboss encode esd exif expat fam foomaticdb fortran gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib video_cards_i810 video_cards_i915 userland_GNU kernel_linux elibc_glibc
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2006-02-06 13:43:59 UTC
Preemptive question: Did you do any of the following?
a) modify any portage sources
b) use /etc/portage/bashrc
c) create any portage related bash functions / aliases / helper scripts in $PATH

If not, please attach (don't post inline) the output of the following commands:
# emerge -dv perl
# declare

Looks like some very weird env/alias issue to me, for some reason emerge calls ebuild which can't occur in normal circumstances.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-02-06 13:53:55 UTC
Ehm, was mistaken, it calls ebuild.sh not ebuild which is normal. But looks like it gets called with invalid arguments, so still need debug info.
Comment 6 Zac Medico gentoo-dev 2006-02-06 14:02:02 UTC
Created attachment 79057 [details, diff]
patch so ebuild.sh outputs invalid arguments

This little patch may help us diagnose the problem. If you save it as /tmp/ebuild_invalid_command.patch then you can apply it and use it like this:

su
cd /usr/lib/portage
patch -p1 -i /tmp/ebuild_invalid_command.patch
emerge perl
Comment 7 Brian F. Knutsson 2006-02-07 01:43:04 UTC
I dont know why, but when I started my machine today, and ran the command you asked me to run "emerge -dv perl" it worked great and emerged the package just fine.

I no longer have any problems emerging anything.

Thanks for you help.