All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] 1.0.8 on Ubuntu
@ 2019-09-30 19:43 Julia Lawall
  2020-05-05  8:16 ` Kaspar Schleiser
  0 siblings, 1 reply; 8+ messages in thread
From: Julia Lawall @ 2019-09-30 19:43 UTC (permalink / raw)
  To: cocci

For those who use Ubuntu, a PPA is available:

https://launchpad.net/~npalix/+archive/ubuntu/coccinelle/+packages

julia
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2019-09-30 19:43 [Cocci] 1.0.8 on Ubuntu Julia Lawall
@ 2020-05-05  8:16 ` Kaspar Schleiser
  2020-05-05  8:50   ` Nicolas Palix
  0 siblings, 1 reply; 8+ messages in thread
From: Kaspar Schleiser @ 2020-05-05  8:16 UTC (permalink / raw)
  To: Julia Lawall, cocci

Hi,

I'm having issues getting coccinelle into an Ubuntu container.

On 9/30/19 9:43 PM, Julia Lawall wrote:
> For those who use Ubuntu, a PPA is available:
> 
> https://launchpad.net/~npalix/+archive/ubuntu/coccinelle/+packages

How can I help getting this built for Ubuntu 20.04 (Focal Fossa)?

The precompiled binary links in [1] point to nonexisting files.

opam seems to have issues when run within containers:

----
[ERROR] The compilation of ocaml-system failed at
"/root/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml".
...
# bwrap: Creating new namespace failed: Operation not permitted
----

Kaspar
[1] http://coccinelle.lip6.fr/download.php
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05  8:16 ` Kaspar Schleiser
@ 2020-05-05  8:50   ` Nicolas Palix
  2020-05-05  9:16     ` Kaspar Schleiser
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Palix @ 2020-05-05  8:50 UTC (permalink / raw)
  To: Kaspar Schleiser, Julia Lawall, cocci

Hi Kaspar,

I think you could try the following version (intended for 20.10).
https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2

Note that there is no official Ubuntu release for 20.04.
I think it due to an issue with the Python and GTK migration
to newer version fixed then.

Alternatively, you can also try the following commands:

apt-get build-dep coccinelle
apt-get source coccinelle

with the PPA version or the source.

Le 05/05/2020 à 10:16, Kaspar Schleiser a écrit :
> Hi,
> 
> I'm having issues getting coccinelle into an Ubuntu container.
> 
> On 9/30/19 9:43 PM, Julia Lawall wrote:
>> For those who use Ubuntu, a PPA is available:
>>
>> https://launchpad.net/~npalix/+archive/ubuntu/coccinelle/+packages
> 
> How can I help getting this built for Ubuntu 20.04 (Focal Fossa)?
> 
> The precompiled binary links in [1] point to nonexisting files.
> 
> opam seems to have issues when run within containers:
> 
> ----
> [ERROR] The compilation of ocaml-system failed at
> "/root/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml".
> ...
> # bwrap: Creating new namespace failed: Operation not permitted
> ----
> 
> Kaspar
> [1] http://coccinelle.lip6.fr/download.php
> _______________________________________________
> Cocci mailing list
> Cocci@systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
> 


-- 
Nicolas Palix
http://lig-membres.imag.fr/palix/
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05  8:50   ` Nicolas Palix
@ 2020-05-05  9:16     ` Kaspar Schleiser
  2020-05-05 12:05       ` Nicolas Palix
  0 siblings, 1 reply; 8+ messages in thread
From: Kaspar Schleiser @ 2020-05-05  9:16 UTC (permalink / raw)
  To: Nicolas Palix, Julia Lawall, cocci

Hi Nicolas,

thanks for the quick reply!

On 5/5/20 10:50 AM, Nicolas Palix wrote:
> I think you could try the following version (intended for 20.10).
> https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2

I managed to compile the 19.04 version
(coccinelle_1.0.8~19.04npalix1.dsc,
coccinelle_1.0.8~19.04npalix1.tar.xz). Somehow I missed that there's a
20.10 version.

The commands were roughly:

$ apt install debhelper devscripts equivs
$ dpkg-source -x coccinelle_1.0.8~19.04npalix1.dsc
$ cd coccinelle-1.0.8
$ mk-build-deps -i
$ dpkg-buildpackage -rfakeroot -b
$ apt install ../coccinelle_1.0.8~19.04npalix1_amd64.deb

The resulting .deb can be installed on an otherwise clean focal:latest
container. The spatch binary starts (prints help), did not do further
testing.

Kaspar
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05  9:16     ` Kaspar Schleiser
@ 2020-05-05 12:05       ` Nicolas Palix
  2020-05-05 13:23         ` Julia Lawall
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Palix @ 2020-05-05 12:05 UTC (permalink / raw)
  To: Kaspar Schleiser, Julia Lawall, cocci



Le 05/05/2020 à 11:16, Kaspar Schleiser a écrit :
> Hi Nicolas,
> 
> thanks for the quick reply!

You're welcome.

Julia, maybe it worth recording the sequence of commands somewhere,
in the README or the website.

> 
> On 5/5/20 10:50 AM, Nicolas Palix wrote:
>> I think you could try the following version (intended for 20.10).
>> https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2
> 
> I managed to compile the 19.04 version
> (coccinelle_1.0.8~19.04npalix1.dsc,
> coccinelle_1.0.8~19.04npalix1.tar.xz). Somehow I missed that there's a
> 20.10 version.
> 
> The commands were roughly:
> 
> $ apt install debhelper devscripts equivs
> $ dpkg-source -x coccinelle_1.0.8~19.04npalix1.dsc
> $ cd coccinelle-1.0.8
> $ mk-build-deps -i
> $ dpkg-buildpackage -rfakeroot -b
> $ apt install ../coccinelle_1.0.8~19.04npalix1_amd64.deb
> 
> The resulting .deb can be installed on an otherwise clean focal:latest
> container. The spatch binary starts (prints help), did not do further
> testing.
> 
> Kaspar
> 


-- 
Nicolas Palix
http://lig-membres.imag.fr/palix/
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05 12:05       ` Nicolas Palix
@ 2020-05-05 13:23         ` Julia Lawall
  2020-05-05 13:52           ` kaspar
  2020-05-05 19:50           ` Kaspar Schleiser
  0 siblings, 2 replies; 8+ messages in thread
From: Julia Lawall @ 2020-05-05 13:23 UTC (permalink / raw)
  To: Nicolas Palix; +Cc: cocci

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]



On Tue, 5 May 2020, Nicolas Palix wrote:

>
>
> Le 05/05/2020 à 11:16, Kaspar Schleiser a écrit :
> > Hi Nicolas,
> >
> > thanks for the quick reply!
>
> You're welcome.
>
> Julia, maybe it worth recording the sequence of commands somewhere,
> in the README or the website.

Good idea.  I'm just concerned about the word "roughly".  Kaspar are there
any details that need to be added?

thanks,
julia

>
> >
> > On 5/5/20 10:50 AM, Nicolas Palix wrote:
> >> I think you could try the following version (intended for 20.10).
> >> https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2
> >
> > I managed to compile the 19.04 version
> > (coccinelle_1.0.8~19.04npalix1.dsc,
> > coccinelle_1.0.8~19.04npalix1.tar.xz). Somehow I missed that there's a
> > 20.10 version.
> >
> > The commands were roughly:
> >
> > $ apt install debhelper devscripts equivs
> > $ dpkg-source -x coccinelle_1.0.8~19.04npalix1.dsc
> > $ cd coccinelle-1.0.8
> > $ mk-build-deps -i
> > $ dpkg-buildpackage -rfakeroot -b
> > $ apt install ../coccinelle_1.0.8~19.04npalix1_amd64.deb
> >
> > The resulting .deb can be installed on an otherwise clean focal:latest
> > container. The spatch binary starts (prints help), did not do further
> > testing.
> >
> > Kaspar
> >
>
>
> --
> Nicolas Palix
> http://lig-membres.imag.fr/palix/
> _______________________________________________
> Cocci mailing list
> Cocci@systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>

[-- Attachment #2: Type: text/plain, Size: 136 bytes --]

_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05 13:23         ` Julia Lawall
@ 2020-05-05 13:52           ` kaspar
  2020-05-05 19:50           ` Kaspar Schleiser
  1 sibling, 0 replies; 8+ messages in thread
From: kaspar @ 2020-05-05 13:52 UTC (permalink / raw)
  To: Nicolas Palix, Julia Lawall; +Cc: cocci

I'll go through the commands later tonight and report back.

Kaspar

-----Original Message-----
From: Julia Lawall <julia.lawall@inria.fr>
To: Nicolas Palix <nicolas.palix@univ-grenoble-alpes.fr>
Cc: Kaspar Schleiser <kaspar@schleiser.de>, cocci@systeme.lip6.fr
Sent: Di., 05 Mai 2020 15:24
Subject: Re: [Cocci] 1.0.8 on Ubuntu



On Tue, 5 May 2020, Nicolas Palix wrote:

>
>
> Le 05/05/2020 à 11:16, Kaspar Schleiser a écrit :
> > Hi Nicolas,
> >
> > thanks for the quick reply!
>
> You're welcome.
>
> Julia, maybe it worth recording the sequence of commands somewhere,
> in the README or the website.

Good idea.  I'm just concerned about the word "roughly".  Kaspar are there
any details that need to be added?

thanks,
julia

>
> >
> > On 5/5/20 10:50 AM, Nicolas Palix wrote:
> >> I think you could try the following version (intended for 20.10).
> >> https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2
> >
> > I managed to compile the 19.04 version
> > (coccinelle_1.0.8~19.04npalix1.dsc,
> > coccinelle_1.0.8~19.04npalix1.tar.xz). Somehow I missed that there's a
> > 20.10 version.
> >
> > The commands were roughly:
> >
> > $ apt install debhelper devscripts equivs
> > $ dpkg-source -x coccinelle_1.0.8~19.04npalix1.dsc
> > $ cd coccinelle-1.0.8
> > $ mk-build-deps -i
> > $ dpkg-buildpackage -rfakeroot -b
> > $ apt install ../coccinelle_1.0.8~19.04npalix1_amd64.deb
> >
> > The resulting .deb can be installed on an otherwise clean focal:latest
> > container. The spatch binary starts (prints help), did not do further
> > testing.
> >
> > Kaspar
> >
>
>
> --
> Nicolas Palix
> http://lig-membres.imag.fr/palix/
> _______________________________________________
> Cocci mailing list
> Cocci@systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Cocci] 1.0.8 on Ubuntu
  2020-05-05 13:23         ` Julia Lawall
  2020-05-05 13:52           ` kaspar
@ 2020-05-05 19:50           ` Kaspar Schleiser
  1 sibling, 0 replies; 8+ messages in thread
From: Kaspar Schleiser @ 2020-05-05 19:50 UTC (permalink / raw)
  To: Julia Lawall, Nicolas Palix; +Cc: cocci

Hi,

On 5/5/20 3:23 PM, Julia Lawall wrote:
>> Julia, maybe it worth recording the sequence of commands somewhere,
>> in the README or the website.
> 
> Good idea.  I'm just concerned about the word "roughly".  Kaspar are there
> any details that need to be added?
> 
>>>
>>> The commands were roughly:
>>>

I went through the commands again, this time with the package files
proposed by Nicolas, from [1].

I'm starting a fresh focal container using:

$ docker run --rm -ti ubuntu:focal /bin/bash

Then, in the container prompt:

$ cd
$ apt install devscripts equivs wget
$ wget
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/coccinelle/1.0.8.deb-2/coccinelle_1.0.8.deb-2.dsc
$ wget
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/coccinelle/1.0.8.deb-2/coccinelle_1.0.8.deb.orig.tar.gz
$ wget
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/coccinelle/1.0.8.deb-2/coccinelle_1.0.8.deb-2.debian.tar.xz
$ dpkg-source -x coccinelle_1.0.8.deb-2.dsc
$ cd coccinelle-1.0.8.deb
$ dpkg-buildpackage -rfakeroot -b

There's now a package file at "/root/coccinelle_1.0.8.deb-2_amd64.deb".
Whith the container still running, it can be copied out, from another shell:

$ docker cp 1de810777b2a:/root/coccinelle_1.0.8.deb-2_amd64.deb .

(replace 1de810777b2a with the contianer id, find out by looking at the
container's prompt ("root@<id>:...$") or using "docker ps".)

This deb can now be installed via:

$ apt install ./coccinelle_1.0.8.deb-2_amd64.deb

Kaspar

[1] https://launchpad.net/ubuntu/+source/coccinelle/1.0.8.deb-2
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-05 19:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 19:43 [Cocci] 1.0.8 on Ubuntu Julia Lawall
2020-05-05  8:16 ` Kaspar Schleiser
2020-05-05  8:50   ` Nicolas Palix
2020-05-05  9:16     ` Kaspar Schleiser
2020-05-05 12:05       ` Nicolas Palix
2020-05-05 13:23         ` Julia Lawall
2020-05-05 13:52           ` kaspar
2020-05-05 19:50           ` Kaspar Schleiser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.