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 CF9161EB587 for ; Thu, 11 Feb 2010 15:03:39 +0000 (UTC) Received: by ewy20 with SMTP id 20so1518650ewy.20 for ; Thu, 11 Feb 2010 07:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vBbczr4RdAiE3L7T89IkBEESP21q62ejnODZphNuuW4=; b=SQQdk5n6tHXdTIroKQ4VzPRRkx6aN3Ezb352kqpz5cLUEZr/DXYrZi4ymLEInnavkl WPbP20PDQ78QS28i8SepGgAwyGnL4ZsSrMZirIaq4Z0bfxV457Ww91Bm5biwuchJ8HPy 805RXa7WktnNzvWm354wlCZWpbAj1ic8FYAwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Gqqn3OaGpVHpISphaqAv/X7ouTjCpzmgat6TyBvshVqnmnaEpD9cbKzjVZ2aNuV/kh 669BClvh5AvjSO8X5g6f5ns+Erb9nhdQ3LUCkZBoeJBfQQUgeTRDTtWH6Rhcej4bqX7q yyspumbPkozReS/sKG0NzJYklYplDu5u9PBVM= 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.213.109.152 with SMTP id j24mr1668599ebp.25.1265900617275; Thu, 11 Feb 2010 07:03:37 -0800 (PST) Date: Thu, 11 Feb 2010 16:03:37 +0100 Message-ID: <95408c821002110703u72a33179w43df88d1902c9fc@mail.gmail.com> Subject: [alpine-devel] apk-tools/dependencies question for php From: Natanael Copa To: Alpine Developers Content-Type: text/plain; charset=ISO-8859-1 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: # install php-gd and php-imap as dependencies for php apk add -d php php-gd php-imap 4. implement 'or' in apk-tools and let php-gd depend on either 'php or php-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: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---