`patch-add` + bare `%autosetup` fails at build time for patches that touch subdirectories

オープン
#409 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
build-system

調査の方向性

Start by locating patch-add handling and the renderer logic for %autosetup and %autopatch; the payload names no source files or tests, so trace those entry points and inspect existing patch rendering tests. Reproduce the failure with a patch touching a subdirectory and bare %autosetup, then verify the chosen strip-option or warning behavior is covered and the rendered build no longer fails silently.

索引モデルが issue の本文から書いたものです。

説明

A bare %autosetup (no -p) runs patch with no strip level, so it only uses the file's basename. A normal git patch to lib/xmlparse.c then fails with "No file to patch". Render looks fine, and the failure only shows up in mock. It hits any spec whose first added patch touches a subdirectory (expat, for example). There are 808 specs on 4.0 with a bare %autosetup.

Ask: a strip option on patch-add (e.g. strip = 1), or a render-time warning when a bare %autosetup/%autopatch meets a patch that needs -p1.

主要言語
Go
スター
18
フォーク
30
平均マージ
3日 17時間
マージ済み PR(30日)
40

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/azure-linux-dev-tools のほかの issue

microsoft/azure-linux-dev-tools の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。