Trouble with upgrade outdated

2021-09-28 Thread Tobias Welti
Hi,

I have trouble using port upgrade outdated since a few weeks ago. I just 
receive the following message:
===
$ sudo port upgrade outdated
Error: python39: Error executing universal: can't read "configure.sysroot": no 
such variable
Error: Unable to open port: Error evaluating variants
Error: Follow https://guide.macports.org/#project.tickets to report a bug.


=

I have already tried to select the python3 version to python39, which completes 
without error. But the behaviour of upgrade outdated remains the same.

Is there a known fix to this?

Thanks for any help,
Tobias

Re: Problem installing Mac port on Mac Big Sur

2021-09-28 Thread Eckhard Wiemann
> I could actually install it but when entering $ port version  in a (new) 
> terminal I get the this zsh: command not found: $

I think you should not type the prompt „$“. Just type „port version“, without 
quotation marks.

Eckhard Wiemann

Problem installing Mac port on Mac Big Sur

2021-09-28 Thread Lavandula
Hello there,

I am having issues on installing mac port and I am a novice.
I could actually install it but when entering $ *port version * in a (new)
terminal I get the this zsh: command not found: $

And I type env I get a result with :
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
-- 

I don't understand anything and I don't know what I need to do to make it
work,

If anyone can help thank you in advance,

Nitya Escriva
Huiles essentielles et Hydrolats bio
www.lavandula.fr
lavand...@runbox.com 


Re: How do i find missing dependents using the port command?

2021-09-28 Thread Gerben Wierda via macports-users
> On 28 Sep 2021, at 17:48, Bill Cole 
>  wrote:
> 
> On 2021-09-28 at 10:27:12 UTC-0400 (Tue, 28 Sep 2021 16:27:12 +0200)
> Gerben Wierda via macports-users 
> is rumored to have said:
> 
>> [snip]
>> 
>> What is the way to find this out using a port command?
> 
> In principle, 'port rdeps ' will show you a recursive tree of 
> dependencies for any port. Also, 'port rdependents ' will show you 
> all ports that are dependents (recursively) of any *installed* port.
> 
> In practice, those are sometimes not exactly correct, because they depend on 
> port maintainers noticing dependencies and stating them in the Portfile.  For 
> example, the error message you showed implies that certbot depends on chardet 
> indirectly via the acme package, but that is not reflected in the MacPorts 
> dependency map. The Changelog for certbot indicates that this dependency was 
> added upstream in v1.18.0 and removed in 1.19.0, so the current MacPorts 
> dependency map is correct not to show it NOW, but for most of August, that 
> dependency existed in the code but not in the Portfile.

So, the error appeared because I did the cleanup when that was the case. Quick 
fix: add py39-chardet and get certbot 1.18.0 working again. Real fix: update 
port definitions and then certbot (to 1.19.0)

(Have done the quick fix first because updating the tree and everything I am 
running requires proper attention)

Thanks,

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 



Re: How do i find missing dependents using the port command?

2021-09-28 Thread Marius Schamschula
Hmm.

I don’t have py-chardet listed as a py-acme dependency. I test certbot after 
each update, but in my case py-chardet was available, and thus no error 
occurred.

Will fix.

> On Sep 28, 2021, at 9:27 AM, Gerben Wierda via macports-users 
>  wrote:
> 
> A while back I have done a lot of cleanup, using looking at dependents, 
> reinstalling stuff so it no longer depends on, say, older versions of python, 
> etc.
> 
> Now, recently I’ve started reaching certbot/letsencrypt warnings that my 
> certificates are about to expire. I used to have a fully automatic setup that 
> did the updates in the background. Apparently, that has died. And it turns 
> out certbot doesn’t work anymore because some part of python is missing:
> 
> Traceback (most recent call last):
>   File "/opt/local/bin/certbot", line 33, in 
> sys.exit(load_entry_point('certbot==1.18.0', 'console_scripts', 
> 'certbot')())
>   File "/opt/local/bin/certbot", line 25, in importlib_load_entry_point
> return next(matches).load()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py",
>  line 77, in load
> module = import_module(match.group('module'))
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
>  line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1030, in _gcd_import
>   File "", line 1007, in _find_and_load
>   File "", line 986, in _find_and_load_unlocked
>   File "", line 680, in _load_unlocked
>   File "", line 850, in exec_module
>   File "", line 228, in _call_with_frames_removed
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/main.py",
>  line 2, in 
> from certbot._internal import main as internal_main
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/_internal/main.py",
>  line 23, in 
> from certbot import crypto_util, configuration
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/crypto_util.py",
>  line 34, in 
> from certbot import interfaces
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/interfaces.py",
>  line 14, in 
> from certbot import configuration
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/configuration.py",
>  line 8, in 
> from certbot import util
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/util.py",
>  line 24, in 
> from certbot._internal import constants
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/_internal/constants.py",
>  line 4, in 
> import pkg_resources
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 3243, in 
> def _initialize_master_working_set():
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 3226, in _call_aside
> f(*args, **kwargs)
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 3255, in _initialize_master_working_set
> working_set = WorkingSet._build_master()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 568, in _build_master
> ws.require(__requires__)
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 886, in require
> needed = self.resolve(parse_requirements(requirements))
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
>  line 772, in resolve
> raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'chardet' distribution was not found 
> and is required by acme
> 
> Other than that the cleaning up has removed chardet. Looking at chardet in 
> what is available, I find:
> 
> py39-cchardet @2.1.7 (python, devel, textproc)
> cChardet is high speed universal character encoding detector.
> 
> py39-chardet @4.0.0 (python, devel, textproc)
> Universal character encoding detector
> 
> I suspect I need the chardet extension.
> 
> What is the way to find this out using a port command? 
> 
> Gerben Wierda (LinkedIn )
> R Enterprise Architecture  (main site)
> Book: Chess and the Art of Enterprise Architecture 
> 
> Book: Mastering ArchiMate 
> 

Marius
--

Re: How do i find missing dependents using the port command?

2021-09-28 Thread Bill Cole
On 2021-09-28 at 10:27:12 UTC-0400 (Tue, 28 Sep 2021 16:27:12 +0200)
Gerben Wierda via macports-users 
is rumored to have said:

> A while back I have done a lot of cleanup, using looking at dependents, 
> reinstalling stuff so it no longer depends on, say, older versions of python, 
> etc.
>
> Now, recently I’ve started reaching certbot/letsencrypt warnings that my 
> certificates are about to expire. I used to have a fully automatic setup that 
> did the updates in the background. Apparently, that has died. And it turns 
> out certbot doesn’t work anymore because some part of python is missing:
>
> Traceback (most recent call last):
[...]
>
> Other than that the cleaning up has removed chardet. Looking at chardet in 
> what is available, I find:
>
> py39-cchardet @2.1.7 (python, devel, textproc)
> cChardet is high speed universal character encoding detector.
>
> py39-chardet @4.0.0 (python, devel, textproc)
> Universal character encoding detector
>
> I suspect I need the chardet extension.
>
> What is the way to find this out using a port command?

In principle, 'port rdeps ' will show you a recursive tree of 
dependencies for any port. Also, 'port rdependents ' will show you 
all ports that are dependents (recursively) of any *installed* port.

In practice, those are sometimes not exactly correct, because they depend on 
port maintainers noticing dependencies and stating them in the Portfile.  For 
example, the error message you showed implies that certbot depends on chardet 
indirectly via the acme package, but that is not reflected in the MacPorts 
dependency map. The Changelog for certbot indicates that this dependency was 
added upstream in v1.18.0 and removed in 1.19.0, so the current MacPorts 
dependency map is correct not to show it NOW, but for most of August, that 
dependency existed in the code but not in the Portfile.



-- 
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


How do i find missing dependents using the port command?

2021-09-28 Thread Gerben Wierda via macports-users
A while back I have done a lot of cleanup, using looking at dependents, 
reinstalling stuff so it no longer depends on, say, older versions of python, 
etc.

Now, recently I’ve started reaching certbot/letsencrypt warnings that my 
certificates are about to expire. I used to have a fully automatic setup that 
did the updates in the background. Apparently, that has died. And it turns out 
certbot doesn’t work anymore because some part of python is missing:

Traceback (most recent call last):
  File "/opt/local/bin/certbot", line 33, in 
sys.exit(load_entry_point('certbot==1.18.0', 'console_scripts', 
'certbot')())
  File "/opt/local/bin/certbot", line 25, in importlib_load_entry_point
return next(matches).load()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py",
 line 77, in load
module = import_module(match.group('module'))
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
 line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 850, in exec_module
  File "", line 228, in _call_with_frames_removed
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/main.py",
 line 2, in 
from certbot._internal import main as internal_main
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/_internal/main.py",
 line 23, in 
from certbot import crypto_util, configuration
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/crypto_util.py",
 line 34, in 
from certbot import interfaces
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/interfaces.py",
 line 14, in 
from certbot import configuration
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/configuration.py",
 line 8, in 
from certbot import util
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/util.py",
 line 24, in 
from certbot._internal import constants
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/certbot/_internal/constants.py",
 line 4, in 
import pkg_resources
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 3243, in 
def _initialize_master_working_set():
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 3226, in _call_aside
f(*args, **kwargs)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 568, in _build_master
ws.require(__requires__)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 886, in require
needed = self.resolve(parse_requirements(requirements))
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py",
 line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'chardet' distribution was not found 
and is required by acme

Other than that the cleaning up has removed chardet. Looking at chardet in what 
is available, I find:

py39-cchardet @2.1.7 (python, devel, textproc)
cChardet is high speed universal character encoding detector.

py39-chardet @4.0.0 (python, devel, textproc)
Universal character encoding detector

I suspect I need the chardet extension.

What is the way to find this out using a port command? 

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 



Hello and my first question (regarding CMAKE_OSX_DEPLOYMENT_TARGET)

2021-09-28 Thread Michael Monschau
Hi Everyone,

I am fairly new to macports. I build and license development software for a 
niche marked (I develop plugin tools for the RAD Development Tool Omnis 
Studio). I am based in the UK.

Background:
I recently had the need to resort to some open software to add certain PDF 
manipulation features to one of my products. The open source tool I am using is 
podofo-0.9.7. That uses various other libraries including openssl. As part of 
my own XCode project I have to link against crypto.dylib (linking against the 
crypto.a library in XCode). 
Note: I am using 'port install' with the ‘+universal’ flag as I need universal 
libraries

The problem:
I am building the macports libraries that I need on macOS 11.4. However, I need 
the deployment target for my own xcode projects to be 10.13 and to avoid 
hundreds of link warnings which may push out important ones, I need to rebuild 
openssl with that deployment target set. I understand there is 
CMAKE_OSX_DEPLOYMENT_TARGET and I can do set(CMAKE_OSX_DEPLOYMENT_TARGET 
“10.13”), but I don’t know
 1. where I do this (I was thinking in 
'/opt/local/share/cmake-3.20/Modules/Platform/Darwin.cmake' but not sure)
 2. how to force the rebuilding from source using cmake of the openssl 
libraries via 'port install'

Many thanks for any answers that yo can provide

Kind regards,
Michael

web: www.brainydata.com



Re: Does MacPorts need ALL of Xcode?

2021-09-28 Thread Bjarne D Mathiesen
I usually install MacPorts from the tarball.

In my experience, in order for macports itself to compile,
you'll have to
1) install Xcode
2) install the Command Line Tools
3) open Xcode and let it install it's components
otherwise, you'll get the error, that the c-compiler can't create an
executable

-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
---
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 ; OpenCore + macOS 10.15.7 Catalina
2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB