You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crosscompile for FreeBSD produce wrongly named ILAsm, ILDAsm, TestHost and native.System.IO.Ports nupkg's #55133
Checking inside they contain native FreeBSD binaries which after changing names (and files inside) from linux to freebsd, repacking them, etc. produde fully working SDK which can compile nativly on FreeBSD (big discussion is in #14537
So it looks like, those are only wrongly named, even they are crosscompiled for FreeBSD.
Configuration
Tag tested HEAD detached at v6.0.0-preview.5.21301.5
Host was Ubuntu 20.04
Activity
ghost added
untriagedNew issue has not been triaged by the area owner
This was a useful piece of info, thanks for pointing it out at the perfect time! 😉
It will be fixed by current state of #54914 + commit from #54914 (comment).
I have tested it with the latest FreeBSD and Alpine Linux arm64 cross-compile docker tags when making that commit, and it builds all the nupkg files with correct names under artifacts/packages, without needing to explicitly pass /p:OutputRid=... on command line as we have in Auzre Pipeline .yml files.
ps - after #54914 is completed and merged, I think we should consider renaming PackageRID to RestorePackageRID and OutputRid to ShippingPackageRID to make it self-explanatory and avoid any future confusions / mishaps.
ps - after #54914 is completed and merged, I think we should consider renaming PackageRID to RestorePackageRID and OutputRid to ShippingPackageRID to make it self-explanatory and avoid any future confusions / mishaps.
Would it make sense to follow the Host / Runtime / Target naming schema and use
I can't find the thread in which we discussed the nomenclature anymore but aside from that, do we expect people to pass in different values for these properties? If not, we might not want to expose them, prefix them with an underscore and care slightly less about their distinct naming.
ps - after #54914 is completed and merged, I think we should consider renaming PackageRID to RestorePackageRID and OutputRid to ShippingPackageRID to make it self-explanatory and avoid any future confusions / mishaps.
@am11 would you mind opening a new issue with details on the remaining work in regards to renaming properties and consolidating properties further to reduce complexity and redundancy?
I can't find the thread in which we discussed the nomenclature anymore but aside from that, do we expect people to pass in different values for these properties? If not, we might not want to expose them, prefix them with an underscore and care slightly less about their distinct naming.
They are somewhat necessary evils. Native assets - like the ones in this package - often rely on a build agent which runs some tool, hence the platform - an OS that hosts the code, and the type you are targeting. For packages, you almost always produce target OS ones, but you'd likely need to surface both. There's prior art in the separation with the cross DAC and crossgen2. Build/platform props - which likely are mostly just for tools/tasks used inside the build host - should likely be internal and hopefully auto-inferred.
@am11 would you mind opening a new issue with details on the remaining work in regards to renaming properties and consolidating properties further to reduce complexity and redundancy?
Sure, I will first try it on few VM's and dockers then come up with a bit concrete proposal. On top of the huge platform matrix and logic to derive RID, it gets a little complicated when one of the public properties is overridden from outside so making sure whether search-replace of these properties will actually work. :)
Consolidations ideas:
remove the ability to override properties (like OutputRid), that has only one correct value during the build, and the same value is computed in props.
I think we should define their roles as they are not self-explanatory (or better use different name). as I am fairly certain we don't use the same meaning as, e.g. autoconf:
in short, our target (OutputRid) is their host and our host (PackageRID) is their build in cross-compilation. Therefore, continue using "some other prefixed"-RID name would likely make things easier to remember. :)
We do use the word "BuildRID" in some scripts initialized with OutputRid, but it does not mean anything outside of that script.
ghost locked as resolved and limited conversation to collaborators on Aug 5, 2021
Activity
am11 commentedon Jul 4, 2021
This was a useful piece of info, thanks for pointing it out at the perfect time! 😉
It will be fixed by current state of #54914 + commit from #54914 (comment).
I have tested it with the latest FreeBSD and Alpine Linux arm64 cross-compile docker tags when making that commit, and it builds all the nupkg files with correct names under
artifacts/packages, without needing to explicitly pass/p:OutputRid=...on command line as we have in Auzre Pipeline .yml files.cc @ViktorHofer, @ericstj
ps - after #54914 is completed and merged, I think we should consider renaming
PackageRIDtoRestorePackageRIDandOutputRidtoShippingPackageRIDto make it self-explanatory and avoid any future confusions / mishaps.ViktorHofer commentedon Jul 6, 2021
Would it make sense to follow the
Host/Runtime/Targetnaming schema and useinstead?
jkoritzinsky commentedon Jul 6, 2021
I think the split is Build/Host/Target IIRC.
If we do go that route, we need to make sure we stay consistent with the definitions.
ViktorHofer commentedon Jul 6, 2021
I can't find the thread in which we discussed the nomenclature anymore but aside from that, do we expect people to pass in different values for these properties? If not, we might not want to expose them, prefix them with an underscore and care slightly less about their distinct naming.
ViktorHofer commentedon Jul 6, 2021
Should be fixed with #54914
ViktorHofer commentedon Jul 6, 2021
@am11 would you mind opening a new issue with details on the remaining work in regards to renaming properties and consolidating properties further to reduce complexity and redundancy?
hoyosjs commentedon Jul 6, 2021
They are somewhat necessary evils. Native assets - like the ones in this package - often rely on a build agent which runs some tool, hence the platform - an OS that hosts the code, and the type you are targeting. For packages, you almost always produce target OS ones, but you'd likely need to surface both. There's prior art in the separation with the cross DAC and crossgen2. Build/platform props - which likely are mostly just for tools/tasks used inside the build host - should likely be internal and hopefully auto-inferred.
am11 commentedon Jul 6, 2021
Sure, I will first try it on few VM's and dockers then come up with a bit concrete proposal. On top of the huge platform matrix and logic to derive RID, it gets a little complicated when one of the public properties is overridden from outside so making sure whether search-replace of these properties will actually work. :)
Consolidations ideas:
OutputRid), that has only one correct value during the build, and the same value is computed in props.am11 commentedon Jul 6, 2021
I think we should define their roles as they are not self-explanatory (or better use different name). as I am fairly certain we don't use the same meaning as, e.g. autoconf:
in short, our target (OutputRid) is their host and our host (PackageRID) is their build in cross-compilation. Therefore, continue using "some other prefixed"-RID name would likely make things easier to remember. :)
We do use the word "BuildRID" in some scripts initialized with OutputRid, but it does not mean anything outside of that script.