Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot 3.2.0 wrong paths #27700

Merged
merged 8 commits into from
Feb 22, 2025
Merged

certbot 3.2.0 wrong paths #27700

merged 8 commits into from
Feb 22, 2025

Conversation

BjarneDMat
Copy link
Contributor

Description

certbot 3.2.0 is looking for the certificates in the wrong place:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
certificate path : /etc/letsencrypt/

The problem w/ the paths was introduced in
408ad4d

Lines 56-61 were removed ; but only line 56 ought to have been removed. lines 58-62 ought only to have had their paths corrected

On branch certbot
Changes to be committed:
modified: security/certbot/Portfile

Type(s)
  • [ x] bugfix
  • enhancement
  • security fix
Tested on

macOS 10.15.7 19H2026 x86_64
Xcode 12.4 12D4e

macOS 14.7.3 23H417 x86_64
Xcode 16.2 16C5032a

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?
  • checked that the Portfile's most important variants haven't been broken?

certbot 3.2.0 is looking for the certificates in the wrong place:
        Saving debug log to /var/log/letsencrypt/letsencrypt.log
        certificate path : /etc/letsencrypt/

The problem w/ the paths was introduced in
    macports@408ad4d

Lines 56-61 were removed ; but only line 56 ought to have been removed.
lines 58-62 ought only to have had their paths corrected

On branch certbot
Changes to be committed:
	modified:   security/certbot/Portfile
On branch certbot

Changes to be committed:
	modified:   python/py-josepy/Portfile
@macportsbot
Copy link

Notifying maintainers:
@Schamschula for port certbot.

@macportsbot macportsbot added the maintainer: open Affects an openmaintainer port label Feb 17, 2025
@BjarneDMat
Copy link
Contributor Author

NOTE : you'll still have to downgrade py-josepy to v 1.15.0 to get certbot 3.2.0 to run correctly

	modified:   security/certbot/Portfile
@Schamschula
Copy link
Contributor

Just as when py-josepy had already been downgraded once previously, you will again need to increment the epoch.

Changes to be committed:
	modified:   security/certbot/Portfile
@Schamschula
Copy link
Contributor

No! certbot doesn't need an epoch increment, py-josepy needs is as we're going from 2.0.0 -> 1.15.0

Changes to be committed:
	modified:   python/py-josepy/Portfile
	modified:   security/certbot/Portfile
@Schamschula
Copy link
Contributor

The post patch block is already under the subport ${name} block in the certbot Portfile.

@BjarneDMat
Copy link
Contributor Author

but it only gets activated iff you aks for the variant - like port install certbot +docs ; not if you just do port install certbot ; we might have to entirely revert that part of the original patch.

1) removed post-patch
2) fixed the env(doc_path) in post-build
3) fixed build dir in post-destroot

Changes to be committed:
	modified:   security/certbot/Portfile
@Schamschula
Copy link
Contributor

Yes, you are right. I didn't mean to have it under the +docs variant. However, it is only needed for subport ${name}, not for all the other subports.

	modified:   python/py-acme/Portfile
	modified:   python/py-josepy/Portfile
	modified:   security/certbot/Portfile
@Schamschula
Copy link
Contributor

Almost all good:
However, both certbot and py-acme need a revision bump, as we're changing files.

Changes to be committed:
	modified:   python/py-acme/Portfile
	modified:   security/certbot/Portfile
@BjarneDMat
Copy link
Contributor Author

BjarneDMat commented Feb 18, 2025

I've tested port -cuNn -sd install certbot +docs +python{313,312,311}
python310 fails to build

@Schamschula
Copy link
Contributor

I'm not particularly surprised that Python < 3.11 fails. Particularly 3.9 fails often.

I only build on 3.12 and 3.13 at this point.

@Schamschula
Copy link
Contributor

Let's go with this!

@reneeotten
Copy link
Contributor

@Schamschula so if you're happy with this, then please merge the PR

@Schamschula
Copy link
Contributor

Somehow the CI system had a problem with Augeas under macOS 15.

However, that's not the issue here.

@Schamschula Schamschula merged commit 8f4fca0 into macports:master Feb 22, 2025
2 of 3 checks passed
@Schamschula
Copy link
Contributor

For reference, I reported the augeas issue upstream.

See hercules-team/augeas#851

Schamschula added a commit to Schamschula/macports that referenced this pull request Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer: open Affects an openmaintainer port
Development

Successfully merging this pull request may close these issues.

5 participants