azldev-build-component
ما الذي تفعله
توضح هذه المهارة كيفية بناء مكوّن azldev والتعامل مع أعطال البناء. وهي موجهة للمطورين الذين يجهزون البرامج بـ azldev ويحتاجون إلى إصلاح بناء فاشل.
متى تستخدمها
- ✓عندما يفشل بناء مكوّن azldev وتحتاج إلى معرفة السبب.
- ✓عندما تريد إعادة البناء مقابل مستودع محلي لتبعيات الحزمة.
- ✓عندما يجب إيقاف فحص اختبار فاشل لمكوّن محدد.
رابط المهارة
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“يفشل بناء مكوّن azldev لدي في مرحلة الفحص. هل يمكنك مساعدتي في معرفة السبب وتكرار تعديل البناء؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتبع الوكيل حلقة العرض ثم البناء ثم الاختبار، ويفحص المواصفات المعروضة والفروقات. ويستخدم خيارات البناء في الأداة لربط التبعيات والاحتفاظ ببيئات البناء للتصحيح.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Build and debug a component
Never install built RPMs on your host — they target the distro, not your dev
machine. Test them in a chroot with the azldev-mock skill. Building and testing are separate
steps: azldev comp build produces RPMs; it does not test them.
Build
azldev comp build -p <name> # one component
azldev comp build -p <a> -p <b> --local-repo-with-publish <dir> # chain deps via a local repo
azldev comp build -p <name> --local-repo <dir> # rebuild against a populated repo
Build foundational packages before their dependents. RPMs land in the project's
configured output directory (out by default). -q quiets output but hides build
progress — use it only for inner-loop builds you expect to succeed.
The inner loop
investigate → modify → render → build → test → inspect
| Step | Command |
|---|---|
| Investigate | read the rendered spec under specs/, or azldev comp diff-sources -p <name> |
| Modify | edit the component's .comp.toml (see the azldev-overlays and azldev-comp-toml skills) |
| Verify | azldev comp render -p <name> (fast — skips source tarballs) |
| Build | azldev comp build -p <name> |
| Test | azldev adv mock shell --add-package <rpm> (see the azldev-mock skill) |
| Inspect | azldev comp build -p <name> --preserve-buildenv always, then a mock shell |
Prefer comp render for quick overlay verification; use comp diff-sources to see the
exact overlay effect (it fetches sources once, applies overlays to a copy, and diffs the
two trees). Builds can be slow — set generous timeouts.
Finalize with azldev comp update -p <name> before opening a PR (see the
azldev-update-component skill).
Debugging build failures
- Render error mentioning a non-standard
Releasetag — a release-calculation issue; see theazldev-comp-tomlskill. - Preview error mentioning
rpmdev-bumpspec,rpmdev-packager,rpm,rpmspec,python3, or the Python RPM module — this applies only when you explicitly use the temporary--rpmdev-bumpspecpreview. Provision the named prerequisite for that opt-in path. Without the flag, azldev keeps the legacy static Release calculation. - Overlay did not apply as expected —
azldev comp diff-sources -p <name>shows what the overlays actually change. - Inspect the build environment —
azldev comp build -p <name> --preserve-buildenv on-failure(valueson-failure,always,never), then enter a mock shell. - Failing
%check— fix the tests first (root cause, upstream patches, targeted fixes). Only as a last resort, disable withbuild.check.skip = trueand a requiredbuild.check.skip_reasonexplaining what fails, why it cannot be fixed, and whether it is temporary. A transient--no-checkbuild flag exists for one-off local builds.
Per-component build tweaks (build.defines, build.without) live in the .comp.toml —
see the azldev-comp-toml skill.
Generated by azldev docs agent; do not hand-edit.
الأسئلة الشائعة
هل تُثبَّت حزم RPM المبنية على جهازي؟
لا. تذكر المهارة أن الحزم تُختبر في جذر بناء وهمي، لأنها موجهة للتوزيعة لا لجهازك.
هل يختبر البناء الحزمة أيضًا؟
لا. تذكر المهارة أن البناء والاختبار خطوتان منفصلتان.
هل يمكن تجاوز فحص اختبار فاشل؟
تذكر المهارة إمكانية تعطيل فحص فاشل لمكوّن عبر إعداد، ويجب استخدامه بحذر.
التفاصيل
الوصف الأصلي من المؤلف
Read this before building a component or diagnosing a build failure; do not guess build flags or the inner loop. Explains how to build, iterate on, and debug an azldev component, covering comp build flags (local-repo, preserve-buildenv), the render/build/test inner loop, diff-sources, and disabling a failing %check via check.skip. Triggers include build component, build failed, build error, inner loop, preserve buildenv, local repo, disable check.
repo: microsoft/azurelinux
الشعبية
- نجوم GitHub
- 5.4k
- الترتيب
- #14961
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
azldev-add-component
5.4kتساعد وكيلك على إضافة مكوّن برمجي جديد إلى بناء توزيعة Linux مبنية بـ azldev، من فحص مواصفات المصدر الأصلي إلى التحقق من النتيجة.
azldev-comp-toml
5.4kتساعد وكيلك على كتابة ملفات تعريف مكوّنات azldev وتعديلها ومراجعتها، وهي الملفات التي تصف كيفية بناء كل حزمة.
azldev-image
5.4kتساعد وكيلك على بناء صورة Linux واختبارها، مثل صورة حاوية أو آلة افتراضية، باستخدام أوامر الصور في azldev.
azldev-mock
5.4kتساعد وكيلك على اختبار الحزم المبنية وفحصها داخل بيئة بناء وهمية، فلا تمسّ جهازك أبدًا.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.