portmaster-with-package-support release candidate available for testing / pkg_add: illegal option -- -

Miroslav Lachman 000.fbsd at quip.cz
Sat Dec 19 15:13:36 UTC 2009


Doug Barton wrote:
> Howdy!
>
> I'm very excited to announce that what I hope to be the final version
> of the new portmaster with package support is now available for
> testing. I've done quite a bit of regression testing myself, but the
> last time I posted about the beta version several people were kind
> enough to give it a go and I got several really good suggestions. It
> would be really great if more users could give this version a try
> before I commit it to the actual port.
>
> You can find the information on accessing the svn version at
> http://dougbarton.us/portmaster-proposal.html

[...]

Hi Doug,

I gave it a try, but no luck :)

I tried
portmaster --local-packagedir=/usr/ports/packages -P python26-2.6.2_3

and got error message:

===>>> Currently installed version: python26-2.6.2_3
===>>> Port directory: /usr/ports/lang/python26
===>>> Gathering dependency list for lang/python26 from ports
===>>> No dependencies for lang/python26

===>>> Starting build and/or install for lang/python26 <<<===

===>>> All dependencies are up to date

===>>> Checking package repository for latest available version
===>>> Available package (python26-2.6.4) matches the ports tree
===>>> Creating a backup package for old version python26-2.6.2_3

         ===>>> Package saved to /usr/ports/packages/portmaster-backup

pkg_delete: package 'python26-2.6.2_3' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
python-2.6,2
===>>> Installing package
pkg_add: illegal option -- -
usage: pkg_add [-vInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C 
chrootdir]
                pkg-name [pkg-name ...]

===>>> A backup package for python26-2.6.2_3 should
        be located in /usr/ports/packages/portmaster-backup

===>>> Installation of python26-2.6.4.tbz (lang/python26) failed
===>>> Aborting update


I don't know if it is well known / documented somewhere in portmaster, 
but after debugging, I realized that pkg_add on FreeBSD 6.3 has no long 
options (--no-deps --force), there is only -f, but no -i.
If it can't be worked around, than packages support on FreeBSD < 7 
should be completely disabled.

Tested in jailed FreeBSD 6.3-RELEASE-p5 with portmaster Version 2.15

And one question - is it really mandatory to use 
--local-packagedir=/usr/ports/packages if I want to install locally 
available packages from standard path /usr/local/packages/All? Shouldn't 
it be default behavior?

Without --local-packagedir portmaster is trying to fetch it from FTP:
"Package and/or archive not found at:
http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/lang/"
and doesn't look at the local directory:
"There is no valid package to install, building port instead"

Miroslav Lachman


More information about the freebsd-ports mailing list