postfix 2.8.3 and linux-3.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix 2.8.3 and linux-3.0

ron-7
hi,

i tried to compile postfix 2.8.3 running a 3.0_rc2 kernel (on gentoo),
and it failed with the error:

ATTENTION: Unknown system type: Linux 3.0.0-rc2

however, when i edited the makedefs file, everything compiled just fine.
not sure if this is good fix, but either way here's my quick-and-dirty
patch ;)

--- makedefs.orig       2011-06-14 20:37:45.357441277 +0200
+++ makedefs    2011-06-14 20:42:29.657437782 +0200
@@ -260,7 +260,7 @@
      Linux.1*)  SYSTYPE=LINUX1
                 SYSLIBS="-ldb"
                 ;;
-    Linux.2*)  SYSTYPE=LINUX2
+    Linux.2*|Linux.3*) SYSTYPE=LINUX2
                 # Postfix no longer needs DB 1.85 compatibility
                 if [ -f /usr/include/db.h ]
                 then

i only did a quick search in the mailinglist's archive so if someone has
already reported this please ignore.

take care
ron
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.8.3 and linux-3.0

Benny Pedersen
On Tue, 14 Jun 2011 22:10:39 +0200, ron wrote:

> i tried to compile postfix 2.8.3 running a 3.0_rc2 kernel (on
> gentoo), and it failed with the error:
>
> ATTENTION: Unknown system type: Linux 3.0.0-rc2
>
> however, when i edited the makedefs file, everything compiled just
> fine.
> not sure if this is good fix, but either way here's my
> quick-and-dirty patch ;)


and ipv6 with postscreen still works ?

had to go back to 2.7.4 to make ipv6 work for me :(

else i see lockin problems with postscreen db files

Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.8.3 and linux-3.0

Wietse Venema
> On Tue, 14 Jun 2011 22:10:39 +0200, ron wrote:
>
> > i tried to compile postfix 2.8.3 running a 3.0_rc2 kernel (on
> > gentoo), and it failed with the error:
> >
> > ATTENTION: Unknown system type: Linux 3.0.0-rc2

Are there any major code changes involved with the change from 2.x
to 3.x, or is it just that the minor/micro version counter needed
resetting?

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.8.3 and linux-3.0

Csillag Tamas-2
On Tue, Jun 14, 2011 at 06:50:33PM -0400, Wietse Venema wrote:

> > On Tue, 14 Jun 2011 22:10:39 +0200, ron wrote:
> >
> > > i tried to compile postfix 2.8.3 running a 3.0_rc2 kernel (on
> > > gentoo), and it failed with the error:
> > >
> > > ATTENTION: Unknown system type: Linux 3.0.0-rc2
>
> Are there any major code changes involved with the change from 2.x
> to 3.x, or is it just that the minor/micro version counter needed
> resetting?

quoting from here:
https://lkml.org/lkml/2011/5/29/204

"So what are the big changes?

NOTHING. Absolutely nothing. Sure, we have the usual two thirds driver
changes, and a lot of random fixes, but the point is that 3.0 is
*just* about renumbering..."

Regards,
  cstamas
--
CSILLAG Tamas (cstamas) - http://digitus.itk.ppke.hu/~cstamas

Reply | Threaded
Open this post in threaded view
|

PATCH: postfix and linux-3.0

Wietse Venema
Csillag Tamas:
> quoting from here:
> https://lkml.org/lkml/2011/5/29/204
>
> "So what are the big changes?
>
> NOTHING. Absolutely nothing. Sure, we have the usual two thirds driver
> changes, and a lot of random fixes, but the point is that 3.0 is
> *just* about renumbering..."

In that case, the following patch will be sufficient for all supported
Postfix releases.

        Wietse

[20110614-linux3-patch]

diff -cr makedefs- makedefs
*** makedefs- Tue Mar  1 14:14:18 2011
--- makedefs Tue Jun 14 19:31:23 2011
***************
*** 340,345 ****
--- 340,372 ----
        fi;;
  esac
  ;;
+     Linux.3*) SYSTYPE=LINUX3
+ if [ -f /usr/include/db.h ]
+ then
+    : we are all set
+ elif [ -f /usr/include/db/db.h ]
+ then
+    CCARGS="$CCARGS -I/usr/include/db"
+ else
+    # On a properly installed system, Postfix builds
+    # by including <db.h> and by linking with -ldb
+    echo "No <db.h> include file found." 1>&2
+    echo "Install the appropriate db*-devel package first." 1>&2
+    echo "See the RELEASE_NOTES file for more information." 1>&2
+    exit 1
+ fi
+ SYSLIBS="-ldb"
+ for name in nsl resolv $GDBM_LIBS
+ do
+    for lib in /usr/lib64 /lib64 /usr/lib /lib
+    do
+ test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
+    SYSLIBS="$SYSLIBS -l$name"
+    break
+ }
+    done
+ done
+ ;;
       GNU.0*|GNU/kFreeBSD.[567]*)
        SYSTYPE=GNU0
  # Postfix no longer needs DB 1.85 compatibility
diff -cr src/util/sys_defs.h- src/util/sys_defs.h
*** src/util/sys_defs.h- Tue Mar  1 14:14:44 2011
--- src/util/sys_defs.h Tue Jun 14 19:37:12 2011
***************
*** 708,714 ****
   /*
    * LINUX.
    */
! #ifdef LINUX2
  #define SUPPORTED
  #include <sys/types.h>
  #define UINT32_TYPE unsigned int
--- 708,714 ----
   /*
    * LINUX.
    */
! #if defined(LINUX2) || defined(LINUX3)
  #define SUPPORTED
  #include <sys/types.h>
  #define UINT32_TYPE unsigned int
Reply | Threaded
Open this post in threaded view
|

Re: postfix 2.8.3 and linux-3.0

Ralf Hildebrandt
In reply to this post by Wietse Venema
* Wietse Venema <[hidden email]>:

> Are there any major code changes involved with the change from 2.x
> to 3.x, or is it just that the minor/micro version counter needed
> resetting?

Just the counters, according to Linus

--
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  CharitĂ© - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  [hidden email] | http://www.charite.de
           
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: postfix and linux-3.0

ron-7
In reply to this post by Wietse Venema
thank you for the quick response and patch!
ron

On 06/15/2011 01:48 AM, Wietse Venema wrote:

> Csillag Tamas:
>> quoting from here:
>> https://lkml.org/lkml/2011/5/29/204
>>
>> "So what are the big changes?
>>
>> NOTHING. Absolutely nothing. Sure, we have the usual two thirds driver
>> changes, and a lot of random fixes, but the point is that 3.0 is
>> *just* about renumbering..."
>
> In that case, the following patch will be sufficient for all supported
> Postfix releases.
>
> Wietse
>