【发布时间】:2017-06-26 14:47:30
【问题描述】:
我有一个编译打印机驱动程序的方法,并且有几行简单的行可以在 do_install 中运行。
do_install() {
install -d ${D}${libdir}/cups/filter
install -m 755 ${B}/src/rastertoprinter ${D}${libdir}/cups/filter/
install -d ${D}${sysconfdir}/cups/ppd
install -m 755 ${B}/../rastertoprinter/printer_name.ppd ${D}${sysconfdir}/cups/ppd/
}
为了编译源代码,我有一个关于杯子的 DEPENDS 和一个关于杯子的 RDEPENDS,因为操作系统当然需要安装杯子才能打印。
打印机驱动程序不公开,因此我已将其重命名为 rastertoprinter 并更改了我的路径名。
基本上我需要简单地创建或确保目录 /usr/lib/cups/filter 存在,并在那里复制 rastertoprinter 程序。我还需要创建或确保目录 /etc/cups/ppd 存在并将 .ppd 文件复制到该目录中。
前两行运行良好,但第三行抛出以下错误:
file /etc/cups conflicts between attempted installs of printername-r0.corei7_64 and cups-2.2.2-r0.corei7_64
file /etc/cups/ppd conflicts between attempted installs of printername-r0.corei7_64 and cups-2.2.2-r0.corei7_64
我不明白为什么两个食谱都不能创建这个目录并把东西放进去?奇怪的是我可以做第一个 /usr/lib/cups/filter 目录虽然很好。
【问题讨论】: