[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Another package setup problem



[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> Hello Debian users,
> 
>     Setting up a .deb package still doesn't work:
> 
>     Scenario:
>     Config files go to /etc/X11/<package>/, and are accessed by
>     /usr/X11R6/lib/X11/<package>/config/... through symlinks.
> 
>     The configfiles are introduced to dpkg as conffiles with the
>     pathes in the /etc tree, whereas the files are accessed through
>     symbolic links (Thanks Joey, the hint works!).
> 
>     Problems:
>     The config files are installed through the symbolic links _before_
>     the etc-files are installed.

That never generates any problems. Symbolic links can point to
anything: 

rulcmc:~/rommel$ ln -s asfdj34/asfd./34/65/456/w453/e65/ anything
rulcmc:~/rommel$ ls -al anything 
lrwxrwxrwx   1 joost    users          33 Aug 26 19:09 anything -> asfdj34/asfd./34/65/456/w453/e65/

No problem, even though the directory asfdj34/asfd./34/65/456/w453/e65/ doesn't
actually exist on my system.

>           dpkg reports on error on
>     this:
> 
>        unable to create `etc/X11/xmcd/common.cfg': No such file or directory

I assume you don't create the symbolic links in the debian/rules "binary""
part, do you? Any errors you run in to should be at package build
time, not at install time.

So, in the debian/rules file, in the "binary" target part, do
somethign like:
	mkdir debian/tmp/etc/x11/xmcd/  debian/tmp/usr/x11r6/lib/x11/<package>/config/
	echo "this is the contents of a config file" > debian/tmp/etc/x11/xmcd/config.cfg
	ln -s /etc/X11/xmcd/common.cfg debian/tmp/usr/x11r6/lib/x11/<package>/config/

That should work.


-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: