public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  More ebuild failing (install step)
@ 2006-09-06 13:23 reader
  2006-09-06 20:24 ` Richard Fish
  0 siblings, 1 reply; 10+ messages in thread
From: reader @ 2006-09-06 13:23 UTC (permalink / raw
  To: gentoo-user

I'm trying to create my own ebuild of samba and have been following
along with http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds \
#Setting_Up_Portage_Overlay

I'm getting a clean run thru these steps:

  digest
  unpack
  compile

But on the `install step' it fails with:

>>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
make: *** No rule to make target `install-everything'.  Stop.

!!! ERROR: net-fs/samba-3.0.23c failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  samba-3.0.23c.ebuild, line 132:   Called die

===========

That kind of appears to mean that `compile' has failed and thus the
Makefile is not complete, but I see nothing during compile to indicate
a failure.

Maybe I'm misunderstanding what the error output means?


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] More ebuild failing (install step)
  2006-09-06 13:23 [gentoo-user] More ebuild failing (install step) reader
@ 2006-09-06 20:24 ` Richard Fish
  2006-09-07  1:57   ` [gentoo-user] " reader
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Fish @ 2006-09-06 20:24 UTC (permalink / raw
  To: gentoo-user

On 9/6/06, reader@newsguy.com <reader@newsguy.com> wrote:
> But on the `install step' it fails with:
>
> >>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
> make: *** No rule to make target `install-everything'.  Stop.

[snip]

> That kind of appears to mean that `compile' has failed and thus the
> Makefile is not complete, but I see nothing during compile to indicate
> a failure.

No, the compile is probably fine.  Most likely the install-everything
target is gone from the make file.  Based on [1], you probably need to
replace the "make DESTDIR=${D} install-everything" command in the
ebuild with just "make DESTDIR=${D} install".

-Richard

[1] http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/compiling.html
-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: More ebuild failing (install step)
  2006-09-06 20:24 ` Richard Fish
@ 2006-09-07  1:57   ` reader
  2006-09-07  5:34     ` Richard Fish
  0 siblings, 1 reply; 10+ messages in thread
From: reader @ 2006-09-07  1:57 UTC (permalink / raw
  To: gentoo-user

"Richard Fish" <bigfish@asmallpond.org> writes:

>> >>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
>> make: *** No rule to make target `install-everything'.  Stop.
>
> [snip]
>
>> That kind of appears to mean that `compile' has failed and thus the
>> Makefile is not complete, but I see nothing during compile to indicate
>> a failure.
>
> No, the compile is probably fine.  Most likely the install-everything
> target is gone from the make file.  Based on [1], you probably need to
> replace the "make DESTDIR=${D} install-everything" command in the
> ebuild with just "make DESTDIR=${D} install".

That sounded very promising but when I did that and reran 
  digest
  unpack
  compile
  install

I get this:
 >>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
make: *** No rule to make target `install'.  Stop.

The command was actually "make DESTDIR=${D} install-everything || die"
So I changed it to "make DESTDIR=${D} install || die"

But it seems that isn't all that is required?

It isn't at all clear which Makefile is causing the problem either.
There are these:

 pwd=/var/tmp/portage/samba-3.0.23c/work/samba-3.0.23c
 find . -iname '*Makefile*'

In my meager knowledge Makefile.in is used to create a Makefile but
which one guides the overall build?

./pcp/Makefile
./source/tdb/Makefile
./source/iniparser/test/Makefile
./source/iniparser/Makefile
./source/Makefile.in
./examples/VFS/Makefile.in
./examples/pdb/Makefile
./examples/LDAP/smbldap-tools-0.9.2/Makefile
./examples/auth/crackcheck/Makefile
./examples/auth/Makefile
./examples/perfcounter/Makefile
./examples/libsmbclient/Makefile
./examples/libsmbclient/smbwrapper/Makefile
./examples/libmsrpc/test/Makefile
./examples/libmsrpc/cacusermgr/Makefile
./testsuite/smbd/Makefile.sec_ctx
./testsuite/smbd/Makefile.se_access_check
./testsuite/nsswitch/Makefile.longarg
./testsuite/printing/Makefile.psec
./testsuite/printing/Makefile.vlp
./testsuite/libsmbclient/src/Makefile


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: More ebuild failing (install step)
  2006-09-07  1:57   ` [gentoo-user] " reader
@ 2006-09-07  5:34     ` Richard Fish
  2006-09-07 15:59       ` reader
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Fish @ 2006-09-07  5:34 UTC (permalink / raw
  To: gentoo-user

On 9/6/06, reader@newsguy.com <reader@newsguy.com> wrote:
> That sounded very promising but when I did that and reran
>   digest
>   unpack
>   compile
>   install
>
> I get this:
>  >>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
> make: *** No rule to make target `install'.  Stop.

Hmm.  Ok, I diff'd the src/Makefile.in files for 3.0.23a and 3.0.23c,
and both have defined install-everything and install targets...so that
should be working.

Can I suggest you post your .ebuild for us to review/test?

> It isn't at all clear which Makefile is causing the problem either.
> There are these:

It should be the one in the source/ directory....

>  pwd=/var/tmp/portage/samba-3.0.23c/work/samba-3.0.23c
>  find . -iname '*Makefile*'
>
> In my meager knowledge Makefile.in is used to create a Makefile but
> which one guides the overall build?
>
> ./pcp/Makefile
> ./source/tdb/Makefile
> ./source/iniparser/test/Makefile
> ./source/iniparser/Makefile
> ./source/Makefile.in
> ./examples/VFS/Makefile.in

...but it seems you ran this between unpack and compile steps?
Because you have no source/Makefile.

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



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

* [gentoo-user]  Re: More ebuild failing (install step)
  2006-09-07  5:34     ` Richard Fish
@ 2006-09-07 15:59       ` reader
  2006-09-07 19:03         ` Richard Fish
  0 siblings, 1 reply; 10+ messages in thread
From: reader @ 2006-09-07 15:59 UTC (permalink / raw
  To: gentoo-user

"Richard Fish" <bigfish@asmallpond.org> writes:

>> In my meager knowledge Makefile.in is used to create a Makefile but
>> which one guides the overall build?
>>
>> ./pcp/Makefile
>> ./source/tdb/Makefile
>> ./source/iniparser/test/Makefile
>> ./source/iniparser/Makefile
>> ./source/Makefile.in
>> ./examples/VFS/Makefile.in
>
> ...but it seems you ran this between unpack and compile steps?
> Because you have no source/Makefile.
>

No, I ran find between `compile' and `install', and that must be the
problem.  ./source/Makefile disappears when I run `ebuild install'. Checking now:

I've stepped thru these:

  digest
  unpack
  compile

And now there is a Makefile in source
find . -iname '*makefile*'
./pcp/Makefile
./source/tdb/Makefile
./source/Makefile
./source/iniparser/test/Makefile
./source/iniparser/Makefile
./source/Makefile.in
./examples/VFS/Makefile.in

[...]

But once I've run `ebuild install' (and it fails as posted) it
disappears: 
find . -iname '*makefile*'
./pcp/Makefile
./source/tdb/Makefile
./source/iniparser/test/Makefile
./source/iniparser/Makefile
./source/Makefile.in
./examples/VFS/Makefile.in
./examples/pdb/Makefile

[...]

I used the samba-3.0.23a.ebuild now on portage as base.  The only
changes I've made were to illimintate torture

These two lines at line 127

  #     einfo "make rpctorture"
  #     emake rpctorture || ewarn "rpctorture didn't build"

And the change you suggested at line 148 

<       make DESTDIR=${D} install-everything || die
---
>       make DESTDIR=${D} install || die

I've since restored intall-everything

 I've diffed my ebuild against the one now on 
  portage samba-3.0.23a.ebuild for your convenience and inlined the
  resulting patch derived with diff -u (unified style output)

But first, the reason for commenting out those two line about torture
was because the compile phase broke on compiling torture and I
couldn't determine why.  I was told torture was an antiquated and
little used tool so decided to just try to leave it out.

Also the full edited ebuild is here:
  http://www.jtan.com/~reader/samba-3.0.23c.ebuild
but a diff is posted below.

diff -u samba-3.0.23a.ebuild samba-3.0.23c.ebuild
========================================================
--- samba-3.0.23a.ebuild        2006-09-07 09:49:39.000000000 -0500
+++ samba-3.0.23c.ebuild        2006-09-07 10:43:38.000000000 -0500
@@ -123,8 +123,8 @@
        emake proto || die "SAMBA make proto error"
        emake everything || die "SAMBA make everything error"
 
-       einfo "make rpctorture"
-       emake rpctorture || ewarn "rpctorture didn't build"
+#      einfo "make rpctorture"
+#      emake rpctorture || ewarn "rpctorture didn't build"
 
        if use python ; then
                python python/setup.py build

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: More ebuild failing (install step)
  2006-09-07 15:59       ` reader
@ 2006-09-07 19:03         ` Richard Fish
  2006-09-07 19:25           ` reader
  2006-09-07 19:28           ` reader
  0 siblings, 2 replies; 10+ messages in thread
From: Richard Fish @ 2006-09-07 19:03 UTC (permalink / raw
  To: gentoo-user

On 9/7/06, reader@newsguy.com <reader@newsguy.com> wrote:
> No, I ran find between `compile' and `install', and that must be the
> problem.  ./source/Makefile disappears when I run `ebuild install'. Checking now:

Ok, I'm getting the same error.  If you do an unpack and then compile,
do you get the following at the start of the compile?  How about at
the start of the install?

 * checking samba-3.0.23c.tar.gz ;-) ...                                  [ ok ]
 * checking samba-3-gentoo-0.3.14.tar.bz2 ;-) ...                         [ ok ]
>>> Checking samba-3.0.23c.tar.gz's mtime...
>>> samba-3.0.23c.tar.gz has been updated; recreating WORKDIR...
>>> /usr/local/portage/net-fs/samba/samba-3.0.23c.ebuild has been
updated; recreating WORKDIR...
>>> Unpacking source...

This would be a real problem for install, as it would result in the
source tree being removed and recreated...obviuosly in an unconfigured
and uncompiled state.

This is odd, and I'm still looking for the solution...

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



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

* [gentoo-user]  Re: More ebuild failing (install step)
  2006-09-07 19:03         ` Richard Fish
@ 2006-09-07 19:25           ` reader
  2006-09-07 19:28           ` reader
  1 sibling, 0 replies; 10+ messages in thread
From: reader @ 2006-09-07 19:25 UTC (permalink / raw
  To: gentoo-user

"Richard Fish" <bigfish@asmallpond.org> writes:

> On 9/7/06, reader@newsguy.com <reader@newsguy.com> wrote:
>> No, I ran find between `compile' and `install', and that must be the
>> problem.  ./source/Makefile disappears when I run `ebuild install'. Checking now:
>
> Ok, I'm getting the same error.  If you do an unpack and then compile,
> do you get the following at the start of the compile?  How about at
> the start of the install?
>
> * checking samba-3.0.23c.tar.gz ;-) ...                                  [ ok ]
> * checking samba-3-gentoo-0.3.14.tar.bz2 ;-) ...                         [ ok ]
>>>> Checking samba-3.0.23c.tar.gz's mtime...
>>>> samba-3.0.23c.tar.gz has been updated; recreating WORKDIR...
>>>> /usr/local/portage/net-fs/samba/samba-3.0.23c.ebuild has been
> updated; recreating WORKDIR...
>>>> Unpacking source...
>
> This would be a real problem for install, as it would result in the
> source tree being removed and recreated...obviuosly in an unconfigured
> and uncompiled state.
>
> This is odd, and I'm still looking for the solution...

Yeah, it hadn't dawned on me what that meant or that I should take it
literally.  It appears to do everything all over again at each step.
And of course since source has been replaced and is now in uncompiled
state the make error makes sense.

>From `install'

root # ebuild samba-3.0.23c.ebuild install
 * samba-3-gentoo-0.3.14.tar.bz2 MD5 ;-) ...                              [ ok ]
 * samba-3-gentoo-0.3.14.tar.bz2 RMD160 ;-) ...                           [ ok ]
 * samba-3-gentoo-0.3.14.tar.bz2 SHA1 ;-) ...                             [ ok ]
 * samba-3-gentoo-0.3.14.tar.bz2 SHA256 ;-) ...                           [ ok ]
 * samba-3-gentoo-0.3.14.tar.bz2 size ;-) ...                             [ ok ]
 * samba-3.0.23c.tar.gz MD5 ;-) ...                                       [ ok ]
 * samba-3.0.23c.tar.gz RMD160 ;-) ...                                    [ ok ]
 * samba-3.0.23c.tar.gz SHA1 ;-) ...                                      [ ok ]
 * samba-3.0.23c.tar.gz SHA256 ;-) ...                                    [ ok ]
 * samba-3.0.23c.tar.gz size ;-) ...                                      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking samba-3.0.23c.tar.gz ;-) ...                                  [ ok ]
 * checking samba-3-gentoo-0.3.14.tar.bz2 ;-) ...                         [ ok ]
>>> Checking samba-3.0.23c.tar.gz's mtime...
>>> samba-3.0.23c.tar.gz has been updated; recreating WORKDIR...
>>> /usr/local/portage/net-fs/samba/samba-3.0.23c.ebuild has been updated; recreating WORKDIR...
>>> Unpacking source...
>>> Unpacking samba-3.0.23c.tar.gz to /var/tmp/portage/samba-3.0.23c/work
>>> Unpacking samba-3-gentoo-0.3.14.tar.bz2 to /var/tmp/portage/samba-3.0.23c/work
 * Applying various patches (bugfixes/updates) ...
 *   002_all_samba-3.0.x-smbumount-uid32.patch ...                        [ ok ]
 *   003_all_samba-3.0.x-libdirsymlink.patch ...                          [ ok ]
 *   004_all_samba-2.2.8-statfs.patch ...                                 [ ok ]
 *   010_all_samba-3.0.x-extrabins.patch ...                              [ ok ]
 *   011_all_samba-3.0.x-subins-configure.patch ...                       [ ok ]
 *   012_all_samba-3.0.x-subins-makefile.patch ...                        [ ok ]
 *   030_all_samba-3.0.x-cross-compile.patch ...                          [ ok ]
 *   040_all_samba-3.0.22-autoconf-2.60-fix.patch ...                     [ ok ]
 * Done with patching
>>> Source unpacked.
>>> It appears that samba is already compiled; skipping.
>>> (clean to force compilation)
>>> It appears that samba has already been tested; skipping.

>>> Install samba-3.0.23c into /var/tmp/portage/samba-3.0.23c/image/ category net-fs
make: *** No rule to make target `install-everything'.  Stop.


-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: More ebuild failing (install step)
  2006-09-07 19:03         ` Richard Fish
  2006-09-07 19:25           ` reader
@ 2006-09-07 19:28           ` reader
  2006-09-08  7:08             ` Richard Fish
  1 sibling, 1 reply; 10+ messages in thread
From: reader @ 2006-09-07 19:28 UTC (permalink / raw
  To: gentoo-user

"Richard Fish" <bigfish@asmallpond.org> writes:

> This would be a real problem for install, as it would result in the
> source tree being removed and recreated...obviuosly in an unconfigured
> and uncompiled state.
>
> This is odd, and I'm still looking for the solution...
>

And may be why there is no recent ebuild of samba.
I appreciate your taking time and effort for this.

Once the problem is found it will probably remove any need to mess
around with `torture' too.  That was probably a result of the `compile'
produced Makefile being zapped as well.

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: More ebuild failing (install step)
  2006-09-07 19:28           ` reader
@ 2006-09-08  7:08             ` Richard Fish
  2006-09-08 19:01               ` reader
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Fish @ 2006-09-08  7:08 UTC (permalink / raw
  To: gentoo-user

On 9/7/06, reader@newsguy.com <reader@newsguy.com> wrote:
> "Richard Fish" <bigfish@asmallpond.org> writes:
>
> > This would be a real problem for install, as it would result in the
> > source tree being removed and recreated...obviuosly in an unconfigured
> > and uncompiled state.
> >
> > This is odd, and I'm still looking for the solution...
> >
>
> And may be why there is no recent ebuild of samba.

Nope.  I get the same effect with samba-3.0.23a and samba-3.0.23, both
in the portage tree.

Looks like the problem comes from the samba-3-gentoo-0.3.14.tar.bz2
archive, which contains an entry for "./" dated from 2005-10-06.  This
causes the work directory to have that date when the archive is
extracted, and confuses ebuild a bit because the distfile now has a
more recent date than workdir, so it thinks it needs to recreate
workdir.

You can work around this problem by running "ebuild ... merge",
"ebuild ... package", or just "emerge =net-fs/samba-3.0.23c".

http://bugs.gentoo.org/show_bug.cgi?id=146801

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



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

* [gentoo-user]  Re: More ebuild failing (install step)
  2006-09-08  7:08             ` Richard Fish
@ 2006-09-08 19:01               ` reader
  0 siblings, 0 replies; 10+ messages in thread
From: reader @ 2006-09-08 19:01 UTC (permalink / raw
  To: gentoo-user

"Richard Fish" <bigfish@asmallpond.org> writes:

> Looks like the problem comes from the samba-3-gentoo-0.3.14.tar.bz2
> archive, which contains an entry for "./" dated from 2005-10-06.  This
> causes the work directory to have that date when the archive is
> extracted, and confuses ebuild a bit because the distfile now has a
> more recent date than workdir, so it thinks it needs to recreate
> workdir.
>
> You can work around this problem by running "ebuild ... merge",
> "ebuild ... package", or just "emerge =net-fs/samba-3.0.23c".

Nice detective work!

Running emerge =net-fs/samba-3.0.23c

Seems to have produced a clean install.

Thanks..

-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-09-08 19:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-06 13:23 [gentoo-user] More ebuild failing (install step) reader
2006-09-06 20:24 ` Richard Fish
2006-09-07  1:57   ` [gentoo-user] " reader
2006-09-07  5:34     ` Richard Fish
2006-09-07 15:59       ` reader
2006-09-07 19:03         ` Richard Fish
2006-09-07 19:25           ` reader
2006-09-07 19:28           ` reader
2006-09-08  7:08             ` Richard Fish
2006-09-08 19:01               ` reader

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