deb - Debian packaging rules -
when tried make link inside rules file didn't allow me.how can make it? here did.
#!/usr/bin/make -f icon = $(curdir)/frontpage.png script = $(curdir)/guilotinga.py launcher = $(curdir)/internation.desktop dest1 = $(curdir)/debian/internation/usr/share/internation dest2 = $(curdir)/debian/internation/usr/share/applications build: build-stamp build-stamp: dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp dh_clean install: build clean $(icon) $(script) $(launcher) dh_testdir dh_testroot dh_prep dh_installdirs mkdir -m 755 -p $(dest1) mkdir -m 755 -p $(dest2) install -m 666 $(icon) $(dest1) install -m 777 $(script) $(dest1) install -m 777 $(launcher) $(dest2) ln -s usr/share/internation/guilotinga.py /usr/bin/internation (that's stopped)
the line above giving error saying don't have enough privileges.what fault?
binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installman dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary-arch: build install binary: binary-indep binary-arch .phony: build clean binary-indep binary-arch binary install
i'm assuming wanted make symlink to /usr/bin/internation
, , have link show /usr/share/internation/guilotinga.py
when package installed. if so, you're giving link command backwards. want
ln -s /usr/bin/internation usr/share/internation/guilotinga.py
as further note, though, symlinks in debian packages should not ever absolute, unless you're symlinking 1 toplevel directory (see debian policy section 10.5).
in case, don't need change anything, since have call dh_link
in build script. tool automatically fix noncompliant symlinks in package build area (unless you're running in super-ancient debhelper compat mode).
but if want avoid potentially confusing readers (or yourself), perhaps ought do
ln -s ../../bin/internation usr/share/internation/guilotinga.py
Comments
Post a Comment