Difference between revisions of "CompilingMandrake"
Romain2Boss (talk | contribs) m (Links) |
|||
Line 5: | Line 5: | ||
# download the [http://prdownloads.sourceforge.net/inkscape/inkscape-0.41-1.src.rpm?download download Inkscape's src.rpm] at sourceforge.net | # download the [http://prdownloads.sourceforge.net/inkscape/inkscape-0.41-1.src.rpm?download download Inkscape's src.rpm] at sourceforge.net | ||
# <code>urpmi gtk2-devel</code> (Inkscape 0.41 needs gtk2-devel >= 2.4.0; use [http://easyurpmi.zarb.org/ urpmi source "main"] if you haven't got a CD | # <code>urpmi gtk2-devel</code> (Inkscape 0.41 needs gtk2-devel >= 2.4.0; use [http://easyurpmi.zarb.org/ urpmi source "main"] if you haven't got a CD/DVD with devel packages) | ||
# <code>urpmi libpng3</code> (libpng >= 1.2 is needed) | # <code>urpmi libpng3</code> (libpng >= 1.2 is needed) | ||
# now the '''libgc 6.4+''' is needed. I didn't found or somewhat missed the [http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ Hans Boehm's gc] package for mdk 10.1, so i downloaded and compiled it like this: <pre>./configure --prefix=/usr | # now the '''libgc 6.4+''' is needed. I didn't found or somewhat missed the [http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ Hans Boehm's gc] package for mdk 10.1, so i downloaded and compiled it like this: <pre>./configure --prefix=/usr | ||
Line 16: | Line 16: | ||
# <code>urpmi libgtkmm2.4_1-devel</code> (also urpmi source "contrib") | # <code>urpmi libgtkmm2.4_1-devel</code> (also urpmi source "contrib") | ||
# <code>urpmi popt-devel</code> (urpmi source "main") | # <code>urpmi popt-devel</code> (urpmi source "main") | ||
# finally you can perform successfully: <code>rpm -rebuild inkscape-0.41-1.src.rpm</code> (the resulting RPM package will be probably stored as <code>/usr/src | # finally you can perform successfully: <code>rpm -rebuild inkscape-0.41-1.src.rpm</code> (the resulting RPM package will be probably stored as <code>/usr/src/RPM/RPMS/i586/inkscape-0.41-1.i586.rpm</code> according to your RPM settings) | ||
''luci'' | ''luci'' | ||
Line 23: | Line 23: | ||
I had some success with this method, but a couple issues: | I had some success with this method, but a couple issues: | ||
The RPM would die on build because of an 'unpacked file'. So I ended up adding this to the spec file in /usr/src | The RPM would die on build because of an 'unpacked file'. So I ended up adding this to the spec file in /usr/src/RPM/SPECS | ||
<code>%define _unpackaged_files_terminate_build 0</code> | <code>%define _unpackaged_files_terminate_build 0</code> |
Revision as of 15:00, 26 December 2012
Building RPM Package on Mandrakelinux 10.1
I did it with the src.rpm package available at sf.net. The RPM rebuild process is pretty similar to compiling from source but first we need to satisfy the dependencies (the fastest way is Mandrakelinux's urpmi):
- download the download Inkscape's src.rpm at sourceforge.net
urpmi gtk2-devel
(Inkscape 0.41 needs gtk2-devel >= 2.4.0; use urpmi source "main" if you haven't got a CD/DVD with devel packages)urpmi libpng3
(libpng >= 1.2 is needed)- now the libgc 6.4+ is needed. I didn't found or somewhat missed the Hans Boehm's gc package for mdk 10.1, so i downloaded and compiled it like this:
./configure --prefix=/usr
make
su
make install (in fact i used checkinstall
instead of make install
and then urpmi /usr/src/RPM/RPMS/i586/gc-6.4-1luc.i586.rpm
)
urpmi libxml2-devel
urpmi libxslt-devel
urpmi libsigc++2.0_0-devel
(to be found at urpmi source "contrib")urpmi libgtkmm2.4_1-devel
(also urpmi source "contrib")urpmi popt-devel
(urpmi source "main")- finally you can perform successfully:
rpm -rebuild inkscape-0.41-1.src.rpm
(the resulting RPM package will be probably stored as/usr/src/RPM/RPMS/i586/inkscape-0.41-1.i586.rpm
according to your RPM settings)
luci
Update by Chris Hill ubergeek at ubergeek dawt tv
I had some success with this method, but a couple issues: The RPM would die on build because of an 'unpacked file'. So I ended up adding this to the spec file in /usr/src/RPM/SPECS
%define _unpackaged_files_terminate_build 0
I had other dependencies that I could not resolve easily:
libgc.so.1 is needed by inkscape-0.42-0
perl(XML::XQL) is needed by inkscape-0.42-0
perl(XML::XQL::DOM) is needed by inkscape-0.42-0
And I had indeed installed libgc, so I ended up installing with nodeps:
rpm -ivh --nodeps inkscape-0.42-0.i586.rpm
Seems to be working fine (its so fast!!), but I might be missing perl/python support.
The HTML needs to be removed.