Skip to content

Support for building on ubuntu 16.04#1194

Merged
jeffkl merged 4 commits intodotnet:xplatfrom
jeffkl:ubuntu16
Oct 17, 2016
Merged

Support for building on ubuntu 16.04#1194
jeffkl merged 4 commits intodotnet:xplatfrom
jeffkl:ubuntu16

Conversation

@jeffkl
Copy link
Copy Markdown
Contributor

@jeffkl jeffkl commented Oct 14, 2016

  • Detect the runtime in cibuild.sh
  • Pass that along to our runtime dependencies instead of it being hard coded to ubuntu 14

Closes #833

* Detect the runtime in cibuild.sh
* Pass that along to our runtime dependencies instead of it being hard coded to ubuntu 14

Closes dotnet#833
fi
}

get_current_linux_name() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment where this mess comes from (at a bare minimum in the commit notes).


Linux)
OS_ARG="Unix"
EXTRA_ARGS="$EXTRA_ARGS /p:RuntimeSystem=$(get_current_linux_name)"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can call a function like this? Huh! bash_skillz++

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just copied it from init-tools.sh, I take no credit whatsoever.

"ubuntu.14.04-x64": {}
"ubuntu.14.04-x64": {},
"ubuntu.16.04-x64": {},
"ubuntu.16.10-x64": {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we support 16.10? I thought we were just going for LTS releases, but I see 16.10 on corefx, too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16.10 is in the build tools project.json so I figured I'd add it here. I technically tested this on 16.04. Should I not include 16.10?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ahead and leave it in. We just won't advertise it :)

dir.props Outdated
<!-- Possible Values: win7 / ubuntu14.04 / osx.10.10 -->
<RuntimeSystem Condition="'$(TargetPlatformIdentifier)' == 'Windows_NT'">win7</RuntimeSystem>
<RuntimeSystem Condition="'$(TargetPlatformIdentifier)' == 'Unix'">ubuntu.14.04</RuntimeSystem>
<RuntimeSystem Condition="'$(RuntimeSystem)' == '' and '$(TargetPlatformIdentifier)' == 'Unix'">ubuntu.14.04</RuntimeSystem>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So . . . technically this check isn't required, because the externally-specified global property will prevent this assignment from having any effect. Thoughts on relying on that versus leaving this change in?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I originally was scared of removing it because I didn't want to break anything else but after I searched more I can see it's not used anywhere else. I'll remove it.

Also upgrade a few packages to released versions
@jeffkl jeffkl changed the title Support for building on ubuntu 16 Support for building on ubuntu 16.04 Oct 17, 2016
@jeffkl jeffkl merged commit 49ba488 into dotnet:xplat Oct 17, 2016
@jeffkl jeffkl deleted the ubuntu16 branch October 17, 2016 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants