DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default changing a dependency for a package ..

Hi everyone !!

Is it possible to change a dependency after choosing another dep at prompt

eg. :
When installing thinkingrock , you can either choose jdk or jre
I chose jdk ..
Now I want to use jre as dep instead .. how can I accomplish this wihout removing packages ?

Thank you very much !!
Reply With Quote
  #2   (View Single Post)  
Old 3rd September 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I don't understand your question.

The run dependencies for productivity/thinkingrock include jdk.
Code:
$ pwd
/usr/ports/productivity/thinkingrock
$ make print-run-depends
This port requires package(s) "javaPathHelper-0.3p1 xdg-utils-1.1.0rc1p0 
libiconv-1.14 jdk-1.6.0.03p17" to run.
$
Reply With Quote
  #3   (View Single Post)  
Old 3rd September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

On install I was prompted to either choose jre (choice 1) or jdk (choice0) as a dependency for thinkingrock.I was installing the package not the port .. It's a common case when I would want to change some package dependency but don't know how (except by removing all packages and start anew)
eg. 2 : installing mediawiki : it prompts : mediawiki-1.19.1 php-pgsql or php-mysql
If I chose php-mysql then after install want to use php-pgsql .. do I have to remove things first or is there a cli fu magic ?
Thanks.
Reply With Quote
  #4   (View Single Post)  
Old 3rd September 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
If I chose php-mysql then after install want to use php-pgsql .. do I have to remove things first...
No. php-pgsql is merely the extension PHP uses to connect to PostgreSQL databases. Having the MySQL extension, php-mysql, already installed will create no problem. The two extensions can coexist.
Reply With Quote
  #5   (View Single Post)  
Old 3rd September 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
On install I was prompted to either choose jre (choice 1) or jdk (choice0) as a dependency for thinkingrock..
The jdk port uses subpackages. The port contains both a jdk package and a jre package.

(See FAQ 15.3.8 for a discussion of subpackages and flavors.)


Examining the +CONTENTS file for the thinkingrock package, I see:
Code:
@depend devel/jdk/1.6,-main:jdk->=1.6.0|jre->=1.6.0:jdk-1.6.0.03p17
This is why you were offered the option to choose. Either the main package or the jre package are acceptable.

If you wish to switch which dependency is used, you will need to delete both jdk and thinkingrock, then reinstall thinkingrock, this time selecting jre.

You must do this because the dependency chain is recorded in the package database (located in /var/db/pkg) in +REQUIRED_BY and +REQUIRING records.
Reply With Quote
  #6   (View Single Post)  
Old 3rd September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

jggimi , ocicat , Thank you very much !!

Last edited by daemonfowl; 4th September 2012 at 06:15 AM. Reason: + ocicat
Reply With Quote
  #7   (View Single Post)  
Old 3rd September 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by daemonfowl View Post
Thank you very much , jggimi !!
You're welcome too, daemonfowl!

Reply With Quote
  #8   (View Single Post)  
Old 4th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

lol , I forgot to thank you too my friend !
:-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dependency question. fender0107401 OpenBSD Packages and Ports 2 11th May 2010 11:05 PM
Changing IDE to SCSI felix001 FreeBSD General 3 19th May 2009 11:52 AM
portupgrade -a =>Stale Dependency jaymax FreeBSD Ports and Packages 15 23rd July 2008 10:05 AM
Changing resolution Cloud General software and network 3 27th June 2008 06:03 PM
Changing package repositories from RHEL to CentOS stukov Other BSD and UNIX/UNIX-like 10 17th June 2008 01:34 PM


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick