<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>198247</bug_id>
          
          <creation_ts>2007-11-06 08:58 0000</creation_ts>
          <short_desc>net-misc/dropbear-0.50: USE=minimal breaks on install due to dbscp</short_desc>
          <delta_ts>2008-03-29 03:33:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>matthijs@stdin.nl</reporter>
          <assigned_to>vapier@gentoo.org</assigned_to>
          <cc>christoph.gysin@fr33z3.org</cc>
    
    <cc>Martin.vGagern@gmx.net</cc>
    
    <cc>stefan@the2masters.de</cc>

      

      
          <long_desc isprivate="0">
            <who>matthijs@stdin.nl</who>
            <bug_when>2007-11-06 08:58:16 0000</bug_when>
            <thetext>When the minimal flag is set, dropbear&apos;s scp will not be build:

	use minimal \
					&amp;&amp; progs=&quot;dropbear dbclient dropbearkey&quot; \
					|| progs=&quot;dropbear dbclient dropbearkey dropbearconvert scp&quot;

Yet further on, during install, it is always installed, regardless of
the minimal use flag or the value of progs:

	mv &quot;${D}&quot;/usr/bin/{,db}scp || die

In the previous version of the ebuild (0.49) the &quot;|| die&quot; part was not
there, so this silently failed, still allowing the ebuild to install.
Now, dropbear always fails when the minimal use flag is set.

This would probably be fixed by adding a guarding if around the offending mv command:
	
	if [ -e &quot;${D}/usr/bin/scp&quot; ]; then
	    mv &quot;${D}&quot;/usr/bin/{,db}scp || die
	fi

This suggestion is untested, since I do not yet possess enough portage
voodoo to circumvent the ebuild checksums to try this. But, AFAICS, this
would fix the situation, also when the multicall use flag is set (which
is why I used -e instead of -f).


Reproducible: Always

Steps to Reproduce:
1. Unmask dropbear-0.50
2. USE=minimal emerge dropbear
Actual Results:  
cannot stat `/var/tmp/portage/net-misc/dropbear-0.50/image//usr/bin/scp&apos;: No such file or directory
 *
 * ERROR: net-misc/dropbear-0.50 failed.
 * Call stack:
 *              ebuild.sh, line 1695:  Called dyn_install
 *              ebuild.sh, line 1132:  Called qa_call &apos;src_install&apos;
 *              ebuild.sh, line   44:  Called src_install
 *   dropbear-0.50.ebuild, line   78:  Called die
 * The specific snippet of code:
 *      mv &quot;${D}&quot;/usr/bin/{,db}scp || die
 *  The die message:
 *   (no error message)
 *


Portage 2.1.3.16 (uclibc/x86, gcc-4.1.2, uclibc-0.9.28.3-r0, 2.6.23-gdb26fd2a-dirty i686)
=================================================================
System uname: 2.6.23-gdb26fd2a-dirty i686 AMD Turion(tm) 64 Mobile Technology MT-30
Timestamp of tree: Mon, 05 Nov 2007 17:30:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
CBUILD=&quot;i386-gentoo-linux-uclibc&quot;
CFLAGS=&quot;-Os -pipe -march=k6 -mmmx&quot;
CHOST=&quot;i386-gentoo-linux-uclibc&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-Os -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LDFLAGS=&quot;-Wl,-z,relro&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;bitmap-fonts bsdpty cli cracklib dri midi minimal mmx mudflap ncurses openmp pcre readline reflection session spl truetype-fonts type1-fonts uclibc x86 xorg zlib&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;uclibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;dummy fbdev v4l&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stefan@the2masters.de</who>
            <bug_when>2007-12-29 17:21:24 0000</bug_when>
            <thetext>Created an attachment (id=139572)
simple fix

Same problem here, I think a appropriate fix is to only do the mv when the minimal use-flag is unset.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>christoph.gysin@fr33z3.org</who>
            <bug_when>2008-02-01 12:16:11 0000</bug_when>
            <thetext>I can confirm this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-03-29 03:33:39 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139572</attachid>
            <date>2007-12-29 17:21 0000</date>
            <desc>simple fix</desc>
            <filename>dropbear_scp.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">JCBkaWZmIC11IGRyb3BiZWFye19vbGQsfS9kcm9wYmVhci0wLjUwLmVidWlsZCAKLS0tIGRyb3Bi
ZWFyX29sZC9kcm9wYmVhci0wLjUwLmVidWlsZAkyMDA3LTEwLTA2IDE0OjM2OjI1LjAwMDAwMDAw
MCArMDIwMAorKysgZHJvcGJlYXIvZHJvcGJlYXItMC41MC5lYnVpbGQJMjAwNy0xMi0yOSAxODox
MzoyMS4wMDAwMDAwMDAgKzAxMDAKQEAgLTc1LDUgKzc1LDcgQEAKIAlmaQogCXNhdmVfY29uZmln
IG9wdGlvbnMuaAogCi0JbXYgIiR7RH0iL3Vzci9iaW4veyxkYn1zY3AgfHwgZGllCisJaWYgdXNl
ICFtaW5pbWFsIDsgdGhlbgorCQltdiAiJHtEfSIvdXNyL2Jpbi97LGRifXNjcCB8fCBkaWUKKwlm
aQogfQoK
</data>        

          </attachment>
    </bug>

</bugzilla>