Buster で Debian パッケージのビルドが Bookworm で失敗する

Buster で Debian パッケージのビルドが Bookworm で失敗する

linphoneDebian 12で以前のバージョンを使用する必要があります。

bookwormのバージョンは4.4.10-3私にとって本当に必要なバージョンであり、3.12.0Busterで見つけることができます。

私の本虫ビルドマシンでソースコードを変更し、linphone-3.12.0Busterからソースコードをダウンロードしました。その後、ソースを本の虫に戻し、必要なすべての依存関係をインストールしました。

詳細に更新

私は少し進歩を遂げていましたが、編集プロセスはさらに進んでいます。しかし、最終的に失敗します。

make[3]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu'
[ 66%] Built target linphone-static
make[2]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/mnt/src/deb/LINPHONE/linphone-3.12.0/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

完全なビルド出力ここそしてDebian/ルールここ

ベストアンサー1

ビルドに失敗しました。

Traceback (most recent call last):
  File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 764, in <module>
    main()
  File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 760, in main
    genwrapper.render_all()
  File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 700, in render_all
    self.render(header, self.includedir + '/enums.hh')
  File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 716, in render
    with open(tmppath, mode='rU') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'rU'

Python 3には「U」モードはありません。open()。この問題をdebian/patches/genwrapper.patch解決するには

Index: linphone-3.12.0/wrappers/cpp/genwrapper.py
===================================================================
--- linphone-3.12.0.orig/wrappers/cpp/genwrapper.py
+++ linphone-3.12.0/wrappers/cpp/genwrapper.py
@@ -713,7 +713,7 @@ class GenWrapper(object):
                content = ''
                with open(tmppath, mode='w') as f:
                        f.write(self.renderer.render(item))
-               with open(tmppath, mode='rU') as f:
+               with open(tmppath, mode='r') as f:
                        content = f.read()
                with open(path, mode='w') as f:
                        f.write(content)

次の項目に追加してくださいdebian/patches/series

$ echo genwrapper.patch >> debian/patches/series

おすすめ記事