Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314709 - net-fs/samba-3.5.2 fails to build with USE="ads winbind"
Summary: net-fs/samba-3.5.2 fails to build with USE="ads winbind"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 320941 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-11 16:10 UTC by Rainer Ruecker
Modified: 2010-05-24 22:24 UTC (History)
8 users (show)

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


Attachments
Buildlog of failed samba-build 3.5.2 (samba-3.5.2_fail.log,98.67 KB, text/plain)
2010-04-11 16:11 UTC, Rainer Ruecker
Details
Patch for samba-3.5.2.ebuid to build winbind_krb5_locator.so (samba-3.5.2.ebuild_patch,1.60 KB, patch)
2010-04-11 16:12 UTC, Rainer Ruecker
Details | Diff
Log of successful build of samba-3.5.2 with patched ebuild (samba-3.5.2_ok.log,175.71 KB, text/plain)
2010-04-11 16:13 UTC, Rainer Ruecker
Details
emerge --info for the box where samba was built with patched ebuild (emerge_info,4.63 KB, text/plain)
2010-04-11 16:15 UTC, Rainer Ruecker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Ruecker 2010-04-11 16:10:08 UTC
In Bug 313813 a typo was corrected in the samba-ebuilds so that the program "winbind_krb5_locator" should now be build when ads and winbind are present in $USE. 

However, the ebuild now fails with

make: *** No rule to make target `bin/winbind_krb5_locator'.  Stop.

According to the samba-documentation at 

http://de5.samba.org/samba/docs/man/manpages-3/winbind_krb5_locator.7.html

there is a kerberos-plugin winbind_krb5_locator.so but no program that can be run from the command-line. (I have also browsed the sources of samba-3.5.2 and earlier versions and found no hint of an executable by the name winbind_krb5_locator)

In the attachments you will find

-a build-log of the failed samba-build with samba-3.5.2.ebuild
 (samba-3.5.2_fail.log)

-a patch for the samba-3.5.2.ebuild that builds winbind_krb5_locator.so
 if $USE contains ads AND winbind
 (samba-3.5.2.ebuild_patch)

- a buildlog of a samba-build with the patched samba-3.5.2.ebuild
  (samba compiled this way is running fine here in a W2k3-Domain, so 
  "works for me")
  (samba-3.5.2_ok.log)

Please review the patch since I am not an experienced ebuild-writer.
Comment 1 Rainer Ruecker 2010-04-11 16:11:34 UTC
Created attachment 227411 [details]
Buildlog of failed samba-build 3.5.2
Comment 2 Rainer Ruecker 2010-04-11 16:12:43 UTC
Created attachment 227413 [details, diff]
Patch for samba-3.5.2.ebuid to build winbind_krb5_locator.so
Comment 3 Rainer Ruecker 2010-04-11 16:13:47 UTC
Created attachment 227415 [details]
Log of successful build of samba-3.5.2 with patched ebuild
Comment 4 Rainer Ruecker 2010-04-11 16:15:21 UTC
Created attachment 227417 [details]
emerge --info for the box where samba was built with patched ebuild
Comment 5 Jan Psota 2010-04-13 16:18:09 UTC
net-fs/samba-3.5.2-r1 with your patch applied is in my overlay
(jasiu in layman's list)
Works for me on amd64, thank you :-)
Comment 6 JTRiley 2010-04-13 16:23:12 UTC
I have the same issue with samba 3.5.2 with ads and winbind USE flags. Using the patched ebuild from Rainer gets it to build for me although I haven't tested it extensively.

~jtriley
Comment 7 Jan Psota 2010-05-21 00:27:59 UTC
Same with from-tree samba-3.5.3.ebuild
Patched version pushed to my 'jasiu' overlay.
Can somebody told me if people will use it, if I rename may overlay to 'newer'?
(or: 'revised')
Comment 8 Jan Psota 2010-05-21 00:28:56 UTC
'my' of course... ;-)
Comment 9 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-21 17:25:14 UTC
+  21 May 2010; Víctor Ostorga <vostorga@gentoo.org> samba-3.5.3.ebuild:
+  Fixing build with USE=ads winbind, patch thanks to Rainer Ruecker
+  <rainer@emdete.de> bugs #314709 #315975

Thanks for the patch :)
Comment 10 gregorcy 2010-05-21 17:26:37 UTC
so does that mean it will be added to the main tree?
Comment 11 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-21 17:54:04 UTC
(In reply to comment #10)
> so does that mean it will be added to the main tree?
> 

It's fixed in the tree in net-fs/samba-3.5.3, wait a few hours, sync, emerge and enjoy!
Comment 12 Jan Psota 2010-05-21 18:09:46 UTC
> It's fixed in the tree in net-fs/samba-3.5.3, wait a few hours, sync, emerge
> and enjoy!
> 
Fine :-)

But I still would like to know what Gentoo users and developers think about renaming my overlay to 'newer' so everybody knows, that revised ebuilds and newer package versions can be found there?
Comment 13 Steffen Hau 2010-05-22 01:25:27 UTC
Just a note: If $KRBPLUGIN would contain more then one entry, only the last one would correctly been postfixed by $PLUGINEXT.
Comment 14 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-24 22:17:28 UTC
*** Bug 320941 has been marked as a duplicate of this bug. ***
Comment 15 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-24 22:24:34 UTC
(In reply to comment #12)
> > It's fixed in the tree in net-fs/samba-3.5.3, wait a few hours, sync, emerge
> > and enjoy!
> > 
> Fine :-)
> 
> But I still would like to know what Gentoo users and developers think about
> renaming my overlay to 'newer' so everybody knows, that revised ebuilds and
> newer package versions can be found there?
> 

Sorry to say that I don't know about your overlay. Perhaps you should mail to gentoo-dev mail list or hang on #gentoo-bugs in freenode.