flashrom builds without libftdi because pkg-config command isn't a build-dep

Bug #1707306 reported by Helmut Kreft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flashrom (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Problem:

flashrom specifies libftdi1-dev as a build dependency. The build process is unable to detect the presence of this library without the pkg-config command being installed. This is evidenced in the build_details.txt file created during the build process:

...
exec: export LC_ALL=C ; { [ -n "" ] && export PKG_CONFIG_LIBDIR="" ; pkg-config --libs libftdi1 || pkg-config --libs libftdi || printf "%s" "-lftdi -lusb" ; }
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
...

Hence flashrom will be built without support for the ft2232_spi class of programmers:
$ flashrom --help
flashrom v0.9.9-rc1-r1942 on Linux 4.4.0-87-generic (x86_64)
...
 -p | --programmer <name>[:<param>] specify the programmer device. One of
    internal, dummy, nic3com, nicrealtek, gfxnvidia, drkaiser, satasii, atavia,
    it8212, serprog, buspirate_spi, dediprog, rayer_spi, pony_spi, nicintel,
    nicintel_spi, nicintel_eeprom, ogp_spi, satamv, linux_spi, pickit2_spi,
    ch341a_spi.
...

When installing pkg-config the support for ft2232_spi is included:
$ ./flashrom --help
flashrom v0.9.9-rc1-r1942 on Linux 4.4.0-87-generic (x86_64)
...
 -p | --programmer <name>[:<param>] specify the programmer device. One of
    internal, dummy, nic3com, nicrealtek, gfxnvidia, drkaiser, satasii, atavia,
    it8212, ft2232_spi, serprog, buspirate_spi, dediprog, rayer_spi, pony_spi,
    nicintel, nicintel_spi, nicintel_eeprom, ogp_spi, satamv, linux_spi,
    usbblaster_spi, pickit2_spi, ch341a_spi.
...

Solution:
Include pkg-config as a build dependency

Revision history for this message
Helmut Kreft (hkreft) wrote :

This affects flashrom 0.9.9~rc1+r1942-1 on Ubuntu 16.04

tags: added: packaging xenial
Revision history for this message
Lenin (gagarin) wrote :

can you confirm bionic is not affected anymore?

Revision history for this message
Helmut Kreft (hkreft) wrote : Re: [Bug 1707306] Re: flashrom builds without libftdi because pkg-config command isn't a build-dep

On 2019-01-30 09:39, Lenin wrote:
> can you confirm bionic is not affected anymore?
>

Can confirm. ft2232_spi device is now available as a programmer in flashrom.

Regards,
Helmut Kreft

Lenin (gagarin)
Changed in flashrom (Ubuntu):
status: New → Fix Committed
Lenin (gagarin)
Changed in flashrom (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.