Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503322 - mail-mta/postfix - fix cross compiling
Summary: mail-mta/postfix - fix cross compiling
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-03-03 15:32 UTC by Hristo Venev
Modified: 2014-08-07 06:10 UTC (History)
0 users

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


Attachments
Patch on postfix-install (cross.patch,1.38 KB, patch)
2014-03-03 15:32 UTC, Hristo Venev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hristo Venev 2014-03-03 15:32:19 UTC
--- a/mail-mta/postfix/postfix-2.11.0.ebuild
+++ b/mail-mta/postfix/postfix-2.11.0.ebuild
@@ -181,6 +181,11 @@
 }
 
 src_install () {
+	if [[ "${CHOST}" == "${CBUILD}" ]] ; then
+		postconf=bin/postconf
+	else
+		postconf=/usr/sbin/postconf
+	fi
 	local myconf
 	use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \
 		html_directory=\"/usr/share/doc/${PF}/html\""
@@ -194,6 +199,7 @@
 		mailq_path="/usr/bin/mailq" \
 		newaliases_path="/usr/bin/newaliases" \
 		sendmail_path="/usr/sbin/sendmail" \
+		postconf="${postconf}"
 		${myconf} \
 		|| die "postfix-install failed"

Requires postfix on CBUILD if CHOST is not CBUILD. Maybe make postfix depend on postfix build time if CBUILD!=CHOST?
There is also a patch on postfix itself (will upload in a few minutes)

######## ########     ###    ########  ######  ##     ##         
##       ##     ##   ## ##      ##    ##    ## ##     ##         
##       ##     ##  ##   ##     ##    ##       ##     ##         
######   ########  ##     ##    ##    ##       #########         
##       ##        #########    ##    ##       ##     ##         
##       ##        ##     ##    ##    ##    ## ##     ##         
######## ##        ##     ##    ##     ######  ##     ## ####### 

##     ##  ######  ######## ########  
##     ## ##    ## ##       ##     ## 
##     ## ##       ##       ##     ## 
##     ##  ######  ######   ########  
##     ##       ## ##       ##   ##   
##     ## ##    ## ##       ##    ##  
 #######   ######  ######## ##     ## 


Reproducible: Always
Comment 1 Hristo Venev 2014-03-03 15:32:54 UTC
Created attachment 371646 [details, diff]
Patch on postfix-install
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-04 00:32:42 UTC
(In reply to Hristo Venev from comment #0)
> ######## ########     ###    ########  ######  ##     ##         

Don't do that again.
Comment 3 Hristo Venev 2014-05-25 15:28:02 UTC
Bump

I will bump EVERY DAY until this bug gets fixed.
Comment 4 Hristo Venev 2014-05-26 11:06:00 UTC
BUMP
Comment 5 Eray Aslan gentoo-dev 2014-05-26 11:56:38 UTC
(In reply to Hristo Venev from comment #4)
> BUMP

You are not helping your case.  Please don't do it again.
Comment 6 Hristo Venev 2014-05-26 12:22:53 UTC
Should I update the patch for 2.11.1?

How do I set a dependency if CHOST != CBUILD?
Comment 7 Hristo Venev 2014-07-05 10:15:20 UTC
bump
Comment 8 Eray Aslan gentoo-dev 2014-08-07 06:10:40 UTC
epatch_user added to postifx-2.11.1-r1 and postfix-2.12_pre20140801.  You can patch postfix to your heart's content.

I am not going to support your patch regarding postconf in postfix-install.  There is no guarantee that the already installed native postconf command supports the use cases in the newly built postfix-install.  It might work if they are "similar enough" but that is not something we can reasonably support.  Noone can say what "similar enough" is and its definition will change over time.

Closing as WONTFIX.