Bug 320 - split out software install and deps into separate script
Summary: split out software install and deps into separate script
Status: RESOLVED FIXED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: Other Linux
: High enhancement
Assignee: Cole Poirier
URL:
Depends on:
Blocks:
 
Reported: 2020-05-18 15:02 BST by Luke Kenneth Casson Leighton
Modified: 2020-05-18 23:06 BST (History)
1 user (show)

See Also:
NLnet milestone: ---
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0
parent task for budget allocation:
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2020-05-18 15:02:32 BST
cole can you create a separate script which rather than installs stuff in the chroot just installs nmigen yosys simbiyosys and git clones the dev repos soc, nmutil, ieee754fpu and so on?

not as a chroot just a straight install.

we need this quite fast becaude there are people who will need to use it over the nect 1 to 5 days.
Comment 1 Luke Kenneth Casson Leighton 2020-05-18 15:04:24 BST
it is probably stuff that is already in the yaml files.
Comment 2 Cole Poirier 2020-05-18 20:11:02 BST
Sure, should only take about 5 minutes because I already have the yosys part separated out, and the dev repos are straightforward. I'm not sure what you're referring to with regard to the yaml files. Can you please be more specific?
Comment 3 Cole Poirier 2020-05-18 20:32:41 BST
Do you want me to assume the user has already correctly set up ssh config? Or just basic setup with clone via read-only https?
Comment 4 Luke Kenneth Casson Leighton 2020-05-18 20:43:33 BST
(In reply to Cole Poirier from comment #3)
> Do you want me to assume the user has already correctly set up ssh config?

no.  this is for the hackathon.  i'm not giving them accounts yet.

> Or just basic setup with clone via read-only https?

basic clone.  does https work?  i usually use git://... because
git-daemon is running.
Comment 5 Cole Poirier 2020-05-18 20:47:47 BST
(In reply to Luke Kenneth Casson Leighton from comment #4)
> (In reply to Cole Poirier from comment #3)
> > Do you want me to assume the user has already correctly set up ssh config?
> 
> no.  this is for the hackathon.  i'm not giving them accounts yet.
> 
> > Or just basic setup with clone via read-only https?
> 
> basic clone.  does https work?  i usually use git://... because
> git-daemon is running.

Ok perfect. Much easier. Https does work, I had to look through the mailing list, I think you and Jacob discussed it in March 
(https://bugs.libre-soc.org/show_bug.cgi?id=266), and set up this method: http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/.
Testing the script now, will let you know once I have committed it to dev-env-setup repo, with the file name 'hdl-dev-repos'.
Comment 6 Luke Kenneth Casson Leighton 2020-05-18 20:53:59 BST
(In reply to Cole Poirier from comment #5)

> Ok perfect. Much easier. Https does work, I had to look through the mailing
> list, I think you and Jacob discussed it in March 
> (https://bugs.libre-soc.org/show_bug.cgi?id=266), and set up this method:
> http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/.
> Testing the script now, will let you know once I have committed it to
> dev-env-setup repo, with the file name 'hdl-dev-repos'.

throw it out there anyway - commit it the moment you've written it - so
that other people can take a look.

we have an anti-"i'll-commit-it-when-it's-perfect" development rule, remember?
Comment 7 Cole Poirier 2020-05-18 21:00:08 BST
(In reply to Luke Kenneth Casson Leighton from comment #6)
> (In reply to Cole Poirier from comment #5)
> 
> > Ok perfect. Much easier. Https does work, I had to look through the mailing
> > list, I think you and Jacob discussed it in March 
> > (https://bugs.libre-soc.org/show_bug.cgi?id=266), and set up this method:
> > http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/.
> > Testing the script now, will let you know once I have committed it to
> > dev-env-setup repo, with the file name 'hdl-dev-repos'.
> 
> throw it out there anyway - commit it the moment you've written it - so
> that other people can take a look.
> 
> we have an anti-"i'll-commit-it-when-it's-perfect" development rule,
> remember?

With you, saw this and pushed.
Comment 8 Luke Kenneth Casson Leighton 2020-05-18 21:33:51 BST
(In reply to Cole Poirier from comment #7)
> (In reply to Luke Kenneth Casson Leighton from comment #6)
> > (In reply to Cole Poirier from comment #5)
> > 
> > > Ok perfect. Much easier. Https does work, I had to look through the mailing
> > > list, I think you and Jacob discussed it in March 
> > > (https://bugs.libre-soc.org/show_bug.cgi?id=266), and set up this method:
> > > http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/.
> > > Testing the script now, will let you know once I have committed it to
> > > dev-env-setup repo, with the file name 'hdl-dev-repos'.
> > 
> > throw it out there anyway - commit it the moment you've written it - so
> > that other people can take a look.
> > 
> > we have an anti-"i'll-commit-it-when-it's-perfect" development rule,
> > remember?
> 
> With you, saw this and pushed.

got it.
https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=hdl-dev-repos;hb=HEAD

ah goood, looks like that'll work really well.

and these cover everything and a bit more, yes?
https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=install-apt-reqs;hb=HEAD

if so, that's probably pretty much what the hackathon will need.
Comment 9 Cole Poirier 2020-05-18 22:07:44 BST
(In reply to Luke Kenneth Casson Leighton from comment #8)
> (In reply to Cole Poirier from comment #7)
> > With you, saw this and pushed.
> 
> got it.
> https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=hdl-dev-repos;hb=HEAD
> 
> ah goood, looks like that'll work really well.
> 
> and these cover everything and a bit more, yes?
> https://git.libre-soc.org/?p=dev-env-setup.git;a=blob;f=install-apt-reqs;
> hb=HEAD
> 
> if so, that's probably pretty much what the hackathon will need.

Yes, it's the list of all dependencies I've run into errors for not having installed while trying to build and install the top-level dependencies.
Comment 10 Cole Poirier 2020-05-18 22:38:54 BST
Tested in a lxc-container of Debian 10. The following command should produce the desired outcome:

```
cd ~
git clone https://git.libre-soc.org/git/dev-env-setup.git
sudo bash
cd /home/$USER
./dev-env-setup/install-apt-reqs && ./dev-env-setup/yosys-et-al && ./dev-env-setup/hdl-dev-repos
ctrl-d
```

As I am the assignee, should I now close this bug report?
Comment 11 Luke Kenneth Casson Leighton 2020-05-18 22:45:31 BST
superb.  yes done tested therefore close.  thank you cole.