Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374475 - nwn-data downloads 1.5GB of files only to tell me i need USE=cdinstall in order to proceed
Summary: nwn-data downloads 1.5GB of files only to tell me i need USE=cdinstall in ord...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 18:24 UTC by farmboy0
Modified: 2020-03-30 23:40 UTC (History)
2 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 farmboy0 2011-07-08 18:24:33 UTC
I have set the use flags SOU and HOU for nwn.
When emerging nwn-data it downloads the nwresources129.tar.gz file which is very large and takes a long time to download and gave me an error afterwards to use cdinstall for HOU and/or SOU.

Reproducible: Always

Steps to Reproduce:
1.set use flag HOU and SOU
2.dont set use flag cdinstall
3.emerge nwn-data
Actual Results:  
 * Messages for package games-rpg/nwn-data-1.29-r4:

 * If you really want to install SoU and/or HoU, you must
 * emerge with USE=cdinstall.
 * ERROR: games-rpg/nwn-data-1.29-r4 failed (unpack phase):
 *   SoU and/or HoU require USE=cdinstall.
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_unpack
 *   environment, line 2898:  Called die
 * The specific snippet of code:
 *               die "SoU and/or HoU require USE=cdinstall.";


Expected Results:  
I expect to be informed of the required use flag before the download.
I think its also bad style to have 3 use flags which depend on each other but can be set independently.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2011-07-08 20:42:13 UTC
Can you please give me the following information:
 - What version of portage did you use?
 - What media did you install from (original, platinum, diamond, 3-in-1, etc...)

Other than that I agree with you. The NWN ebuilds are among the most complicated in the tree right now, were written a long time ago and portage has evolved alot since then, and they are very complicated due to a long history and a desire to support all kinds of media that were available at some time. It is also very hard to debug because, although I have a few different medias to verify, my budget doesn't allow me to buy them all. And some were not available everywhere. So a lot of the code in the ebuilds was written with users' help and got less testing coverage than ideal. It's actually quite amazing that they are still working more or less well today with all the customization we have added (videos, concurrent international installs, hardware mouse, saves in $HOME, etc...).

What I'm thinking right now is we should make cdinstall mandatory or at least default on. Nowadays there are not many reasons to install the old way (i.e. from a previous windows install). If you can suggest another way to fix your particular problem I'll be pleased to try and implement it.

nwn-shadowlordsdreamcatcherdemon

Denis.
Comment 2 farmboy0 2011-07-09 10:25:55 UTC
Portage 2.1.10.3 (default/linux/x86/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-i686-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.0.2
Timestamp of tree: Sat, 09 Jul 2011 09:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages installsources news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_GB en_US ja"
MAKEOPTS="-j4 --load-average"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/var/lib/portage-overlay"
SYNC="rsync://rsync15.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa apng attica bazaar berkdb bittorrent branding bugzilla bzip2 cairo cdda cddb cdparanoia cdr cjk cli clucene cmake colordiff consolekit cracklib crypt curl cvs cxx dbus declarative desktopglobe dga dirac dri dts dvd dvdr ebook emboss encode exif expat fam ffmpeg firefox flac fluidsynth fontconfig fortran gdbm gdu gif git glade gpg gpm gstreamer gtk highlight history hou iconv icu id3tag imagemagick ipc ipv6 java jingle jpeg jpeg2k kate kde kipi konqueror lame lcms ldap libmpeg2 libnotify lm_sensors lzo mad matroska mercurial mikmod mjpeg mmx mmxext mng modules monolithic mp3 mp4 mpeg mpg123 mpi mpi-threads mplayer mudflap multimedia musicbrainz ncurses nls nowin nowlistening nptl nptlonly ntp nuv ogg okteta openal opengl openmp oscar pam pango parse-clocks pccts pch pcre pdf perl phonon plasma png policykit portaudio postgres ppds pppd python qmake qt3support qt4 qthelp qwt rar rdesktop readline sasl schroedinger scim sdl secure-delete semantic-desktop session sms snmp sou speex spell sqlite sse sse2 ssl startup-notification static-libs statistics stream subversion svg symlink sysfs system-sqlite taglib tcl tcpd texteffect theora threads tiff timidity tk truetype twolame udev unicode unlock-notify upnp urlpicpreview usb vcd vcdx video videos vlc vnc vorbis win32codecs windeco wma-fixed wxwidgets x264 x86 xattr xcb xcomposite xine xinerama xml xmpp xorg xpm xscreensaver xv xvid yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB en_US ja" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" 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
Comment 3 farmboy0 2011-07-09 10:35:18 UTC
I emerged without cdinstall and with nowin set because I dont have my CDs nor an installed windows atm.

I have the original 3xNWN 1xSOU 1xHOU packages.

The first fix for the ebuild I would like to see is to bring the error that hou or sou requires cdinstall before anything get downloaded.

the second would be to make cdinstall mandatory in case sou or hou are set and search for the mounted cds before anything gets downloaded.

After its confirmed the cds or images thereof are present only then should the install proceed.

Whether the nowin use flag should still be supported i dont really know but there is a linux nwn installer at 
http://www.icculus.org/~ravage/nwn/
available.
Also 5 seconds of googling got me this installation guide to install nwn on linux at
http://ldots.org/nwn
Comment 4 Fredric Johansson 2011-12-20 16:38:26 UTC
I have tried to do some changes to the ebuild.

You can explicitly require USE=cdinstall to be set when either USE=sou or hou is set with:
REQUIRED_USE="sou? ( cdinstall )
    hou? ( cdinstall )"
but this requires EAPI 4 which the games eclass doesn't support atm ( doesn't seem to be too hard to update it). Another way is to add a check for it earlier in the ebuild (but that won't help to stop it from downloading the tarball).

the other is to make the nwresources tarball optional and only download it when USE="nowin -hou -sou":
SRC_URI="...
   nowin? ( !hou? ( !sou? ( ${NOWINSRC_URI} ${LINGUAS_SRC_URI} ) ) )
..."
but the tarball is required even when USE=cdinstall" is used (around line 460-470 in 1.29-r4). Is this because it includes updated files?