Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`patch-add` doesn't add a `%patch` line, so the patch is silently skipped in hand-written-%patch specs

Đang mở
#408 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
build-system, devtools

Hướng nghiên cứu

Start by locating the patch-add implementation and its render-time handling of PatchN: tags; the issue names no files or tests. Check how explicit %patch lines are detected and how strip levels are represented, then compare the option that emits a line with the render-time warning alternative. Done means added patches are applied or produce a clear warning in hand-written %patch specs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When a spec applies its patches with explicit %patch lines (opensc, vim, alsa-lib, …), patch-add adds the PatchN: tag but nothing applies it. Render passes, the build passes, and the fix never actually goes in.

Right now we work around it with a spec-search-replace that inserts %patch -PN -p1 after the spec's last %patch. That means guessing the N azldev will pick, and it breaks as soon as the anchor line changes upstream.

Ask: an option on patch-add to emit the %patch line too (with a strip level), or at minimum a render-time warning when a patch is added but nothing applies it.

Ngôn ngữ chính
Go
Star
18
Fork
30
Merge trung bình
4 ngày 20 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/azure-linux-dev-tools

Tất cả issue của microsoft/azure-linux-dev-tools

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.