Merge ~mateus-morais/ubuntu/+source/dotnet8:dotnet-debug-symbols into ubuntu/+source/dotnet8:ubuntu/devel

Proposed by Mateus Rodrigues de Morais
Status: Merged
Merged at revision: 306f75980759e70d1e3d01736b5c0f2a43199d8c
Proposed branch: ~mateus-morais/ubuntu/+source/dotnet8:dotnet-debug-symbols
Merge into: ubuntu/+source/dotnet8:ubuntu/devel
Diff against target: 112 lines (+38/-2)
9 files modified
debian/aspnetcore-runtime-dbg-8.0.install.in (+1/-0)
debian/aspnetcore-targeting-pack-8.0.install.in (+0/-1)
debian/changelog (+8/-0)
debian/control (+18/-0)
debian/dotnet-runtime-dbg-8.0.install.in (+1/-0)
debian/dotnet-sdk-8.0.install.in (+2/-0)
debian/dotnet-sdk-dbg-8.0.install.in (+2/-0)
debian/dotnet-targeting-pack-8.0.install.in (+0/-1)
debian/rules (+6/-0)
Reviewer Review Type Date Requested Status
Julian Andres Klode (community) Approve
git-ubuntu import Pending
Review via email: mp+458951@code.launchpad.net

Description of the change

This merge proposal adds:

- .NET managed debug symbols (.PBDs) as binary packages named *-dbg-8.0, to follow the convention recommended in the upstream documentation [1].

- Moves RID-specific runtime targeting packs to the dotnet-sdk-8.0 package, also as recommended by the upstream documentation (LP: #2046458) [2].

PPA for review: https://launchpad.net/~mateus-morais/+archive/ubuntu/dotnet8-debug-symbols

[1] https://learn.microsoft.com/en-us/dotnet/core/distribution-packaging#debug-packages
[2] https://learn.microsoft.com/en-us/dotnet/core/distribution-packaging#recommended-packages

To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/aspnetcore-runtime-dbg-8.0.install.in b/debian/aspnetcore-runtime-dbg-8.0.install.in
2new file mode 100644
3index 0000000..d30661f
4--- /dev/null
5+++ b/debian/aspnetcore-runtime-dbg-8.0.install.in
6@@ -0,0 +1 @@
7+artifacts/debug-symbols/shared/Microsoft.AspNetCore.App/@major@.0.* @basedir@/shared/Microsoft.AspNetCore.App
8diff --git a/debian/aspnetcore-targeting-pack-8.0.install.in b/debian/aspnetcore-targeting-pack-8.0.install.in
9index adbdc26..0923d96 100644
10--- a/debian/aspnetcore-targeting-pack-8.0.install.in
11+++ b/debian/aspnetcore-targeting-pack-8.0.install.in
12@@ -1,2 +1 @@
13 @basedir@/packs/Microsoft.AspNetCore.App.Ref
14-@basedir@/packs/Microsoft.AspNetCore.App.Runtime.@rid@-@arch@
15diff --git a/debian/changelog b/debian/changelog
16index bad0aa7..d0825ff 100644
17--- a/debian/changelog
18+++ b/debian/changelog
19@@ -1,3 +1,11 @@
20+dotnet8 (8.0.101-8.0.1-0ubuntu2) noble; urgency=medium
21+
22+ * Added new binary packages for debug symbols.
23+ * Moved RID-specific targeting packs to dotnet-sdk-8.0 binary package
24+ per Microsoft documentation. (LP: #2046458)
25+
26+ -- Mateus Rodrigues de Morais <mateus.morais@canonical.com> Wed, 17 Jan 2024 17:30:29 -0300
27+
28 dotnet8 (8.0.101-8.0.1-0ubuntu1) noble; urgency=medium
29
30 * New upstream release
31diff --git a/debian/control b/debian/control
32index e718baf..1546eb3 100644
33--- a/debian/control
34+++ b/debian/control
35@@ -184,3 +184,21 @@ Description: Internal - targeting pack for Microsoft.NETCore.App 8.0
36 This package provides a targeting pack for Microsoft.NETCore.App 8.0
37 that allows developers to compile against and target Microsoft.NETCore.App 8.0
38 applications using the .NET SDK. This not meant for general use.
39+
40+Package: aspnetcore-runtime-dbg-8.0
41+Architecture: amd64 arm64
42+Depends: aspnetcore-runtime-8.0, ${misc:Depends}, ${shlibs:Depends}
43+Description: ASP.NET Runtime debug symbols.
44+ This package provides the PDB debug symbols for Microsoft.AspNetCore.App 8.0.
45+
46+Package: dotnet-runtime-dbg-8.0
47+Architecture: amd64 arm64
48+Depends: dotnet-runtime-8.0, ${misc:Depends}, ${shlibs:Depends}
49+Description: .NET Runtime debug symbols.
50+ This package provides the PDB debug symbols for Microsoft.NETCore.App 8.0.
51+
52+Package: dotnet-sdk-dbg-8.0
53+Architecture: amd64 arm64
54+Depends: dotnet-sdk-8.0, ${misc:Depends}, ${shlibs:Depends}
55+Description: .NET SDK debug symbols.
56+ This package provides the PDB debug symbols for the .NET 8.0 SDK.
57diff --git a/debian/dotnet-runtime-dbg-8.0.install.in b/debian/dotnet-runtime-dbg-8.0.install.in
58new file mode 100644
59index 0000000..db3660b
60--- /dev/null
61+++ b/debian/dotnet-runtime-dbg-8.0.install.in
62@@ -0,0 +1 @@
63+artifacts/debug-symbols/shared/Microsoft.NETCore.App/@major@.0.* @basedir@/shared/Microsoft.NETCore.App
64diff --git a/debian/dotnet-sdk-8.0.install.in b/debian/dotnet-sdk-8.0.install.in
65index aebc001..3d12adc 100644
66--- a/debian/dotnet-sdk-8.0.install.in
67+++ b/debian/dotnet-sdk-8.0.install.in
68@@ -1,3 +1,5 @@
69 @basedir@/metadata
70 @basedir@/sdk-manifests/@major@.0.*
71 @basedir@/sdk/@major@.0.*
72+@basedir@/packs/Microsoft.NETCore.App.Runtime.@rid@-@arch@
73+@basedir@/packs/Microsoft.AspNetCore.App.Runtime.@rid@-@arch@
74diff --git a/debian/dotnet-sdk-dbg-8.0.install.in b/debian/dotnet-sdk-dbg-8.0.install.in
75new file mode 100644
76index 0000000..3244f46
77--- /dev/null
78+++ b/debian/dotnet-sdk-dbg-8.0.install.in
79@@ -0,0 +1,2 @@
80+artifacts/debug-symbols/sdk/@major@.0.* @basedir@/sdk
81+artifacts/debug-symbols/packs @basedir@
82diff --git a/debian/dotnet-targeting-pack-8.0.install.in b/debian/dotnet-targeting-pack-8.0.install.in
83index 00ad479..42e9d2b 100644
84--- a/debian/dotnet-targeting-pack-8.0.install.in
85+++ b/debian/dotnet-targeting-pack-8.0.install.in
86@@ -1,2 +1 @@
87 @basedir@/packs/Microsoft.NETCore.App.Ref
88-@basedir@/packs/Microsoft.NETCore.App.Runtime.@rid@-@arch@
89diff --git a/debian/rules b/debian/rules
90index 142df90..9601df6 100755
91--- a/debian/rules
92+++ b/debian/rules
93@@ -104,6 +104,9 @@ override_dh_gencontrol:
94 dh_gencontrol -pdotnet-targeting-pack-8.0 -- -v$(_FULL_RUNTIME_VERSION)
95 dh_gencontrol -pdotnet-templates-8.0 -- -v$(_FULL_SDK_VERSION)
96 dh_gencontrol -pnetstandard-targeting-pack-2.1-8.0 -- -v$(_FULL_SDK_VERSION)
97+ dh_gencontrol -paspnetcore-runtime-dbg-8.0 -- -v$(_FULL_RUNTIME_VERSION)
98+ dh_gencontrol -pdotnet-runtime-dbg-8.0 -- -v$(_FULL_RUNTIME_VERSION)
99+ dh_gencontrol -pdotnet-sdk-dbg-8.0 -- -v$(_FULL_SDK_VERSION)
100
101 override_dh_install:
102
103@@ -111,6 +114,9 @@ override_dh_install:
104 install -dm 0755 $(DESTDIR)/$(DOTNETETCDIR)
105 ls artifacts/$(_RUNTIME_ARCH)/Release
106 tar xf artifacts/$(_RUNTIME_ARCH)/Release/dotnet-sdk-*-$(_RUNTIME_ID)-$(_RUNTIME_ARCH).tar.gz -C $(DESTDIR)/$(DOTNETLIBDIR)
107+ # Extract debug symbols to their own directory for easy handling
108+ mkdir -p artifacts/debug-symbols
109+ tar xf artifacts/$(_RUNTIME_ARCH)/Release/dotnet-symbols-sdk-*-$(_RUNTIME_ID)-$(_RUNTIME_ARCH).tar.gz -C artifacts/debug-symbols
110
111 # See https://github.com/dotnet/source-build/issues/2579
112 find $(DESTDIR)/$(DOTNETLIBDIR) -type f -name 'testhost.x86' -delete

Subscribers

People subscribed via source and target branches