Comment 2 for bug 1778612

Revision history for this message
Tae-Young Kwon (xoduddk123) wrote :

I have debugged comparing 3.17.10 and 3.17.11.
hplip-3.17.11 added createPPD.sh.

In yocto, build through the following steps.
        do_fetch -> de_unpack -> do_configure -> do_compile -> do_install
It looks like you are running createPPD.sh in the do_compile (make) step.
createPPD.sh edits cups_drv.inc.

The odd thing is that when createPPD.sh is run, "ppd/hpcups/*.ㅔpd.gz" is added to the cups_drv.inc file.
cups_ppd_printers = \
   ppd/hpcups/*.ppd.gz \
   ppd/hpcups/apollo-2100.ppd.gz \
   ppd/hpcups/apollo-2150.ppd.gz \
   ppd/hpcups/apollo-2200.ppd.gz \
   ppd/hpcups/apollo-2500.ppd.gz \
"ppd/hpcups/*.ppd.gz" is also added to the Makefile.

This causes the "ppd/hpcups/*.ppd.gz" file to be created in the ppd folder in the do_install step.
tykwon:HP$
tykwon:HP$ pwd
/home/tykwon/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/hplip/3.18.6-r1/image/usr/share/ppd/HP
tykwon:HP$ ls
*.ppd.gz hp-deskjet_4530_series.ppd.gz hp-laserjet_5100_series-ps.ppd.gz hp-officejet_7100_series.ppd.gz
apollo-2100.ppd.gz hp-deskjet_460.ppd.gz hp-laserjet_5200-pcl3.ppd.gz hp-officejet_7110_series.ppd.gz
apollo-2150.ppd.gz hp-deskjet_4610_series.ppd.gz hp-laserjet_5200-ps.ppd.gz hp-officejet_7200_series.ppd.gz
apollo-2200.ppd.gz
tykwon:HP$
tykwon:HP$ ls -al \*.ppd.gz
-rw-r--r-- 1 tykwon tykwon 0 6월 26 14:31 *.ppd.gz
tykwon:HP$

I have modified createPPD.sh to solve this problem.
Remove the text "ppd/hpcups/*.ppd.gz" from the cups_drv.inc file.

Attachments are related pictures and patch files.