News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

how to make rpm for own distro of linux

Started by TeddyKrulewich, July 24, 2006, 08:20:18 PM

Previous topic - Next topic

TeddyKrulewich

How do i make an rpm for SuSe 10. I want to make one of the nightly builds run on SuSe 10. Any help would be greatly appreciated.

TheTuxKeeper

#1
It's quite easy ;)
1. Download the svn sources (http://www.codeblocks.org/source_code.shtml)
2. run ./bootstrap and ./configure --enable-contrib
3. run make dist, this will create a .tar.gz with the sources.
4. move the source tar.gz as root to /usr/src/packages/SOURCES
    e.g. sudo mv codeblocks-trunk-r2779.tar.gz /usr/src/packages/SOURCES
5. start building the RPM with sudo rpmbuild -bb --target=i586 codeblocks.spec
6. This will create several packages in /usr/src/packages/RPMS/i586. These are:

  • codeblocks: main package
  • codeblocks-contrib: contrib plugins
  • codeblocks-devel: SDK headers
  • codeblocks-debuginfo: stripped debug information

Usually you need only the main and the contrib package. The rest is only needed if you need an precise debug output (debuginfo) or you want to write plugins (devel)
I will also update the wiki the next days (had no time yet).

Happy building and codeblocking  :D
Daniel
Nightly builds for openSUSE

TeddyKrulewich

this is as far as i got:
teddy@linux:~/cb/trunk> ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal:configure.in:63: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
aclocal:configure.in:64: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/plugins/astyle/Makefile.am: installing `./depcomp'
configure.in:63: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:64: error: possibly undefined macro: AM_PATH_WXCONFIG

TheTuxKeeper

You need these packages to compile codeblocks: wxGTK-devel, zip, subversion, update-desktop-files, make, gettext, autoconf >= 2.5, automake >= 1.7, libtool >= 1.4, m4, intltool, gcc-c++ and libstdc++-devel (that's the full list ;)).
You haven't installed wxGTK-devel at least.
Nightly builds for openSUSE

TeddyKrulewich

#4
I looked in yast2 for wxgtk-devel and it wasnt there
[EDIT] I tried building wxgtk from the wiki instuctions but i think i did somehing wrong  :(

TheTuxKeeper

wxGTK-devel is in the base repository. Perhaps you searched case sensitive ?

EDIT: it's wxGTK not wxgtk ;)
Nightly builds for openSUSE

TeddyKrulewich

i dont have it as an option for installing. I just have wxGTK and wxGTK-compat

TheTuxKeeper

It has to be there! :P
Do you use yast ? And do you use a mirror as installation source (perhaps it's broken) or the CDs/DVD ?
Try to add/replace with another mirror (SUSE Mirrors).

There has to be wxGTK, wxGTK-compat, wxGTK-devel, wxGTK-debuginfo and wxGTK-gl
Nightly builds for openSUSE

TeddyKrulewich

#8
I do use yast and i install from 5 cds
edit:
I added a mirror instalation source and now have the packages

TeddyKrulewich

i get an error message on step 5 but it seems like it is almost working :( also the stupid forum will not let me post the error message or attach a text file

TheTuxKeeper

You can paste your error message to: http://rafb.net/paste/ and then post the link ;)
Nightly builds for openSUSE


TheTuxKeeper

could you paste some more lines. That only shows that there is an error, but the error itself is some lines above ;)

EDIT: Do you use SUSE 10.1 ?
Nightly builds for openSUSE

TeddyKrulewich

i sort of use suse 10.1. It says suse 10.1 but it is actually suse 10.2 alpha 2

TeddyKrulewich

new link lots of stuff to read but some got clipped off by konsole http://rafb.net/paste/results/D7xERH11.html