You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prepare debian package and add repository for proper distribution on Linux #114
extract it directly in processing.orgs root folder, it should create the
folder processing.org/repository/debian/...
now you can add
deb http://processing.org/repository/debian processing main
at the end of your /etc/apt/sources.list file and then execute
apt-get update
apt-get install processing
I've created a new launch file (/usr/bin/processing when installed)
It checks if jdk 5/6 is installed, but also creates the folder
~/processing/ folder if it doesn't exist yet.
maybe there's more.
I have only tested in ubuntu yet, but it should work on any
debian based system cause i haven't used any ubuntu specific
things.
if that works i could send you the files required to create the debian
package and the files to create the repository indexes.
From b...@processing.org on June 07, 2010 00:59:48
Comment from Swap, 2007-07-15 18:59
(In reply to comment #0)
The changelist is not included because it has to be a
standardized format (see
Upstream (i.e. the processing devs) can use whatever changelog format they
want. The Debian-specific changelog (changelog.Debian) is the one that has
to be under a strict format. The first Debian changelog will probably only
need "initial release (closes: [ITP bug number]). Btw, I've just opened
such an ITP bug.
I have only tested in ubuntu yet, but it should work on any
debian based system cause i haven't used any ubuntu specific
things.
It's always dangerous to assume that just because it works in Ubuntu, it'll
also work in Debian. You may have inadvertently linked to some
Ubuntu-specific libraries in strange ways. Admittedly unlikely, but possible.
From b...@processing.org on June 07, 2010 00:59:49
Comment from fry, 2007-07-17 15:09
oh, and the email addresses for casey and i should be fry@processing.org
and reas@processing.org... mail@ and info@ addresses are our work/personal
email.
I'm not sure. Been a tad busy past couple of days. :-)
But it sounds like hansi could already have a package ready. At the very
least, he should attept to build it with pbuilder, which builds in a Debian
chroot, making sure all the dependencies are properly stated and satisfied.
If that succeeds, he (?) could RFS in the debian-mentors@debian.org mailing
list and wait for a Debian developer (DD) to review his package for upload
to the Debian servers. I was kinda hoping I could review it myself before
that, but I'm not sure how soon I can get around to doing that, and if
impatience is high, then there's no need to wait for me.
I'm not a DD, btw, I've only ever packaged one thing for Debian, and I'm
not even sure it's going to be approved the by the Debian ftpmasters
(although I have little reason to suspect that it could be rejected;
another DD already looked at my upload and approved it).
Sorry. I tried to find contact information for principal authors as quickly
as I could when I was writing the ITP bug. Your name is on the front page
and links to your personal sites which then list the contact information.
You might want to consider making the Processing-specific contact
information more prominent than your personal webpages.
At present, the ITP bug submission will stand as it is, but once the
debian/control and debian/copyright files are written for the package we
can fix that.
From b...@processing.org on June 07, 2010 00:59:51
Comment from hansi, 2007-07-19 06:19
hey all!
first of all the bad message... i've switched to os x a week ago, so i'm
not running linux on a daily basis right now.
@swap i don't know exactly what pbuilder is and why i need chroot, but
processing is the first package i've ever tried to create.
if you just open up http://www.chiefmag.com/processing/
then get the file "processing_debian.zip", it contains all the files needed
to build the processing debian package from the processing linux zip archive.
for the debian packagers request... i'd definitely bring up the time to
keep the package up to date and test a little bit...should i try getting in
touch with the debian developers in the next couple of days?
first of all the bad message... i've switched to os x a week ago, so i'm
not running linux on a daily basis right now.
Hm. I never run anything but GNU/Linux (yeah, I'm one of those hardcore
free software proponents). I'm about to go on a vacation, so I won't be
able to commit much time to this immediately. However, if running GNU/Linux
can be a hassle for you, I'm happy to do it instead and keep tabs on the
Processing package.
@swap i don't know exactly what pbuilder is and why i need chroot,
Debian has to be able to build your package automatically for 14
architectures or so (although Ubuntu only seems to care about three or four
of those). On some architectures, it may need to link to libraries in a
different way or to different versions of a library. In short, your package
must be portable, and there may be unexpected surprises and your package
can fail to build on a certain architecture. My recent example is that the
one Debian package I made needed an X server during the build process or
else it would fail to build. This is bad, because you can't assume that the
Debian autobuilding servers will have an X server running in them (in fact,
I understand most of them don't). I had to patch my package's build process
in order to get around this problem, which took a bit of effort.
Pbuilder builds your package closely emulating the build environment of the
Debian autobuilders. It's a minimal test that your package will work for
Debian. Failure to build from source (FTBFS) is a pretty severe bug in a
Debian package and can result in your submission to Debian getting rejected.
http://www.chiefmag.com/processing/
then get the file "processing_debian.zip", it contains all the files needed
to build the processing debian package from the processing linux zip
archive.
Okay, I'll try to build it soon. Maybe today or tomorrow.
for the debian packagers request... i'd definitely bring up the time to
keep the package up to date and test a little bit...
Good. Or we can co-maintain, if you'd like. I also am willing for now to
commit some time to maintaining a Debian package or processing.
should i try getting in
touch with the debian developers in the next couple of days?
Sure. Try the debian-mentors@lists.debian.org mailing list. People there
are generally friendly and wiling to help. I personally really like its
atmosphere. :-)
From b...@processing.org on June 07, 2010 00:59:52
Comment from fry, 2007-07-20 15:36
as another point of interest, i'll be showing processing at OSCON next
week, so it may even be fun to have this ready to go (for 0125) in time for
that, rather than waiting for the next release. but it depends on how the
timing on all this works.
From b...@processing.org on June 07, 2010 00:59:54
Comment from fry, 2007-07-24 05:50
cool, so what else do i need to run to set this up as a proper repository?
i figure we'll just use processing.org/download for the repository folder
(so i assume that means that there wll be a subfolder called 'debian' and
the rest). the repos zip file you sent had a fairly complicated setup...
from the repos howto, it looked like we could do a "trivial setup": http://www.debian.org/doc/manuals/repository-howto/repository-howto.en.html#id2452849
though perhaps that's already what you're up to?
From b...@processing.org on June 07, 2010 00:59:54
Comment from hansi, 2007-07-24 06:33
yes, it doesn't matters much at this point if we use a trivial repository
or a "proper" one.
i've set up a later one cause i was wondering if arduino and maybe some
other stuff like libraries or library-packs might go in there too one day.
it's not very hard either, there's a repo for 0124 at
deb http://www.chiefmag.com/repository/ processing contrib [multiverse
universe]
i put java+jikes in multiverse/universe, but that doesn't matter much cause
every major dist has java in the non-free section by now. processing goes
in contrib cause it depends on non oss software.
what do you think? if going for the more complex type of repository i have
a little script file where you just place the .deb files in the pool
directory and it updates all the package.gz automatically.
From b...@processing.org on June 07, 2010 00:59:55
Comment from fry, 2007-07-24 11:16
i don't see us moving libraries or arduino or mobile into the repository
anytime soon (meaning six months or more), we'd probably have to get a lot
more coordination going with everyone for that. so the simple repository
will suffice. but is it more trouble to switch back to the simple model
from the more complex one?
From b...@processing.org on June 07, 2010 19:37:15
Improved Startup Script (from hansi)
I figured out why my processing package didn't work on all debian based computers.
It just was a problem with the startup script. This is an improved version that uses the debian alternatives system to find out which java versions are installed on the system.
From mamba2...@gmail.com on August 20, 2010 21:23:35
I think the script is flakey, as it relies on sun being included the "name" of the alternatives, which it need not be. Also what about the included jdk, that isn't detected unless the user manually sets it up as alternative?
Why not just just ignore the alternatives system.....
From f...@processing.org on July 29, 2012 15:25:58
We'd love to see a contributed, working .deb so that we can better support Ubuntu in particular (and Mint or vanilla Debian as well). To get this rolling, I strongly recommend that whoever wants to give it a shot begins with simply bundling the current code as-is, without worrying about proper dependency linking and not trying to reorganize the current code layout to be more "correct".
Several people have started this packaging effort, but it gets undermined by attempting too much, or the tail wagging the dog when I'm asked to redo the build system for the benefit of maintaining a Debian-compatible package. While important, this is for a very small portion of our audience (2-3% on Linux, then whatever percent of those are using a deb-compatible distro).
The two exceptions for dependencies are Sun (Oracle) Java (OpenJDK does not work properly yet), and GStreamer. But as for ant, the Eclipse tools, launch4j and others, please just use what's checked in. Once we have a decent working deb, we can start moving these out too, but let's get something usable first.
One linux distro is already supporting processing checkout:-https://www.archlinux.org/packages/community/i686/processing/
Currently at processing-2.0.2 (they didn't hang about).
From what I've read debian folks require source (possibly for all binaries) and if apache can't get along with them some chance of an individual... You could just suggest people unzip processing in /usr/share like ArchLinux does, they then create a link to processing and java-processing to /usr/bin. The more debian way to do this is:-
As @benfry mentions, several people have started work on this before but never produced a working package. In attempting to avoid the previous pitfalls I have created a binary only .deb package which I have tested on several clean installs of various debian based distributions (primarily Ubuntu and Mint). Everything seems to work okay for me. I followed the organizational structure suggested by @hellocatfood and included a launcher and mime-type files. I did not associate the .pde files by default during the installation process but I believe it would be straight-forward to include if it is desired.
Before I submit a pull request I have two questions. Is there a contact I should put down as the maintainer of the package? Currently I just used my own contact information. I am fine leaving my info in place but I thought I would check first.
Second do you want to include copyright and license information? If so, I need a list of which files fall under which license, who the copyright owners are and the copyright dates. Since the package is just a binary distribution and I am not aiming to get it included in any of the package archives, leaving off this information is fine with me. The package still installs without any errors.
Go ahead and use your contact info, since the main thing here is having someone who can maintain it as an ongoing thing. But please let us know if you cease ongoing maintenance.
For the license portion, the /core files are LGPL and the /app files are GPL. But elsewhere, we have more work to do on cleaning up and identifying the licenses for everything else. That's covered here: #224
Activity
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:48
Comment from Swap, 2007-07-15 18:59
(In reply to comment #0)
Upstream (i.e. the processing devs) can use whatever changelog format they
want. The Debian-specific changelog (changelog.Debian) is the one that has
to be under a strict format. The first Debian changelog will probably only
need "initial release (closes: [ITP bug number]). Btw, I've just opened
such an ITP bug.
It's always dangerous to assume that just because it works in Ubuntu, it'll
also work in Debian. You may have inadvertently linked to some
Ubuntu-specific libraries in strange ways. Admittedly unlikely, but possible.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:49
Comment from fry, 2007-07-17 15:08
cool, so what's our next step?
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:49
Comment from fry, 2007-07-17 15:09
oh, and the email addresses for casey and i should be fry@processing.org
and reas@processing.org... mail@ and info@ addresses are our work/personal
email.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:50
Comment from Swap, 2007-07-17 15:34
(In reply to comment #2)
I'm not sure. Been a tad busy past couple of days. :-)
But it sounds like hansi could already have a package ready. At the very
least, he should attept to build it with pbuilder, which builds in a Debian
chroot, making sure all the dependencies are properly stated and satisfied.
If that succeeds, he (?) could RFS in the debian-mentors@debian.org mailing
list and wait for a Debian developer (DD) to review his package for upload
to the Debian servers. I was kinda hoping I could review it myself before
that, but I'm not sure how soon I can get around to doing that, and if
impatience is high, then there's no need to wait for me.
I'm not a DD, btw, I've only ever packaged one thing for Debian, and I'm
not even sure it's going to be approved the by the Debian ftpmasters
(although I have little reason to suspect that it could be rejected;
another DD already looked at my upload and approved it).
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:51
Comment from Swap, 2007-07-17 15:37
(In reply to comment #3)
Sorry. I tried to find contact information for principal authors as quickly
as I could when I was writing the ITP bug. Your name is on the front page
and links to your personal sites which then list the contact information.
You might want to consider making the Processing-specific contact
information more prominent than your personal webpages.
At present, the ITP bug submission will stand as it is, but once the
debian/control and debian/copyright files are written for the package we
can fix that.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:51
Comment from hansi, 2007-07-19 06:19
hey all!
first of all the bad message... i've switched to os x a week ago, so i'm
not running linux on a daily basis right now.
@swap i don't know exactly what pbuilder is and why i need chroot, but
processing is the first package i've ever tried to create.
if you just open up
http://www.chiefmag.com/processing/
then get the file "processing_debian.zip", it contains all the files needed
to build the processing debian package from the processing linux zip archive.
for the debian packagers request... i'd definitely bring up the time to
keep the package up to date and test a little bit...should i try getting in
touch with the debian developers in the next couple of days?
just to make the list complete, my email address is super@superduper.org
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:52
Comment from Swap, 2007-07-19 10:51
(In reply to comment #6)
Hm. I never run anything but GNU/Linux (yeah, I'm one of those hardcore
free software proponents). I'm about to go on a vacation, so I won't be
able to commit much time to this immediately. However, if running GNU/Linux
can be a hassle for you, I'm happy to do it instead and keep tabs on the
Processing package.
Debian has to be able to build your package automatically for 14
architectures or so (although Ubuntu only seems to care about three or four
of those). On some architectures, it may need to link to libraries in a
different way or to different versions of a library. In short, your package
must be portable, and there may be unexpected surprises and your package
can fail to build on a certain architecture. My recent example is that the
one Debian package I made needed an X server during the build process or
else it would fail to build. This is bad, because you can't assume that the
Debian autobuilding servers will have an X server running in them (in fact,
I understand most of them don't). I had to patch my package's build process
in order to get around this problem, which took a bit of effort.
Pbuilder builds your package closely emulating the build environment of the
Debian autobuilders. It's a minimal test that your package will work for
Debian. Failure to build from source (FTBFS) is a pretty severe bug in a
Debian package and can result in your submission to Debian getting rejected.
Okay, I'll try to build it soon. Maybe today or tomorrow.
Good. Or we can co-maintain, if you'd like. I also am willing for now to
commit some time to maintaining a Debian package or processing.
Sure. Try the debian-mentors@lists.debian.org mailing list. People there
are generally friendly and wiling to help. I personally really like its
atmosphere. :-)
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:52
Comment from fry, 2007-07-20 15:36
as another point of interest, i'll be showing processing at OSCON next
week, so it may even be fun to have this ready to go (for 0125) in time for
that, rather than waiting for the next release. but it depends on how the
timing on all this works.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:53
Comment from hansi, 2007-07-23 20:51
hey!
i've prepared a .deb package of 0125, it works in ubuntu gutsy and it
should work on all debian (based) systems too, but its not tested.
you can get it from http://www.chiefmag.com/processing/processing-0.125.deb
i haven't setup a repository, that wouldn't make much sense cause the url
would change soon and that would be confusing for everyone...
hansi.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:54
Comment from hansi, 2007-07-23 22:37
thanks to vmware i could also test in debian, it works perfectly - all you
need to do is enable the "non-free" repositories to get sun-java.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:54
Comment from fry, 2007-07-24 05:50
cool, so what else do i need to run to set this up as a proper repository?
i figure we'll just use processing.org/download for the repository folder
(so i assume that means that there wll be a subfolder called 'debian' and
the rest). the repos zip file you sent had a fairly complicated setup...
from the repos howto, it looked like we could do a "trivial setup":
http://www.debian.org/doc/manuals/repository-howto/repository-howto.en.html#id2452849
though perhaps that's already what you're up to?
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:54
Comment from hansi, 2007-07-24 06:33
yes, it doesn't matters much at this point if we use a trivial repository
or a "proper" one.
i've set up a later one cause i was wondering if arduino and maybe some
other stuff like libraries or library-packs might go in there too one day.
it's not very hard either, there's a repo for 0124 at
deb http://www.chiefmag.com/repository/ processing contrib [multiverse
universe]
i put java+jikes in multiverse/universe, but that doesn't matter much cause
every major dist has java in the non-free section by now. processing goes
in contrib cause it depends on non oss software.
what do you think? if going for the more complex type of repository i have
a little script file where you just place the .deb files in the pool
directory and it updates all the package.gz automatically.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:55
Comment from fry, 2007-07-24 11:16
i don't see us moving libraries or arduino or mobile into the repository
anytime soon (meaning six months or more), we'd probably have to get a lot
more coordination going with everyone for that. so the simple repository
will suffice. but is it more trouble to switch back to the simple model
from the more complex one?
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:56
Comment from hansi, 2007-07-24 11:28
no, only people would have to update their repositories which would be a
little bit anoying, thats all there's to it.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 00:59:56
Comment from hansi, 2007-07-31 20:31
i have started to read into the debian maintainers documents and somehow
found out that swap already filed an "intend to package" report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433270
does that mean you are already working on the package?
if i can help somehow let me know...
27 remaining items
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:00:15
Comment from Swap, 2009-02-15 03:36
Alright... so what's it gonna be? ant or maven? Or both?
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:00:15
Comment from fry, 2009-02-15 05:17
Response added to Bug #151 since it's more relevant (for others looking for
the information) there.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 19:37:15
Improved Startup Script (from hansi)
I figured out why my processing package didn't work on all debian based computers.
It just was a problem with the startup script. This is an improved version that uses the debian alternatives system to find out which java versions are installed on the system.
Hope it helps!
processing-bugs commentedon Feb 10, 2013
From mamba2...@gmail.com on August 20, 2010 21:23:35
I think the script is flakey, as it relies on sun being included the "name" of the alternatives, which it need not be. Also what about the included jdk, that isn't detected unless the user manually sets it up as alternative?
Why not just just ignore the alternatives system.....
processing-bugs commentedon Feb 10, 2013
From f...@processing.org on July 29, 2012 15:25:58
We'd love to see a contributed, working .deb so that we can better support Ubuntu in particular (and Mint or vanilla Debian as well). To get this rolling, I strongly recommend that whoever wants to give it a shot begins with simply bundling the current code as-is, without worrying about proper dependency linking and not trying to reorganize the current code layout to be more "correct".
Several people have started this packaging effort, but it gets undermined by attempting too much, or the tail wagging the dog when I'm asked to redo the build system for the benefit of maintaining a Debian-compatible package. While important, this is for a very small portion of our audience (2-3% on Linux, then whatever percent of those are using a deb-compatible distro).
The two exceptions for dependencies are Sun (Oracle) Java (OpenJDK does not work properly yet), and GStreamer. But as for ant, the Eclipse tools, launch4j and others, please just use what's checked in. Once we have a decent working deb, we can start moving these out too, but let's get something usable first.
monkstone commentedon Aug 16, 2013
One linux distro is already supporting processing checkout:-https://www.archlinux.org/packages/community/i686/processing/
Currently at processing-2.0.2 (they didn't hang about).
From what I've read debian folks require source (possibly for all binaries) and if apache can't get along with them some chance of an individual... You could just suggest people unzip processing in /usr/share like ArchLinux does, they then create a link to processing and java-processing to /usr/bin. The more debian way to do this is:-
and
It should not be too difficult to create a kde/gnome/etc launcher.
https://gist.github.com/monkstone/6256117
hellocatfood commentedon Dec 30, 2013
I've written a short guide on "installing" processing, creating a (Unity) launcher and associating .pde files with processing
http://askubuntu.com/questions/396857/how-can-i-add-processing-to-the-unity-launcher
Does this help in getting it into repositories?
kfeuz commentedon Nov 12, 2014
As @benfry mentions, several people have started work on this before but never produced a working package. In attempting to avoid the previous pitfalls I have created a binary only .deb package which I have tested on several clean installs of various debian based distributions (primarily Ubuntu and Mint). Everything seems to work okay for me. I followed the organizational structure suggested by @hellocatfood and included a launcher and mime-type files. I did not associate the .pde files by default during the installation process but I believe it would be straight-forward to include if it is desired.
Before I submit a pull request I have two questions. Is there a contact I should put down as the maintainer of the package? Currently I just used my own contact information. I am fine leaving my info in place but I thought I would check first.
Second do you want to include copyright and license information? If so, I need a list of which files fall under which license, who the copyright owners are and the copyright dates. Since the package is just a binary distribution and I am not aiming to get it included in any of the package archives, leaving off this information is fine with me. The package still installs without any errors.
benfry commentedon Nov 15, 2014
Go ahead and use your contact info, since the main thing here is having someone who can maintain it as an ongoing thing. But please let us know if you cease ongoing maintenance.
For the license portion, the /core files are LGPL and the /app files are GPL. But elsewhere, we have more work to do on cleaning up and identifying the licenses for everything else. That's covered here: #224
Merge pull request #2972 from kfeuz/Issue114
benfry commentedon Nov 19, 2014
Now incorporated with #2972, just a matter of using
ant deb.github-actions commentedon Jun 16, 2021
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.