View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 4:18 pm Post subject: bash completion with emerge doesn't work |
|
|
Hi, in my previous gentoo box, when i typed "emerge" and the beginning of some package name, let's say "emerge docker" and then press tab - it was showing me all available packages in tree, but when i do it now on my new machine, it doesn't work - any ideas? manually creating this directory doesn't help:
Code: | # emerge docker-su: cd: /var/db/repos/gentoo: No such file or directory
-su: cd: /var/db/repos/gentoo: No such file or directory | [/code] |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 5:18 pm Post subject: |
|
|
I apologize if this is too obvious, but have you installed app-shells/bash-completion on your new machine?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 5:22 pm Post subject: |
|
|
John R. Graham wrote: | I apologize if this is too obvious, but have you installed app-shells/bash-completion on your new machine?
- John |
sure, bash completion works in all of other aspects, except with emerge.
also - where this error come from?
/var/db/repos/gentoo: No such file or directory |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 5:51 pm Post subject: |
|
|
Post your emerge --info please.
You have tree in /var/db/repos/gentoo or /usr/portage path? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 5:52 pm Post subject: |
|
|
Ah. Yes. Forgot. For Gentoo tools completions, install app-shells/gentoo-bashcomp.
For the other, "/var/db/repos/gentoo" is the new default location for the main Portage tree. Is your Portage tree stored in the old location ("/usr/portage")? Mine is. If so, I think you need Code: | location = /usr/portage | in the [gentoo] section of the /etc/portage/repos.conf/gentoo.conf file.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Fri Sep 20, 2019 5:53 pm; edited 1 time in total |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 5:53 pm Post subject: |
|
|
fedeliallalinea wrote: | Post your emerge --info please.
You have tree in /var/db/repos/gentoo or /usr/portage path? |
Code: | # emerge --info
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.2.0, glibc-2.29-r5, 5.3.0-gentoo x86_64)
=================================================================
System uname: Linux-5.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem: 8158488 total, 4055396 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Fri, 20 Sep 2019 12:00:01 +0000
Head commit of repository gentoo: e795b3db7ee3e3fe3e735b5a1728aaf81855aef0
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.4 [disabled]
app-shells/bash: 5.0_p11::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.0::gentoo
dev-lang/python: 2.7.16::gentoo, 3.6.9::gentoo, 3.7.4-r1::gentoo
dev-util/ccache: 3.7.4::gentoo
dev-util/cmake: 3.15.3::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/sandbox: 2.18::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 9.2.0::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r5::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE myspell-ru_RU-AlexanderLebedev no-source-code linux-fw-redistributable bh-luxi google-chrome OPERA-2014 dropbox CC-BY-ND-3.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac accessibility acl acpi alsa amd64 audit berkdb bluetooth branding bzip2 cairo cdda cdr cgroup-hybrid cli colord crypt cryptsetup cups curl cxx dbus device-mapper doc dot dri dts dvd dvdr eds emboss encode evo examples exif experimental fam flac fontconfig fortran gd gdbm geoip gif glamor gles gnome gnome-keyring gnome-online-accounts go googledrive gpg gpm gstreamer gtk html http iconv icu idn introspection ipv6 iscsi jadetex java jpeg kerberos latex lcms ldap libkms libnotify libsecret libtirpc logrotate mad math mbox mdadm mng mount mp3 mp4 mpeg mpx multilib multimon mysql mysqli nautilus ncurses networkmanager nls nptl nscd offensive ogg opengl openmp openntpd pam pango pcre pcre32 pdf pdfimport perl png policykit postgres postproc ppds pulseaudio python qrcode qt5 readline samba sasl sdl seccomp secure-delete slp smi spell split-usr sqlite sshdump ssl startup-notification svg symlink sync-plugin-portage systemd tcpd tfshark threads tiff tk tools tracker truetype udev udisks unicode upower usb user-session vorbis wayland winbind wininst wxwidgets x264 xa xattr xcb xkb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
Mod edit: [code] tags added for clarity. — JRG |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 5:54 pm Post subject: |
|
|
it's installed: Code: | # emerge gentoo-bashcomp bash-completion -pqv
[ebuild R ] app-shells/gentoo-bashcomp-20190211
[ebuild R ] app-shells/bash-completion-2.9-r1 USE="eselect -test" |
Mod edit: [code] tags added for clarity. — JRG |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 6:00 pm Post subject: |
|
|
As John R. Graham say, what you have configured in /etc/portage/repos.conf/gentoo.conf? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:03 pm Post subject: |
|
|
Code: | # cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
# for daily squashfs snapshots
#sync-type = squashdelta
#sync-uri = mirror://gentoo/../snapshots/squashfs |
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 6:07 pm Post subject: |
|
|
Well, there you go. Change "/var/db/repos/gentoo" to "/usr/portage".
Thanks for the [code] tags.
What this probably means, by the way, is that (a) you have conflicting values in /etc/portage/make.conf vs. /etc/portage/repos.conf/gentoo.conf and (b) app-shells/gentoo-bashcomp handles the repository location override priority slightly differently as compared to Portage.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Fri Sep 20, 2019 6:18 pm; edited 1 time in total |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:18 pm Post subject: |
|
|
John R. Graham wrote: | Well, there you go. Change "/var/db/repos/gentoo" to "/usr/portage".
Thanks for the [code] tags.
- John |
Yep! it helped - but it weird - shouldn't it be by default when first installing gentoo according to handbook? i didn't touch that file at all, only did this according to handbook:
Code: | cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf |
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 6:19 pm Post subject: |
|
|
Do you have a PORTDIR variable in /etc/portage/make.conf? That's deprecated now.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:21 pm Post subject: |
|
|
John R. Graham wrote: | Do you have a PORTDIR variable in /etc/portage/make.conf? That's deprecated now.
- John |
yes, i have, should i comment it out?
Code: | PORTDIR="/usr/portage" |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 6:22 pm Post subject: |
|
|
leonchik1976 wrote: | Yep! it helped - but it weird - shouldn't it be by default when first installing gentoo according to handbook? i didn't touch that file at all, only did this according to handbook:
Code: | cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf |
|
Probably make.conf in stage3 have variable setted to old value
Code: | PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages" |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:24 pm Post subject: |
|
|
so should i move Portage tree to new location ? or it doesn't matter? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 6:33 pm Post subject: |
|
|
leonchik1976 wrote: | so should i move Portage tree to new location ? or it doesn't matter? |
You can keep /usr/portage for now, but sooner or later is better to change _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 6:36 pm Post subject: |
|
|
You don't need to move it but you need to specify the Portage tree's location consistently across all configuration files. The new /var/db/repos/gentoo location is more consistent with the FHS which states that /usr is for read only data and /var is for things that change more often. Standards compliance is, all other things being equal, a Good Thing™, so you might want to consider moving it long term.
Edit: Ninja'd by fedeliallalinea again.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 6:43 pm Post subject: |
|
|
fedeliallalinea wrote: | Probably make.conf in stage3 have variable setted to old value
Code: | PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages" |
| It's interesting that even the very latest stage tarball (as of this writing) has those three lines.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Fri Sep 20, 2019 6:44 pm; edited 1 time in total |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:43 pm Post subject: |
|
|
what about distfiles location? |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:45 pm Post subject: |
|
|
John R. Graham wrote: | fedeliallalinea wrote: | Probably make.conf in stage3 have variable setted to old value
Code: | PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages" |
| It's interesting that even the very latest stage tarball (as of this writing) has those three lines.
- John |
should i comment out all those 3 lines in make.conf ? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 6:47 pm Post subject: |
|
|
leonchik1976 wrote: | what about distfiles location? |
In my make.conf
Code: | # Old portage tree location
#PORTDIR="/usr/portage"
#DISTDIR="${PORTDIR}/distfiles"
#PKGDIR="${PORTDIR}/packages"
# New portage tree location
PORTDIR=/var/db/repos/gentoo
DISTDIR=/var/cache/distfiles
PKGDIR=/var/cache/binpkgs |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Fri Sep 20, 2019 6:49 pm Post subject: |
|
|
fedeliallalinea wrote: | leonchik1976 wrote: | what about distfiles location? |
In my make.conf
Code: | # Old portage tree location
#PORTDIR="/usr/portage"
#DISTDIR="${PORTDIR}/distfiles"
#PKGDIR="${PORTDIR}/packages"
# New portage tree location
PORTDIR=/var/db/repos/gentoo
DISTDIR=/var/cache/distfiles
PKGDIR=/var/cache/binpkgs |
|
so PORTDIR deprecated or not? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 6:55 pm Post subject: |
|
|
man make.conf wrote: | PORTDIR = [path]... This variable is deprecated in favor of settings in repos.conf. ... | - John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30922 Location: here
|
Posted: Fri Sep 20, 2019 7:02 pm Post subject: |
|
|
John R. Graham wrote: | man make.conf wrote: | PORTDIR = [path]... This variable is deprecated in favor of settings in repos.conf. ... | - John |
You right, but until quite recently some programs was using yet PORTDIR, see https://bugs.gentoo.org/546210 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 20, 2019 8:26 pm Post subject: |
|
|
Right. I had forgotten that.
For now, this could be considered a subtle bug in app-shells/gentoo-bashcomp as Portage itself is not confused by the inconsistency.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|