You are not logged in.

#1 2008-09-28 17:25:16

thisab
Member
From: Brazil
Registered: 2008-04-04
Posts: 10

Recompiling de distro

I've been recompiling my entire system with the ABS packages, and while almost all packages compiled well under gcc4.3, some packages had trouble with it.

So I've discovered the 'bugs' and made some patches. I would like to share them with the community. (I don't' know if this is the right place, but I guess it is)

Nautilus (2.22.5) had problems with one include:

--- libnautilus-private/nautilus-file.h    2008-06-30 06:26:39.000000000 -0700
+++ libnautilus-private/nautilus-file.h2    2008-09-28 14:03:13.000000000 -0700
@@ -27,6 +27,7 @@
 
 #include <gtk/gtkobject.h>
 #include <gio/gio.h>
+#include <sys/stat.h>
 #include <libnautilus-private/nautilus-file-attributes.h>
 #include <libnautilus-private/nautilus-icon-info.h>

So as libnl (1.1)

--- include/netlink-local.h    2008-01-14 07:48:45.000000000 -0800
+++ include/netlink-local.h2    2008-09-25 22:40:53.000000000 -0700
@@ -26,6 +26,7 @@
 #include <sys/socket.h>
 #include <inttypes.h>
 #include <assert.h>
+#include <limits.h>
 
 #include <arpa/inet.h>
 #include <netdb.h>

And xgl (0.7.8):

--- xserver/configure.ac    2008-04-07 02:53:00.000000000 -0700
+++ xserver/configure.ac2    2008-09-28 02:00:26.000000000 -0700
@@ -1602,7 +1602,10 @@
 DIX_CFLAGS="-DHAVE_DIX_CONFIG_H"
 AC_SUBST([DIX_CFLAGS])
 
-AC_SUBST([libdir exec_prefix prefix])
+AC_SUBST([libdir])
+AC_SUBST([exec_prefix])
+AC_SUBST([prefix])
+
 
 # Man page sections - used in config utils & generating man pages
 XORG_MANPAGE_SECTIONS

I have other paches, but I couldn't find them. When I do, I'll post the rest

Last edited by thisab (2008-09-28 17:27:18)

Offline

#2 2008-09-28 18:28:08

RobertoVanto
Member
From: Chiampo(VI) - Italy
Registered: 2008-09-04
Posts: 32
Website

Re: Recompiling de distro

If you want to recompile the entire system, check out this thread: http://bbs.archlinux.org/viewtopic.php?id=48957


Love, and do what thou wilt  - St. Augustine of Hippo

Offline

#3 2008-09-28 19:00:49

thisab
Member
From: Brazil
Registered: 2008-04-04
Posts: 10

Re: Recompiling de distro

Seems to be a nice tool.
I'll try it, thanks.

Offline

#4 2008-09-28 20:18:10

obsrv
Member
From: Panevėžys
Registered: 2005-02-08
Posts: 137
Website

Re: Recompiling de distro

How did you recompile whole system? is there a performance increase?


"god@heaven$ emerge world"

              ~ Genesis on Gentoo

Offline

#5 2008-09-28 23:18:48

thisab
Member
From: Brazil
Registered: 2008-04-04
Posts: 10

Re: Recompiling de distro

I'm using the /var/abs PKGBUILD's and copying them to my home directory. Then I compile with makepkg.

It's a hard work, since I was doing it one by one, starting from the core packages and up.  Some of them are giving me some headaches, like Xgl. Xgl seems to miss headers from Xorg 7.0.2 (arch uses 7.0.3). With these problematic packages I had to search for a patch or a new version. With the Xgl I didnt find a solution yet. I wanted those compiz-fusion effects.. big_smile

Also worth to note, some PKGBUILD files have options like --without-sse that may hinder speed.:/

Aswering your question, I could notice a considerable increase in speed. Some apps open quite faster. And I'm using conservative CFLAGS (-march=core2 -fomit-frame-pointer -O2).


obsrv wrote:

How did you recompile whole system? is there a performance increase?

Offline

#6 2008-09-28 23:48:29

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Recompiling de distro

I think it would be a good idea to open bugs for these packages and attach your patch

Offline

#7 2008-09-29 02:34:09

thisab
Member
From: Brazil
Registered: 2008-04-04
Posts: 10

Re: Recompiling de distro

More :

These next fixes I found on Gentoo for compiling against gcc4.3:

Indilib 0.5
http://bugs.gentoo.org/attachment.cgi?id=155867

And musicbrainz 2.1.4
http://bugs.gentoo.org/attachment.cgi?id=138623

I'll report the bugs, I just don't know the severity. I'm setting to medium..

Last edited by thisab (2008-09-29 02:51:46)

Offline

#8 2008-09-29 05:40:38

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Recompiling de distro

Be careful with PacBuilder. I used it once and then at a later date I used a pacman command to remove orphaned packages ("pacman -Rs $(pacman -Qtdq", see wiki) and it started removing EVERYTHING.


neutral

Offline

Board footer

Powered by FluxBB