Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65695 - postfix 2.1.5 fails to install with mv cannot stat
Summary: postfix 2.1.5 fails to install with mv cannot stat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-28 08:53 UTC by Haroon Rafique
Modified: 2004-09-28 11:23 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,2.28 KB, text/plain)
2004-09-28 08:54 UTC, Haroon Rafique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haroon Rafique 2004-09-28 08:53:47 UTC
Recently tried to install postfix 2.1.5. The install ended with:

>>> dobin: making auxiliary/qshape/qshape.pl executable...
mv: cannot stat `/var/tmp/portage/postfix-2.1.5-r1/image//usr/share/doc/postfix-
2.1.5-r1/defaults/{*.cf,post*-*}': No such file or directory
mbox
/var/tmp/portage/postfix-2.1.5-r1/image//usr/sbin/postconf: fatal: open /var/tmp
/portage/postfix-2.1.5-r1/image//etc/postfix/main.cf for reading: No such file o
r directory

!!! ERROR: mail-mta/postfix-2.1.5-r1 failed.
!!! Function src_install, Line 201, Exitcode 1
!!! postconf failed
!!! If you need support, post the topmost build error, NOT this status message.

It was complaining about the following line in the .ebuild:

mv "${D}/usr/share/doc/${PF}/defaults/"{*.cf,post*-*} "${D}/etc/postfix"

I fixed it by replacing the above line with:

bash -c "mv ${D}/usr/share/doc/${PF}/defaults/{*.cf,post*-*} ${D}/etc/postfix"

Obviously, that is not the desired fix but at least it let me continue installing. Someone else can figure out why the original line didn't work.

Can anyone else reproduce this?
Comment 1 Haroon Rafique 2004-09-28 08:54:48 UTC
Created attachment 40635 [details]
emerge --info
Comment 2 Tuan Van (RETIRED) gentoo-dev 2004-09-28 09:48:16 UTC
would you please try:
mv ${D}/usr/share/doc/${PF}/defaults/{*.cf,post*-*} ${D}/etc/postfix
and report if it works?
Comment 3 Haroon Rafique 2004-09-28 09:55:31 UTC
Yes, that works.
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-09-28 11:23:39 UTC
fixed in cvs. Thanks for reporting.