Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • package
  • gen-diff-patch
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    kbuild: use git-archive for source package creation · 05e96e96
    Masahiro Yamada authored Mar 16, 2023
    Commit 5c3d1d0a ("kbuild: add a tool to list files ignored by git")
    added a new tool, scripts/list-gitignored. My intention was to create
    source packages without cleaning the source tree, without relying on git.
    
    Linus strongly objected to it, and suggested using 'git archive' instead.
    [1] [2] [3]
    
    This commit goes in that direction - Remove scripts/list-gitignored.c
    and rewrites Makefiles and scripts to use 'git archive' for building
    Debian and RPM source packages. It also makes 'make perf-tar*-src-pkg'
    use 'git archive' again.
    
    Going forward, building source packages is only possible in a git-managed
    tree. Building binary packages does not require git.
    
    [1]: https://lore.kernel.org/lkml/CAHk-=wi49sMaC7vY1yMagk7eqLK=1jHeHQ=yZ_k45P=xBccnmA@mail.gmail.com/
    [2]: https://lore.kernel.org/lkml/CAHk-=wh5AixGsLeT0qH2oZHKq0FLUTbyTw4qY921L=PwYgoGVw@mail.gmail.com/
    [3]: https://lore.kernel.org/lkml/CAHk-=wgM-W6Fu==EoAVCabxyX8eYBz9kNC88-tm9ExRQwA79UQ@mail.gmail.com/
    
    Fixes: 5c3d1d0a ("kbuild: add a tool to list files ignored by git")
    Fixes: e0ca1674
    
     ("kbuild: make perf-tar*-src-pkg work without relying on git")
    Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    05e96e96
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7