| View previous topic :: View next topic |
| Author |
Message |
ryz n00b

Joined: 06 Feb 2005 Posts: 11
|
Posted: Sun Feb 06, 2005 12:10 pm Post subject: strange pam -0.77-r6 ebuild problem SOLVED |
|
|
I have problems with installing pam -0.77-r6. I have located where the problem is but I can't for my life understand how it could be a problem.
So here is the faling line in the /Linux-PAM-0.77/module makefile
| Code: | | MODDIRS=$(shell /bin/ls -d pam_*/Makefile | cut -f1 -d/) |
This line for some reason sets MODDIRS to an emty string rather then all modules. The funny thing is that it only fails when running it with ebuild or emerge. If I run Make my self everything works as expected.
I have modified the Makefile script to easier see whats goes wrong. This is part of my modified Makefile
| Code: | # $Id: Makefile,v 1.3 2001/12/09 22:15:11 agmorgan Exp $
#
# Makefile
#
# This makefile controls the build process of shared and static PAM modules.
#
#
include ../Make.Rules
MODDIRS=$(shell /bin/ls -d pam_*/Makefile | cut -f1 -d/)
all:
echo $(MODDIRS)
/bin/ls -d pam_*/Makefile | cat
/bin/ls -d pam_*/Makefile | cut -f1
/bin/ls -d pam_*/Makefile | cut -f1 -d/
jalla: |
and here is the output from the ebuild
| Quote: | make[1]: Entering directory `/var/tmp/portage/pam-0.77-r6/work/Linux-PAM-0.77/modules'
echo
/bin/ls -d pam_*/Makefile | cat
pam_access/Makefile
pam_chroot/Makefile
pam_console/Makefile
pam_cracklib/Makefile
pam_debug/Makefile
pam_deny/Makefile
pam_env/Makefile
pam_filter/Makefile
pam_ftp/Makefile
pam_group/Makefile
pam_issue/Makefile
pam_lastlog/Makefile
pam_limits/Makefile
pam_listfile/Makefile
pam_localuser/Makefile
pam_mail/Makefile
pam_mkhomedir/Makefile
pam_motd/Makefile
pam_nologin/Makefile
pam_permit/Makefile
pam_postgresok/Makefile
pam_pwdb/Makefile
pam_radius/Makefile
pam_rhosts/Makefile
pam_rootok/Makefile
pam_rps/Makefile
pam_securetty/Makefile
pam_shells/Makefile
pam_stack/Makefile
pam_stress/Makefile
pam_succeed_if/Makefile
pam_tally/Makefile
pam_time/Makefile
pam_timestamp/Makefile
pam_unix/Makefile
pam_userdb/Makefile
pam_warn/Makefile
pam_wheel/Makefile
pam_xauth/Makefile
/bin/ls -d pam_*/Makefile | cut -f1
/bin/ls -d pam_*/Makefile | cut -f1 -d/
make[1]: Leaving directory `/var/tmp/portage/pam-0.77-r6/work/Linux-PAM-0.77/modules'
|
As you can se the pipe to cut does not work when compiling with ebuild but it works fine if just runnig make by hand, why?
Last edited by ryz on Tue Feb 08, 2005 10:05 pm; edited 1 time in total |
|
| Back to top |
|
 |
were n00b

Joined: 12 Oct 2004 Posts: 3
|
Posted: Tue Feb 08, 2005 2:53 pm Post subject: |
|
|
I ran into the same problem.
Just tried
FEATURES="-sandbox" ebuild pam-0.77-r6.ebuild install
and worked for me.
Looks like "cut" does not like the sandbox, but dont ask me why  |
|
| Back to top |
|
 |
ryz n00b

Joined: 06 Feb 2005 Posts: 11
|
Posted: Tue Feb 08, 2005 10:13 pm Post subject: |
|
|
I have found an other solution.
cut does not like to be compiled with -Os. At least not when running under sandbox if you are correct. When I recompiled coreutils with -O2 instead of -Os the error dissapeard. se bug #8103 |
|
| Back to top |
|
 |
|