[Pkg-mozext-maintainers] Help packaging

Michele Cane michele.cane at gmail.com
Tue Jun 25 13:28:20 UTC 2013


Hi,

I am packaging LyZ which is a connector Zotero to LyX connector.
You can find my work here:

http://anonscm.debian.org/gitweb/?p=collab-maint/lyz.git;a=summary


Two version of zotero exist, a firefox/iceweasel extension and a
standalone extension.

The package will be xul-ext-lyz and I therefore need to create symlink
from usr/share/xul-ext/lyz to /usr/share/zotero-standalone/extensions/.

Now in my debian/rules I use:

#!/usr/bin/make -f

%:
        dh $@ --with xul-ext --buildsystem=xul_ext

and I come across this error

ln: target 'debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/'
is not a directory: No such file or directory
dh_link: ln -sf ../xul-ext/lyz
debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/ returned exit
code 1
/usr/lib/python2.7/dist-packages/RDF.py:1995: RedlandWarning: Variable
bnodeid1 was bound but is unused in the query
  results = Redland.librdf_query_execute(self._query,model._model)
/usr/lib/python2.7/dist-packages/RDF.py:1995: RedlandWarning: Variable
bnodeid2 was bound but is unused in the query
  results = Redland.librdf_query_execute(self._query,model._model)
ln: target 'debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/'
is not a directory: No such file or directory
dh_link: ln -sf ../xul-ext/lyz
debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/ returned exit
code 1
ln: target 'debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/'
is not a directory: No such file or directory
dh_link: ln -sf ../xul-ext/lyz
debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/ returned exit
code 1
unzip -o
-d /tmp/buildd/lyz-2.1.5-3-g895ff3a/debian/xul-ext-lyz/usr/share/xul-ext/lyz xul-ext-lyz.xpi
install-xpi: correct permission from 0755 to 0644 of
defaults/preferences/lyz.js
dh_link -pxul-ext-lyz
usr/share/xul-ext/lyz /usr/share/mozilla/extensions/zotero at chnm.gmu.edu/lyz at zotero.org
dh_link -pxul-ext-lyz
usr/share/xul-ext/lyz /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/lyz at zotero.org
   dh_xul-ext -O--buildsystem=xul_ext
/usr/lib/python2.7/dist-packages/RDF.py:1995: RedlandWarning: Variable
bnodeid1 was bound but is unused in the query
  results = Redland.librdf_query_execute(self._query,model._model)
dh_xul-ext: Warning: Please add ${xpi:Depends} to Depends. Using only
${xpi:Recommends} is deprecated.
   dh_installdocs -O--buildsystem=xul_ext
   dh_installchangelogs -O--buildsystem=xul_ext
   dh_perl -O--buildsystem=xul_ext
   dh_link -O--buildsystem=xul_ext
ln: target 'debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/'
is not a directory: No such file or directory
dh_link: ln -sf ../xul-ext/lyz
debian/xul-ext-lyz/usr/share/zotero-standalone/extensions/ returned exit
code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
status 2
E: Failed autobuilding of package
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
 -> Cleaning COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.20912 
gbp:error: Couldn't run '/usr/bin/git-pbuilder': /usr/bin/git-pbuilder
returned 1


apparently dh_link is triggered by dh $@ --with xul-ext
--buildsystem=xul_ext and create a conflict with the xul-ext-lyz.links.

Can someone give me a suggestion on how to overcome this issue?


Cheers

Mike




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozext-maintainers/attachments/20130625/1cce58b1/attachment.sig>


More information about the Pkg-mozext-maintainers mailing list