Debian Paket bauen

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
Benutzeravatar
The Hit-Man
Beiträge: 2171
Registriert: 21.11.2004 17:01:56
Wohnort: Menden ( Sauerland )
Kontaktdaten:

Debian Paket bauen

Beitrag von The Hit-Man » 05.01.2024 22:47:15

Ich wollte mir mal ein eigenes Paket aus den Sourcen bauen ( Kodi ) und habe mich folgender Sachen bedient:

Das control File:

Code: Alles auswählen

Source: kodi-dmo
Section: video
Priority: optional
Maintainer: Christian Marillat <marillat@deb-multimedia.org>
Bugs: mailto:marillat@deb-multimedia.org
Homepage: https://kodi.tv/
Standards-Version: 4.5.0
Build-Conflicts: libegl1-imx, libomxil-bellagio-dev [armel armhf], libafpclient-dev, libsndio-dev
Build-Depends: debhelper-compat (= 13), dh-sequence-python3, libgtest-dev,
 libasound2-dev | libasound-dev, libdrm-dev, ninja-build, libdav1d-dev,
 libpcre3-dev (>= 2:8.35-7.1), libass-dev (>= 0.9.7), libmicrohttpd-dev, zip,
 liblcms2-dev, libegl-dev, libbluray-dev, libtinyxml-dev (>= 2.6.2-3),
 libcec-dev, libshairplay-dev, libcurl4-gnutls-dev, libdbus-1-dev,
 libxrender-dev, libavahi-common-dev, libfmt-dev (>= 6.1.2~),
 rapidjson-dev (>= 1.1.0~), flatbuffers-compiler, libflatbuffers-dev, quilt,
 libunistring-dev, wayland-protocols, waylandpp-dev, libfribidi-dev, cmake,
 libsqlite3-dev, libmariadb-dev, liblirc-dev, libgbm-dev, libpng-dev,
 libgl-dev, libglu1-mesa-dev, libglew-dev (>= 1.13.0~), libegl1-mesa-dev,
 libjpeg62-turbo-dev, libfreetype-dev, libmms-dev, libfontconfig-dev,
 liblzo2-dev, libcdio-dev, libavahi-compat-libdnssd-dev,
 libcrossguid-dev, libsamplerate-dev, libfstrcmp-dev,
 libsmbclient-dev, libiso9660++-dev, libvdpau-dev, uuid-dev, libgif-dev,
 udev, libcap-dev, swig, libgles-dev [armel armhf arm64], libxrandr-dev,
 libcwiid-dev, libbluetooth-dev (>= 4.98-2), zlib1g-dev, libxkbcommon-dev,
 libtag1-dev (>= 1.8), libxslt1-dev, default-jre-headless, libpulse-dev,
 libva-dev (>= 1.0.7), libssh-dev, libplist-dev, nasm [any-amd64 any-i386],
 libxt-dev, libxtst-dev, libxmu-dev, libudev-dev, libxinerama-dev, python3-dev,
 libnfs-dev, libspdlog-dev (>= 1:1.5.0~), libinput-dev,
 libudfread-dev, libkissfft-dev, libpipewire-0.3-dev, pkgconf

Package: kodi
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, kodi-data (>= ${source:Version})
Pre-Depends: ${misc:Pre-Depends}
Recommends: ${shlibs:Recommends}, udisks2
Suggests: ${shlibs:Suggests}
Breaks: kodi-standalone (<= 5:18.4-dmo2), kodi-bin (<= 5:18.4-dmo2), kodi-data (<= 5:18.5-dmo1),
 kodi-wayland (<= 5:18.99~), kodi-gbm (<= 5:18.99~), kodi-x11 (<= 5:18.99~), ${kodi:APIBREAKS}
Provides: ${kodi:APIPROVIDES}
Description: Open Source Home Theatre (executable binaries)
 Kodi (formally known as XBMC), is an award winning free and open source
 software media-player and entertainment hub for all your digital media.
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.

Package: kodi-data
Architecture: all
Multi-Arch: foreign
Depends: ${python3:Depends}, ${misc:Depends}, mesa-utils, x11-utils, python3-pil, node-jquery, python3-pycryptodome
Conflicts: kodi-skin-confluence, kodi-repository-kodi, kodi-bin, firewalld (<< 1.2.0-2)
Replaces: kodi-skin-confluence, kodi-repository-kodi, kodi-bin, firewalld (<< 1.2.0-2)
Description: Open Source Home Theatre (arch-independent data package)
 Kodi (formally known as XBMC), is an award winning free and open source
 software media-player and entertainment hub for all your digital media.
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This package contains all the architecture independent data needed to have a
 working Kodi.

Package: kodi-eventclients-common
Architecture: all
Multi-Arch: foreign
Depends: ${python3:Depends}, ${misc:Depends}
Description: Open Source Home Theatre (Event Client Common package)
 Kodi (formally known as XBMC), is an award winning free
 and open source software media-player and entertainment hub for all your
 digital media. Kodi is available for Linux, Mac OS X (Leopard, Tiger and
 Apple TV) and Microsoft Windows, as well as the original Xbox game console.
 Created in 2003 by a group of like minded programmers, Kodi is a non-profit
 project run and developed by volunteers located around the world. More than
 50 software developers have contributed to Kodi, and 100-plus translators
 have worked to expand its reach, making it available in more than 30
 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This package is the common package for Kodi Event Client.

Package: kodi-eventclients-wiiremote
Architecture: any
Depends: kodi-eventclients-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
Description: Open Source Home Theatre (Event Client WII Remote support package)
 Kodi (formally known as XBMC), is an award winning free and open source
 software media-player and entertainment hub for all your digital media.
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This package is the Wii Remote client package for Kodi.

Package: kodi-eventclients-ps3
Architecture: all
Depends: kodi-eventclients-common (= ${binary:Version}), python3-bluez, ${python3:Depends}, ${misc:Depends}
Description: Open Source Home Theatre (Event Client PS3 package)
 Kodi (formally known as XBMC), is an award winning free and open source
 software media-player and entertainment hub for all your digital media.
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This package is the PS3 package for Kodi Event Client.

Package: kodi-addons-dev
Architecture: any
Section: libdevel
Multi-Arch: same
Depends: kodi-addons-dev-common (= ${source:Version}), ${misc:Depends}
Provides: dh-sequence-kodiaddon (= ${binary:Version})
Conflicts: kodi-eventclients-dev
Replaces: kodi-eventclients-dev
Description: Open Source Home Theatre (Addons Dev package)
 Kodi, formerly known as XBMC is an award winning free and open source
 software media-player and entertainment hub for all your digital media.
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This is the development package for Kodi Addons.
 .
 This package contains independent headers for building Addons without the
 whole Kodi source tree.

Package: kodi-addons-dev-common
Architecture: all
Multi-Arch: foreign
Section: libdevel
Depends: ${misc:Depends}
Breaks: kodi-addons-dev (<< 5:19.5-dmo1~)
Replaces: kodi-addons-dev (<< 5:19.5-dmo1~)
Description: Open Source Home Theatre (architecture-independent addon development package)
 Kodi, formerly known as XBMC is an award winning free and open source
 software media-player and entertainment hub for all your digital media. 
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This is the development package for Kodi Addons.
 .
 This package contains independent headers for building addons without the
 need to keep a whole Kodi source tree.

Package: kodi-tools-texturepacker
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Breaks: kodi (<< 5:19.5-dmo1~)
Replaces: kodi (<< 5:19.5-dmo1~)
Description: Open Source Home Theatre (TexturePacker skin development tool)
 Kodi, formerly known as XBMC is an award winning free and open source
 software media-player and entertainment hub for all your digital media. 
 Kodi is available for Linux, Mac OS X (Leopard, Tiger and Apple TV) and
 Microsoft Windows, as well as the original Xbox game console. Created in
 2003 by a group of like minded programmers, Kodi is a non-profit project
 run and developed by volunteers located around the world. More than 50
 software developers have contributed to Kodi, and 100-plus translators have
 worked to expand its reach, making it available in more than 30 languages.
 .
 While Kodi functions very well as a standard media player application for
 your computer, it has been designed to be the perfect companion for your
 HTPC. Supporting an almost endless range of remote controls, and combined
 with its beautiful interface and powerful skinning engine, Kodi feels very
 natural to use from the couch and is the ideal solution for your home
 theater. Once installed, your computer will become a fully functional
 multimedia jukebox.
 .
 This package contains TexturePacker, the tool for Kodi skin developers. 
 End users don't need this package to run Kodi.
Das rules File:

Code: Alles auswählen

#!/usr/bin/make -f

ifeq "$(DEB_BUILD_ARCH)" "armel"
	ARCH_SPECIFIC_OPTIONS = -DENABLE_NEON=OFF
	export DEB_LDFLAGS_MAINT_APPEND = -latomic
endif

ifeq "$(DEB_BUILD_ARCH)" "powerpc"
# Options after -latomic only work if -DENABLE_LDGOLD=OFF is set.
	export DEB_LDFLAGS_MAINT_APPEND = -latomic
## -Wl,--no-keep-memory,--reduce-memory-overheads,--hash-size=31
	ARCH_SPECIFIC_OPTIONS = -DENABLE_LDGOLD=OFF
endif

# ffmpeg version :
# grep VERSION= tools/depends/target/ffmpeg/FFMPEG-VERSION

%:
	dh $@ --with quilt -Scmake+ninja

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DAPP_RENDER_SYSTEM=gl \
	-DENABLE_AIRTUNES=ON \
	-DENABLE_ALSA=ON \
	-DENABLE_AVAHI=ON \
	-DENABLE_BLURAY=ON \
	-DENABLE_CCACHE=OFF \
	-DENABLE_CEC=ON \
	-DENABLE_DBUS=ON \
	-DENABLE_DEBUGFISSION=OFF \
	-DENABLE_DVDCSS=ON \
	-DENABLE_EVENTCLIENTS=ON \
	-DENABLE_INTERNAL_CROSSGUID=OFF \
	-DENABLE_INTERNAL_FFMPEG=ON \
	-DENABLE_INTERNAL_KISSFFT=OFF \
	-DENABLE_INTERNAL_RapidJSON=OFF \
	-DENABLE_LIRCCLIENT=ON \
	-DENABLE_MARIADBCLIENT=ON \
	-DENABLE_MICROHTTPD=ON \
	-DENABLE_NFS=ON \
	-DENABLE_OPTICAL=ON \
	-DENABLE_PULSEAUDIO=ON \
	-DENABLE_UDEV=ON \
	-DENABLE_UPNP=ON \
	-DENABLE_VAAPI=ON \
	-DENABLE_VDPAU=ON \
	-DENABLE_XSLT=ON \
	-Wno-dev \
	$(ARCH_SPECIFIC_OPTIONS)

#	exit 1

override_dh_clean:
	dh_clean lib/cpluff/console/cpluff-console lib/cpluff/loader/cpluff-loader \
	lib/cpluff/Makefile.in lib/cpluff/auxliary/ltmain.sh lib/cpluff/config.log \
	lib/cpluff/config.status lib/cpluff/console/Makefile.in lib/cpluff/examples/cpfile/cpfile \
	lib/cpluff/libcpluff/Makefile.in lib/cpluff/libcpluff/libcpluff.la lib/cpluff/libtool \
	lib/cpluff/loader/Makefile.in lib/cpluff/po/Makefile lib/cpluff/po/Makefile.in \
	tools/TexturePacker/TexturePacker \
	debian/*.so kodi_build_* tools/depends/native/TexturePacker/.installed-native

	find -name .deps | xargs -r rm -rf
	find -name .libs | xargs -r rm -rf
	find -name *.exe -delete
	find -name *.chm -delete
	find -name *.dll -delete

	find -name *.o -delete
	find -name *.lo -delete

	find -name Makefile -exec grep -l "automake-1" {} \; | xargs -r rm

	[ ! -f tools/depends/native/TexturePacker/native/Makefile ] || $(MAKE) -C tools/depends/native/TexturePacker/native distclean

override_dh_install:
	rm -rf debian/tmp/usr/share/doc/kodi/kodi-eventclients-dev/examples
	rm debian/tmp/usr/share/kodi/media/Fonts/arial.ttf
	rm debian/tmp/usr/share/kodi/system/settings/darwin*.xml
	rm debian/tmp/usr/share/kodi/system/settings/android.xml
	rm debian/tmp/usr/share/kodi/system/settings/win32.xml
	rm debian/tmp/usr/share/doc/kodi/version.txt
	rm debian/tmp/usr/share/doc/kodi/LICENSE.md
	rm debian/tmp/usr/share/doc/kodi/README.Linux.md

	find debian/tmp -name copying.txt -delete

	rm debian/tmp/usr/share/kodi/addons/skin.estuary/fonts/*.txt

#	find debian/tmp/usr -name '*.in' | xargs -r rm

	dh_install

override_dh_makeshlibs:
	dh_makeshlibs -n

override_dh_shlibdeps: debian/kodi-suggests-dummy.so
	dh_shlibdeps -lusr/lib/$(DEB_HOST_MULTIARCH)/kodi/system/players/dvdplayer

#	dpkg-shlibdeps -dRecommends -edebian/kodi-recommends-dummy.so -xlibc6 -O >> debian/kodi.substvars
	dpkg-shlibdeps -dSuggests -edebian/kodi-suggests-dummy.so -xlibc6 -O >> debian/kodi.substvars

# Nothing as 01/11/2021
#debian/kodi-recommends-dummy.so:
# See obj-*/build/DllPaths_generated.h after a call to dh_auto_configure

#	cc -xc -shared -Wl,--no-as-needed -o $@ /dev/null \
#	-lplist -lshairplay

debian/kodi-suggests-dummy.so:
	cc -xc -shared -Wl,--no-as-needed -o $@ /dev/null \
	-ldvdcss

override_dh_gencontrol:
	debian/dh-addon/dh_kodiaddon_depends
	dh_gencontrol

override_dh_strip:
ifeq "$(DEB_BUILD_ARCH)" "arm64"
	objcopy -S debian/kodi/usr/lib/$(DEB_HOST_MULTIARCH)/kodi/kodi.bin
endif

	dh_strip

override_dh_dwz override_dh_auto_test:
Es wird alles wunderbar durch gebaut ... Meine Frage ist, sollten da nicht einige deb Pakete bei raus kommen? Mache ich was falsch?
Wer HTML postet oder gepostetes HTML quotet oder sich gepostetes oder
gequotetes HTML beschafft, um es in Verkehr zu bringen, wird geplonkt.

damals windows, früher ubuntu, danach debian, heute arch-linux ;)

Benutzeravatar
towo
Beiträge: 4409
Registriert: 27.02.2007 19:49:44
Lizenz eigener Beiträge: GNU Free Documentation License

Re: Debian Paket bauen

Beitrag von towo » 05.01.2024 23:48:17

Das Wichtigste hast du nun vergessen zu erwähnen, mit welchem Befehl hast du denn gebaut?

Benutzeravatar
The Hit-Man
Beiträge: 2171
Registriert: 21.11.2004 17:01:56
Wohnort: Menden ( Sauerland )
Kontaktdaten:

Re: Debian Paket bauen

Beitrag von The Hit-Man » 05.01.2024 23:52:20

Das Wichtigste hast du nun vergessen zu erwähnen, mit welchem Befehl hast du denn gebaut?
ohhh, hast ja recht ;)

Code: Alles auswählen

debuild -b -uc -us
oder auch

Code: Alles auswählen

dh build 
teste immer beides ...

aber macht das einen Unterschied?
Wer HTML postet oder gepostetes HTML quotet oder sich gepostetes oder
gequotetes HTML beschafft, um es in Verkehr zu bringen, wird geplonkt.

damals windows, früher ubuntu, danach debian, heute arch-linux ;)

Benutzeravatar
The Hit-Man
Beiträge: 2171
Registriert: 21.11.2004 17:01:56
Wohnort: Menden ( Sauerland )
Kontaktdaten:

Re: Debian Paket bauen

Beitrag von The Hit-Man » 05.01.2024 23:57:55

hier dann die letzten Ausgaben:

Code: Alles auswählen

make[2]: Verzeichnis „/source/meinkodi/kodi-20.2/obj-i686-linux-gnu“ wird verlassen
[100%] Built target kodi
make[1]: Verzeichnis „/source/meinkodi/kodi-20.2/obj-i686-linux-gnu“ wird verlassen
/usr/bin/cmake -E cmake_progress_start /source/meinkodi/kodi-20.2/obj-i686-linux-gnu/CMakeFiles 0
   create-stamp debian/debhelper-build-stamp
root@TobiAcerWohnen:/source/meinkodi/kodi-20.2# 
Wer HTML postet oder gepostetes HTML quotet oder sich gepostetes oder
gequotetes HTML beschafft, um es in Verkehr zu bringen, wird geplonkt.

damals windows, früher ubuntu, danach debian, heute arch-linux ;)

Antworten