Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101675 - Samba's configure fails on other OSs because --with-smbmount is linux-specific.
Summary: Samba's configure fails on other OSs because --with-smbmount is linux-specific.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 102462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-07 13:38 UTC by Javier Villavicencio (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
3 users (show)

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


Attachments
moves --with-smbmoung to $(use_with kernel_linux smbmount) (smbmount.diff,540 bytes, patch)
2005-08-07 13:40 UTC, Javier Villavicencio (RETIRED)
Details | Diff
Patch for the ebuild. (samba-gfbsd-ebuild.patch,3.16 KB, patch)
2005-08-09 06:04 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Patch to fix the subins (samba-3.0.14a-subins-optional.patch,1.63 KB, patch)
2005-08-09 06:10 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
pamd file (samba.pam-include,397 bytes, text/plain)
2005-08-09 06:10 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Villavicencio (RETIRED) gentoo-dev 2005-08-07 13:38:56 UTC
The configure flag --with-smbmount is harcoded in the ebuild, not checking if
it's a linux kernel where it's installing.

Reproducible: Always
Steps to Reproduce:
1.Have a Gentoo/FreeBSD system or anything else but not Gentoo/Linux
2.emerge samba
3.read the error.

Actual Results:  
emerge fails with:
checking whether to use automount... yes
checking whether to use smbmount... configure: error: not on a linux system!



Portage 2.0.51.22
(!/usr/local/portage/gentoo-freebsd/profiles/default-bsd/fbsd/5.4/x86, gcc-,
freebsd-lib-5.4-r2, 5.4-RELEASE i386)
=================================================================
System uname: 5.4-RELEASE i386 i386
Gentoo/FreeBSD: FreeBSD version 5.4-RELEASE; Gentoo base version 0.7
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  5.4
ACCEPT_KEYWORDS="x86 x86-fbsd ~x86 ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd5.4"
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -ffast-math -frename-registers
-pipe"
CHOST="i686-gentoo-freebsd5.4"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -ffast-math
-frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/gentoo-freebsd"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86-fbsd acpi apache2 gd gdbm htdocs ipsec mpm-worker nat ncurses netgraph
perl pf postgres python readline ssl threads vhosts winbind zlib userland_BSD
kernel_FreeBSD elibc_FreeBSD"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Javier Villavicencio (RETIRED) gentoo-dev 2005-08-07 13:40:59 UTC
Created attachment 65344 [details, diff]
moves --with-smbmoung to $(use_with kernel_linux smbmount)

Not sure if this is right, i'm just guessing here, and haven't tested it yet on
Gentoo/Linux
Comment 2 Andy Kissner 2005-08-07 15:18:53 UTC
(In reply to comment #1)
> Created an attachment (id=65344) [edit]
> moves --with-smbmoung to $(use_with kernel_linux smbmount)
> 
> Not sure if this is right, i'm just guessing here, and haven't tested it yet on
> Gentoo/Linux

That patch *should* work. It looks fine to me.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 05:31:25 UTC
Setting product, CCing seemant. 
 
The patch does not work (see the ')' that there shouldn't be?), and also it 
needs a few other changes to work, I'll attach the ebuild patch, a source 
patch (that I need to test before) and a new pamd file. 
 
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 06:04:12 UTC
Created attachment 65525 [details, diff]
Patch for the ebuild.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 06:10:04 UTC
Created attachment 65527 [details, diff]
Patch to fix the subins
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 06:10:36 UTC
Created attachment 65528 [details]
pamd file
Comment 7 Christian Andreetta (RETIRED) gentoo-dev 2005-08-09 06:42:50 UTC
little thought on pam-include: it requires pam>=0.78, which isn't stable (at
now) for ia64. Using the proposed pam conf file will not function on that arch.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 06:55:53 UTC
Yes that's why I added virtual/pam to dependency for that. 
So it needs a revbump to be marked ~all for now. 
 
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-09 08:05:29 UTC
diego, the original pathch that added subins in the first place was a gentoo
patch -- so the subin_extras thing is even further away from the original -- can
I ask you to just adjust our original subins patch (found in the tarballs)?
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-09 08:34:53 UTC
Yeah it was just that doing the test patch here with a clean patch was more 
difficult to test than an incremental patch over the patches :) 
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-14 02:33:42 UTC
*** Bug 102462 has been marked as a duplicate of this bug. ***
Comment 12 Christian Andreetta (RETIRED) gentoo-dev 2005-09-01 01:12:54 UTC
samba-3.0.20 in cvs