Bug 494243

Summary: Enabling server portions in spec file breaks build
Product: [Fedora] Fedora Reporter: Nathaniel McCallum <nathaniel>
Component: samba4Assignee: Matthew Barnes <mbarnes>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: mbarnes, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-06 18:21:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nathaniel McCallum 2009-04-05 23:14:54 UTC
I'm attempting to test samba4 for various applications.  I'd like to use the rpms to do it.  When I enable the server parts of the spec file, the build breaks.

I enable the server portions by doing this:
%define enable_samba4  1
%define enable_client  1
%define enable_common  1
%define enable_python  1
%define enable_winbind 0
%define enable_talloc  1
%define enable_tdb     1
%define enable_tevent  1
%define enable_ldb     1

Commenting out the following lines in samba4_common make the build succeed:
#%{_bindir}/ad2oLschema
#%{_bindir}/oLschema2ldif

Even after the build succeeds, the resulting samba4-python rpm is 120MB!  Each .so in that package is roughly 15MB.

Comment 1 Matthew Barnes 2009-04-06 18:21:17 UTC
Confirming the build break and the fix.  We explicitly remove those binaries in the %install phase, so they shouldn't be listed in %files.

Fixed in samba-4.0.0-14alpha7.