openSUSE Forums > openSUSE Build Service (OBS) » Building chromium, how to pack it into rpm?

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
Page 2 of 11 1 2 34 Last »
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 24-Aug-2009, 00:29
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Building chromium, how to pack it into rpm?

Looks like you'll have to build 32 bit packages as it barfs a lot in here I installed every possible 32 bit devel package and it still barfs
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #12 (permalink)  
Old 24-Aug-2009, 00:57
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,736
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Building chromium, how to pack it into rpm?

Quote:
Originally Posted by BenderBendingRodriguez View Post
checkinstall --exclude=/ --inspect make
I've been using check install for a while, ... and never noted that set of arguments before. Neat. I'll have to try it.

A caution on the rpms built by checkinstall. Overall, they are not as good as rpms created the long way (which I do not know how to do) and you could read of people struggling with the checkinstall created rpm. Checkinstall tends to be best with rpms on one's own PC.

I use checkinstall, so I can copy it to other PC's on my LAN (where I keep the same configuration across all PCs) and if I have to do a re-install (rarely happens) than I do not have to rebuild ... I just pull out the rpm I created for myself.
Reply With Quote
  #13 (permalink)  
Old 24-Aug-2009, 01:27
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Building chromium, how to pack it into rpm?

Well the thing is oldcpu, that while i built succesfully the browser i had no makefile to "make install", so i was left with already built files which i can use and other people. So what i did is i put those built files where i'd like them to be after normal rpm installation, created the desktop file, symlink to exececutable. So while building may fail at all i can always add custom files/directories for it to be included in the rpm file (thanks to --inspect). So while normally the output of building chromium was in /home/<user>/Programs/chromium/src/out/Release/ i just copied it to /opt/google/chrome/ and then with --inspect i added it to the files that will be included in the rpm and --exclude=/ excludes every file from being included into rpm BUT i will include the directories myself won't i ??

So in practice i can make an rpm out of any file/directory, i just need one package that contains a Makefile to be able to invoke make because without that i can't create rpm from the file/directory
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #14 (permalink)  
Old 24-Aug-2009, 16:11
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Building chromium, how to pack it into rpm?

Quote:
Originally Posted by BenderBendingRodriguez
Looks like you'll have to build 32 bit packages as it barfs a lot in
here I installed every possible 32 bit devel package and it still
barfs
Hi Again
Ok I finally have it build by hand, there is a lot of prep work to do
including install of the 32bit versions of some rpms and creating
softlinks to the libraries as per their script. Having to do that and
the softlinks for the fonts pretty well excludes it from using the OBS
at the moment as far as I can see

That being said, I'm goinf to build a new 64bit 11.1 machine and run a
further test to see if I've missed anything and document the build
environment I used. Then it's just a matter of updating the source,
bzipping it, dumping in /usr/src/packages/SOURCES along with a spec
file and it should be good to go.....

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 4 days 4:05, 2 users, load average: 0.17, 0.17, 0.24
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #15 (permalink)  
Old 24-Aug-2009, 16:40
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Building chromium, how to pack it into rpm?

Yeah, it's better to pack it even more Sources alone will take 100MB and after unpacking 860 ??
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #16 (permalink)  
Old 25-Aug-2009, 20:56
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Building chromium, how to pack it into rpm?

Quote:
Originally Posted by BenderBendingRodriguez
Looks like you'll have to build 32 bit packages as it barfs a lot in
here I installed every possible 32 bit devel package and it still
barfs
Hi
Ok, have built the 64bit version added a link to flashplayer in
plugins, linked to all the fonts added a desktop file yadda yadda

I had to build on the SLED machine as I need more RAM to allocate RAM
for the VM....

Anyway, here are links to src rpm and my 64bit build;
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090824.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090824.1.x86_64.rpm>

Here is a link to the spec file to build;
<http://www.nopaste.com/p/adPVzEAmu>

You just need to rename the Release directory, add the Author and
License file directory before bzipping it up.

Since it's only the build file and other bits and not the true source
(2+ GB) I think you should write a short text file on how you built it
on your machine and the add to the Release directory before bzipping,
then update the %doc part of the %files section with the name so it
gets added to your rpm.

The whole build process could also be automated via a cron job to
update the source, build a new release, copy files, bzip and build the
rpm as well which may be worth looking at

Note technically, I think someone could ask you for your build
environment source as well, but that is unlikely.....

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 5 days 8:33, 3 users, load average: 0.96, 0.79, 0.40
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #17 (permalink)  
Old 26-Aug-2009, 10:16
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: Building chromium, how to pack it into rpm?

That's great malcolm, thanks!! Unfortunatelly i will be off to germany for about two weeks so i won't be able to do anything with that, THANK YOU ONCE AGAIN!!
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #18 (permalink)  
Old 26-Aug-2009, 15:42
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Building chromium, how to pack it into rpm?

Quote:
Originally Posted by BenderBendingRodriguez
That's great malcolm, thanks!! Unfortunatelly i will be off to germany
for about two weeks so i won't be able to do anything with that, THANK
YOU ONCE AGAIN!!
Hi
Here are the depot tools packaged up for you as well;
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/depot_tools-1.0-1.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/depot_tools-1.0-1.1.noarch.rpm>

I have also updated the source and build for chrome. Fixed it so the
flash works (forgot to enable plugins) and added the 64bit flash;
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090826.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090826.1.x86_64.rpm>

Updated spec file;
<http://www.nopaste.com/p/amYNpgJCob>

Here is a script to automate the zipping etc for the file as well
direct from the ..../src directory which is where you need to be

Code:
#!/bin/bash
NAME=google-chrome-unstable
VERSION=4.0.203
RELEASE=$NAME-$VERSION
cd out
echo "Deleting obj build directory..."
/bin/rm -Rf Release/obj/
echo "Finding and deleting .d files..."
/usr/bin/find -iname '*.d' -print -exec /bin/rm {} \;
/bin/mv Release $RELEASE
/bin/cp ../AUTHORS $RELEASE/
/bin/cp ../LICENSE $RELEASE/
echo "Bzipping file..."
/bin/tar -cf $RELEASE.tar $RELEASE
echo "Stage 1 completed"
/usr/bin/gzip $RELEASE.tar
echo "Stage 2 completed"
/usr/bin/bznew $RELEASE.tar.gz
echo "Stage 3 completed"
/bin/mv $RELEASE.tar.bz2 /usr/src/packages/SOURCES/
/bin/mv $RELEASE Release
cd ..
echo "*** Finished and moved to SOURCES ***"
Note to others, this 11.1 rpm also works with SLE11

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 2:37, 4 users, load average: 0.21, 0.20, 0.12
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #19 (permalink)  
Old 26-Aug-2009, 17:20
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Building chromium, how to pack it into rpm?

Quote:
Originally Posted by Malcolm
Quote:
Originally Posted by BenderBendingRodriguez
That's great malcolm, thanks!! Unfortunatelly i will be off to germany
for about two weeks so i won't be able to do anything with that, THANK
YOU ONCE AGAIN!!
Hi
Here are the depot tools packaged up for you as well;
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/depot_tools-1.0-1.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/depot_tools-1.0-1.1.noarch.rpm>

I have also updated the source and build for chrome. Fixed it so the
flash works (forgot to enable plugins) and added the 64bit flash;
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090826.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090826.1.x86_64.rpm>

Updated spec file;
<http://www.nopaste.com/p/amYNpgJCob>

Here is a script to automate the zipping etc for the file as well
direct from the ..../src directory which is where you need to be

Code:
#!/bin/bash
NAME=google-chrome-unstable
VERSION=4.0.203
RELEASE=$NAME-$VERSION
cd out
echo "Deleting obj build directory..."
/bin/rm -Rf Release/obj/
echo "Finding and deleting .d files..."
/usr/bin/find -iname '*.d' -print -exec /bin/rm {} \;
/bin/mv Release $RELEASE
/bin/cp ../AUTHORS $RELEASE/
/bin/cp ../LICENSE $RELEASE/
echo "Bzipping file..."
/bin/tar -cf $RELEASE.tar $RELEASE
echo "Stage 1 completed"
/usr/bin/gzip $RELEASE.tar
echo "Stage 2 completed"
/usr/bin/bznew $RELEASE.tar.gz
echo "Stage 3 completed"
/bin/mv $RELEASE.tar.bz2 /usr/src/packages/SOURCES/
/bin/mv $RELEASE Release
cd ..
echo "*** Finished and moved to SOURCES ***"
Note to others, this 11.1 rpm also works with SLE11
Hi
Now also noticed that I can add the gecko-mediaplayer libs so that you
can play mp4, quicktime etc hmmm needs to do some testing...

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 5:18, 3 users, load average: 0.29, 0.61, 0.75
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
  #20 (permalink)  
Old 27-Aug-2009, 09:29
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,700
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Building chromium, how to pack it into rpm?

[QUOTE=Malcolm][QUOTE=Malcolm]
Quote:
Originally Posted by BenderBendingRodriguez
That's great malcolm, thanks!! Unfortunatelly i will be off to germany
for about two weeks so i won't be able to do anything with that, THANK
YOU ONCE AGAIN!!
Hi
I have updated the source (yet again) build for chrome this morning
and also have enable extensions now in the startup.
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090827.1.src.rpm>
<http://www.fileden.com/files/2009/4/6/2393623/RPMs/openSUSE_11_1/google-chrome-unstable-4.0.203-svn20090827.1.x86_64.rpm>

Updated spec file;
<http://www.nopaste.com/p/a8FxhQjLG>

On this system I've installed adsweep and sticky notes extensions.
Hopefully someone has Mplayer (gnome-mplayer) installed and see how the
gecko-mediaplayer goes.

To see installed extensions in the URL bar enter;
chrome://extensions

For plugins it's like Firefox aboutlugins

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 6 days 21:03, 2 users, load average: 0.38, 0.54, 0.47
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

Reply With Quote
Reply
Page 2 of 11 1 2 34 Last »

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2