Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185888 - net-misc/dhcdbd doesnt work with net-misc/dhcp-3.1.0_rc2 (which stops NetworkManager)
Summary: net-misc/dhcdbd doesnt work with net-misc/dhcp-3.1.0_rc2 (which stops Network...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
: 186358 187027 190883 190937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-19 18:02 UTC by Kenneth Perry
Modified: 2007-09-05 12:29 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Perry 2007-07-19 18:02:31 UTC
When i upgraded to dhcp-3.1.0_rc2, networkmanager stoped resolving IPs. dhcdbd was triggering dhclient to get an IP, but dhclient wasn't answering back. This was provided by a patch with an -x option, but according to the ebuild for dhcp-3.1.0_rc2 the newest dhcpcd has its own -x which conflicts.

Right now im just staying with dhcp-3.0.6 which works with the patch.
Comment 1 Cosimo Cecchi 2007-07-20 14:08:13 UTC
I can confirm this happens also on my box (~x86).
Comment 2 Luigi 'Comio' Mantellini 2007-07-20 14:28:22 UTC
same problem here on amd64 arch.

using dhclient directly, the net-if obtains the ip from the dhcp server.

:S

Comment 3 Kenneth Perry 2007-07-20 14:54:45 UTC
Oops, forgot to say : i'm on ~amd64 too.
Comment 4 Ben 2007-07-21 02:03:19 UTC
I can confirm this bug using NM 0.6.5 an dhcp-3.1.0 on ~x86.
Reverting back to dhcp-3.0.6 worked like a charm. 
Comment 5 Steev Klimaszewski (RETIRED) gentoo-dev 2007-07-21 02:11:10 UTC
Yes, Uberlord alerted me of the issue before the bug was filed, already discussing the issue with upstream.
Comment 6 Luis Medinas (RETIRED) gentoo-dev 2007-07-23 03:43:08 UTC
url with the bug upstream added.

Uberlord can we mask dhcp-3.1 for a bit ?
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-07-23 06:39:07 UTC
I'm loath to package.mask it as 3.1 contains a lot of fixes to the dhcp server part of it.

Maybe we could rename the NetworkManager option to -X instead?
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-07-23 10:07:45 UTC
just depend on the versions of <net-misc/dhcp-3.1.0 in networkmanager
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-07-23 19:07:42 UTC
*** Bug 186358 has been marked as a duplicate of this bug. ***
Comment 10 Jonas 2007-07-23 19:13:27 UTC
To fix this, dhcdbd has to be compiled with the CFLAG option:
-DDHCLIENT_EXTENDED_OPTION_ENVIRONMENT=0

Add this to dhcdbd-2.8-r1.ebuild:
src_compile() {
        emake RPM_OPT_FLAGS="-DDHCLIENT_EXTENDED_OPTION_ENVIRONMENT=0 " || die
}

After this modification everything works fine again.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-07-29 18:46:32 UTC
*** Bug 187027 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-08-31 14:29:20 UTC
*** Bug 190883 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 06:16:34 UTC
*** Bug 190937 has been marked as a duplicate of this bug. ***
Comment 14 David Carlos Manuelda 2007-09-03 00:39:42 UTC
HOw about putting a blocker inside networkmanager.ebuild?

Something like RDEPEND="(...) !>=dhcp-3.1.0"
Comment 15 Jonas 2007-09-03 18:36:44 UTC
How about either bumping to dhcdbd 3.0 or apply my proposed patch?

Remark: In version 3.0 the code in the DHCLIENT_EXTENDED_OPTION_ENVIRONMENT areas has been removed.

Comment 16 Aquila 2007-09-04 06:55:06 UTC
What does resolved upstream mean? How will this be solved for the end user?
Comment 17 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-09-04 07:39:31 UTC
(In reply to comment #16)
> What does resolved upstream mean? How will this be solved for the end user?
> 

It generally means that fixing this is rather non-trivial, so the gentoo devs prefer to wait for upstream to solve this. 
Until that happens you can put >=net-misc/dhcp-3.1.0 in /etc/portage/package.mask, if you use dhcdbd and NetworkManager.
Comment 18 Jonas 2007-09-04 09:22:14 UTC
I would claim the issue IS solved by upstream in version 3.0 of dhcdbd and COULD also be solved for version 2.8 of dhcdbd if compiled with -DDHCLIENT_EXTENDED_OPTION_ENVIRONMENT=0 (which gives basically the same result).

Are there any objections?

Please be so kind and test either options I proposed to see if it works (not only for me).

Comment 19 Xake 2007-09-04 10:02:39 UTC
Thank you for breaking stable.
Comment 20 Steev Klimaszewski (RETIRED) gentoo-dev 2007-09-04 16:52:57 UTC
Reopening, since its now broken on stable, I am working on 3.0 but it requires a development version of dbus so I am currently patching it using avahi as a template, so its gonna take a bit to get 3.0 in the tree, but I will be fast tracking it to stable.
Comment 21 Steev Klimaszewski (RETIRED) gentoo-dev 2007-09-04 18:25:59 UTC
And regarding Comment #19, comments like that do absolutely nothing to help the situation (in fact, they make it worse, as we are doing this for free - if you want to see it get done faster, pay me to do it - I just spent 4 hours *at my actual job* working on this to get it fixed, instead of actually making money.) and remember that just because I am a dev, doesn't mean I am here for you - I am here for me first and foremost, and if it works for me great, if it works for you thats great too, but I really don't give a flying fbomb either way.  I am doing this for me not you, and unless you pay me to care, I really don't.  Thank you for being so understanding, also, since you are obviously clueless, the stablization was done without letting the maintainers know - check the bug quoted in the changelog, there is no mention of NetworkManager or dhcdbd in there, but they were stablized because of deps.  If you can't handle Gentoo, and "breaking stable" then perhaps you should head off to another distro rather than waste your time and mine with stupid comments.
Comment 22 Xake 2007-09-04 19:05:37 UTC
You mean you had nothing to do with networkmanager going stable?
Still it has been broken in ~arch since dhcp-3.1 did go there. And according to uberlord (#190775) he told you about it months ago. Does not a change in deps work at least waiting for a better/more suitable solution (which I have faith in you, the devs, will provide sooner or later) and a comment about it in the ebuild? Or have I missed something fundamental?
Comment 23 Robert Buchholz (RETIRED) gentoo-dev 2007-09-04 23:09:32 UTC
(In reply to comment #22)
> You mean you had nothing to do with networkmanager going stable?

Right.

> Still it has been broken in ~arch since dhcp-3.1 did go there. And according
> to uberlord (#190775) he told you about it months ago. 

Bug severity and priority is a function of time.


> Does not a change in deps
> work at least waiting for a better/more suitable solution (which I have faith
> in you, the devs, will provide sooner or later) and a comment about it in the
> ebuild? Or have I missed something fundamental?

Yes, you missed it causing upgrade-downgrade-cycles:
  http://forums.gentoo.org/viewtopic-t-337517.html

Comment 24 David Carlos Manuelda 2007-09-04 23:54:31 UTC
(In reply to comment #21)
> And regarding Comment #19, comments like that do absolutely nothing to help the
> situation (in fact, they make it worse, as we are doing this for free - if you
> want to see it get done faster, pay me to do it - I just spent 4 hours *at my
> actual job* working on this to get it fixed, instead of actually making money.)
> and remember that just because I am a dev, doesn't mean I am here for you - I
> am here for me first and foremost, and if it works for me great, if it works
> for you thats great too, but I really don't give a flying fbomb either way.  I
> am doing this for me not you, and unless you pay me to care, I really don't. 
> Thank you for being so understanding, also, since you are obviously clueless,
> the stablization was done without letting the maintainers know - check the bug
> quoted in the changelog, there is no mention of NetworkManager or dhcdbd in
> there, but they were stablized because of deps.  If you can't handle Gentoo,
> and "breaking stable" then perhaps you should head off to another distro rather
> than waste your time and mine with stupid comments.
> 
This is the first time I speak in a matter of this kind, but I need to say something.

Steev, you are right, you are a dev and you don't make money with this, but I don't think you are here just for yourself (I am a dev too :) ), please calm down and just ignore those newbies.

On the other hand, as a user, I want to say to Peter Hjalmarsson something: Please, don't blame anyone, a linux distro is powered by developers all arround the world and people who provide "feedback" opening bugs, requesting interesting things, etc... and users should never blame on any product, because you even didn't pay anything for what you have anyways...

To sum up, if you don't have anything to contribute to an open project, just don't say anything, specially when talking to devs :)
Comment 25 Steev Klimaszewski (RETIRED) gentoo-dev 2007-09-05 03:06:52 UTC
dhcdbd 3.0 is now in the tree, this can be considered fixed, I've opened another bug for stablizing it.