Re: [MacPorts] #65933: git @2.38.0 does not build with gcc-4.2, because wrong number of arguments specified for ‘deprecated’ attribute

MacPorts noreply at macports.org
Fri Nov 11 19:51:47 UTC 2022


#65933: git @2.38.0 does not build with gcc-4.2, because wrong number of arguments
specified for ‘deprecated’ attribute
------------------------+------------------------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  leopard tiger haspatch
      Port:  git        |
------------------------+------------------------------------

Comment (by ballapete):

 `port -vds build git +credential_osxkeychain +diff_highlight +doc +pcre
 +perl5_34 configure.compiler=macports-gcc-7` builds without need to change
 or patch a single file. Performing `port -vds test git
 +credential_osxkeychain +diff_highlight +doc +pcre +perl5_34
 configure.compiler=macports-gcc-7` fails a few times, particularly `***
 t0019-json-writer.sh ***` does not succeed:

 {{{
 not ok 4 - simple object
 #
 #               cat >expect <<-\EOF &&
 #               {"a":"abc","b":42,"c":3.14,"d":true,"e":false,"f":null}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-double c 2 3.140
 #                       object-true d
 #                       object-false e
 #                       object-null f
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 5 - simple array
 #
 #               cat >expect <<-\EOF &&
 #               ["abc",42,3.14,true,false,null]
 #               EOF
 #               cat >input <<-\EOF &&
 #               array
 #                       array-string abc
 #                       array-int 42
 #                       array-double 2 3.140
 #                       array-true
 #                       array-false
 #                       array-null
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 8 - nested inline object
 #
 #               cat >expect <<-\EOF &&
 #
 {"a":"abc","b":42,"sub1":{"c":3.14,"d":true,"sub2":{"e":false,"f":null}}}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-object sub1
 #                               object-double c 2 3.140
 #                               object-true d
 #                               object-object sub2
 #                                       object-false e
 #                                       object-null f
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 9 - nested inline array
 #
 #               cat >expect <<-\EOF &&
 #               ["abc",42,[3.14,true,[false,null]]]
 #               EOF
 #               cat >input <<-\EOF &&
 #               array
 #                       array-string abc
 #                       array-int 42
 #                       array-array
 #                               array-double 2 3.140
 #                               array-true
 #                               array-array
 #                                       array-false
 #                                       array-null
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 10 - nested inline object and array
 #
 #               cat >expect <<-\EOF &&
 #
 {"a":"abc","b":42,"sub1":{"c":3.14,"d":true,"sub2":[false,null]}}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-object sub1
 #                               object-double c 2 3.140
 #                               object-true d
 #                               object-array sub2
 #                                       array-false
 #                                       array-null
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 11 - nested inline object and array 2
 #
 #               cat >expect <<-\EOF &&
 #
 {"a":"abc","b":42,"sub1":{"c":3.14,"d":true,"sub2":[false,{"g":0,"h":1},null]}}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-object sub1
 #                               object-double c 2 3.140
 #                               object-true d
 #                               object-array sub2
 #                                       array-false
 #                                       array-object
 #                                               object-int g 0
 #                                               object-int h 1
 #                                       end
 #                                       array-null
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 12 - pretty nested inline object and array 2
 #
 #               sed -e "s/^|//" >expect <<-\EOF &&
 #               |{
 #               |  "a": "abc",
 #               |  "b": 42,
 #               |  "sub1": {
 #               |    "c": 3.14,
 #               |    "d": true,
 #               |    "sub2": [
 #               |      false,
 #               |      {
 #               |        "g": 0,
 #               |        "h": 1
 #               |      },
 #               |      null
 #               |    ]
 #               |  }
 #               |}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-object sub1
 #                               object-double c 2 3.140
 #                               object-true d
 #                               object-array sub2
 #                                       array-false
 #                                       array-object
 #                                               object-int g 0
 #                                               object-int h 1
 #                                       end
 #                                       array-null
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer -p <input >actual &&
 #               test_cmp expect actual
 #
 not ok 13 - inline object with no members
 #
 #               cat >expect <<-\EOF &&
 #               {"a":"abc","empty":{},"b":42}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-object empty
 #                       end
 #                       object-int b 42
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 14 - inline array with no members
 #
 #               cat >expect <<-\EOF &&
 #               {"a":"abc","empty":[],"b":42}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-array empty
 #                       end
 #                       object-int b 42
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 15 - larger empty example
 #
 #               cat >expect <<-\EOF &&
 #               {"a":"abc","empty":[{},{},{},[],{}],"b":42}
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-array empty
 #                               array-object
 #                               end
 #                               array-object
 #                               end
 #                               array-object
 #                               end
 #                               array-array
 #                               end
 #                               array-object
 #                               end
 #                       end
 #                       object-int b 42
 #               end
 #               EOF
 #               test-tool json-writer <input >actual &&
 #               test_cmp expect actual
 #
 not ok 16 - parse JSON using Perl
 #
 #               cat >expect <<-\EOF &&
 #               row[0].a abc
 #               row[0].b 42
 #               row[0].sub1 hash
 #               row[0].sub1.c 3.14
 #               row[0].sub1.d 1
 #               row[0].sub1.sub2 array
 #               row[0].sub1.sub2[0] 0
 #               row[0].sub1.sub2[1] hash
 #               row[0].sub1.sub2[1].g 0
 #               row[0].sub1.sub2[1].h 1
 #               row[0].sub1.sub2[2] null
 #               EOF
 #               cat >input <<-\EOF &&
 #               object
 #                       object-string a abc
 #                       object-int b 42
 #                       object-object sub1
 #                               object-double c 2 3.140
 #                               object-true d
 #                               object-array sub2
 #                                       array-false
 #                                       array-object
 #                                               object-int g 0
 #                                               object-int h 1
 #                                       end
 #                                       array-null
 #                               end
 #                       end
 #               end
 #               EOF
 #               test-tool json-writer <input >output.json &&
 #               perl "$TEST_DIRECTORY"/t0019/parse_json.perl <output.json
 >actual &&
 #               test_cmp expect actual
 #
 # failed 11 among 16 test(s)
 }}}

 Reason seems to be that the programme `json-writer` is  not built:

 {{{
 root 458 /\ pd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_git/git/work
 root 459 /\ find . -name "json*" -ls
 101785320      4 -rw-r--r--   1 macports admin         730 Nov 11 20:39
 ./git-2.38.1/.depend/json-writer.o.d
 101780942     12 -rw-r--r--   1 macports admin        8679 Okt  7 06:48
 ./git-2.38.1/json-writer.c
 101780943      8 -rw-r--r--   1 macports admin        4292 Okt  7 06:48
 ./git-2.38.1/json-writer.h
 101785321     12 -rw-r--r--   1 macports admin        8696 Nov 11 20:39
 ./git-2.38.1/json-writer.o
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65933#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list