Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523504 - app-misc/mc should depend on net-ftp/ftp
Summary: app-misc/mc should depend on net-ftp/ftp
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alex Alexander (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 07:41 UTC by Michelangelo Scopelliti
Modified: 2014-09-28 20:37 UTC (History)
3 users (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 Michelangelo Scopelliti 2014-09-23 07:41:41 UTC
app-misc/mc internal ftp client does  not honor .netrc unless net-ft/ftp is installed.
The error is silent, I discovered it trying to debug my .netrc with a simpler ftp client.
It's my opinion that a dependency should be added, or at least a message in pkg_postinst().

Reproducible: Always




emerge --info


Portage 2.2.13 (python 3.4.1-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.3 x86_64)
=================================================================
System uname: Linux-3.16.3-x86_64-Intel-R-_Core-TM-_i5-3337U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3940040 total,   1777232 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Tue, 23 Sep 2014 06:45:01 +0000
ld ld di GNU (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.4.1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo tox-overlay science kernelpanic
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/tomoyo/conf /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/tox-overlay /var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl adolc alisp alsa amd64 amr amrenc anacron ao apng avx awt bazaar berkdb bluetooth bs2b bzip2 cairo caps cblas-external chm clang cli colord compact context contrast corefonts cracklib crypt cups curl cvs cxx dbus demosaic detex dhcp djbfft djvu dri dri3 dv dvb dvd dvdnav dvi2tty ebook emf encode excel exif extra faac fdk ffmpeg fftw firmware flac fluidsynth fontconfig fontforge fortran fpx ftp gbm gcj gd gdbm gif gimp gles2 gmp gold gpg gpm graphics graphite graphviz gsm gstreamer gudev hdri hwdb iconv icu id3tag inotify ipython ithreads jbig jemalloc jpeg jpeg2k kdrive keymap kmod ladspa lame lapack latex lcms ldns lensfun libass libcaca libkms libnotify libsamplerate libsoxr libv4l llvm-shared-libs lqr lzma lzo mad matplotlib mercurial metapost mjpeg mmap mmx mng modplug modules mp3 mp3rtp mpeg multicall multilib natspec ncurses netlink network nlopt nls nptl numpy nuv obex offensive offlinehelp ogg openexr opengl openmp openvg opus osmesa pam pango passwdqc pch pcre pdf pkcs11 png pnm postproc postscript pstricks publishers pvr python python3 q16 q32 q64 q8 qt3support quicktime rar raw readline rle rtmp schroedinger science secure-delete session smartcard smp sndfile sparse speex sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg system-cairo system-icu system-jpeg system-sqlite t1lib tftp tga theora thin-splines threads tiff timezone truetype twolame type3 udev umfpack unicode usb uxa v4l vaapi vcd vf-dlopen video vim-syntax vorbis vpx wavpack webp wifi wmf wxwidgets x264 xa xattr xdg xetex xkb xml xmp xorg xpm xscreensaver xv xvfb xvid xvmc yuv4mpeg zlib" ABI_X86="32 64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2014-09-26 21:34:32 UTC
I'm afraid i can't find how app-misc/mc is expected to find
presence of net-ftp/ftp (it's only 3 files, 2 of them are man pages).

It does very dumb thing:
    https://github.com/MidnightCommander/mc/blob/master/src/vfs/ftpfs/ftpfs.c#L2400

Does deinstaling net-ftp/ftp makes problem reappear for you?
Comment 2 Michelangelo Scopelliti 2014-09-28 17:03:30 UTC
(In reply to Sergei Trofimovich from comment #1)
> I'm afraid i can't find how app-misc/mc is expected to find
> presence of net-ftp/ftp (it's only 3 files, 2 of them are man pages).
> 
> It does very dumb thing:
>    
> https://github.com/MidnightCommander/mc/blob/master/src/vfs/ftpfs/ftpfs.
> c#L2400
> 
> Does deinstaling net-ftp/ftp makes problem reappear for you?

... and now I feel really stupid.

I had this problem on three different systems, and the problem disappeared after installing ftp (no changes to .netrc file). Hence the bug filing.
Removing net-ftp/ftp does not make the problem reappear.
I'm sorry for the time you lost searching for this bug. And, of course, thank you.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2014-09-28 20:37:05 UTC
Oh, it's OK, don't worry.

Just make sure it's not some dumb error, like
mc ran under sudo or .netrc created with another user.

Please, reopen this bug if you'll find a culprit in mc.