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
  • Makefile.package
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    kbuild: use proper prefix for tarballs to fix rpm-pkg build error · 9cedc5e8
    Masahiro Yamada authored Apr 20, 2023
    Since commit f8d94c4e ("kbuild: do not create intermediate *.tar
    for source tarballs"), 'make rpm-pkg' fails because the prefix of the
    source tarball is 'linux.tar/' instead of 'linux/'. $(basename $@)
    strips only '.gz' from the filename linux.tar.gz.
    
    You need to strip two suffixes from compressed tarballs and one suffix
    from uncompressed tarballs (for example 'perf-6.3.0.tar' generated by
    'make perf-tar-src-pkg').
    
    One tricky fix might be --prefix=$(firstword $(subst .tar, ,$@))/
    but I think it is better to hard-code the prefix.
    
    Fixes: f8d94c4e
    
     ("kbuild: do not create intermediate *.tar for source tarballs")
    Reported-by: default avatarJiwei Sun <sunjw10@lenovo.com>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
    9cedc5e8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7