FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-19-2012, 08:40 PM
walt
 
Default Anybody really understand the gnu autotools?

I'm trying to build an xfce4 applet that's not in portage. For
reasons I don't understand there are some standard gnome headers
that don't get pulled in during the configure process, like orbit,
libbonobo and libbonoboui.

I edited the autoconf.in to check for those standard libraries,
and it did partly work. The generated makefiles now have correct
entries like LIBBONOBO_CFLAGS.

The problem is that those flags are never used during the compile
phase. So, anyone know how make that extra step happen?

Thanks.
 
Old 06-19-2012, 08:53 PM
Ezequiel Garcia
 
Default Anybody really understand the gnu autotools?

On Tue, Jun 19, 2012 at 5:40 PM, walt <w41ter@gmail.com> wrote:
> I'm trying to build an xfce4 applet that's not in portage. For

which applet?
 
Old 06-19-2012, 08:54 PM
Michael Orlitzky
 
Default Anybody really understand the gnu autotools?

On 06/19/2012 04:40 PM, walt wrote:
> I'm trying to build an xfce4 applet that's not in portage. For
> reasons I don't understand there are some standard gnome headers
> that don't get pulled in during the configure process, like orbit,
> libbonobo and libbonoboui.
>
> I edited the autoconf.in to check for those standard libraries,
> and it did partly work. The generated makefiles now have correct
> entries like LIBBONOBO_CFLAGS.
>
> The problem is that those flags are never used during the compile
> phase. So, anyone know how make that extra step happen?

(no, nobody really understands autotools)

Is the applet publicly-available? If the build system isn't broken, it
should all just work.

If you cloned a git repository, you probably need to run autogen.sh
first (and have xfce4-dev-tools installed). Otherwise, just ./configure
&& make should do it.

Got a link? If it works with 4.10, I can just make an ebuild for it.
 
Old 06-19-2012, 10:38 PM
walt
 
Default Anybody really understand the gnu autotools?

On 06/19/2012 01:54 PM, Michael Orlitzky wrote:

On 06/19/2012 04:40 PM, walt wrote:

I'm trying to build an xfce4 applet that's not in portage. For
reasons I don't understand there are some standard gnome headers
that don't get pulled in during the configure process, like orbit,
libbonobo and libbonoboui.

I edited the autoconf.in to check for those standard libraries,
and it did partly work. The generated makefiles now have correct
entries like LIBBONOBO_CFLAGS.

The problem is that those flags are never used during the compile
phase. So, anyone know how make that extra step happen?


(no, nobody really understands autotools)

Is the applet publicly-available? If the build system isn't broken, it
should all just work.

If you cloned a git repository, you probably need to run autogen.sh
first (and have xfce4-dev-tools installed). Otherwise, just ./configure
&& make should do it.

Got a link? If it works with 4.10, I can just make an ebuild for it.


Thank to you and Ezequiel for the quick replies

git://git.xfce.org/panel-plugins/xfce4-xfapplet-plugin

I didn't know about xfce4-dev-tools, thanks, but for me it still fails
to find the headers for the bog-standard gnome libraries. I tried the
standard autogen.sh and xdt-autogen, which seems to do much the same
thing.

The unmodified package wants libpanelapplet-2.0, which is older than
the version 4.0 installed by gentoo's gnome-panel. I had to edit the
config stuff to accept libpanelapplet-4.0. Maybe this xfce package is
just too old to work with recent gnome?
 
Old 06-20-2012, 12:27 AM
Michael Orlitzky
 
Default Anybody really understand the gnu autotools?

On 06/19/2012 06:38 PM, walt wrote:
>>
>> Got a link? If it works with 4.10, I can just make an ebuild for it.
>
> Thank to you and Ezequiel for the quick replies
>
> git://git.xfce.org/panel-plugins/xfce4-xfapplet-plugin
>

Well, I basically recreated this:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-xfapplet-plugin/xfce4-xfapplet-plugin-0.1.0.ebuild?revision=1.10

and went to open a bug for it.

The good news is, I wound up with basically the same ebuild: I only had
an additional dependency on libxfce4util.

The bad news is, it probably isn't going to work for much longer --
that's why it got removed. It does compile on my machine though.
 
Old 06-20-2012, 01:03 AM
walt
 
Default Anybody really understand the gnu autotools?

On 06/19/2012 05:27 PM, Michael Orlitzky wrote:
> On 06/19/2012 06:38 PM, walt wrote:
>>>
>>> Got a link? If it works with 4.10, I can just make an ebuild for it.
>>
>> Thank to you and Ezequiel for the quick replies
>>
>> git://git.xfce.org/panel-plugins/xfce4-xfapplet-plugin
>>
>
> Well, I basically recreated this:
>
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-xfapplet-plugin/xfce4-xfapplet-plugin-0.1.0.ebuild?revision=1.10
>
> and went to open a bug for it.

Thanks. Is your bug report with gentoo or xfce.org?

I notice that the git repo has commits as recently as last month.
Maybe some heroic xfce dev will update the package to gnome3 for
me
 
Old 06-20-2012, 01:39 AM
David Haller
 
Default Anybody really understand the gnu autotools?

Hello,

On Tue, 19 Jun 2012, Michael Orlitzky wrote:
>On 06/19/2012 04:40 PM, walt wrote:
>> I'm trying to build an xfce4 applet that's not in portage. For
>> reasons I don't understand there are some standard gnome headers
>> that don't get pulled in during the configure process, like orbit,
>> libbonobo and libbonoboui.
>>
>> I edited the autoconf.in to check for those standard libraries,
>> and it did partly work. The generated makefiles now have correct
>> entries like LIBBONOBO_CFLAGS.
>>
>> The problem is that those flags are never used during the compile
>> phase. So, anyone know how make that extra step happen?

Adjust Makefile.am / .in to actually use $(LIBBONOBO_CFLAGS) in those
rules (or all if unsure) where they are needed.

Have a look in the info documentation of automake/autoconf, esp. at
the samples.

>(no, nobody really understands autotools)

I do. It's just m4 generating shell-scripts (plus some other easily
understood bits) from templates. And all is quite well documented.

Next, you'll tell us cmake/qmake/smake/scons/bjam etc.pp. ad nauseam
are better understood and documented and what you have to do to adjust
stuff like above. Yeah sure.

I've been building stuff for 11+ years now, most for a 99'ish
platform. In and after say '05 until '10. Believe me, I had to adjust
stuff a lot. And autotools was _BY FAR_ always the easiest to do so,
almost always just set/export a variable for configure and
*tada*. Adjusting min-version of autoconf/-make to my "too old"
version and running autoreconf was occasionally needed.

Sure, if requirements for a lib weren't met, the stuff wouldn't build,
but not because of the autotools or their generated makefiles, but
just because the lib would not fit.

No such luck with the other build-systems. With some of above
mentioned "build-systems" you have to adjust _system_ files to get
them to DTRT. BTDT.

With the autotools, you could alternatively just use

CFLAGS += $(pkg-config --cflags libbonobo-2.0)
LDFLAGS += $(pkg-config --libs libbonobo-2.0)

in your Makefile or the corresponding CFLAGS="$CFLAGS $(...)" in an
ebuild or .spec or debian/rules or whatever. Piece of cake.

(and the same for -activation if needed).

-dnh

--
> Noooo.... Not "She offered her honor, he honored her offer"?
...and so all evening he was honour and offer. -- known
 
Old 06-20-2012, 03:51 PM
Michael Orlitzky
 
Default Anybody really understand the gnu autotools?

On 06/19/12 21:03, walt wrote:
>
> Thanks. Is your bug report with gentoo or xfce.org?
>
> I notice that the git repo has commits as recently as last month.
> Maybe some heroic xfce dev will update the package to gnome3 for
> me
>

I didn't open one; I searched for closed 'xfapplet' bugs and realized
there was already an ebuild in the tree but it was removed.

It doesn't look like there's anything new to release:

http://git.xfce.org/panel-plugins/xfce4-xfapplet-plugin/log/

All of the commits in the last few years have been translations and
permission bit twiddling.

There is an XFCE bug open for it:

https://bugzilla.xfce.org/show_bug.cgi?id=7963

but I wouldn't get my hopes up if I were you. It sounds like the way
Gnome 3 does things is incompatible with the panel applet concept. Of
course, you can always keep your own copy of gnome-panel-2.x and its
applets around. But it might be better to file a feature request to
implement whichever panel applet you want for XFCE.
 
Old 06-21-2012, 08:03 PM
walt
 
Default Anybody really understand the gnu autotools?

On 06/19/2012 06:39 PM, David Haller wrote:
> Hello,
>
> On Tue, 19 Jun 2012, Michael Orlitzky wrote:
>
>> (no, nobody really understands autotools)
>
> I do.

Thanks for the excellent reply. Exactly what I needed to know.
 

Thread Tools




All times are GMT. The time now is 11:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org