[SERVER-400] SConstruct references freebsd7 - breaks build on freebsd8 Created: 01/Nov/09  Updated: 12/Jul/16  Resolved: 02/Nov/09

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.1.3

Type: Bug Priority: Major - P3
Reporter: Ivan Voras Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD, FreeBSD 8


Participants:

 Description   

MongoDB builds fine on FreeBSD but SConstruct needs a one-line patch for FreeBSD versions newer than 7.

The patch makes it compile on all versions of FreeBSD, which is OK since the defaults given in the configuration have not changed in the last 20-ish years and will with extremely high probability never change.

Tested on: FreeBSD 8.0-RC2.

— ../ori/mongodb-mongo-e316c78/SConstruct 2009-10-22 17:22:10.000000000 +0200
+++ SConstruct 2009-11-01 23:50:01.000000000 +0100
@@ -374,7 +374,7 @@
env.Append( CPPDEFINES=[ "_linux" , "sunos_" ] )
env.Append( LIBS=["socket","resolv"] )

-elif "freebsd7" == os.sys.platform:
+elif os.sys.platform.startswith("freebsd"):
nix = True
freebsd = True
env.Append( CPPPATH=[ "/usr/local/include" ] )


Generated at Thu Feb 08 02:53:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.