X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ew0-f220.google.com (mail-ew0-f220.google.com [209.85.219.220]) by lists.alpinelinux.org (Postfix) with ESMTP id C1ECC1EB587 for ; Thu, 11 Feb 2010 21:30:18 +0000 (UTC) Received: by ewy20 with SMTP id 20so1963990ewy.20 for ; Thu, 11 Feb 2010 13:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8IqArxJcjOqfj3/iV8dZShfVBbOwKLXHMaHllLovPi8=; b=PhA5FrJw9IpsfC3lmoRgOKXx5D5DkUTTjIReyhrDQilyg2RO/RZ7k6pWlrz5+Q8wPS bRMj1YkTPJq63WW8IW2lr9mKqtA5t2OaTHRHdWKZU9FTqiD2YB79b+AfG1MHlQRltGuS JFrLmAY4eSSgOLc3ADQ1j442G6tYmi7XQMUZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CACHjudNpxgj6zvzxhouWdE5Tir/0njxH0iaEfutVWpT4+2+K3nn4Y+vVSoiKY63V/ RiGa/V+a8k8vh/5eDxCXvgo1eoZ8XwXurVGeaK/eQ7CU7HcY1Q5VMyyhNUjCGpcXZ5or doBQi/xvV3XbeKvxfbeHuN5nZaUXhFFL87eqI= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.216.87.80 with SMTP id x58mr261483wee.92.1265923817414; Thu, 11 Feb 2010 13:30:17 -0800 (PST) In-Reply-To: <95408c821002110703u72a33179w43df88d1902c9fc@mail.gmail.com> References: <95408c821002110703u72a33179w43df88d1902c9fc@mail.gmail.com> Date: Thu, 11 Feb 2010 22:30:17 +0100 Message-ID: <1b2623ac1002111330s3762a4f8ucda0242206ad2634@mail.gmail.com> Subject: Re: [alpine-devel] apk-tools/dependencies question for php From: Carlo Landmeter To: Natanael Copa Cc: Alpine Developers Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, PHP is mainly used as a web scripting language right? I guess apk should focus on PHP cgi instead of php-cli. Lets say you install php-gd it will first look if php is installed, if not then it will install php cgi and display a message about the other options PHP which could have been installed (php-cli). If the users would like cli he could install it afterwards and then remove php-cgi. If php-cli would have been installed already it would ignore php-cgi. I guess this way is similar then your #4? I guess making apk interactive to choose your preferred php version is not possible/suitable? -carlo On Thu, Feb 11, 2010 at 4:03 PM, Natanael Copa wr= ote: > So we have this package, php, which raises interesting questions about > dependencies. > > we have 'php-cli', 'php' (php-cgi) and various php modules. Lets use > php-gd as an example. > > php-imap does not make sense as a standalone, its just a .so file, so > it made sense to have 'php' as a dependency. You installed php-gd, it > pulled in php for you. > > Now that we have php-cli in addition to php (cgi), and you can run > either of those with php-imap we can no longer pull in 'php' as > dependency since you might want to run the php-cli and not the cgi. > > so how do we deal with that? > > I can see those options: > > 1. remove the php dependency from php-dg (and all other php modules) > and let user handle the deps himself > 2. implement optional/volunteer dependencies in apk-tools. You can as > user do something to tell apk that we want php-gd to be a dependency > for php when you install php, so when php is removed php-gd goes out > as well. > 3. some other way to snap in dependencies manually afterwards. Like: > =A0# install php-gd and php-imap as dependencies for php > =A0apk add -d php php-gd php-imap > 4. implement 'or' in apk-tools and let php-gd depend on either 'php or ph= p-cli' > > For now i think we will go for option 1, but it would be nice to hear > what you think would be the optimal solution for this situation. > > Thanks! > > -- > Natanael Copa > > > --- > Unsubscribe: =A0alpine-devel+unsubscribe@lists.alpinelinux.org > Help: =A0 =A0 =A0 =A0 alpine-devel+help@lists.alpinelinux.org > --- > > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---