Cinnamon 2.x porting
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Cinnamon 2.x porting
As my personal project I would try to port Cinnamon 2.0 to Porteus.
Before I begin I have a few questions.
1) Is there a manual or tutorial for making modules from source ?
2) How can I the best deal with packages which depends on each other when I build that part myself.
Schould I use configure options to make it work and does that work without it.
I know that many packages of Cinnamon work with .pc files.
Regards,
Roelof
Before I begin I have a few questions.
1) Is there a manual or tutorial for making modules from source ?
2) How can I the best deal with packages which depends on each other when I build that part myself.
Schould I use configure options to make it work and does that work without it.
I know that many packages of Cinnamon work with .pc files.
Regards,
Roelof
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
I found this page :
But I ran into my first problem.
I downloaded the tar.gz in my home dir so it resides into homedir/downloads.
There I unpacked it and did sh autogen.sh
And there I saw this message :
So I did find gnome-common-3.10 with PPM and activated it.
But still this error message schows up.
How to solve this ?
Roelof
But I ran into my first problem.
I downloaded the tar.gz in my home dir so it resides into homedir/downloads.
There I unpacked it and did sh autogen.sh
And there I saw this message :
Code: Select all
sh autogen.sh
You need to install the gnome-common module and make
sure the gnome-autogen.sh script is in your $PATH.
But still this error message schows up.
How to solve this ?
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
Cinnamon will probably require the entire gnome base. This is the first of MANY errors you will meet while compiling.
http://ftp.acc.umu.se/pub/GNOME/sources/gnome-common/
You probably need to downgrade your gnome-common package. In which environment are you compiling cinnamon? I can upload a working gnome-3.8 porteus (it has some of the core packages updated) and you can begin compiling on top of that. This is probably the best way to start. The ISO is about 280Mb without the development module which you download separately. I started to work on getting cinnamon to run and got bored very quickly.
http://ftp.acc.umu.se/pub/GNOME/sources/gnome-common/
You probably need to downgrade your gnome-common package. In which environment are you compiling cinnamon? I can upload a working gnome-3.8 porteus (it has some of the core packages updated) and you can begin compiling on top of that. This is probably the best way to start. The ISO is about 280Mb without the development module which you download separately. I started to work on getting cinnamon to run and got bored very quickly.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Hello,
I have already a gnome-common module made by ppm so I cannot see the point to download the source.
And gnome-common is a build requirement and not a runtime requirement.
But one thing I do not understand. I have a module called gnome-common. I activated it and still the gnome-autogen.sh file cannot be found
I used find / -name "gnome-autogen.sh" and nothing showed up. Does modules not install files on the file system ?
Roelof
I have already a gnome-common module made by ppm so I cannot see the point to download the source.
And gnome-common is a build requirement and not a runtime requirement.
But one thing I do not understand. I have a module called gnome-common. I activated it and still the gnome-autogen.sh file cannot be found
I used find / -name "gnome-autogen.sh" and nothing showed up. Does modules not install files on the file system ?
Roelof
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Hello,
I succeed in making gnome-common work.
I now can find the file in my tmp directory.
But still cjs cannot find it there.
Is it now wise to to use a configure argument to make it workable.
Or must I make a module of every part and acticvate it on my real system.
Roelof
I succeed in making gnome-common work.
I now can find the file in my tmp directory.
But still cjs cannot find it there.
Is it now wise to to use a configure argument to make it workable.
Or must I make a module of every part and acticvate it on my real system.
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
Your call.I have already a gnome-common module made by ppm so I cannot see the point to download the source.
No program will look in your /tmp folder for a required library. It needs to reside in the correct file path. Compiling from source using: make install would do this.I now can find the file in my tmp directory. But still cjs cannot find it there.
Not required. If the files are in the correct place the configure script will find them.Is it now wise to to use a configure argument to make it workable.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Oke,
So I have to do :
make destinstall so I will be a part of the cinnamon module.
And I have to do make install so the next part can find it.
Do i understand this right ?
Roelof
So I have to do :
make destinstall so I will be a part of the cinnamon module.
And I have to do make install so the next part can find it.
Do i understand this right ?
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
If you downloaded the porteus module then activating it should mount it into the Porteus file system and you're good to go. If it isn't recognized then it is the wrong version.
If you want to compile gnome-common from source and use it ONLY as a compile time library then do this:
1) Unpack the source
2) Change into the source directory
3) configure using: ./configure --prefix=/usr (or ./autogen.sh --prefix=/usr)
4) build the package using: make
5) If you receive no errors then install it: make install
If you want to create a basic porteus module for future use then:
mkdir /tmp/module
./configure --prefix=/usr
make
make DESTDIR=/tmp/module install
dir2xzm /tmp/module /tmp/gnome-common.xzm
If you are not familiar with compiling packages from source, applying patches and sometimes editing source code after long internet searches, then you have a tough road ahead of you. As stated earlier cinnamon will require the entire gnome base to operate.
Can you pass me the link for where you are getting your cinnamon stuff? It may be easier to simply convert an existing distros packages.
If you want to compile gnome-common from source and use it ONLY as a compile time library then do this:
1) Unpack the source
2) Change into the source directory
3) configure using: ./configure --prefix=/usr (or ./autogen.sh --prefix=/usr)
4) build the package using: make
5) If you receive no errors then install it: make install
If you want to create a basic porteus module for future use then:
mkdir /tmp/module
./configure --prefix=/usr
make
make DESTDIR=/tmp/module install
dir2xzm /tmp/module /tmp/gnome-common.xzm
If you are not familiar with compiling packages from source, applying patches and sometimes editing source code after long internet searches, then you have a tough road ahead of you. As stated earlier cinnamon will require the entire gnome base to operate.
Can you pass me the link for where you are getting your cinnamon stuff? It may be easier to simply convert an existing distros packages.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Oke.
Thanks for the info.
I get my sources right from the Linuxmint github page.
I like to use the orginal sources.
I will try the module path because there are more packages that have dependencies for packages I build.
If I build the module the way you and the manual says can I use PPM to activate it or can I only do this manually.
I know I have a long way ahead. I tried this earlier for Foresight Linux which has Gnome 2.x running.
Roelof
Thanks for the info.
I get my sources right from the Linuxmint github page.
I like to use the orginal sources.
I will try the module path because there are more packages that have dependencies for packages I build.
If I build the module the way you and the manual says can I use PPM to activate it or can I only do this manually.
I know I have a long way ahead. I tried this earlier for Foresight Linux which has Gnome 2.x running.
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
Manually. PPM will only work with packages it downloads/creates.If I build the module the way you and the manual says can I use PPM to activate it or can I only do this manually.
I am uploading gnome-3.8 porteus as we speak. It may be easier for you to compile on this base. I'll let you know when it is ready.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Thanks,
Do I need to download this version or can I somehow change to this version of porteus-mate edition.
In the near future will there be a gnome 3.10 version.
Roelof
Do I need to download this version or can I somehow change to this version of porteus-mate edition.
In the near future will there be a gnome 3.10 version.
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
I am uploading gnome-3.8. Mate is based on gnome-2. They are two different animals. Unless the version of cinnamon you are compiling has already removed gnome-3.8 as a dependency (it is planned) then you will just give yourself a headache trying to compile it for mate. As I said, cinnamon (as far as I know) will require the ENTIRE gnome-3.x base to operate.Do I need to download this version or can I somehow change to this version of porteus-mate edition.
I'll be staying with the stable release, and following the dropline release schedule (albeit a little slower). This means in the future there may be a 3.10 version. The mainline Porteus version is my priority so this version of gnome-3.8 will not get as much attention.In the near future will there be a gnome 3.10 version.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
Hello,
I made my first module but I see something wierd.
When I look into the module I see this :
Why does Porteus made a tmp directory into my work dir which is /tmp/gnome-common/
Roelof
I made my first module but I see something wierd.
When I look into the module I see this :
Code: Select all
tmp
/tmp/bin
/tmp/bin/gnome-autogen.sh
/tmp/bin/gnome-doc-common
/tmp/share
/tmp/share/aclocal
/tmp/share/aclocal/gnome-code-coverage.m4
/tmp/share/aclocal/gnome-common.m4
/tmp/share/aclocal/gnome-compiler-flags.m4
/tmp/share/gnome-common
/tmp/share/gnome-common/data
/tmp/share/gnome-common/data/omf.make
/tmp/share/gnome-common/data/xmldocs.make
Roelof
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Cinnamon 2.x porting
Why does Porteus made a tmp directory into my work dir which is /tmp/gnome-common/
I would need to know how you made the module. I don't think porteus made the tmp directory. When you do dir2xzm you specify the base directory.
dir2xzm /tmp/gnome-common /tmp/my-new-module.xzm
The directory gnome-common will not appear in the module.
I would need to know how you made the module. I don't think porteus made the tmp directory. When you do dir2xzm you specify the base directory.
dir2xzm /tmp/gnome-common /tmp/my-new-module.xzm
The directory gnome-common will not appear in the module.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Samurai
- Posts: 112
- Joined: 06 Aug 2013, 15:32
- Distribution: Porteus 2.1 Gnome
- Location: Netherlands
Re: Cinnamon 2.x porting
I did these steps :
Like the tutorial "building a module from source" mentioned.
Roelof
Code: Select all
PKG=Cinnamon-2.0.0
TMP=/tmp/$PKG
mkdir $PKG
tar xf gnome-common-3.10.0.tar.xz
sh autogen.sh
./configure --prefix=/tmp
make
make install-strip DESTDIR=$TMP || make install DESTDIR=$TMP
pushd $TMP
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/nul
dir2xzm $TMP $PKG.xzm
Roelof