Bug 70742 - mail/postfix-current: building on 6-Current gives "Unknown system type: FreeBSD 6.0-CURRENT"
Summary: mail/postfix-current: building on 6-Current gives "Unknown system type: FreeB...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 19:40 UTC by Paul Seniura
Modified: 2004-08-24 18:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Seniura 2004-08-20 19:40:20 UTC
I bet we are going to see a lot of this sort of problem.  ;)  
Here's my portupgrade log:

Fri Aug 20 13:17:23 CDT 2004
--->  Session started at: Fri, 20 Aug 2004 13:17:25 -0500
** No need to upgrade 'cyrus-sasl-2.1.19' (>= cyrus-sasl-2.1.19). (specify -f to force)
** No need to upgrade 'pcre-4.5' (>= pcre-4.5). (specify -f to force)
** No need to upgrade 'openldap-client-2.2.15' (>= openldap-client-2.2.15). (specify -f to force)
--->  Upgrade of mail/postfix-current started at: Fri, 20 Aug 2004 13:17:33 -0500
--->  Upgrading 'postfix-2.2.20040721,2' to 'postfix-2.2.20040801,2' (mail/postfix-current)
--->  Build of mail/postfix-current started at: Fri, 20 Aug 2004 13:17:33 -0500
--->  Building '/usr/ports/mail/postfix-current'
===>  Vulnerability check disabled, database not found
===>  Extracting for postfix-2.2.20040801,2
===>  Vulnerability check disabled, database not found

Fix: 

A simple patch for the original project's makedefs to add
FreeBSD.6* to the list of known systems did not work either. 
There seem to be much deeper things being changed over &
above the original project's code (something I *hate* to
see us do).  So this one's beyond me.  Sorry.


  --  thx, Paul Seniura
           System Specialist
           State of Okla. D.O.T.
How-To-Repeat: 
Simply try building this on 6-Current.
Comment 1 Paul Seniura 2004-08-20 21:37:33 UTC
I had to clean the work/ subdir, those .dot-files were
out of sync with what portupgrade wanted to do. 
Now these patches will apply cleanly and the build on
6-current gcc342 went okay.  This is a development
workstation so postfix only gets used as a e-mail client
so it's not tested much.

Basically we're "lying" to postfix's makedefs by telling
it FreeBSD.6 is just like FreeBSD.5.  ;)

I didn't know which makedefs_* to change, so I made them
all have a FreeBSD.6 entry.  In case these separate
makedefs change in the future, I whipped-up a separate
files/ patch for each one.  (Yes they all look the same
now -- but later, who knows?)

If these patches work for everyone, would someone be
able to send them up-stream to the project, please?




new file: files/patch-makedefs
===cut-here===
--- makedefs_orig	Tue Jun 15 16:41:45 2004
+++ makedefs	Fri Aug 20 15:06:41 2004
@@ -93,6 +93,8 @@
 		;;
   FreeBSD.5*)	SYSTYPE=FREEBSD5
 		;;
+  FreeBSD.6*)	SYSTYPE=FREEBSD5
+		;;
   OpenBSD.2*)	SYSTYPE=OPENBSD2
 		;;
   OpenBSD.3*)	SYSTYPE=OPENBSD3
===cut-here===


new file: files/patch-makedefs_snapshot
===cut-here===
--- makedefs.snapshot_orig	Wed Apr 14 14:18:06 2004
+++ makedefs.snapshot	Fri Aug 20 15:08:54 2004
@@ -93,6 +93,8 @@
 		;;
   FreeBSD.5*)	SYSTYPE=FREEBSD5
 		;;
+  FreeBSD.6*)	SYSTYPE=FREEBSD5
+		;;
   OpenBSD.2*)	SYSTYPE=OPENBSD2
 		;;
   OpenBSD.3*)	SYSTYPE=OPENBSD3
===cut-here===


new file: files/patch-makedefs_stable
===cut-here===
--- makedefs.stable_orig	Wed Apr 14 13:59:43 2004
+++ makedefs.stable	Fri Aug 20 15:10:13 2004
@@ -93,6 +93,8 @@
 		;;
   FreeBSD.5*)	SYSTYPE=FREEBSD5
 		;;
+  FreeBSD.6*)	SYSTYPE=FREEBSD5
+		;;
   OpenBSD.2*)	SYSTYPE=OPENBSD2
 		;;
   OpenBSD.3*)	SYSTYPE=OPENBSD3
===cut-here===


  --  thx, Paul Seniura.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-21 21:37:27 UTC
Dear maintainer of FreeBSD port mail/postfix-current, please take a look
at

http://www.freebsd.org/cgi/query-pr.cgi?q=70742

What do you think about the included patches?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

The use of the lavatory is restricted to the train's cat.
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-21 21:37:30 UTC
State Changed
From-To: open->feedback

Asked maintainer for opinion. 


Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-21 21:37:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Handle.
Comment 5 Vick Khera 2004-08-24 18:19:22 UTC
I approve of the patch as an interim solution until such time that 
Postfix directly supports FreeBSD 6.

Thanks.

Vivek Khera, Ph.D.
+1-301-869-4449 x806
Comment 6 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-24 18:51:30 UTC
State Changed
From-To: feedback->closed

Patch committed to CVS, thank you!