From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HL9uk-00055r-1h for garchives@archives.gentoo.org; Sun, 25 Feb 2007 03:19:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l1P3HIkr008379; Sun, 25 Feb 2007 03:17:18 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l1P3HH9J008374 for ; Sun, 25 Feb 2007 03:17:18 GMT Received: by wx-out-0506.google.com with SMTP id i30so1526001wxd for ; Sat, 24 Feb 2007 19:17:17 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AHTfzSkmyXV3HF0Smw2/SEJ1EluUBhheY9h6oHJc6Fzcbq4t7DFo0V+YRdVUXM/+r+j7VubNpWX0gMe7Qo4t7TcNAkNtzdpxK9aHXog6AKK43P2Ed+v0oQPXNXO2g8+gvVOq3xhT3hmzDM/O2aWX94eza8/yfNL3VJ4RTPfumcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lrQVKpgIw81vQWITHktlsNnmJIEx+4APK8KgRD9rX908hmqbfnSiP4Bad8/Jo90Jl2oNgpqUANOvFCzWTd9+Com9mBBw0UUanpxbTV4kS1oEs0+/MOb9L2wJa6PNmBs5C4j1gYKO4mLR1nAnaiG8b8gUtPxEI7m8ZYF8qLTyru0= Received: by 10.115.88.1 with SMTP id q1mr205376wal.1172373437433; Sat, 24 Feb 2007 19:17:17 -0800 (PST) Received: by 10.114.200.16 with HTTP; Sat, 24 Feb 2007 19:17:16 -0800 (PST) Message-ID: Date: Sun, 25 Feb 2007 14:17:16 +1100 From: "Daiajo Tibdixious" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Tracking down dependencies - x11-proto/printproto x11-apps/xdpyinfo In-Reply-To: <200702240447.40236.bss03@volumehost.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200702240447.40236.bss03@volumehost.net> X-Archives-Salt: b9ff3b6b-0b6e-4a0c-8f89-7da966087c10 X-Archives-Hash: 118ddc98cfc38093027822743cc3a0fc On 2/24/07, Boyd Stephen Smith Jr. wrote: > On Saturday 24 February 2007 00:49, Daiajo Tibdixious wrote: > [snip: good info re: making a dependency optional] > Also, make that, when the use flag is disabled, the package refuses to link > against xprintproto. Otherwise, you can have a situation where xprintproto > is unmerged by --depclean, but xdpyinfo is using it dispite the -xprint USE > flag. > E.g. > xprintproto is merged as a dependency of X > xdpyinfo is merged (-xprint), but finds the appropriate header and links > against xprintproto. > X is removed. > emerge --depclean thinks it can remove xprintproto, since xdpyinfo doesn't > depend on it, despite being linked against it. Okay, I don't understand enough about how USE flags modify compilation. e.g. x11-apps/xdpyinfo xdpyinfo.c (the only source file) has #ifdef INCLUDE_XPRINT_SUPPORT #include #endif /* INCLUDE_XPRINT_SUPPORT */ yet this is defined by # if HAVE_X11_EXTENSIONS_PRINT_H # define INCLUDE_XPRINT_SUPPORT # endif earlier in the program. It may be because xdpyinfo doesn't have proper xprint conditionality that it wasn't made conditional in the ebuild. Anyway good point with depclean, I have 2 other packages depending on printproto: x11-libs/libXp-1.0.0 XpNotifyPdm.c uses printproto, and its not conditional x11-libs/openmotif uses printproto in 3 includes, unconditionally so the change to xdpyinfo doesn't get rid of printproto. > If the package comes with a testsuite, make sure to run that against both > the > old and new versions and hopefully you get similar results. Not that I can see, I'll remember. > *DO* give your emerge --info, although it may not seem relevant. > *DO* make the bug as a feature request, and set it's priority > appropriately. Yeah, I'll include the source code snippets to. xdpyinfo has some other dependencies, I'm going to check them as well, just for 'fun'. :) Actually xdpyinfo also depends on libXp and that explains why printproto is unconditional, I would have to go through it, and any others, and make printing optional on xprint. Hmm, I might shelve this until I understand how USE flags work, as I have no idea how to implement conditionality with USE/configure. -- gentoo-amd64@gentoo.org mailing list