Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] How to remove "avahi" from a sytem with gnome?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Sat Jun 02, 2007 2:59 pm    Post subject: [solved] How to remove "avahi" from a sytem with g Reply with quote

Hello, I don't want use avahi (better known as zeroconf or bonjour) any more, because it doesn't help me in my daily enviroment/work and it is a little open door in the system.


  • emerge -uDavN runs finde, rebuild some ebuilds
  • emerge -a --depclean runs fine, removes avahi itself
  • revdep-rebuild doesn't run fine, nearly every gnome-package want to be rebuild but everyone of them want a avahi-lib and of course they didn't find it (libtool error)


Any idea what to do?

<edit />
System needs a complete recompile with emerge -e world
Stupid, but I can't find a better solution.
_________________
Just you and me strogg!


Last edited by hoschi on Fri Jun 08, 2007 7:38 am; edited 1 time in total
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Sun Jun 03, 2007 10:37 pm    Post subject: Reply with quote

Did you try it with - avahi or -hal -avahi
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
vandien
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2006
Posts: 137

PostPosted: Sun Jun 03, 2007 10:57 pm    Post subject: Reply with quote

You sound like you're on the right track, can you post more info on a failed build? does revdep-rebuild start rebuilding packages or does it fail before?

Also, I'm fairly sure avahi has no impact on the system security unless you actually have the avahi service running. No info is broadcast unless /etc/init.d/avahi-daemon is started. So removing avahi support doesn't do much other than make your binaries smaller.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Sun Jun 03, 2007 11:08 pm    Post subject: Reply with quote

I had similar experience some two years ago with howl https://forums.gentoo.org/viewtopic-t-386827-highlight-libtool.html
resolved with using as-needed (I'm also nuking all the la-s from my system, which is really unsupported)
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
Annagul
Apprentice
Apprentice


Joined: 05 Dec 2004
Posts: 156
Location: San Fernando, Cádiz (Spain)

PostPosted: Mon Jun 04, 2007 8:19 am    Post subject: Reply with quote

I use Gnome and I haven't Avahi installed. The packages has been build with the USE "-avahi" and it works perfectly. What about your make.conf?
_________________
Sapere aude
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Wed Jun 06, 2007 3:17 pm    Post subject: Reply with quote

comprookie2000 wrote:
Did you try it with - avahi or -hal -avahi


only -avahi
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Wed Jun 06, 2007 3:18 pm    Post subject: Reply with quote

vandien wrote:
You sound like you're on the right track, can you post more info on a failed build? does revdep-rebuild start rebuilding packages or does it fail before?


It starts, and the ebuild fails.
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Wed Jun 06, 2007 3:19 pm    Post subject: Reply with quote

I rebuild "libtool" but there is still the same problem :(

http://www.hottemptation.org/night/libtool.png

/etc/make.conf (avahi is inside again, because without I cant start x11 any longer)
Quote:

CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

ACCEPT_KEYWORDS="x86"
USE="mmx sse sse2 nptl nptlonly sysfs sysvipc acpi fbcon unicode pcmcia usb wifi dvd cdr gnome gtk cairo glitz nautilus libnotify libsexy startup-notification dbus hal avahi dri xcomposite opengl openal alsa png jpeg tiff gif svg pdf gstreamer mpeg ogg theora vorbis flac x264 quicktime xvid ffmpeg mp3 aac encode truetype firefox cups cdinstall jabber samba sqlite ipod mono -perl -ruby -java -motif -lesstif -apm -kde -qt3 -qt4 -oss -arts -esd -xine -win32codecs -crypt -nsplugin"

VIDEO_CARDS="i810"
ALSA_CARDS="intel8x0"
ALSA_PCM_PLUGINS=""
LCD_DEVICES=""
INPUT_DEVICES="keyboard evdev"

FEATURES="parallel-fetch"
MAKEOPTS="-j2"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"

_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Wed Jun 06, 2007 8:28 pm    Post subject: Reply with quote

Also re-emrging libtool will not help, the problem are the libtool archives or the la-s. There are two ways here one of them remove the use flags (avahi bonjour and so on), unmerge avahi, emerge -N world, after that the problems start to appear or even on emerge -N world. One of the solutions is to track manually the chain of builds to be rebuild, probably starting with glib and gtk and working you up - revdep-rebuild will not help you in this fall. The second possibility is going with emerge -e world.
There are more options here, but I'll not recommend them to you as if the handling is incorrect there could be disastrous results (deleting all the la-s on the system or such).
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Wed Jun 06, 2007 9:43 pm    Post subject: Reply with quote

I will do a "emerge -e world" because I always use "emerge -uDavN world" and hope. Should I open a bug?
Because this is really $5&"23!"!!"2 :evil:

<edit />
Slayer - Raining Blood :roll: :mrgreen:
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Wed Jun 06, 2007 11:59 pm    Post subject: Reply with quote

Hi,

I suggest you (as well as Gregan Penkov does, I suppose) to consider setting LDFLAGS="-Wl,--as-needed" before doing emerge -e world. This should prevent some (probably many) packages from uselessly linking to avahi. On the other hand, not all packages are --as-needed safe. There are still packages in portage, which refuse to compile with --as-needed because of broken Makefiles...

Ah and again my usual disclaimer... don't use --as-needed with binutils prior to version 2.17 as these versions could misbehave when being used with --as-needed...

Cheers
Poly-C
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Thu Jun 07, 2007 1:08 am    Post subject: Reply with quote

hoschi wrote:
I will do a "emerge -e world" because I always use "emerge -uDavN world" and hope. Should I open a bug?
Because this is really $5&"23!"!!"2 :evil:

<edit />
Slayer - Raining Blood :roll: :mrgreen:

Hat's geklappt?

P.S. it is Reign In Blood ;)

(and yes --as-need will resolve most of these problems)
Do not post bugs about such issues, they will be resolved more or less as invalid, as the portage/paludis/pkgcore could not know about such artificial dependancies and revdep-rebuild on the other side could not find the correct order to rebuild the packages - it is exactly what I argued with ciaranm in some thread, that without --as-needed all the pkg-managers are useless (in such cases).
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Thu Jun 07, 2007 7:47 am    Post subject: Reply with quote

:(
I decided it leave at it is. Normally I a hate it to have a non perfect system, but I move this month to munich (new job and so on).
Maybe later.
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Thu Jun 07, 2007 8:54 am    Post subject: Reply with quote

Fuck off! I will do it!
Can't life with a system what is not "perfect"!
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Thu Jun 07, 2007 10:21 pm    Post subject: Reply with quote

Okay, I compiled over 500 ebuilds for over 14 hours and...it doesn't help :(

Damn!
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Thu Jun 07, 2007 10:43 pm    Post subject: Reply with quote

Ok, post your full output from revdep-rebuild -pv and the result from
Code:
find / -name "*.la" -print0| xargs -0 grep -n "avahi" -f

somewhere in pastebin or some similar service.
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Fri Jun 08, 2007 7:36 am    Post subject: Reply with quote

Oh :?
Now it compiles and everything looks well :mrgreen:
libtool seem to be a little bit confused, but now is everything fine :D


btw. 530 ebuilds in 14 hours at 30 degree temperature :roll:
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum