Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Enable building distro agnostic runtime RPM packages - #3677

Merged
eerhardt merged 5 commits into
dotnet:masterfrom
drneve:fix_rpm
Feb 16, 2018
Merged

eerhardt merged 5 commits into
dotnet:masterfrom
drneve:fix_rpm

Conversation

@drneve

@drneve drneve commented Feb 8, 2018

Copy link
Copy Markdown

No description provided.

@dnfclas

dnfclas commented Feb 8, 2018 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@drneve

drneve commented Feb 8, 2018

Copy link
Copy Markdown
Author

test Alpine.3.6 x64 Debug Build

@joshfree

joshfree commented Feb 9, 2018

Copy link
Copy Markdown
Member

@dleeapho

@dleeapho

dleeapho commented Feb 9, 2018

Copy link
Copy Markdown

@MichaelSimons PTAL

Comment thread dir.props Outdated
<SharedHostInstallerFile Condition="'$(InstallerExtension)' == '.deb'">$(SharedHostInstallerStart)$(SharedFrameworkNugetVersion)-$(TargetArchitecture)$(InstallerExtension)</SharedHostInstallerFile>
<HostFxrInstallerFile Condition="'$(InstallerExtension)' == '.deb'">$(HostFxrInstallerStart)$(HostResolverVersion)-$(TargetArchitecture)$(InstallerExtension)</HostFxrInstallerFile>
<SharedFrameworkInstallerFile Condition="'$(InstallerExtension)' == '.deb'">$(SharedFrameworkInstallerStart)$(SharedFrameworkNugetVersion)-$(TargetArchitecture)$(InstallerExtension)</SharedFrameworkInstallerFile>
<!-- Runtime Rpm packages are distro version agnostic -->

This comment was marked as spam.

This comment was marked as spam.

"license": {
"type": "MIT",
"full_text": "Copyright (c) 2015 Microsoft\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
"full_text": "Copyright (c) 2017 Microsoft\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."

This comment was marked as spam.

This comment was marked as spam.

"long_description": ".NET Core is a development platform that you can use to build command-line\napplications, microservices and modern websites. It is open source,\ncross-platform and is supported by Microsoft. We hope you enjoy using it!\nIf you do, please consider joining the active community of developers that are\ncontributing to the project on GitHub (https://github.com/dotnet/core).\nWe happily accept issues and PRs.",
"homepage": "https://github.com/dotnet/core",
"short_description": "%RUNTIME_DEPS_RPM_PACKAGE_NAME% %RUNTIME_DEPS_VERSION%",
"long_description": ".NET Core is a development platform that you can use to build command-line applications, microservices and modern websites. This package installs all the system dependencies for Dotnet Core Runtime.",

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread buildpipeline/Core-Setup-Linux-BT.json Outdated
},
"inputs": {
"filename": "docker",
"arguments": "run --rm $(DockerCommonRunArgs_Rhel7) $(PB_GitDirectory)/Tools/msbuild.sh $(PB_GitDirectory)/src/pkg/packaging/dir.proj $(AdditionalMSBuildPackagingArguments) $(DistroSpecificMSBuildArguments) /p:OutputRid=fedora.26-$(PB_TargetArchitecture)",

This comment was marked as spam.

<PropertyGroup>
<IsRPMBasedDistro Condition="'$(InstallerExtension)' == '.rpm'">true</IsRPMBasedDistro>
<BuildRpmPackage Condition="'$(IsRPMBasedDistro)' == true and '$(TargetArchitecture)' == 'x64'">true</BuildRpmPackage>
<BuildRuntimeRpms>true</BuildRuntimeRpms>

This comment was marked as spam.

This comment was marked as spam.

Comment thread src/pkg/packaging/rpm/package.targets Outdated
</PropertyGroup>

<PropertyGroup>
<rpmLayoutDirectory>$(RpmIntermediatesDir)/rpmLayoutDirectory/</rpmLayoutDirectory>

This comment was marked as spam.

Comment thread src/pkg/packaging/rpm/package.targets Outdated

<!-- Replace config json variables -->
<ItemGroup>
<SharedFrameworkTokenValue Include="%RUNTIME_DEPS_RPM_PACKAGE_NAME%">

This comment was marked as spam.

This comment was marked as spam.

"full_text": "Copyright (c) 2017 Microsoft\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
},

"rpm_dependencies":[{

This comment was marked as spam.

This comment was marked as spam.

@eerhardt

Copy link
Copy Markdown
Member
    "package_version":"1.0.0.0",

Do we need to change this version since we are adding dependencies to this package?


Refers to: src/pkg/packaging/rpm/dotnet-sharedhost-rpm_config.json:16 in caa9476. [](commit_id = caa9476, deletion_comment = False)

@rakeshsinghranchi

Copy link
Copy Markdown
Member

@rakeshsinghranchi

Copy link
Copy Markdown
Member
   "package_version":"1.0.0.0",

Do we need to change this version since we are adding dependencies to this package?

@eerhardt ,
Package version in config json file is always overridden by FPM command line argument. Thus, it is not required to update the package version value in json file.
https://github.com/dotnet/core-setup/blob/master/src/pkg/packaging/rpm/package.targets#L79

@drneve
drneve force-pushed the fix_rpm branch 3 times, most recently from c714564 to dee4fb3 Compare February 15, 2018 19:17
@drneve

drneve commented Feb 15, 2018

Copy link
Copy Markdown
Author

Does someone have more comments? I would like to test the packages after official building. Could someone merge the pr? @joshfree @eerhardt @MichaelSimons

@eerhardt eerhardt added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Feb 15, 2018
@eerhardt

Copy link
Copy Markdown
Member

The official builds are currently broken. Let's not add more fuel to the fire with this change just yet. I will take off the NO MERGE label once we get an official build passing.

@eerhardt eerhardt removed the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Feb 16, 2018
@eerhardt

Copy link
Copy Markdown
Member

We have a core-setup build out now. Removing the No Merge label.

@drneve

drneve commented Feb 16, 2018

Copy link
Copy Markdown
Author

Can you merge now? @eerhardt

@eerhardt

Copy link
Copy Markdown
Member
    "arguments": "run --rm $(DockerCommonRunArgs_Rhel7) $(PB_GitDirectory)/Tools/msbuild.sh $(PB_GitDirectory)/publish/publish.proj /p:PublishType=$(PB_PublishType) $(DistroSpecificMSBuildArguments) $(DistroSpecificMSBuildPublishArgs)",

Should this use CommonDockerCommandToPublishRuntimeDepRPMPackage? I think it looks the same.


Refers to: buildpipeline/Core-Setup-Linux-BT.json:582 in a094ee4. [](commit_id = a094ee4, deletion_comment = False)

@@ -0,0 +1,40 @@
{

This comment was marked as spam.

This comment was marked as spam.

@eerhardt

Copy link
Copy Markdown
Member

I had a couple more questions.

I can't merge this until the conflicts are resolved.

@eerhardt

Copy link
Copy Markdown
Member

I can't merge this until the conflicts are resolved.

Sorry, I didn't notice my merge button was set on rebase. The conflicts are only with the rebase option.

I can merge now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants