Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 11:57:44 -0400
From:      "Joe & Fhe Barbish" <barbish@a1poweruser.com>
To:        "parv" <parv@pair.com>
Cc:        "FBSDQ" <questions@FreeBSD.ORG>
Subject:   RE: pkg_add problem w/ slightly old dependencies
Message-ID:  <MIEPLLIBMLEEABPDBIEGAEMICFAA.barbish@a1poweruser.com>
In-Reply-To: <20020717211337.GA9000@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
When you issue the  make package  command on an port directory it first
does the port install which will auto install all the dependent ports,
followed by building the package  and writing it into the port directory
you started with.  If I understand you correctly, you have saved this
newly built package, de-installed the port version and while trying to
install the package you just built using the pkg_add command the package
add process is asking for package versions of the dependent ports. What
you have run into is  when doing the 'make package' on the original port
the resulting package does not contain the dependent ports with it.

What I do is create /usr/ports/packages/ directory and move all the
package files to it. First I do an ' make package on the port I want.
During the install you will see each dependent port downloaded and
installed. After the original package is built, I move it to
/usr/ports/packages/.  I then de-install the original port and all its
dependents followed by  doing an 'make package' on each dependent, move
that package to /usr/ports/packages/. When all the dependents packages
have been build, I package delete each dependent.  Now any time I want
to re-add the parent package I  cd  /usr/ports/packages/   then pkg_add
package name  and as the parent package gets installed all it's
dependents are found.

I do this with all my ports I use and bkup the /usr/ports/packages/
directory so after cloning a new box or after disaster recovery where I
have to install FBSD from scratch I can install all the ports I use very
easily without fooling around with the cvsup of the ports tree or the
downloading of the port's tar file again. This method keeps the port and
it's dependents in sync.

Hope This helps

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of parv
Sent: Wednesday, July 17, 2002 5:14 PM
To: f-ports; f-q
Subject: pkg_add problem w/ slightly old dependencies

(mutt-devel port is just an example below; it happens w/ any other
port in similar scenario.)


i installed mutt-devel & created a mutt-1.5.1 package.  after
de installing it and trying to do pkg_add, i get the following
error...

  # pkg_add ./mutt-devel-1.5.1.tgz
  pkg_add: could not find package libslang-1.4.5 !
  pkg_add: could not find package libiconv-1.8 !
  pkg_add: could not find package gettext-0.11.2 !
  pkg_add: could not find package expat-1.95.3 !
  pkg_add: could not find package cyrus-sasl-1.5.27_4 !

...though i don't have those particular ports installed, i sure do
have the ports which come darn close to the list...

  libslang-1.4.3
  libiconv-1.7.0.1
  gettext-0.11.1_3
  expat-1.95.2
  cyrus-sasl-1.5.27_2

...it is not easy or practical to always upgrade the installed ports
whenever pkg_add fails.  the only choice, if there is one, that
remains is of re-building & re-installing the port.


is there a way to workaround the problem w/o the rebuild/reinstall
process so that pkg_add would work w/ already installed ports?


  - parv

--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGAEMICFAA.barbish>