scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Distro packages

Open pombredanne opened this issue 9 years ago • 22 comments

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

pombredanne avatar Feb 09 '17 17:02 pombredanne

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 avatar Feb 28 '17 16:02 v27u27

@v27u27 Yes this is exactly that. Note that eventually there could be some tools to help build skeletons for these.

pombredanne avatar Feb 28 '17 17:02 pombredanne

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

sudeepb02 avatar Mar 06 '17 14:03 sudeepb02

Great! Check also #469 and http://Appimage.org that would be a great candidate for Linux packaging.

pombredanne avatar Mar 06 '17 15:03 pombredanne

@pombredanne Thanks. I'll go through the Appimage documentation and start working on it ASAP.

sudeepb02 avatar Mar 07 '17 09:03 sudeepb02

Hi @pombredanne I would like to give my first PR for this issue as part of gsoc ideas list.

shivakrishna9 avatar Mar 11 '17 14:03 shivakrishna9

@shivakrishna9 sure, that's great.

pombredanne avatar Mar 11 '17 16:03 pombredanne

@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 avatar Mar 11 '17 16:03 shivakrishna9

@shivakrishna9 I cannot assign to you anything for now:

  1. 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.

  2. 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 avatar Mar 11 '17 16:03 pombredanne

@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 avatar Mar 16 '17 17:03 sudeepb02

@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:

  1. Fix #469 and this will require quite a few code changes such that its works in scancode proper and the scancode-toolkit-contrib too.

  2. 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.

  3. 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

  4. 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.

  5. also create packages and/or ports for other places: e.g. homebrew, archlinux, Guix, FreeBSD

  6. 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.

  7. do similar things for other tools such as AboutCodeMgr and TraceCode.

  8. 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...

pombredanne avatar Mar 16 '17 18:03 pombredanne

@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 avatar Mar 16 '17 18:03 pombredanne

@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?

sudeepb02 avatar Mar 21 '17 14:03 sudeepb02

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.

zjesko avatar Jan 08 '20 10:01 zjesko

Hi @pombredanne

Is there more work required on this front or this project has been wrapped up?

zjesko avatar Jan 10 '20 04:01 zjesko

@akshatcx ... @aj4ayushjain has been working on it ... Ayush what's the status on your side? How could Akshat help there?

pombredanne avatar Jan 10 '20 07:01 pombredanne

@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.

aj4ayushjain avatar Jan 15 '20 18:01 aj4ayushjain

@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

zjesko avatar Jan 15 '20 21:01 zjesko

@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.

Abhishek-Dev09-zz avatar Jan 15 '20 22:01 Abhishek-Dev09-zz

@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 ?

n1khilmane avatar Apr 06 '20 13:04 n1khilmane