#877125 dtc: build errors with swig for python lib

Package:
device-tree-compiler
Source:
device-tree-compiler
Description:
Device Tree Compiler for Flat Device Trees
Submitter:
Héctor Orón Martínez
Date:
2022-06-22 19:03:23 UTC
Severity:
normal
Tags:
#877125#5
Date:
2017-09-28 22:39:48 UTC
From:
To:
Package: device-tree-compiler
Version: 1.4.5
Seeverity: normal

Hello,

  I have attempted to build python library for device tree compiler,
however I ran out into build issues with swig components due to -Wall.
I have tried to look for a bug tracking system to report it, but I
have been unable to find one.

  Find log attached with build issues in Debian/unstable build.

  To enable python library builds we need to build depend on swig and
python-dev and drop NO_PYTHON = 1 from rules file.

P.S./ I have contacted upstream mailing list about it.

Regards,

#877125#10
Date:
2017-09-28 23:11:28 UTC
From:
To:
Control: found 877124 1.4.5-1

There appears to be a github page for it:

https://github.com/dgibson/dtc

Had the same issue...

When I did that, for some reason I haven't identified, the package ended
up without documentation or manpages...


live well,
  vagrant

#877125#15
Date:
2017-09-29 00:55:17 UTC
From:
To:
Wrong bug, fixed.

live well,
  vagrant

#877125#22
Date:
2019-06-30 19:50:06 UTC
From:
To:
This seems a bug of debians own making; debian/rulies copes the upstream
Makefiles warnigns && Werror and then explicitly sets those as CFLAGS for the
build. However this means that they'll get applied *both* to libfdt and
pylibfdt, while when using the upstream makefile those flags only get applied
to libfdt.

Hence upstream never hits these issues as the warnings (treated as errors)
won't be seen doing an upstream build.

#877125#29
Date:
2022-05-19 15:49:27 UTC
From:
To:
Control: block 1011282 by 877125

I've tried several times, but always get stuck with:

https://bugs.debian.org/877125

There was a hint at a proposed path forward ~2019, but I wasn't able to
get it to work...

Would be happy to see this fixed as well!

live well,
  vagrant

#877125#34
Date:
2022-05-20 15:23:38 UTC
From:
To:
I have attached a patch to solve this.
This enables the build but does not touch the packaging, which is left for #1011282.
So the package build will abort on dh_missing with the new files.

#877125#41
Date:
2022-06-22 19:00:09 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
device-tree-compiler, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 877125@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Héctor Orón Martínez <zumbi@debian.org> (supplier of updated device-tree-compiler package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 22 Jun 2022 01:35:38 +0200
Source: device-tree-compiler
Binary: device-tree-compiler device-tree-compiler-dbgsym libfdt-dev libfdt1 libfdt1-dbgsym python3-libfdt python3-libfdt-dbgsym
Architecture: source amd64
Version: 1.6.1-2
Distribution: unstable
Urgency: medium
Maintainer: Héctor Orón Martínez <zumbi@debian.org>
Changed-By: Héctor Orón Martínez <zumbi@debian.org>
Description:
 device-tree-compiler - Device Tree Compiler for Flat Device Trees
 libfdt-dev - Flat Device Trees manipulation library - development files
 libfdt1    - Flat Device Trees manipulation library
 python3-libfdt - Flat Device Trees manipulation library - Python bindings
Closes: 877125 1001563 1011282
Changes:
 device-tree-compiler (1.6.1-2) unstable; urgency=medium
 .
   [ Bastian Germann ]
   * Enable pylibfdt build (Closes: #877125)
   * Create bin pkg python3-libfdt (Closes: #1011282)
 .
   [ Héctor Orón Martínez ]
   * debian/control: thank Riku for all. (Closes: #1001563)
   * debian/rules: remove egg-info upon clean
Checksums-Sha1:
 82cd3f82f5b688a88e0d8c31beb9f340b5c9a19c 2458 device-tree-compiler_1.6.1-2.dsc
 4eb755f831819bd4fcfbb3b987f88f8ddebcf522 35140 device-tree-compiler_1.6.1-2.debian.tar.xz
 e297a1ae086d53726a97d2f63b47d983e775dde0 203024 device-tree-compiler-dbgsym_1.6.1-2_amd64.deb
 f31ce3626eafe463efa3878fe4b660f827b545c6 10983 device-tree-compiler_1.6.1-2_amd64.buildinfo
 24f3c3cc14c524df449f74637b1310ecbdeb5da2 534012 device-tree-compiler_1.6.1-2_amd64.deb
 592c38b02345fb83ee6798ec3f673f923d828bd7 32688 libfdt-dev_1.6.1-2_amd64.deb
 79b9c30fc7f9382e9d2f4bb36f46d56747066de6 50056 libfdt1-dbgsym_1.6.1-2_amd64.deb
 8882ffa484b560e31e8a53fa768005066b0e332c 19964 libfdt1_1.6.1-2_amd64.deb
 e7a09bd2f7fca4a774fd624642d2188dd2d04064 162644 python3-libfdt-dbgsym_1.6.1-2_amd64.deb
 be650b2d55148cf11c761e59fe0d98eef5cf0873 49468 python3-libfdt_1.6.1-2_amd64.deb
Checksums-Sha256:
 cdd8c53e85d5a5ff2ecfad5758be0601b3d87dc4dd4240870d88b494ce1d235f 2458 device-tree-compiler_1.6.1-2.dsc
 64363fe5c393dc8702dadc6ab8ea14b0c1ee0e3b12a9f23853722d0b41ca02b5 35140 device-tree-compiler_1.6.1-2.debian.tar.xz
 555bb9725586abf12f2e36f87476db47cf8ddc80edc2e8bd3a5930726815d490 203024 device-tree-compiler-dbgsym_1.6.1-2_amd64.deb
 c8f803fa3f69d6b9f14a51d9a3049d836fa07de0c89eb192eeb30f1f76fbd378 10983 device-tree-compiler_1.6.1-2_amd64.buildinfo
 f1de471c5d6a2631608163d8478effd4041a62ec31d92a7b17b3a9f31dbe37b4 534012 device-tree-compiler_1.6.1-2_amd64.deb
 96b217f397bad3a1ff9730f7ce01696f8a36bb1e28fdd04600cee58669774326 32688 libfdt-dev_1.6.1-2_amd64.deb
 2d233369d42314873fa53731d37759f8cdd3675f1cc54c44bdff3e198a1bf959 50056 libfdt1-dbgsym_1.6.1-2_amd64.deb
 9654c7c1217b0cab1739718ebb1aa8388dea8b6ce701563d704a0e438f6458f5 19964 libfdt1_1.6.1-2_amd64.deb
 ef8f071b4ca34cf7d41ff468b155941e04c98f6d75008c4b522e652e4b7bae4d 162644 python3-libfdt-dbgsym_1.6.1-2_amd64.deb
 cd1e0d58db1e3bd4d72fb458330e4c5e2ebd9156a6b763f6f91e7c257662b604 49468 python3-libfdt_1.6.1-2_amd64.deb
Files:
 4b1900dd2fcb112d7e46abf32e5161b3 2458 devel optional device-tree-compiler_1.6.1-2.dsc
 205454352f77a6ef74858d446dde2a6c 35140 devel optional device-tree-compiler_1.6.1-2.debian.tar.xz
 f51402e079f7b50949079aae4d3e5c32 203024 debug optional device-tree-compiler-dbgsym_1.6.1-2_amd64.deb
 7accff306ffc1c475836e4a70b8be9b5 10983 devel optional device-tree-compiler_1.6.1-2_amd64.buildinfo
 08ed3af015f8e1099b6ae9b3d915b09b 534012 devel optional device-tree-compiler_1.6.1-2_amd64.deb
 00c12a512d751e8f5c3b145ba75b950f 32688 libdevel optional libfdt-dev_1.6.1-2_amd64.deb
 741533464976b89002d69f9a6fc97789 50056 debug optional libfdt1-dbgsym_1.6.1-2_amd64.deb
 51ac1e76c5a34c80bb2e1c741d142d31 19964 libs optional libfdt1_1.6.1-2_amd64.deb
 605c59448d6f002ef5d795658e7d677c 162644 debug optional python3-libfdt-dbgsym_1.6.1-2_amd64.deb
 619f5cb7bfc0a0747665ea6eb00e39c8 49468 python optional python3-libfdt_1.6.1-2_amd64.deb
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE6Q8IiVReeMgqnedOryKDqnbirHsFAmKyViEACgkQryKDqnbi
rHuwQw/8Di758nlGHEDPVGfOiRIgqaeK0zNA4ZQWF158gnymull/RQ9Tf7IBQyHZ
DwyePcxzo27E1PBin1rYv8wqHopar4semAL6pPSg22gB3r03rlC4RlCV4oMTfbx2
ngsdE62wXOipAYy2Ahib4AN50OEB9m1fv7svRV0xtdnKjqmneO5DAEaxaxY8gXew
hsOMlXmzqUfeLF6/DI2L10lBZ4z6fYwKc1C8E7a+R9ozAPnYqOmpBu/IRB2hl5/M
qN0Y1je+1yf2inkeTazXEmfK5fpxRB7z91+rgXPfSx7xY4QmwKnz4M400wUfHYDs
iJjdxkmR/7QzEPlWNNVq5uEWz/40gWv42+iFxY3Hh5M4e3geTh8ECWatSO0zFy9m
JALj2X+zARCD3I5d0sn7we6aBYauh5pDl+pO2N44CzOuIrM8eJ8Js55BAl3tUfAM
Sf+fD0VS8TFHB6mNQsF9y1P4mQ0HGFMObtzRHq8VbcP9Ml2jpI1BZGvyQpBccjrZ
xvoU14r74WxTW1ASS90r7LaGWmAVqA+ZZGPPVC3hs6iH6tVzaKgw1vSVWDuVNCHx
j+/4QlIlqfvQRXA8tXXfW5z4DsXMvWtx3mO4JIHQDAfLbj0otYM/ZDtgy7Hh6lK1
BuxOt7EPx450nMGlCrXsZxndBH1JF9XwmcH4wXNsllMPlFJa9K8=
=wA2v
-----END PGP SIGNATURE-----