Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421763 - mail-mta/postfix-2.9.3: doesn't compile with FreeBSD-9
Summary: mail-mta/postfix-2.9.3: doesn't compile with FreeBSD-9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-18 13:07 UTC by Claudio Di Martino
Modified: 2012-07-05 06:16 UTC (History)
1 user (show)

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


Attachments
postfix-freebsd9.patch (postfix-freebsd9.patch,787 bytes, patch)
2012-06-19 14:49 UTC, Eray Aslan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Di Martino 2012-06-18 13:07:03 UTC
trying to emerge postfix the build fails reporting 
ATTENTION: Unknown system type: FreeBSD 9.0-r3-Gentoo

Reproducible: Always

Steps to Reproduce:
1.emerge postfix
2.
3.
Actual Results:  
>>> Configuring source in /var/tmp/portage/mail-mta/postfix-2.9.3/work/postfix-2.9.3 ...
gmake -j 8 DEBUG= CC=x86_64-gentoo-freebsd9.0-gcc 'OPT=-O2 -pipe -Wno-comment' 'CCARGS=-DHAS_PCRE -DHAS_LDAP -DUSE_TLS -DUSE_LDAP_SASL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE' 'AUXLIBS= -lpcre -lcrypt -lpthread -lpam -lldap -llber -lssl -lcrypto -lsasl2' makefiles 
gmake -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
ATTENTION:
ATTENTION: Unknown system type: FreeBSD 9.0-r3-Gentoo
ATTENTION:


Expected Results:  
emerge completes
Comment 1 Eray Aslan gentoo-dev 2012-06-19 06:27:24 UTC
From The ChangeLog:

20120225
        [...]
	FreeBSD9 is now a supported platform. Files: makedefs,
	util/sys_defs.h.

Try postfix-2.10_pre versions or wait for the next 2.9 release.
Comment 2 Claudio Di Martino 2012-06-19 14:07:26 UTC
I did a quick workaround cloning the FREEBSD8 lines in makedefs script just to make it compile. Should I use the masked 2.10_pre or is it safe to stick with my hacked one?
Comment 3 Eray Aslan gentoo-dev 2012-06-19 14:49:49 UTC
Created attachment 315761 [details, diff]
postfix-freebsd9.patch

(In reply to comment #2)
> I did a quick workaround cloning the FREEBSD8 lines in makedefs script just
> to make it compile.

Upstream patch is attached if you want to compare it with your workaround.

> Should I use the masked 2.10_pre or is it safe to stick
> with my hacked one?

Up to you.  Both should be OK.  If you do not want to upgrade frequently, stick with 2.9.x.
Comment 4 Claudio Di Martino 2012-06-20 08:16:59 UTC
Ok, I created an interim patch to my ebuild for 2.9.3.
Many thanks
Comment 5 Naohiro Aota gentoo-dev 2012-07-04 09:42:20 UTC
(In reply to comment #3)
> Created attachment 315761 [details, diff] [details, diff]
> postfix-freebsd9.patch
> 
> (In reply to comment #2)
> > I did a quick workaround cloning the FREEBSD8 lines in makedefs script just
> > to make it compile.
> 
> Upstream patch is attached if you want to compare it with your workaround.

Would you mind if I commit and apply the patch for -2.9.3?
Comment 6 Eray Aslan gentoo-dev 2012-07-04 15:42:21 UTC
(In reply to comment #5)
> Would you mind if I commit and apply the patch for -2.9.3?

No, please go ahead.  I am on vacation.  Otherwise, I could have done it myself.
Comment 7 Naohiro Aota gentoo-dev 2012-07-05 06:16:14 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Would you mind if I commit and apply the patch for -2.9.3?
> 
> No, please go ahead.  I am on vacation.  Otherwise, I could have done it
> myself.

Thanks. Patch added to the tree.