debhelper를 사용하기 전에 패키지를 만들었지 만 매우 실망한 문제가 있습니다.파이썬 deb 패키지를 만드는 데 문제가 있습니다. 수정 된 바이너리에 대해 불평합니다
이 내 파일 트리입니다 :
usr/
`-- share
|-- applications
| `-- create-launcher.desktop
`-- create-launcher
|-- bin
| |-- callbacks.py
| |-- callbacks.pyc
| |-- create_launcher.py
| |-- create_launcher.pyc
| |-- file_handler.py
| |-- file_handler.pyc
| |-- make_launcher.py
| |-- make_launcher.pyc
| |-- message_dialog.py
| |-- message_dialog.pyc
| `-- session
|-- data
| `-- gui.glade
|-- images
| `-- icon_48x48.png
`-- README
A는 당신은 내가 바이너리 이미지 바이너리 일부 파이썬의 pyc 파일을 볼 수 있습니다. 이건 내 문제인지는 모르겠지만, 나는 데비안 디렉토리를 생성
dh_make
실행하고 나는 필요한 모든 파일을 수정했습니다.
나는 실행하는 경우 :
dh_install
모두가 올바른 데비안/생성 발사기는/usr ... 위치로 이동합니다.
그래도, 내가 실행하는 경우 :
debuild -uc -us
나는 다음과 같은 출력을 얻을 :
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package create-launcher
dpkg-buildpackage: source version 0.1.2+alpha-1
dpkg-buildpackage: source changed by Narnie Harshoe <[email protected]>
dpkg-source --before-build create-launcher-0.1.2+alpha
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
dpkg-source -b create-launcher-0.1.2+alpha
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building create-launcher using existing ./create-launcher_0.1.2+alpha.orig.tar.gz
dpkg-source: warning: ignoring deletion of directory share
dpkg-source: warning: ignoring deletion of directory share/applications
dpkg-source: warning: ignoring deletion of file share/applications/create-launcher.desktop
dpkg-source: warning: ignoring deletion of directory share/create-launcher
dpkg-source: warning: ignoring deletion of file share/create-launcher/README
dpkg-source: warning: ignoring deletion of directory share/create-launcher/data
dpkg-source: warning: ignoring deletion of file share/create-launcher/data/gui.glade
dpkg-source: warning: ignoring deletion of directory share/create-launcher/images
dpkg-source: warning: ignoring deletion of file share/create-launcher/images/icon_48x48.png
dpkg-source: warning: ignoring deletion of directory share/create-launcher/bin
dpkg-source: warning: ignoring deletion of file share/create-launcher/bin/message_dialog.py
dpkg-source: warning: ignoring deletion of file share/create-launcher/bin/create_launcher.py
dpkg-source: warning: ignoring deletion of file share/create-launcher/bin/callbacks.py
dpkg-source: warning: ignoring deletion of file share/create-launcher/bin/make_launcher.py
dpkg-source: warning: ignoring deletion of file share/create-launcher/bin/file_handler.py
dpkg-source: warning: newly created empty file 'usr/share/applications/create-launcher.desktop' will not be represented in diff
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/images/icon_48x48.png: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/images/icon_48x48.png in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/bin/file_handler.pyc: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/bin/file_handler.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'usr/share/create-launcher/bin/create_launcher.py' will not be represented in diff
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/bin/message_dialog.pyc: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/bin/message_dialog.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/bin/make_launcher.pyc: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/bin/make_launcher.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/bin/create_launcher.pyc: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/bin/create_launcher.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to create-launcher-0.1.2+alpha/usr/share/create-launcher/bin/callbacks.pyc: binary file contents changed
dpkg-source: error: add usr/share/create-launcher/bin/callbacks.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b create-launcher-0.1.2+alpha gave error exit status 2
내가 그렇게에 "디렉토리 공유의 삭제를 무시"하고 말하는 이유를 전혀 몰라합니다. 먼저 공유가 아닌 폴더 usr으로 시작해야합니다. 둘째, 삭제되지 않습니다.
타르볼을 굴려서 파일이 변경되지 않아 바이너리가 그 오류를 만드는 이유를 이해할 수 없습니다.
왜 share /와/usr가 아닌가요?
dh의 dh_install 부분을 실행하기 전에 죽어가는 것 같습니다.
도움 주시면 감사하겠습니다.
감사합니다. 유용한 예입니다. 나는 dpkg를 이해하려고 애 쓰고있다 : 당신의 app-create-launcher는 선언 할 필요가있는 Python에 의존성이 있는가? 이렇게하면 .desktop 파일이 설치되면 아이콘이 예를 들어 Ubuntu Software Center의 Installed Apps 아래에 표시되는 .deb 패키지가 생성됩니다. 앱이 .desktop 파일을 만드는 데 도움이됩니다. http://sourceforge.net/projects/createlauncher/?source=navbar – bootchk
Thanks! 추가 된 '--source-option = - include-binaries'는 https://wiki.debian.org/SimpleBackportCreation에 따라 gnu make의 서명되지 않은 백 포트를 만드는 동안 저를 구해줬습니다. – Epu