btoll / chroot

Easily setup a chroot
6 stars 0 forks source link

./install.sh: line 11: INFO: unbound variable #2

Closed AlanRobertClark closed 2 years ago

AlanRobertClark commented 2 years ago

Dear Benjamin,

By moving the dependency checks to the top of the file, $INFO(line 11) and $ERROR (line 7) fail since they are unbound. They are only defined later (line 43-45).

I put them just under the "set" line at the top. And all works well.

Thank you SO VERY MUCH for this: I needed a Stretch-era g++ (6.3.0) to compile NEC2++, an electromagnetics program, and sadly, g++-10 "Deprecates" bloody everything.

I am still getting my way around, but it is just so cool to say "apt install g++" and everything behaves as if it was genuinely Stretch :-) ATLAS is next :-)

Thanks, Alan.

btoll commented 2 years ago

Hi Alan, Thanks for the report, it sounds like a good change, I appreciate the effort. Not sure when I'll get to it, but it's been added to my list. Ben

btoll commented 2 years ago

Hi Alan, I just merged this, thanks again!

AlanRobertClark commented 2 years ago

Dear Benjamin.

Thank you so much for the work you have put into this.

I have managed to establish a chroot jail to a gcc 6.3.0 environment which has meant that I can compile nec2++ (statically) without a major amount of "deprecations" that I can't figure out, because I am not the author!

I really, really appreciate the work that you have put into this. Thank You, Alan, Assistant Dean, Academic, FEBE.

On Mon, 2 May 2022 at 20:04, btoll @.***> wrote:

Hi Alan, I just merged this, thanks again!

— Reply to this email directly, view it on GitHub https://github.com/btoll/chroot/issues/2#issuecomment-1115196911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHU24LK52XD65ER7EHYGB43VIAKJBANCNFSM5TPM7UAQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Alan Robert Clark, Computational Electromagnetics Associate Professor Wits University Assistant Dean, Academic, Faculty of Engineering and the Built Environment School of Electrical and Information Engineering Wits; Gauteng ``Bugs are later known as features'' 2050 South Africa Ps 111:10; Ps 37/150 Fax (+27 11)403-1929 @.* Tel (+27 11)717-7223(24hr) http://YingTongDiddleiPo.ee.wits.ac.za/ Linux ---the choice of a GNU generation.**

btoll commented 2 years ago

Thanks for the kind words, I'm so glad you've found it helpful!