8000 Update ddclient.in to determine perl path using env call by vrtareg · Pull Request #810 · ddclient/ddclient · GitHub
[go: up one dir, main page]

Skip to content
8000

Update ddclient.in to determine perl path using env call - #810

Open
vrtareg wants to merge 2 commits into
ddclient:mainfrom
vrtareg:main
Open

vrtareg wants to merge 2 commits into
ddclient:mainfrom
vrtareg:main

Conversation

@vrtareg
@vrtareg vrtareg commented Feb 5, 2025
Copy link
Copy Markdown

Using env to determine perl path as it is not usually in /usr/bin for all systems. For FreeBSD for example it is under /usr/bin/local

Using env to determine perl path as it is not usually in /usr/bin for all systems. For FreeBSD for example it is under /usr/bin/local
@StantonMatt
Copy link
Copy Markdown

Thanks, this change makes sense to me. configure.ac runs ./ddclient.in --version=short before the configure script has found and substituted PERL, so using #!/usr/bin/env perl avoids assuming Perl is installed at /usr/bin/perl.

The generated ddclient script should still use the configured Perl path. Makefile.am rewrites the first-line shebang matching ^#!.*perl$ to #!$(PERL), and that pattern still matches #!/usr/bin/env perl.

One small note: the FreeBSD path in the PR description looks like a typo; Perl is typically under /usr/local/bin/perl, not /usr/bin/local. The branch is also quite far behind main, but the effective patch is still just this one-line shebang change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0