Re: how to make sshd start a shell other than bash when I log in?

2017-04-10 Thread Andrew Schulman
> It turns out that setting SHELL in ~/.ssh/environment doesn't
> work, nor does setting it in the key command. But setting
> 
> command="/usr/bin/fish --login" ssh-rsa ...
> 
> in authorized_keys does work.

Problem with that of course is that it only allows you to run login shells, even
if you're trying to run non-interactive remote commands. I guess you could use a
different ssh key for those, but that's a bit of a pain.

The compromise I finally settled on was just to put

exec /usr/bin/fish --login

in ~/.bash_profile.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Maintaining expect (the broken pipe errors)

2017-04-10 Thread Brian Inglis
On 2017-04-09 17:06, Daniel Santos wrote:
> I should probably import this onto my github account. There doesn't
> appear to be an actual repository for expect at the moment. There are
> many terrible coding practices employed, potential use of
> uninitialized locals, etc. I'm going to do some basic cleanup before
> I dig back into trying to find the cause of the child processes
> unexpectedly terminating (while calling an ioctl to change the
> terminal windows size), which is what's causing the broken pipe.

A Cygwin package is available for expect and the repo is on SF at:
https://sourceforge.net/p/expect/code/
which gives the CVSROOT:
:pserver:anonym...@expect.cvs.sourceforge.net:/cvsroot/expect
and links to:
http://expect.cvs.sourceforge.net/viewvc/expect/

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Brian Inglis
On 2017-04-09 15:14, Wayne Barron wrote:
> OK, Guys.
> Here is the LiquidSoap.
> https://github.com/cygwinports-extras/liquidsoap
> 
> Could someone please point me in the right direction on using
> Cygport to install this?

Install Cygwin package cygport, clone the liquidsoap repo or 
download the tarball and untar, into a source directory e.g. 
/usr/src/liquidsoap, cd there, run:
cygport liquidsoap.cygport all
-- it's really that easy.
Command all does not really upload and announce the package 
unless you set it up as a Cygwin maintainer.

Help for cygport is available using:
cygstart /usr/share/doc/cygport/html/manual/index.html

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Maintaining expect (the broken pipe errors)

2017-04-10 Thread Dan Kegel
On Mon, Apr 10, 2017 at 8:58 AM, Brian Inglis
 wrote:
> A Cygwin package is available for expect and the repo is on SF at:
> https://sourceforge.net/p/expect/code/
> which gives the CVSROOT:
> :pserver:anonym...@expect.cvs.sourceforge.net:/cvsroot/expect
> and links to:
> http://expect.cvs.sourceforge.net/viewvc/expect/

To flog the dead horse a little further,
I posted a question at
https://groups.google.com/forum/#!topic/comp.lang.tcl/urQKjUlQ_Sw
asking why expect hadn't been migrated to the new repo area along with
the rest of tcl...
- Dan

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Maintaining expect (the broken pipe errors)

2017-04-10 Thread Marco Atzeri

On 10/04/2017 19:03, Dan Kegel wrote:

On Mon, Apr 10, 2017 at 8:58 AM, Brian Inglis
 wrote:

A Cygwin package is available for expect and the repo is on SF at:
https://sourceforge.net/p/expect/code/
which gives the CVSROOT:
:pserver:anonym...@expect.cvs.sourceforge.net:/cvsroot/expect
and links to:
http://expect.cvs.sourceforge.net/viewvc/expect/


To flog the dead horse a little further,
I posted a question at
https://groups.google.com/forum/#!topic/comp.lang.tcl/urQKjUlQ_Sw
asking why expect hadn't been migrated to the new repo area along with
the rest of tcl...
- Dan



http://wiki.tcl.tk/201

name
Expect
website
http://expect.sf.net
website
http://expect.nist.gov

last file version 5.45.

Regards
Marco




--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Maintaining expect (the broken pipe errors)

2017-04-10 Thread Dan Kegel
On Mon, Apr 10, 2017 at 11:43 AM, Marco Atzeri  wrote:
> http://wiki.tcl.tk/201
>
> name
> Expect
> website
> http://expect.sf.net
> website
> http://expect.nist.gov

Accurate, but it's still a bit surprising that expect's
source repo is unlike the rest of tcl's
(i.e. expect is still cvs at sf.net with no git mirror, but
rest of tcl is fossil at tcl.tk with read-only git mirror on github),
hence my question to comp.lang.tcl.  Sorry if I'm being a little pedantic.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Use a default path in exec*p*() if PATH is unset?

2017-04-10 Thread Christian Franke

A few years after https://cygwin.com/ml/cygwin/2014-09/msg00204.html
I found another use case of an unset PATH variable:

The configure script from mandoc (http://mdocml.bsd.lv/) uses this 
interesting approach to query default CC command from make:


CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`

This works at least on Linux, (Free|Net|Open)BSD and OpenIndiana. It 
fails on Cygwin because 'env -i' unsets everything and execvp() does not 
use a default path then. This is OK from the POSIX 
("implementation-defined") point of view but differs from existing practice.


At least some Linux distros use ".:/bin:/usr/bin" as default path 
(https://linux.die.net/man/3/exec). Including the current directory is 
IMO a bad idea.


This is apparently inherited from the early days:
The current directory is included on current Debian stable, and
[... time travel ...]
also
[... time travel ...]
on Slackware 1.0.1 from 1993 :-)
(Thanks to http://www.qemu-advent-calendar.org/2014/ for this image)

Other OS typically use a default path without current directory.

Should Cygwin also use a default path, for example _PATH_DEFPATH=/bin ?

Christian


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Wayne Barron
Thanks Brian.

>download the tarball and untar, into a source directory
What is the command to download and untar?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Marco Atzeri

On 10/04/2017 23:03, Wayne Barron wrote:

Thanks Brian.


download the tarball and untar, into a source directory

What is the command to download and untar?



what about using "cygport --help"  ?

see also "/usr/share/doc/cygport/README"

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Wayne Barron
Hey Marco.
I did the Help, then I looked into the README file.
And I found the command that I needed.
cygport liquidsoap/liquidsoap.cygport download

I get this error when i run it.

/usr/bin/cygport: line 404: cd: liquidsoap: No such file or directory
*** ERROR: liquidsoap.cygport not found.

I know I have missed a step.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Brian Inglis
On 2017-04-10 16:01, Wayne Barron wrote:
> I did the Help, then I looked into the README file.
> And I found the command that I needed.
> cygport liquidsoap/liquidsoap.cygport download
> I get this error when i run it.
> /usr/bin/cygport: line 404: cd: liquidsoap: No such file or directory
> *** ERROR: liquidsoap.cygport not found.
> I know I have missed a step.

mkdir -p /usr/src/liquidsoapOR ~/src/liquidsoap OR ...
cd /usr/src/liquidsoap  OR  ""
git clone https://github.com/cygwinports-extras/liquidsoap .
cygport liquidsoap.cygport all

cygport creates a tree of directories for each version built 
below your current working directory under -./

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Wayne Barron
Thanks, Brian.

I tried your code, and it did not work.
machinename /usr/src/liquidsoap
$ git clone https://github.com/cygwinports-extras/liquidsoap
-bash: git: command not found

So, I installed GIT from the CygWin Repository.
And I ran the command again.
This time it installed.

$ git clone https://github.com/cygwinports-extras/liquidsoap
Cloning into 'liquidsoap'...
remote: Counting objects: 64, done.
remote: Total 64 (delta 0), reused 0 (delta 0), pack-reused 64
Unpacking objects: 100% (64/64), done.
Checking connectivity... done.

I then ran the last line of code.
cygport liquidsoap.cygport all

And I received this error.
*** ERROR: liquidsoap.cygport not found.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Wayne Barron
I checked the Directory for
>usr\src\liquidsoap
And it is empty

So, I did a search and I found it here.
>home\carrzstudio\liquidsoap

I ran the code, and i get this error.
> *** ERROR: ocaml is required to build this package

I opened the installer, and found it in the repository.
I installed it, and ran the command again.

*** ERROR: Cannot find source package liquidsoap-1.2.1-full.tar.gz

I downloaded it from here.
https://github.com/savonet/liquidsoap/releases
Put it in the Folder, and ran the command again.

=-=-=-=-
$ cygport liquidsoap.cygport all
>>> Preparing liquidsoap-1.2.1-1.x86_64
>>> Unpacking source liquidsoap-1.2.1-full.tar.gz

*** Info: applying patch 1.2.1-lastfm-fixes.patch:
patching file ocaml-lastfm-0.3.1/configure.ac
patching file ocaml-lastfm-0.3.1/src/lastfm.ml
*** Info: applying patch 1.2.1-taglib-fixes.patch:
patching file ocaml-taglib-0.3.2/configure.ac
*** Info: applying patch 1.2.1-packages-missing.patch:
patching file PACKAGES.default
*** Info: applying patch 1.2.1-packages-distro.patch:
patching file PACKAGES.default
>>> Preparing working source directory

=-=-=-=-

I get this error.
> *** ERROR: ocaml-findlib is required to build this package
Found in the Repository, and installed it.
Ran the command again.
After what looked to be a successful build, I start seeing ERROR's pop up.

>configure: error: /bin/sh ./config.sub Users failed
>make[1]: Leaving directory 
>'/home/carrzstudio/liquidsoap/liquidsoap-1.2.1-1.x86_64/build/ocaml-cry-0.4.1'
>make: *** [Makefile:11: all] Error 1
>*** ERROR: make failed

So, this is where I am at, right now.
All-in-All.
I have to say that I have learned a lot, and we are almost there.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin - Install Liquidsoap for Shoutcast or Icecast

2017-04-10 Thread Wayne Barron
I found this as well.
>checking build system type... Invalid configuration `Users': machine `Users' 
>not recognized
>configure: error: /bin/sh ./config.sub Users failed
>make[1]: Entering directory 
>'/home/carrzstudio/liquidsoap/liquidsoap-1.2.1-1.x86_64/build/ocaml-cry-0.4.1'
>make[1]: *** No targets specified and no makefile found.  Stop.
>make[1]: Leaving directory 
>'/home/carrzstudio/liquidsoap/liquidsoap-1.2.1-1.x86_64/build/ocaml-cry-0.4.1'
>make: *** [Makefile:11: all] Error 1
>*** ERROR: make failed



I did some research on the first error.
>configure: error: /bin/sh ./config.sub Users failed
And read that I needed to install: libool
Found 2 in the Repository
cygwin32-libtool
libtool-debuginfo

I installed both, but still received the same errors.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Use a default path in exec*p*() if PATH is unset?

2017-04-10 Thread Thomas Wolff

Am 10.04.2017 um 22:29 schrieb Christian Franke:

A few years after https://cygwin.com/ml/cygwin/2014-09/msg00204.html
I found another use case of an unset PATH variable:

The configure script from mandoc (http://mdocml.bsd.lv/) uses this 
interesting approach to query default CC command from make:


CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -`

Why does it `env -i` at all? (And why does it prepend a \ to the output?)
It seems this scriptlet has an issue, rather than adapting core 
behaviour for it.

Thomas

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple