kubuntu-kde3.5-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2010

Re: [kubuntu-kde3.5-users] building baghira - intrepid port

From: "Timothy Pearson" <kb9vqf@...>
Date: Tue, 5 Jan 2010 14:29:18 -0600 (CST)
On Tue, January 5, 2010 11:50 am, Dexter Filmore wrote:
> Tried another approach: port the intrepid src.
>
> running dpkg-buildpackage gives me:
>
> dpkg-checkbuilddeps: Unmet build dependencies: kdebase-dev (>= 3.4)
> dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied;
> aborting.
> dpkg-buildpackage: warning: (Use -d flag to override.)
>
> I installed kdebase-kde3-dev, seems I need to point the src at that
> somehow?
>
> Dex
>
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS d--(+)@ s-:+ a C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
> w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@
> b++(+++) DI+++ D- G++ e* h>++ r* y?
> ------END GEEK CODE BLOCK------
>

Hi Dex,

You will need to open the file debian/control and modify the dependency
lines.  Anywhere it is looking for a "stock" KDE package (kdelibs4-dev,
etc.) you need to replace that with the KDE3 package instead (e.g.
kdelibs4-kde3-dev).  Also, please rename the package to baghira-kde3, and
update the debian/changelog file with the new name and either your Email
or kde3-maintainers@... as the maintainer Email address.  Update
the maintainer name field as well to match.

In the file debian/rules you will have to add this block:
DEB_CONFIGURE_INCLUDEDIR := /opt/kde3/include/kde
DEB_CONFIGURE_MANDIR := /opt/kde3/share/man
DEB_CONFIGURE_PREFIX := /opt/kde3
DEB_CONFIGURE_INFODIR := /opt/kde3/share/info

cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath
--with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)

directly after this line (if it exists):
include /usr/share/cdbs/1/rules/utils.mk

otherwise, put it after the #!/usr/bin/make -f line.

Also add the line DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/kde3
or if DEB_CONFIGURE_EXTRA_FLAGS already exists, then tack on
--prefix=/opt/kde3 to the end of that line.

At that point, you need to look around the debian/ folder and make sure
any install files with baghira in their name are renamed to include
baghira-kde3 instead.  Also, open each *.install file, and anywhere usr/
is mentioned, change it to opt/kde3/

Take one last look at the debian/rules file; make sure any references to
baghira are replaced with baghira-kde3.

Most likely you will also need to add " ,autoconf2.63, automake1.11-kde3"
(minus the quotes) to the end of the build-depends line.

Also, the acinclude.m4 changes I mentioned earlier will have to be applied.

That is actually the standard porting procedure I've been following for
the past year or more.  It works pretty well, and if you manage to get an
error tracking down the problem is usually pretty simple.

It is probably a good idea to make these changes in a copy of the package
source, then copy that folder to a new directory before compiling.  That
way your uncompiled source can be easily updated, recopied, and
recompiled, without worrying about old build files wreaking havoc.

Let me know if you need any further assistance!

Tim