I want to test my cyrus-sasl libraries with the sample-server and sample-client programs. However there is no USE flag that matches the cyrus-sasl ./configure option of --enable-sample and when I go to the directory /usr/share/doc/cyrus-sasl-2.1.18-r2/ and type make sample-server the compile fails because the .deps directory is missing. No problems if I download and use the source from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.19.tar.gz. The --enable-sample configure option builds sasl-sample-client and sasl-sample-server programs and I can also type make sample-server or make sample-client in the cyrus-sasl-2.1.19/sample folder and get working sample-server and sample-client programs. Reproducible: Always Steps to Reproduce: 1. emerge cyrus-sasl 2. cd /usr/share/doc/cyrus-sasl-2.1.18-r2/ 3. cd examples 4. gunzip * 5. make sample-server Actual Results: # make sample-server Makefile:327: .deps/client.Po: No such file or directory Makefile:328: .deps/common.Po: No such file or directory Makefile:329: .deps/sample-client.Po: No such file or directory Makefile:330: .deps/sample-server.Po: No such file or directory Makefile:331: .deps/server.Po: No such file or directory make: *** No rule to make target `.deps/server.Po'. Stop. Expected Results: # make sample-server if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -g -O2 -MT sample-server.o -MD -MP -MF ".deps/sample-server.Tpo" \ -c -o sample-server.o `test -f 'sample-server.c' || echo './'`sample-server.c; \ then mv ".deps/sample-server.Tpo" ".deps/sample-server.Po"; \ else rm -f ".deps/sample-server.Tpo"; exit 1; \ fi sample-server.c: In function `main': sample-server.c:318: warning: implicit declaration of function `getsubopt' /bin/sh ../libtool --mode=link gcc -Wall -W -g -O2 -o sample-server sample-server.o ../lib/libsasl2.la -lresolv -lresolv gcc -Wall -W -g -O2 -o .libs/sample-server sample-server.o ../lib/.libs/libsasl2.so -ldl -lresolv -lresolv -lresolv -lresolv -Wl,--rpath -Wl,/usr/local/lib creating sample-server
Adding a package name into summary for easier recognition
Warren, Do you want the sample-{server,client} binary or you want to be able to compile them? IMO, those files in examples are for reference only. If you want to compile them, you have to bring a lot more Makefile.*/Configure.* in and I don't think we would want to do that.
No response. Closing as NEEDINFO.
Hi, Binary is fine. The shortest path to a sample-server and sample-client binary is all I need. Many thanks, Warren
Hi, I was wondering if there was any update on this? Is it something that can or cannot be done? As it stands I've listed cyrus-sasl in my package mask file and unpack and compile the source under /usr/local instead. This is because emerge and the USE flags are not providing the options I need for cyrus-sasl. It would be great if I didn't have to do this since cyrus-sasl is, so far, the only package that I am not managing with emerge. Thanks, Warren.
2.1.20-r1 has been submitted into CVS, with a "sample" local USE flag, which does "--enable-sample". It will arrive to portage mirrors in few hours. Sorry for the delay.
Sorry, my mistake - this new ebuild doesn't help.
Ok, I've just committed a (hopefully) working version of 2.1.20-r1. Please test and confirm if it works.
I've tested cyrus-sasl-2.1.20-r1 for the --enable-sample option. It works. My steps were: added "sample" to /etc/make.conf added cyrus-sasl to /etc/portage/package.keyworks remove cyrus-sasl from /etc/portage/package.mask emerge cyrus-sasl cd /usr/share/cyrus-sasl-2/examples/sample make sample-client make sample-server I am now happily copying and pasting sample server and client messages from window to window. Thank you. Warren.
It should also be unmasked by now.