all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fetchmail's fetchmail conf does not work on Gentoo
       [not found] <6070efd9-c41b-4d8c-93c9-84dae99a1af2.ref@yahoo.com>
@ 2024-09-20  0:20 ` Superfly Johnson
  2024-09-20  7:09   ` Andreas Enge
  2024-09-20  9:44   ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 3+ messages in thread
From: Superfly Johnson @ 2024-09-20  0:20 UTC (permalink / raw)
  To: guix-devel

Hi again Guix-Devel mailing list. I'm currently trying to configure a 
fetchmail daemon on my gentoo laptop to get mails. Unfortunately, 
fetchmailconf will not execute properly. It will always return line 2: 
exec: :: not found.

I have looked at the file it is trying to execute. The entire script is

#!/gnu/store/3jhfhxdf6v5ms10x5zmnl166dh3yhbr1-bash-minimal-5.1.16/bin/sh
exec : /fetchmailconf.py "$@"

It seems to me like the path to fetchmailconf needs to be corrected.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fetchmail's fetchmail conf does not work on Gentoo
  2024-09-20  0:20 ` Fetchmail's fetchmail conf does not work on Gentoo Superfly Johnson
@ 2024-09-20  7:09   ` Andreas Enge
  2024-09-20  9:44   ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2024-09-20  7:09 UTC (permalink / raw)
  To: Superfly Johnson; +Cc: guix-devel

Hello,

Am Thu, Sep 19, 2024 at 08:20:56PM -0400 schrieb Superfly Johnson:
> Hi again Guix-Devel mailing list. I'm currently trying to configure a
> fetchmail daemon on my gentoo laptop to get mails. Unfortunately,
> fetchmailconf will not execute properly. It will always return line 2: exec:
> :: not found.
> 
> I have looked at the file it is trying to execute. The entire script is
> 
> #!/gnu/store/3jhfhxdf6v5ms10x5zmnl166dh3yhbr1-bash-minimal-5.1.16/bin/sh
> exec : /fetchmailconf.py "$@"
> 
> It seems to me like the path to fetchmailconf needs to be corrected.

I have had a quick look, but definitely more needs to be done.
fetchmailconf.py is part of the source code, but it is not installed.

I tried to execute it, using "python3" instead of "python";
then it complains about
Traceback (most recent call last):
  File "/tmp/fetchmail-6.4.37/fetchmailconf.py", line 14, in <module>
    from past.builtins import execfile
ModuleNotFoundError: No module named 'past'

Apparently, and logically, this requires the python-future package.
So maybe this should become a propagated input?

I will stop here and let people who actually know Python intervene :)

Andreas



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fetchmail's fetchmail conf does not work on Gentoo
  2024-09-20  0:20 ` Fetchmail's fetchmail conf does not work on Gentoo Superfly Johnson
  2024-09-20  7:09   ` Andreas Enge
@ 2024-09-20  9:44   ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2024-09-20  9:44 UTC (permalink / raw)
  To: guix-devel, Superfly Johnson

Do you know where that leading ':' is coming from?

It's sometimes used as shorthand for 'true' in shell scripts, and 'true' is sometimes used as a low-effort 'no-op', but the 'exec' builtin (rightfully) doesn't care about any of that:

  moloch:~λ exec :
  -bash: exec: :: not found

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-20  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <6070efd9-c41b-4d8c-93c9-84dae99a1af2.ref@yahoo.com>
2024-09-20  0:20 ` Fetchmail's fetchmail conf does not work on Gentoo Superfly Johnson
2024-09-20  7:09   ` Andreas Enge
2024-09-20  9:44   ` Tobias Geerinckx-Rice

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.