Distro packages
We should provide and eventually maintain distribution packages as RPMs and Debian packages.
Beside the basic packaging, this would mean also contributing the package to the distro and addressing some issues to make this particular such as: https://github.com/nexB/scancode-toolkit/issues/469
Hello Sir, as per my understanding, are you asking to make debain and RPMs distribution package for the scan code toolkit, so that linux users can directly install this toolkit onto their system ?, Please correct me if i am wrong anywhere.
@v27u27 Yes this is exactly that. Note that eventually there could be some tools to help build skeletons for these.
Hello @pombredanne, I'd like to work on this issue as my GSoC project'17 as it is listed here GSoC 2017 nexb/aboutcode wiki
Great! Check also #469 and http://Appimage.org that would be a great candidate for Linux packaging.
@pombredanne Thanks. I'll go through the Appimage documentation and start working on it ASAP.
Hi @pombredanne I would like to give my first PR for this issue as part of gsoc ideas list.
@shivakrishna9 sure, that's great.
@pombredanne please clarify if this project is assigned to me so that I will be able to completely dedicate my time to this. Thanks.
@shivakrishna9 I cannot assign to you anything for now:
-
the GSoC has not even started in earnest. You have not suggested a plan for your project submission. And then you may or not be selected. This will happen in April... I cannot tell anything now.
-
I do not know you. I will get to know you through PRs. This is part of our selection process.
So if you want to submit some PRs (which is a requirement if you plan to submit a project application with our org) this is great. I will welcome this and review it then and when you submit this.
@pombredanne I went through the AppImage documentation for distro packages and made an AppImage for a applications. But I see that most of the work here is testing rather than coding. I was able to run the AppImage successfully on my system but running it on different distros raise some issues which needs the source to be changed. So can I take this up as a project for GSoC? As the duration for GSoC is 3 months, I'll also create AppImages for AttributeCode and TraceCode
@sudeepb02 Great! Can you point me to a public place where you pushed this? Now this is a GSOC project alright, but to be complete it should cover in order of priorities:
-
Fix #469 and this will require quite a few code changes such that its works in scancode proper and the
scancode-toolkit-contribtoo. -
Create a build loop that handles all the automated compilation of the natives deps on linux/mac and windows . There is some elements of this in https://github.com/pombreda/thirdparty and https://github.com/pombreda/thirdparty-manylinux/ for the python side. And the native code is listed here: https://github.com/nexB/scancode-thirdparty-src and there are some build notes to help.
-
Once we have this in place, create a proper AppImage AND a test suite to validate this is working on may linuxes (may be using OpenSuse OBS, openshift, Travis, circle, etc.) possibly using container images for this
-
create also proper Debian and RPM packages. Create tests for many distros to smoke check the installation. Submit the packages for inclusion in the distros.
-
also create packages and/or ports for other places: e.g. homebrew, archlinux, Guix, FreeBSD
-
also create packages for other languages wrapping ScanCode to run it in a subprocess and get the results back for JavaScript, Java, Ruby. Create proper NPM, Maven and Gem packages and push these to their respective repos . Consider also creating a Maven plugin to scan while you build. Consider other build plugins for similar tools, e.g. Jenkins.
-
do similar things for other tools such as AboutCodeMgr and TraceCode.
-
to 4. are must have. 5. to 7. are bonuses if time permits .
The creation and tests for all this must be automated end-to-end... so I guess this can fill up three months alright. But if this is not the case, there will be for sure a lot of things in that domain that can fill any voids and slack...
@sudeepb02 so my point is that you should not underestimate the amount of work needed for what is expected here! Creating the package may end up being a tiny part of the effective work and there is quite a bit of code needed for #469 and to create build and tests scripts that are stable and highly automated.
@pombredanne Can you please explain the second point in some detail
Create a build loop that handles all the automated compilation of the natives deps on linux/mac and windows
I've not tried any automatic building tools but I guess Travis CI would be used for this?
Hi @pombredanne
Wanted to check the status of this issue. I was really keen on working on it as my GSOC 2020 project. Moreover, would you think it is a good idea to maybe develop a python API for scancode as well so that the users can simply do pip install scancode to use this.
Hi @pombredanne
Is there more work required on this front or this project has been wrapped up?
@akshatcx ... @aj4ayushjain has been working on it ... Ayush what's the status on your side? How could Akshat help there?
@pombredanne @akshatcx I have done the debian(unofficial)package -scancode tool in python2 along with docker image. So u can help me out with these things:-
1.There is major roadBlock which need's to be sorted to ease packaging and further issues (naming of the python plugins). 2. If u know about official rules and regulations of debian u can help me getting an official debian package or might be get an fedora/rpm package.
@pombredanne @aj4ayushjain Sure I would be glad to work on that. Can we maybe discuss this in detail over something like slack? Meanwhile @pombredanne , is there a particular area of focus where I can start helping out to gain familiarity with the scancode codebase
@akshatcx We don't use slack , we are on gitter. You can discuss here here . First you need to start using it to get familiar to know how it works.
@pombredanne @akshatcx I have done the debian(unofficial)package -scancode tool in python2 along with docker image. So u can help me out with these things:-
1.There is major roadBlock which need's to be sorted to ease packaging and further issues (naming of the python plugins). 2. If u know about official rules and regulations of debian u can help me getting an official debian package or might be get an fedora/rpm package.
Hey @aj4ayushjain @pombredanne , Regarding the second task mentioned here , how much work is done on getting an official debian package? or rpm/fedora? how can i help in that ?