public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  [ebuild] make ebuild use custom ./configure arg
@ 2006-09-05  6:00 reader
  2006-09-05  8:00 ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: reader @ 2006-09-05  6:00 UTC (permalink / raw
  To: gentoo-user

I'm trying to make my own ebuild of samba, jumping to latest release
23c.  After creating the overlay and moving the current 23a there
renamed as 23c.  I'd like to make ebuild use one custom ./conifigure
arg of my own creation.

When I step thru the ebuild process with:
  digest
  unpack
  compile

The compile part breaks on a tool called `torture' which is an
antiquated and little used part of samba.  
  (The final protion of compile output is included at the end) 

I'd like to just by pass building `torture' with ./configure
--without-torture or in some other way.  (Perhaps by finding what is
breaking it initially.)

When I tested by just running 
    ./configure --without-torture 

it seemed to be working but finally broke out with what looks like
stuff that expected torture to be built (partial error output at the
end)

Below are two separate pieces of compile error.  First is the result
of running ebuild.  Its kind of long but it was not apparent what was
important and the whole snippet is about `torture'
 
   digest
  unpack
  compile
The error came at the end of compile.  Below this snippet is a
separate snippet (thankfully shorter) where I tried to skirt
`torture'.

=======================
(From running ebuild [...] compile)

source -D_SAMBA_BUILD_    
      LIBS = -lcrypt -lcap -lresolv -lresolv -lnsl -ldl
      LDSHFLAGS = -shared -Wl,-Bsymbolic 
      LDFLAGS = 
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Compiling torture/rpctorture.c
torture/rpctorture.c:27: error: 'global_myname' redeclared as different kind of symbol
include/proto.h:1122: error: previous declaration of 'global_myname' was here
torture/rpctorture.c:57: warning: 'struct client_info' declared inside parameter list
torture/rpctorture.c:57: warning: its scope is only this definition or declaration, which is probably not what you want
torture/rpctorture.c: In function 'rpcclient_connect':
torture/rpctorture.c:62: error: dereferencing pointer to incomplete type
torture/rpctorture.c:62: error: dereferencing pointer to incomplete type
torture/rpctorture.c:63: error: dereferencing pointer to incomplete type
torture/rpctorture.c:66: error: dereferencing pointer to incomplete type
torture/rpctorture.c:66: error: dereferencing pointer to incomplete type
torture/rpctorture.c:68: error: dereferencing pointer to incomplete type
torture/rpctorture.c:68: error: dereferencing pointer to incomplete type
torture/rpctorture.c: At top level:
torture/rpctorture.c:90: warning: 'struct client_info' declared inside parameter list
torture/rpctorture.c: In function 'run_enums_test':
torture/rpctorture.c:96: warning: passing argument 1 of 'rpcclient_connect' from incompatible pointer type
torture/rpctorture.c:102: error: dereferencing pointer to incomplete type
torture/rpctorture.c:102: error: dereferencing pointer to incomplete type
torture/rpctorture.c: At top level:
torture/rpctorture.c:134: warning: 'struct client_info' declared inside parameter list
torture/rpctorture.c: In function 'run_ntlogin_test':
torture/rpctorture.c:140: warning: passing argument 1 of 'rpcclient_connect' from incompatible pointer type
torture/rpctorture.c:146: error: dereferencing pointer to incomplete type
torture/rpctorture.c:146: error: dereferencing pointer to incomplete type
torture/rpctorture.c: At top level:
torture/rpctorture.c:167: warning: 'struct client_info' declared inside parameter list
torture/rpctorture.c: In function 'main':
torture/rpctorture.c:233: error: storage size of 'cli_info' isn't known
torture/rpctorture.c:291: error: 'struct cli_state' has no member named 'pipes'
torture/rpctorture.c:377: error: 'scope' undeclared (first use in this function)
torture/rpctorture.c:377: error: (Each undeclared identifier is reported only once
torture/rpctorture.c:377: error: for each function it appears in.)
torture/rpctorture.c:535: warning: passing argument 5 of 'create_procs' from incompatible pointer type
torture/rpctorture.c:539: warning: passing argument 5 of 'create_procs' from incompatible pointer type
make: *** [torture/rpctorture.o] Error 1
 * rpctorture didn't build
running build
running build_py
running build_ext
>>> Source compiled.

=============================================

Partial output from running ./configure --without-torture

[...]
Linking bin/locktest
Compiling torture/locktest2.c
torture/locktest2.c: In function 'test_one':
torture/locktest2.c:258: warning: passing argument 1 of 'brl_forall' from incompatible pointer type
torture/locktest2.c:273: warning: passing argument 1 of 'brl_forall' from incompatible pointer type
torture/locktest2.c:289: warning: passing argument 1 of 'brl_forall' from incompatible pointer type
Linking bin/locktest2
Compiling torture/nsstest.c
Linking bin/nsstest
Compiling torture/cmd_vfs.c
Compiling torture/vfstest.c
Linking bin/vfstest
Compiling utils/debug2html.c
Compiling utils/debugparse.c
Linking bin/debug2html
Compiling utils/smbfilter.c
Linking bin/smbfilter
Compiling lib/talloctort.c
Linking bin/talloctort
Compiling utils/log2pcaphex.c
Linking bin/log2pcap
Compiling client/mount.cifs.c
Linking bin/mount.cifs
Compiling client/umount.cifs.c
Linking bin/umount.cifs
make: *** No rule to make target `@EXTRA_SUBIN_PROGS@', needed by `all'.  Stop. 



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user]  [ebuild] make ebuild use custom ./configure arg
  2006-09-05  6:00 [gentoo-user] [ebuild] make ebuild use custom ./configure arg reader
@ 2006-09-05  8:00 ` Neil Bothwick
  2006-09-06  2:42   ` [gentoo-user] " reader
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2006-09-05  8:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

On Tue, 05 Sep 2006 01:00:06 -0500, reader@newsguy.com wrote:

> I'm trying to make my own ebuild of samba, jumping to latest release
> 23c.  After creating the overlay and moving the current 23a there
> renamed as 23c.  I'd like to make ebuild use one custom ./conifigure
> arg of my own creation.

There are two ways of doing this:

Modify the ebuild, adding 

	--without-torture \

to the list that follows "econf" in src_compile(), line 95 in the
3.0.23a ebuild.

Set the EXTRA_ECONF variable

EXTRA_ECONF="--without-torture" emerge samba


-- 
Neil Bothwick

From the moment I picked your book up until I laid it down I was
convulsed with laughter. Someday I intend reading it.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: [ebuild] make ebuild use custom ./configure arg
  2006-09-05  8:00 ` Neil Bothwick
@ 2006-09-06  2:42   ` reader
  2006-09-06  3:19     ` Richard Fish
  0 siblings, 1 reply; 4+ messages in thread
From: reader @ 2006-09-06  2:42 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> writes:

> On Tue, 05 Sep 2006 01:00:06 -0500, reader@newsguy.com wrote:
>
>> I'm trying to make my own ebuild of samba, jumping to latest release
>> 23c.  After creating the overlay and moving the current 23a there
>> renamed as 23c.  I'd like to make ebuild use one custom ./conifigure
>> arg of my own creation.
>
> There are two ways of doing this:
>
> Modify the ebuild, adding 
>
> 	--without-torture \
>
> to the list that follows "econf" in src_compile(), line 95 in the
> 3.0.23a ebuild.
>
> Set the EXTRA_ECONF variable
>
> EXTRA_ECONF="--without-torture" emerge samba

Thanks for the detailed help, I think I must be going at this the
wrong way and should maybe be trying to figure out why `torture' is
breaking rather than trying to by-pass it.

The configure still fails after adding 
  	--without-torture \
as suggested under the `econf' section.  The the last chunk of
compiler output is at the end of this message.

It appears identical to the ouput I got with my first attempt at
making an ebuild, so I'm guessing --without-torture is not really a
possible flag as it appears to be breaking on torture any way.

I see some lines futher down below the econf section, around line 127
where the script runs `make torture' so --without-torture doesn't do
it I guess.  

I've tried commenting those two line out:
  #  einfo "make rpctorture"
  #  emake rpctorture || ewarn "rpctorture didn't build"

But then the verification fails on the ebuild `unpack' part:
  [...]
  !!! Digest verification failed:
  !!! /usr/local/portage/net-fs/samba/samba-3.0.23c.ebuild
  !!! Reason: Filesize does not match recorded size
  !!! Got: 8233
  !!! Expected: 8230

So how can I edit this script and get around that failure?  And why
didn't it fail verification when I inserted --withoug-toruture?

That would have changed the md5 too.

Or is it something I can correct by just generating my own post edit
md5 checksum?



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: [ebuild] make ebuild use custom ./configure arg
  2006-09-06  2:42   ` [gentoo-user] " reader
@ 2006-09-06  3:19     ` Richard Fish
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Fish @ 2006-09-06  3:19 UTC (permalink / raw
  To: gentoo-user

On 9/5/06, reader@newsguy.com <reader@newsguy.com> wrote:
> Or is it something I can correct by just generating my own post edit
> md5 checksum?

Yes.  "ebuild <path_to_.ebuild> digest".  So run:

ebuild /usr/local/portage/net-fs/samba/samba-3.0.23c.ebuild digest

HTH,
-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-06  3:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05  6:00 [gentoo-user] [ebuild] make ebuild use custom ./configure arg reader
2006-09-05  8:00 ` Neil Bothwick
2006-09-06  2:42   ` [gentoo-user] " reader
2006-09-06  3:19     ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox