This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygport: Adding arbitrary files to the src package


On May 11 00:53, Yaakov (Cygwin/X) wrote:
> On Mon, 2012-05-07 at 17:06 +0200, Corinna Vinschen wrote: 
> > > As always, if you could specify the actual package and .cygport you
> > > are trying to build, I may be able to find other solutions.
> > 
> > Attached.  See the FIXME comment.
> 
> Comments inlined.
> 
> > DESCRIPTION="The UNIX emulation engine"
> > HOMEPAGE="http://cygwin.com/";
> > 
> > CVS_URI=":pserver:anoncvs@cygwin.com:/cvs/src"
> > CVS_MODULE="winsup"
> > CVS_BRANCH="cygwin-${PV//\./_}-release"
> > CVS_TOPLEVEL="src"
> > inherit cvs
> 
> See other thread.
> 
> >   cygconf --localstatedir=/var
> 
> This argument is among the defaults, so a simple cygconf will do here.

Oh, right.  This is a leftover from fooling around with the cygwin
cygport settings.  Fixed locally.

> Alternatively (and this is optional), you could ditch the src_compile()
> by defining TOOLCHAIN_TARGET="i686-pc-cygwin" above and inherit()ing
> toolchain as well.

Erm... you mean, no src_compile at all?  Just

  TOOLCHAIN_TARGET="i686-pc-cygwin"
  inherit toolchain

???

> 
> >   # tooldir and gcc_tooldir must be set to install correctly even when
> >   # building on a non-Cygwin build machine.
> >   MAKEOPTS='-j1 tooldir=/usr gcc_tooldir=/usr' cyginstall
> 
> You can pass arguments to cygmake and cyginstall directly:
> 
> cyginstall -j1 tooldir=/usr gcc_tooldir=/usr

Fixed locally.  Can I do that for cyginstall as well?  For the lynx
package I have:

  cyginstall
  make install-doc install-help DESTDIR=${D} \
       docdir=/usr/share/doc/lynx \
       helpdir=/usr/share/doc/lynx/lynx_help

But it would of course be nicer to have

  cyginstall install-doc install-help \
	     docdir=/usr/share/doc/lynx \
	     helpdir=/usr/share/doc/lynx/lynx_help

(If you're wondering, the settings of docdir and helpdir are not
 autoconf'ed even though lynx is using autoconf for many years. 
 And the default settings are just crappy)

> >   ###
> >   ### FIXME:
> >   ###
> >   ### Where to put the cygwin1.dbg file so that it ends up "as is" in 
> >   ### the source tarball?
> >   ###        
> >   ###        
> >   #
> >   # cp ${B}/i686-pc-cygwin/winsup/cygwin/cygwin1.dbg ???
> 
> As a binary file, this wasn't going to work as you had hoped, but with
> the cygwin-debug package (good idea BTW) this point would appear to be
> moot now.

Well, I guess so, yes.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]