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 11th May 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Thanked 0 Times in 0 Posts
Default dependency question.

When I delete gdm and evolution:

Quote:
# pkg_delete gdm
Can't remove gdm-2.20.10p5 without also removing:
gnome-session-2.24.3p17
# pkg_delete evolution
Can't remove evolution-2.24.5p16 without also removing:
file-roller-2.24.3p7 nautilus-2.24.2p9 gnome-session-2.24.3p17 tracker-search-0.6.94p2 deskbar-applet-2.24.3p9
My question is:

1. Why gnome-session depend on gdm and evolution?

In fact, I still remember I installed gnome-session before I installed gdm, although I don't remember it clearly.

2. How OpenBSD package management system handle dependency relationship?

Where is the dependency information for a specific package(for example gnome-session-2.24.3p17.tgz)?

I downloaded "gnome-session-2.24.3p17.tgz" manually and tar xzvf it, than I did't find anything about the dependency information.
Quote:
$ ls
+CONTENTS +DESC +DISPLAY bin lib man share
Reply With Quote
  #2   (View Single Post)  
Old 11th May 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,886
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by fender0107401 View Post
1. Why gnome-session depend on gdm and evolution?
Because the ports maintainers (jasper@, in this case) made it a dependency. From the cvs log:
Code:
--- ports/x11/gnome/session/Makefile    2007/11/10 16:26:22    1.27
+++ ports/x11/gnome/session/Makefile    2007/11/27 20:27:37    1.28
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.27 2007/11/10 16:26:22 jasper Exp $
+# $OpenBSD: Makefile,v 1.28 2007/11/27 20:27:37 jasper Exp $
 
 COMMENT=        GNOME session
 
 GNOME_PROJECT=        gnome-session
 GNOME_VERSION=        2.20.1
-PKGNAME=        ${DISTNAME}p0
+PKGNAME=        ${DISTNAME}p1
 CATEGORIES=        x11
 
 # GPL/LGPL
@@ -36,6 +36,7 @@ RUN_DEPENDS+=        ::x11/gnome/alacarte \
             ::x11/gnome/applets2 \
             ::x11/gnome/backgrounds \
             ::x11/gnome/controlcenter2 \
+            ::x11/gnome/gdm \
             ::x11/gnome/gedit \
             ::x11/gnome/terminal \
             ::x11/gnome/themes \
Quote:
Originally Posted by fender0107401 View Post
In fact, I still remember I installed gnome-session before I installed gdm, although I don't remember it clearly.
gdm would have been installed automatically, as a run dependency. You missed it.
Quote:
2. How OpenBSD package management system handle dependency relationship?
There are build dependencies (that must be installed prior to building from source), and run dependencies (that must be installed when the package is being installed), and particular libraries required, all defined by the port's Makefile, and included in the package meta-data.
Quote:
Where is the dependency information for a specific package(for example gnome-session-2.24.3p17.tgz)? I downloaded "gnome-session-2.24.3p17.tgz" manually and tar xzvf it, than I did't find anything about the dependency information.
The dependencies are in the +CONTENTS file included in the package. You can either unpack the tarball and manually examine that file:
$ cd /tmp
$ tar xzf /path/to/gnome-session-2.24.3p17.tgz
$ less ./+CONTENTS
Or you can use the -S option of pkg_info(1). Or, you can install the ports tree and use the various make targets, such as print-run-depends. Or, you can read the Makefile, as I did.

See FAQ 15, and ports(7).
Reply With Quote
  #3   (View Single Post)  
Old 11th May 2010
fender0107401's Avatar
fender0107401 fender0107401 is offline
Real Name: Li.
Port Guard
 
Join Date: May 2010
Location: China, Tian Jin.
Posts: 24
Thanked 0 Times in 0 Posts
Default

Thanks a lot.

I will read the FAQ and man pages carefully.
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
external drive partition question + fdisk question gosha OpenBSD General 15 15th June 2009 02:00 PM
portupgrade -a =>Stale Dependency jaymax FreeBSD Ports and Packages 15 23rd July 2008 10:05 AM


All times are GMT. The time now is 07:57 PM.


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