Summary: | Samba binaries fail to execute because they get compiled as shared objects. | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Javier Villavicencio (RETIRED) <the_paya> |
Component: | Other | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | bsd+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | samba-nopie.patch |
Description
Javier Villavicencio (RETIRED)
2005-10-23 16:09:35 UTC
I've added a simple check to gentoo-alt overlay's ebuild that tests the CHOST used. Can you give that a try and see if that works? Still links the binaries with -pie as [/usr/local/portage #] file /usr/sbin/smbd /usr/sbin/smbd: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.4, stripped And, because of that: [09:44:11] [/usr/local/portage #] smbclient -L //192.168.0.1/ -su: /usr/bin/smbclient: cannot execute binary file Just trying again to see the error: /usr/local/portage/gentoo-freebsd/net-fs/samba/samba-3.0.20b.ebuild: line 106: --with-expsam=pgsql, --with-manpages-langs=en --without-ldapsam --with-winbind --with-shared-modules=idmap_rid --disable-pie: command not found in that line: [[ ${CHOST} == *-*bsd* ]] && "${myconf} --disable-pie" and it should be [[ ${CHOST} == *-*bsd* ]] && myconf="${myconf} --disable-pie" Okay, I should *not* try to get things done without sleep, does it work after fixing the ebuild? Emerges fine, works fine: [14:18:47] [/root #] smbclient -L //192.168.0.1 -U javier Password: Domain=[STRONGHOLD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC remota ADMIN$ Disk Admin remota C$ Disk Recurso predeterminado D$ Disk Recurso predeterminado Moving that to samba team :) Created attachment 71618 [details, diff]
samba-nopie.patch
Here is the patch that works (currently on gentoo-alt overlay). Is okay if I
commit it?
good work doesn't need permission: go ahead :-) Thanks, I've committed it now. |