debmake自动创建模板失败的解决方案

使用debmake创建debian模板时,发现出现如下错误:

FileNotFoundError: [Errno 2] No such file or directory: '//share/debmake/extra0export/compiler'

SeaTalk_IMG_1674898499.png

跟随python堆栈,了解到:

    # get prefix for install --user/ ,, --prefix/ ,, --home
    fullparent = os.path.dirname(sys.argv[0])
    if fullparent == '.':
        para['base_path'] = '..'
    else:
        para['base_path'] = os.path.dirname(fullparent)
  para = debmake.para.para(para)

出现了问题,修复方式也简单,因为base_path判断出现了bug,故强制在文件/usr/lib/python3/dist-packages/debmake/__init__.py中指定

para['base_path'] = '/usr'

搞定。此debmake版本是4.3.1,等官方修复之后再更新上去。

Monthly Archives

Pages

Powered by Movable Type 7.9.4

About this Entry

This page contains a single entry by Cnangel published on January 28, 2023 5:09 PM.

关于HEAPCHECK=normal与tcmalloc冲突问题 was the previous entry in this blog.

在容器下编译的一些问题解决 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.