Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Użytkownik

Mam sobie serwerek postawiony na Etchu (4.0_r4a) i tem jest stara wersja libtorrent. Potrzebuje najnowszej wersji (ta z lenny'ego za dużo zależności mi wywala) tej biblioteki ponieważ chciałem zainstalować najnowszego rtorrent'a (obsługuje on on_start, on_stop, on_finished, on_erase - automatyzacja pobierania plików). Pakiet tworzę w ten sposób:
dh_make -l -f ../libtorrent-0.11.9.tar.gz
Edycja plików w katalogu debian
debuild -sa
Ładnie wszystko się konfiguruje i kompiluje nawet udaje mi się go podpisać. Co do libtorrent10_0.11.9-1_i386.deb nie mam zastrzeżeń (no może poza małym błędem - pustym plikiem /usr/share/doc/libtorrent10/changelog.gz - to naprawię później).
Problem jest z libtorrent-dev_0.11.9-1_i386.deb (też mam błąd o pustym pliku changelog.gz): ten pakiet deb powinien dorzucić plik libtorrent.pc do /usr/lib/pkgconfig ale tego nie robi. Nie wiem dlaczego, pomimo, że w testowym środowisku (to z momentu budowania pakietu) czyli w katalogu debian/tmp/usr/lib/pkgconfig (w katalogu ze źródłami libtorrent) znajduje się libtorrent.pc. Czy ktoś może mnie jakoś naprowadzić co jest błędem...
Ostatnio edytowany przez ShinnRa (2008-09-17 15:29:05)
Offline






Admin łajza







plik rules poproszę
Offline
Użytkownik

debian/rules:
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
# shared library versions, option 1
version=2.0.5
major=2
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
#version=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
#major=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
config.status: configure
dh_testdir
# Add here commands to configure the package.
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
build: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/tmp
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary installDodam, że pliku rules nie ruszałem (jeszcze zbytnio nie znam zasad - dopiero się uczę) tak jak go dh_make wygenerował tak pozostał.
Teraz przeglądając loga z budowania pakietu zauważyłem takie coś:
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: budowanie pakietu `libtorrent-dev' w `../libtorrent-dev_0.11.9-1_i386.deb'.
dpkg-deb: budowanie pakietu `libtorrent1' w `../libtorrent1_0.11.9-1_i386.deb'.
dpkg-genchanges -saCzy mam sie przejmować tymi warningami czy ni ?
Ostatnio edytowany przez ShinnRa (2008-09-17 15:06:36)
Offline






Admin łajza







zgaduję, że felernego pliku nie ma w debian/libtorrent-dev.install (lub podobnym)
Offline



Członek DUG
Użytkownik

azhag napisał(-a):
zgaduję, że felernego pliku nie ma w debian/libtorrent-dev.install (lub podobnym)
no właśnie jest
dawid@debian-pc:/usr/src/libtorrent/libtorrent-0.11.9/debian$ cat libtorrent-dev.install usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* usr/lib/*.la usr/share/pkgconfig/* dawid@debian-pc:/usr/src/libtorrent/libtorrent-0.11.9/debian$
@AgayKhan: zaraz sprobuje... AJ...
teraz mam taki error:
dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_install dh_install: libtorrent-dev missing files (usr/include/*), aborting make: *** [binary-arch] Błąd 1 debuild: fatal error at line 1228: fakeroot debian/rules binary failed dawid@debian-pc:/usr/src/libtorrent/libtorrent-0.11.9$
Co ciekawe jest katalog torrent w podanej lokalizacji
Ostatnio edytowany przez ShinnRa (2008-09-17 21:55:58)
Offline
Strony: 1