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

Re: Problem in building c2hs package



Hi.  I'm not a DM but have a few points.

The tar error will likely fix itself when dpkg-buildpackage completes. 
However I'm not sure why you ran dpkg-source -b to build from an archive
when you never finished the build - and when dpkg-buildpackage is supposed
to do the task of building.  tar's "File exists" I think means the file is
already in the archive (filename pumped to tar twice).

You ran dpkg-buildpackage -r to do a complete rebuild.  But it failed on
the first make dependancy: clean.  Nothing else happened - no build.

The error on 71 is may be a sytax error that needs to be fixed.  Whenever
asking for advice it's good to attatch related files.  In this case,
debain/rules, mk/config.mk, and maybe Makefile.

I don't think debain/rules or dpkg-buildpackage employs mk/common.mk and I
wonder why it is called during make clean.  Is it a makefile?  Or a
depends list (some make files use various techniques to track the need to
build by creating files used for dependancy checking)?

You did ls in debian/ directory. dh_make was apparently used to debanize
the source the first time.

I might start over.  Insure it all builds / rebuilds before debanizing. 
dh_make it.  Then comment out things in debian/rules until at least make
clean works from the Makefile and from debian's helper tools.


Have Fun!

       John



--- Justin Pryzby <justinpryzby@users.sf.net> wrote:

> On Wed, Jul 06, 2005 at 08:54:10PM -0300, Marco Tulio Gontijo e Silva
> wrote:
> > Hello,
> > 
> > I'm trying to build c2hs package, and I have made the debian/* files
> for
> > it, but when I try to build I get the following problem:
> 
> > marcot@tonhao:~/debian/c2hs-0.13.6/debian$ ls
> > c2hs-config.install  c2hs-doc.docs     c2hs.install  compat  
> copyright
> > libghc6-c2hs-dev.install  watch
> > c2hs-doc.doc-base    c2hs-doc.install  changelog     control  docs
> > rules
> > marcot@tonhao:~/debian/c2hs-0.13.6/debian$ cd ..
> > marcot@tonhao:~/debian/c2hs-0.13.6$ dpkg-buildpackage -rfakeroot
> > dpkg-buildpackage: source package is c2hs
> > dpkg-buildpackage: source version is 0.13.6-1
> > dpkg-buildpackage: source changed by Marco Tulio Gontijo e Silva
> > <marcot@minaslivre.org>
> > dpkg-buildpackage: host architecture i386
> >  fakeroot debian/rules clean
> > dh_testdir
> > dh_testroot
> > rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
> > # Add here commands to clean up after the build process.
> > /usr/bin/make distclean
> > make[1]: Entering directory `/home/marcot/debian/c2hs-0.13.6'
> > mk/common.mk:71: mk/config.mk: No such file or directory
> > mk/common.mk:218: warning: overriding commands for target `gendepend'
> > mk/common.mk:210: warning: ignoring old commands for target
> `gendepend'
> > make[1]: *** No rule to make target `mk/config.mk'.  Stop.
> > make[1]: Leaving directory `/home/marcot/debian/c2hs-0.13.6'
> > make: [clean] Error 2 (ignored)
> You should probably investigate this, but it doesn't appear to be the
> source of the current problem.  Maybe "make clean" works, and is
> sufficient?
> 
> > cp -f /usr/share/misc/config.sub config.sub
> > cp -f /usr/share/misc/config.guess config.guess
> > dh_clean
> >  dpkg-source -b c2hs-0.13.6
> > dpkg-source: building c2hs using existing c2hs_0.13.6.orig.tar.gz
> > dpkg-source: failure: tar -xkf - gave error exit status 2
> > marcot@tonhao:~/debian/c2hs-0.13.6$ tar:
> > c2hs-0.13.6/c2hs/mk/c2hs.pck.mk: Cannot open: File exists
> > tar: c2hs-0.13.6/c2hs/mk/config.mk.in: Cannot open: File exists
> > tar: Error exit delayed from previous errors
> > 
> > marcot@tonhao:~/debian/c2hs-0.13.6$
> > 
> > What does this error mean? Can someone help me?
> Is there something in the parent directory that is confusing tar?
> Maybe you aborted a previous run, and the extraction of the .tar into
> a temp directory didn't get removed?  Usually it is there such as to
> make the .diff.gz.
> 
> Justin
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 



Reply to: