Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61509 - postfix: please add support for USE=nis
Summary: postfix: please add support for USE=nis
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 85433 111221 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-24 06:55 UTC by Christian Zoffoli (RETIRED)
Modified: 2005-11-02 02:20 UTC (History)
3 users (show)

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


Attachments
just a little hack to compile postfix on uclibc env (postfix-uclibc.chris.patch,828 bytes, patch)
2004-08-24 06:57 UTC, Christian Zoffoli (RETIRED)
Details | Diff
updated patch (now it uses nis USE flag) (postfix-uclibc.chris.patch.new,817 bytes, patch)
2004-12-12 19:33 UTC, Christian Zoffoli (RETIRED)
Details | Diff
updated patch (now it uses nis USE flag) - FIXED (postfix-uclibc.chris.patch.new,817 bytes, patch)
2004-12-13 01:31 UTC, Christian Zoffoli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Zoffoli (RETIRED) gentoo-dev 2004-08-24 06:55:46 UTC
I can't compile postfix in a uclibc env.

Here is the error:

----
gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_ni.c
gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_nis.c
gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_nisplus.c
gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_open.c
dict_nis.c:42:27: rpcsvc/ypclnt.h: No such file or directory
dict_nis.c: In function `dict_nis_strerror':
dict_nis.c:99: error: `YPERR_BADARGS' undeclared (first use in this function)
dict_nis.c:99: error: (Each undeclared identifier is reported only once
dict_nis.c:99: error: for each function it appears in.)
dict_nis.c:101: error: `YPERR_RPC' undeclared (first use in this function)
dict_nis.c:103: error: `YPERR_DOMAIN' undeclared (first use in this function)
dict_nis.c:105: error: `YPERR_MAP' undeclared (first use in this function)
dict_nis.c:107: error: `YPERR_KEY' undeclared (first use in this function)
dict_nis.c:109: error: `YPERR_YPERR' undeclared (first use in this function)
dict_nis.c:111: error: `YPERR_RESRC' undeclared (first use in this function)
dict_nis.c:113: error: `YPERR_NOMORE' undeclared (first use in this function)
dict_nis.c:115: error: `YPERR_PMAP' undeclared (first use in this function)
dict_nis.c:117: error: `YPERR_YPBIND' undeclared (first use in this function)
dict_nis.c:119: error: `YPERR_YPSERV' undeclared (first use in this function)
dict_nis.c:121: error: `YPERR_NODOM' undeclared (first use in this function)
dict_nis.c:123: error: `YPERR_BADDB' undeclared (first use in this function)
dict_nis.c:125: error: `YPERR_VERS' undeclared (first use in this function)
dict_nis.c: In function `dict_nis_lookup':
dict_nis.c:186: error: `YPERR_KEY' undeclared (first use in this function)
make: *** [dict_nis.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [update] Error 1

!!! ERROR: mail-mta/postfix-2.1.3 failed.
!!! Function src_compile, Line 146, Exitcode 2
!!! compile problem

----

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r10 (x86, gcc-3.3.4, glibc-0.9.26-r5, 2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=i386 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-uclibc"
COMPILER="gcc3"
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/terminfo /etc/env.d"
CXXFLAGS="-Os -march=i386 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache nodoc noinfo noman sandbox
sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.4.11/gentoo-portage"
USE="berkdb crypt gdbm hardened hostap-noplx justify multicall mysql ncurses
pcmcia perl pic pie png python readline snmp ssl tcpd uclibc x86 zlib"
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2004-08-24 06:57:21 UTC
Created attachment 38090 [details, diff]
just a little hack to compile postfix on uclibc env

just a little hack to compile postfix on uclibc env (we don't need NIS on an
embedded)
Comment 2 SpanKY gentoo-dev 2004-11-05 20:52:35 UTC
i dont want to go hacking in a package we dont maintain ...

mail guys: can you turn this patch into 'use nis' instead of 'use uclibc' ?  nis is a valid global USE flag, and we kind of want to minimize [ab]use of USE=uclibc
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-12 19:33:16 UTC
Created attachment 45873 [details, diff]
updated patch (now it uses nis USE flag)
Comment 4 solar (RETIRED) gentoo-dev 2004-12-12 20:27:23 UTC
re comment #3 the logic for your patch is inverted.
Comment 5 Christian Zoffoli (RETIRED) gentoo-dev 2004-12-13 01:31:13 UTC
Created attachment 45885 [details, diff]
updated patch (now it uses nis USE flag) - FIXED

...now the patch has the right order ;)
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-12-25 12:41:37 UTC
Hm, looks like Tuan forgot to close this bug - the 2.2.20041221 ebuild already has this modification. Thanks for reporting.
Comment 7 Tuan Van (RETIRED) gentoo-dev 2005-03-15 16:33:12 UTC
*** Bug 85433 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-11-02 02:20:01 UTC
*** Bug 111221 has been marked as a duplicate of this bug. ***