-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PA-4867) Build ruby on Solaris 11 SPARC
I couldn't find a way to to make solaris-11-sparc platform definition take into account the project, because of the way vanagon creates the Platform and then later the Project. So create a new solaris-113-sparc platform definition for native Solaris compiles. Since the name of the file contains 113, vanagon assumes that's the `os_version`. Setting the os_version from within the platform definition doesn't seem to work, so I had to specialy case some logic to check for the platform.name Ruby and all of its dependencies successfully build, but there are still some issues to be worked out.
- Loading branch information
1 parent
6f987a9
commit 8980a87
Showing
11 changed files
with
124 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# This platform definition is used to build natively on SPARC, unlike | ||
# solaris-10/11-sparc, which are cross compiled. Therefore, this definition does | ||
# not inherit from vanagon defaults. | ||
platform "solaris-11-sparc" do |plat| | ||
plat.servicedir "/lib/svc/manifest" | ||
plat.defaultdir "/lib/svc/method" | ||
plat.servicetype "smf" | ||
|
||
plat.vmpooler_template "solaris-11-sparc" | ||
plat.add_build_repository "http://solaris-11-reposync.delivery.puppetlabs.net:81", "puppetlabs.com" | ||
plat.install_build_dependencies_with "pkg install ", " || [[ $? -eq 4 ]]" | ||
|
||
packages = [ | ||
"pl-gcc10", | ||
"pl-libffi", | ||
"pl-openssl", | ||
"pl-yaml-cpp-sparc", | ||
|
||
"autoconf", | ||
"automake", | ||
"cmake", | ||
"gnu-make", | ||
"libtool", | ||
"pkg-config" | ||
] | ||
plat.provision_with("pkg install #{packages.join(' ')}") | ||
|
||
plat.provision_with %[echo "# Write the noask file to a temporary directory | ||
# please see man -s 4 admin for details about this file: | ||
# http://www.opensolarisforum.org/man/man4/admin.html | ||
# | ||
# The key thing we don\'t want to prompt for are conflicting files. | ||
# The other nocheck settings are mostly defensive to prevent prompts | ||
# We _do_ want to check for available free space and abort if there is | ||
# not enough | ||
mail= | ||
# Overwrite already installed instances | ||
instance=overwrite | ||
# Do not bother checking for partially installed packages | ||
partial=nocheck | ||
# Do not bother checking the runlevel | ||
runlevel=nocheck | ||
# Do not bother checking package dependencies (We take care of this) | ||
idepend=nocheck | ||
rdepend=nocheck | ||
# DO check for available free space and abort if there isn\'t enough | ||
space=quit | ||
# Do not check for setuid files. | ||
setuid=nocheck | ||
# Do not check if files conflict with other packages | ||
conflict=nocheck | ||
# We have no action scripts. Do not check for them. | ||
action=nocheck | ||
# Install to the default base directory. | ||
basedir=default" > /var/tmp/vanagon-noask; | ||
echo "mirror=https://artifactory.delivery.puppetlabs.net/artifactory/generic__remote_opencsw_mirror/testing" > /var/tmp/vanagon-pkgutil.conf; | ||
pkgadd -n -a /var/tmp/vanagon-noask -d http://get.opencsw.org/now all | ||
/opt/csw/bin/pkgutil -U && /opt/csw/bin/pkgutil -y -i bison || exit 1 | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters