Re: problem with "make dist"



> From: "Gene Czarcinski" <gene czarc net>
> I have a clone of the NetworkManager git repository and, this
> morning, I
> ran "git pull" (from master) to make sure it was up to date.  I also
> have a couple of other branches checked out: pavlix/ipv6 and
> pavlix/dhcp.
> 
> I wanted to make a distribution tarball for pavlix/ipv6 so I could
> build an rpm of it.

Don't do that. The 'pavlix/ipv6' branch is obsolete. I'm only keeping it
just in case I need some of the patches later. Use 'master' for IPv6
testing instead.

> But, I seem to be having a problem doing that. Can
> someone tell me the magic dance I need to do to create a tarball from
> the git.

It should work for you from the current master.

> Here is what I did on each of those branches:
> 
> |./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> 
> make
> 
> make dist
> 
> And here is what I get:
> 
> make[2]: Leaving directory
> `/home/gc/devel/git-test/NetworkManager/docs/api'
>   (cd libnm-glib && make top_distdir=../../NetworkManager-0.9.7.0
> distdir=../../NetworkManager-0.9.7.0/docs/libnm-glib \
>       am__remove_distdir=: am__skip_length_check=:
>       am__skip_mode_fix=:
> distdir)
> make[2]: Entering directory
> `/home/gc/devel/git-test/NetworkManager/docs/libnm-glib'
>    DOC   Scanning header files
>    DOC   Introspecting gobjects
> 
> (process:17064): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion `hash_table != NULL' failed
> 
> (process:17064): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion `hash_table != NULL' failed
> 
> (process:17064): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion `hash_table != NULL' failed
> 
> (process:17064): GLib-CRITICAL **: g_hash_table_insert_internal:
> assertion `hash_table != NULL' failed
> make  \
>    top_distdir="../../NetworkManager-0.9.7.0"
> distdir="../../NetworkManager-0.9.7.0/docs/libnm-glib" \
>    dist-hook
> make[3]: Entering directory
> `/home/gc/devel/git-test/NetworkManager/docs/libnm-glib'
> *** gtk-doc must be installed and enabled in order to make dist
> make[3]: *** [dist-check-gtkdoc] Error 1
> make[3]: Leaving directory
> `/home/gc/devel/git-test/NetworkManager/docs/libnm-glib'
> make[2]: *** [distdir] Error 2
> make[2]: Leaving directory
> `/home/gc/devel/git-test/NetworkManager/docs/libnm-glib'
> make[1]: *** [distdir] Error 1
> make[1]: Leaving directory
> `/home/gc/devel/git-test/NetworkManager/docs'
> make: *** [distdir] Error 1
> 
> One other thing: I did "yum install libnl3-devel" before I ran the
> above
> (I need to remove it when I work on libvirt).
> 
> I also tried to do a "make clean" before I did "make dist" but that
> just
> produced another error.
> 
> I am sure there is a way this works but I do not know "the magic
> dance."

./autogen.sh && make && make dist

That's all. You can allways clean the whole git tree (be careful, it
deletes all unversioned files) with git clean -dfx before that.

You can also look at:

https://bugzilla.gnome.org/show_bug.cgi?id=688258

But remember that 'make dist' may work even if 'make distcheck' doesn't
(distcheck actually checks the dist results).

Cheers,

Pavel

> Gene
> |
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list
> 


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