On 08/07/2016 15:40, Stephen Molloy wrote:
>> $user= $opt_u|| $ENV{USER}|| $ENV{USERNAME}|| Win32::LoginName(); >
> I agree that doesn't look terribly robust, but for a Linux
environment > to not define $USER seems rather unusual. Does this
one-liner output the > username correctly? > perl -e 'printf "%s\n",
getlogin();’
That also results in a blank.
> I'm wondering why you're using makeBaseApp.pl from inside a docker
> container, and why it isn't setting $USER, but that's more from curiosity...
I was playing with different ways of using Docker to containerise an EPICS installation, and in one of my experiments I tried using makeBaseApp.pl and discovered this.
To be honest, I don’t think that this would be the best way of using Docker for this task, but I thought that it was worth reporting something that looked like a bit of a weakness in makeBaseApp.
I’d be happy to make a suggested fix and submit a pull request via Git if that’s ok with you?
Hi Steve,
The EPICS Base upstream repo is on LaunchPad using Bazaar, so a patch
file would be as good.
If you do a PR, the changes would be applied to the upstream repo anyway.
Thanks a lot for your help!
~Ralph
- References:
- Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
- Navigate by Date:
- Prev:
Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
- Next:
Re: Unreachable code in makeBaseApp.pl? Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Unreachable code in makeBaseApp.pl? Stephen Molloy
- Next:
Re: Unreachable code in makeBaseApp.pl? Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|