Public bug reported:

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

** Affects: flashrom (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1707306

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flashrom/+bug/1707306/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to