New CUPSs do not provide _IPP_PRIVATE_STRUCTURES feature. Missing IPP
internal data should be acquired by using the proper new functions
provided by CUPS.


    Fix FTBFS with urfave/cli BoolFlag DefaultText variable

    Without this, the code FTBFS with the following error:

    
src/github.com/google/cloud-print-connector/gcp-connector-util/gcp-cups-connector-util.go:112:5:
    unknown field 'DefaultText' in struct l eral of type cli.BoolFlag
    
src/github.com/google/cloud-print-connector/gcp-connector-util/main_unix.go:61:3:
    unknown field 'DefaultText' in struct literal of type cli.BoolFlag
    
src/github.com/google/cloud-print-connector/gcp-connector-util/main_unix.go:66:3:
    unknown field 'DefaultText' in struct literal of type cli.BoolFlag
    
src/github.com/google/cloud-print-connector/gcp-connector-util/main_unix.go:71:3:
    unknown field 'DefaultText' in struct literal of type cli.BoolFlag


For some reason, cloud-print-connection was FTBFS because of 
golang-github-codegangsta-cli-dev, complaining about types. 
(codegangsta-cli-dev hasn't changed from previous working version in Ubuntu).


    Fix types for cli.Command assignments

    Without this, code FTBFS with the following error:

    google/cloud-print-connector/gcp-connector-util/main_unix.go:106:15:
    cannot use append(unixCommands, commonCommands...) (type []*cli.Command)
    as type []cli.Command in assignment


Also, for some reason, golang-github-urfave-cli-dev is having problems with 
BoolFlag DefaultText field. We have moved from previous working version 
1.20.0-1 to 1.22.2-1 in recent Ubuntu.

    Workaround for no _IPP_PRIVATE_STRUCTURES in newer CUPS versions

    Added hardcoded ipp-private.h as workaround for the lack of the
    _IPP_PRIVATE_STRUCTURES feature, dropped in CUPS v2.3b4. Without this
    feature, all the IPP private structures, needed by cups/core.go, to get
    the IPP Request Status Code, will not exist making code FTBFS.

    Correct fix for this is to rely on new functions, provided by CUPS, in
    order to obtain internal structure data access (C or go).


** Changed in: golang-github-urfave-cli (Ubuntu)
       Status: New => Confirmed

** Changed in: golang-codegangsta-cli (Ubuntu)
       Status: New => Confirmed

** Changed in: golang-codegangsta-cli (Ubuntu)
   Importance: Undecided => Medium

** Changed in: golang-github-urfave-cli (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  google-cloud-print-connector FTBFS (focal)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-codegangsta-cli/+bug/1859685/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to