mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-16 05:44:46 +00:00
Debian strech #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @franklupo on GitHub (Oct 13, 2017).
error dependency
e.g depends on libicu52; however
8e191a0637/Packaging.Targets/Deb/DebPackageCreator.cs (L72)https://github.com/dotnet/dotnet-docker/blob/master/2.0/runtime-deps/stretch/amd64/Dockerfile
@qmfrederik commented on GitHub (Oct 14, 2017):
@franklupo Thanks for reporting this! Yes, different versions of Debian & Ubuntu ship with different versions of
libicuso we'll need to detect this when creating the .deb package.I'm thinking it may make sense for us to do the following:
DotNetDependenciesor something similar) in the.targetsfile depending on value of theTargetRuntimeproperty.@kekekeks thoughts?
@kekekeks commented on GitHub (Oct 14, 2017):
I guess we could set dependency alternatives for
libicu. It would look likelibicu52 | libicu57inDependsline of the control file.@kekekeks commented on GitHub (Oct 14, 2017):
See https://www.debian.org/doc/debian-policy/#document-ch-relationships
@kekekeks commented on GitHub (Oct 14, 2017):
We could also add
SkipDefaultDebianDependenciesproperty and let dependencies to be populated viaDebDependencyitem.@qmfrederik commented on GitHub (Oct 14, 2017):
@kekekeks Using dependency alternatives definitively sounds like the easier thing to do.
I think it'd be a good idea to allow the user to override the default dependencies.
Perhaps we can just define the dependencies in the
DebDependencyvariable in the.targetsfile and pass them to the task, and set theDebDependencyvariable if it is empty (that we we can avoid theSkipDefaultDebianDependenciesvariable)?@kekekeks commented on GitHub (Oct 14, 2017):
Right now
DebDependencyis used as MSBuild item name for adding extra dependencies, seehttps://github.com/qmfrederik/dotnet-packaging/blob/master/Packaging.Targets/DebTask.cs#L56
https://github.com/qmfrederik/dotnet-packaging/blob/master/Packaging.Targets/DebTask.cs#L110
They get added later here: https://github.com/qmfrederik/dotnet-packaging/blob/master/Packaging.Targets/Deb/DebPackageCreator.cs#L76
So we either need to use
SkipDefaultDebianDependenciesor support package alternatives inDebDependencyitem via something likeThe problem with this approach is that we won't be able to use
Includefrom msbuild@franklupo commented on GitHub (Oct 14, 2017):
Good idea
Best regards