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.43) id 1DtEue-0002Q2-Pz for garchives@archives.gentoo.org; Fri, 15 Jul 2005 01:22:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6F1M1Dn016200; Fri, 15 Jul 2005 01:22:01 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6F1M0rY000678 for ; Fri, 15 Jul 2005 01:22:00 GMT Received: from opersys.com ([64.40.108.71] helo=www.opersys.com) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DtEu3-0006is-Hv for gentoo-embedded@lists.gentoo.org; Fri, 15 Jul 2005 01:22:11 +0000 Received: from [10.10.10.6] (dsl-135-6.aei.ca [66.36.135.6]) by www.opersys.com (8.9.3/8.9.3) with ESMTP id TAA26679 for ; Thu, 14 Jul 2005 19:00:35 -0700 Subject: [gentoo-embedded] [patch] Busybox interactive config in pkg_config From: Kristian Benoit To: gentoo-embedded@lists.gentoo.org Content-Type: multipart/mixed; boundary="=-BhFp7exDOCL6IG9tuQ0o" Date: Thu, 14 Jul 2005 21:21:20 -0400 Message-Id: <1121390481.5971.128.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Archives-Salt: f478d845-fb90-4382-a881-cb7c20924ca6 X-Archives-Hash: 46ee17243eba8acc97387721d5119d63 --=-BhFp7exDOCL6IG9tuQ0o Content-Type: text/plain Content-Transfer-Encoding: 7bit As I just fixed the pkg_config (see on gentoo-dev mailinglist) to allow more interactiveness, I modified busybox's ebuild accordingly. So now one could: $ ebuild /path/to/busybox.ebuild unpack $ ebuild /path/to/busybox.ebuild config # which pop a menuconfig $ ebuild /path/to/busybox.ebuild merge --=-BhFp7exDOCL6IG9tuQ0o Content-Disposition: attachment; filename=busybox-1.00-r4-config.patch Content-Type: text/x-patch; name=busybox-1.00-r4-config.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 7bit --- busybox-1.00-r4.ebuild 2005-07-14 20:39:47.000000000 -0400 +++ busybox-1.00-r5.ebuild 2005-07-14 20:38:51.000000000 -0400 @@ -91,6 +91,7 @@ src_unpack() { done if [[ -r ${S}/.config ]] ; then einfo "Found your ${configfile} and using it." + touch ${BUILDDIR}/.configured return 0 fi fi @@ -136,7 +137,32 @@ src_unpack() { make oldconfig > /dev/null } +pkg_config() { + if [ -f ${BUILDDIR}/.unpacked -a ! -f ${BUILDDIR}/.compiled ]; then + cd ${S} + emake CROSS="${CROSS}" menuconfig + touch ${BUILDDIR}/.configured + ewarn "${PN} is now configured, you can :" + ewarn "$ ebuild ${EBUILD} merge" + ewarn "to complete the process" + else + eerror "\"config\" must be called between \"unpack\" and \"compile\"" + eerror "To configure properly use:" + eerror "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild unpack" + eerror "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild config" + eerror "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild merge" + fi +} + src_compile() { + if [ ! -f ${BUILDDIR}/.configured ]; then + ewarn "To configure ${P} properly, you must:" + ewarn "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild unpack" + ewarn "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild config" + ewarn "$ ebuild ${PORTDIR}/sys-apps/busybox/${P}.ebuild merge" + ewarn "" + ewarn "Default config will be used." + fi busybox_set_env emake -j1 CROSS="${CROSS}" depend || die "depend failed" emake CROSS="${CROSS}" busybox || die "build failed" --=-BhFp7exDOCL6IG9tuQ0o-- -- gentoo-embedded@gentoo.org mailing list