Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105960

Summary: compiling app-misc/mc fails on samba USE flag
Product: Gentoo/Alt Reporter: Martin Novak <mn>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: VERIFIED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 122768    

Description Martin Novak 2005-09-14 05:23:10 UTC
Hi, I have successfully compiled midnight commander. But there was a problem
with collision:

existing file /usr/lib/charset.alias is not owned by this package

those files in /usr/lib/charset.alias and
/var/tmp/portage/mc-4.6.0-r14/image/usr/lib are exactly the same. Is there some
way how to specify in ebuild that we don't want to install that file? Or is it
needed always specify that overwriting system files is ok for the build?

I also tried to build it with samba support, but it has failed - looked like
there is some used samba supplied with mc, and not with macos. But I also don't
know what to do in that case. ]-;

[ebuild  N    ] app-misc/mc-4.6.0-r14  -7zip -X (-gpm) -ncurses +nls -pam -samba
-slang +unicode

Portage 2.0.52-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0
Power Macintosh)
=================================================================
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-O3 -pipe -fgcse-sm -funroll-loops -fstrict-aliasing -fsched-interblock
-falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15
-falign-loops-max-skip=15 -ffast-math -freorder-blocks
-freorder-blocks-and-partition -mpowerpc-gpopt -force_cpusubtype_ALL -mcpu=7450
-fPIC -pipe -maltivec"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -fgcse-sm -funroll-loops -fstrict-aliasing
-fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16
-falign-jumps-max-skip=15 -falign-loops-max-skip=15 -ffast-math -freorder-blocks
-freorder-blocks-and-partition -mpowerpc-gpopt -force_cpusubtype_ALL -mcpu=7450
-fPIC -pipe -maltivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc bash-completion bzip2 emboss idea ipv6 javascript nls png ppc-macos ssl
unicode zlib userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Reproducible: Always
Steps to Reproduce:
1. emerge mc
2.
3.
Comment 1 Martin Novak 2005-09-14 05:59:16 UTC
I apologize for the first part of message with /usr/lib/charset.alias - it was
heritage from custom built mc from some time ago. I compiled it successfuly, and
it's running ok. But the issue with some is still there.
Comment 2 Fabian Groffen gentoo-dev 2005-09-15 11:47:56 UTC
the charset.alias was removed after bug #71275

so what's left of this bug is the samba support.

mc depends on sys-fs/e2fsprogs-1.19, which iirc does not compile on ppc-macos at
the moment.
Comment 3 Martin Novak 2005-09-15 16:29:02 UTC
(In reply to comment #2)
> so what's left of this bug is the samba support.

error message was this:
if gcc -DHAVE_CONFIG_H -I. -I. -I..   -I../intl -I../intl -I..
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-DCONFIGDIR=\""/etc/samba"\" -O3 -pipe -fgcse-sm -funroll-loops
-fstrict-aliasing -fsched-interblock -falign-loops=16 -falign-jumps=16
-falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15
-ffast-math -freorder-blocks -freorder-blocks-and-partition -mpowerpc-gpopt
-force_cpusubtype_ALL -mcpu=7450 -fPIC -pipe -maltivec -I/usr/include/gssapi
-Wall -MT smbfs.o -MD -MP -MF ".deps/smbfs.Tpo" \
  -c -o smbfs.o `test -f 'smbfs.c' || echo './'`smbfs.c; \
then mv -f ".deps/smbfs.Tpo" ".deps/smbfs.Po"; \
else rm -f ".deps/smbfs.Tpo"; exit 1; \
fi
In file included from smbfs.c:43:
smb/includes.h:831:18: error: popt.h: No such file or directory
smbfs.c: In function 'smbfs_loaddir':
smbfs.c:710: warning: passing argument 2 of 'cli_RNetShareEnum' from
incompatible pointer type
smbfs.c: In function 'open_read':
smbfs.c:1802: warning: dereferencing type-punned pointer will break
strict-aliasing rules
make[3]: *** [smbfs.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

!!! ERROR: app-misc/mc-4.6.0-r14 failed.
!!! Function src_compile, Line 100, Exitcode 2

> mc depends on sys-fs/e2fsprogs-1.19, which iirc does not compile on ppc-macos at
> the moment.

sorry that I didn't mention it, but I changed little bit dependencies in such
way, so you can compile now even with 7zip:

CHANGED: !ppc-macos? ( >=sys-fs/e2fsprogs-1.19 )
ADDED: ppc-macos? ( 7zip? ( >=app-arch/p7zip-4.16 ) )

[ebuild   R   ] app-misc/mc-4.6.0-r14  +7zip -X (-gpm) -ncurses +nls -pam
+samba* -slang +unicode 0 kB
Comment 4 Fabian Groffen gentoo-dev 2005-09-16 00:35:36 UTC
Can you attach a patch of your ebuild changes?  I can't exactly see what you
changed now.  Thanks in advance!
Comment 5 Martin Novak 2005-09-16 03:18:26 UTC
(In reply to comment #4)
> Can you attach a patch of your ebuild changes?  I can't exactly see what you
> changed now.  Thanks in advance!

CHANGED: KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86
~ppc-macos"                                                                    
                                                   
                                                                               
                                                         
CHANGED: RDEPEND=" !ppc-macos? ( >=sys-fs/e2fsprogs-1.19 )                     
                                                                  
        ncurses? ( >=sys-libs/ncurses-5.2-r5 )                                 
                                                         
        =dev-libs/glib-2*                                                      
                                                         
        pam? ( >=sys-libs/pam-0.72 )                                           
                                                         
        gpm? ( >=sys-libs/gpm-1.19.3 )                                         
                                                         
        slang? ( >=sys-libs/slang-1.4.9-r1 )                                   
                                                         
        samba? ( >=net-fs/samba-3.0.0 )                                        
                                                         
        X? ( virtual/x11 )                                                     
                                                         
        x86? ( 7zip? ( >=app-arch/p7zip-4.16 ) )                               
                                                         
        ppc? ( 7zip? ( >=app-arch/p7zip-4.16 ) )                               
                                                         
ADDED:        ppc-macos? ( 7zip? ( >=app-arch/p7zip-4.16 ) )                   
                                                               
        amd64? ( 7zip? ( >=app-arch/p7zip-4.16 ) )" 
Comment 6 Fabian Groffen gentoo-dev 2005-09-16 10:07:51 UTC
ok, I asked for a patch, but I see what you do, and it won't be enough, because
the 7zip files will never be extracted.  I don't know why 7zip is conditional on
a few platforms, but this is insane and IMHO not the right way to enable 7zip
for only a few archs.  I think the maintainers should have a look at it, as well
as that I would like to know if e2fsprogs as a dependency can be safely dropped.

Martin: for your information, please use "diff -u original.ebuild new.ebuild"
and attach the output if you make a change in the future.

Heinrich, I'm including you as maintainer, can you elaborate on the 7zip issue a
bit?
Comment 7 meemee 2006-03-23 03:21:20 UTC
what is the status on the bug? because i encountered it today on a fresh os install
Comment 8 Fabian Groffen gentoo-dev 2006-03-23 03:46:02 UTC
which OS?  OSX 10.4.5?

IIRC mc isn't keyworded ppc-macos at the moment, right?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-04-17 12:40:46 UTC
Please, try with 4.6.1 (the broken samba patch has been dropped there). Anyway, this isn't keyworded for ppc-macos at all.