You are not logged in.

#1 2005-07-11 01:24:20

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Can't Detect Dependency when Building a PKGBUILD

I just realized that the PKGBUILD for mousepad will fail due to it not correctly knowing that libxfcegui4 is already installed.

Investigating abit further, it looks like the output from makepkg gives this message:

checking for libxfcegui4-1.0 >= 4.2.0... not found

Which is a little confusing, because of the 4 on the end of the package name, however, it is actually installed:

$ pacman -Q libxfcegui4
libxfcegui4 4.2.2-1

Is there something I can do to resolve this?

Offline

#2 2005-07-11 03:32:23

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't Detect Dependency when Building a PKGBUILD

I get the same error.  IMO, the problem comes from the configure script.

Offline

#3 2005-07-11 20:44:05

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

Looking through the configure script, it says:

*** The required package libxfcegui4-1.0 was not found on your system.
*** Please install libxfcegui4-1.0 (atleast version 4.2.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.

So, is there a proper way to add the correct path to the PKG_CONFIG_PATH environment variable in a PKGBUILD script to get this working?  Am I barking up the wrong tree?

Offline

#4 2005-07-11 21:17:38

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't Detect Dependency when Building a PKGBUILD

aha!

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/xfce4/lib/pkgconfig/

Also, if that works (it should), please post a bug - the profile.d script for xfce4 needs to include the PKG_CONFIG_PATH variable 8)

Offline

#5 2005-07-11 21:22:37

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

Doh...I just tracked down that location myself, and unfortunately it looks like it is already set correctly in profile.d, as the environment variable is set.  I double checked, and the file is in the proper location, so it must be something wrong with the configuration script not searching correctly.

This package is kind of an oddity too, since the "official" Xfce page lists the version as 0.1.1, however, all other distributions I know of use the same thing that is listed in the AUR (version 0.2.2), and there is no real developer's page in order to recieve updates, send bugs, etc.

Where do we go from here?

p.s. Thanks for all of your input on this...

Offline

#6 2005-07-11 21:27:30

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't Detect Dependency when Building a PKGBUILD

can you post the contents of: /opt/xfce4/lib/pkgconfig/libxfcegui4-1.0.pc ?

Offline

#7 2005-07-11 23:19:24

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't Detect Dependency when Building a PKGBUILD

Here's my  /opt/xfce4/lib/pkgconfig/libxfcegui4-1.0.pc.  I assumed its the same as elasticdog since we get the same error wink

prefix=/opt/xfce4
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libxfcegui4
Description: libxfcegui4
Requires: gdk-2.0 gtk+-2.0 libxfce4util-1.0
Version: 4.2.2
Libs:  -L/usr/X11R6/lib  -L/usr/X11R6/lib -L${libdir} -lxfcegui4
Cflags:  -I/usr/X11R6/include  -I/usr/X11R6/include -I${includedir}/xfce4

Offline

#8 2005-07-12 01:20:40

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't Detect Dependency when Building a PKGBUILD

well, wtf... from a commandline what do the following produce (also the output of "echo $?" after each command):

pkg-config --exists libxfcegui4
pkg-config --modversion libxfcegui4

oddly enough, I installed all the dependancies and built mousepad just fine... maybe try (w/o removing the dependancies) removing libxfcegui4 and re-syncing it?

Offline

#9 2005-07-12 01:59:47

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

Yep, got the exact same thing as Snowman for /opt/xfce4/lib/pkgconfig/libxfcegui4-1.0.pc

Trying your suggestions, I did run across a problem:

$ pkg-config --exists libxfcegui4
$ echo $?
1
$ pkg-config --modversion libxfcegui4
Package libxfcegui4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxfcegui4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxfcegui4' found

So you're suggesting I try removing just libxfcegui4 and the reinstall with pacman?

Offline

#10 2005-07-12 02:15:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Can't Detect Dependency when Building a PKGBUILD

PKG_CONFIG_PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/xfce/lib/pkgconfig/

Offline

#11 2005-07-12 02:19:45

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

It's already there...

$ echo $PKG_CONFIG_PATH
:/opt/gnome/lib/pkgconfig:/opt/mozilla/lib/pkgconfig:/opt/xfce4/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

Offline

#12 2005-07-12 02:28:29

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

Another odd twist...

# pacman -U libxfcegui4
loading package data... could not open package: No such file or directory

Offline

#13 2005-07-12 02:39:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't Detect Dependency when Building a PKGBUILD

elasticdog wrote:

Another odd twist...

# pacman -U libxfcegui4
loading package data... could not open package: No such file or directory

To use the -U switch, you must specify the complete path and package name.
(pacman -U /path/to/libxfcegui4-4.2.2-1.pkg.tar.gz)

Offline

#14 2005-07-12 02:53:38

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

Doh...I should have known that.

Offline

#15 2005-07-12 06:42:53

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

How can I get around pacman not wanting me to remove it?

# pacman -R libxfcegui4
error: this will break the following dependencies:
  libxfcegui4: is required by exo
  libxfcegui4: is required by xfcalendar
  libxfcegui4: is required by xfce-mcs-manager
  libxfcegui4: is required by xfce-utils
  libxfcegui4: is required by xfce4-appfinder
  libxfcegui4: is required by xfce4-iconbox
  libxfcegui4: is required by xfce4-panel
  libxfcegui4: is required by xfce4-session
  libxfcegui4: is required by xfdesktop
  libxfcegui4: is required by xffm
  libxfcegui4: is required by xfprint
  libxfcegui4: is required by xfwm4

No confirm and force give the same message...

Offline

#16 2005-07-12 07:18:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't Detect Dependency when Building a PKGBUILD

Why do you want to remove it? If you want to reinstall it, you can try pacman -S libxfcegui4 and say yes when ask to reinstall.
Anyway, your question's answer is
# pacman -Rd libxfcegui4

Offline

#17 2005-07-12 14:32:51

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

I wanted to try phrakture's suggestions...

oddly enough, I installed all the dependancies and built mousepad just fine... maybe try (w/o removing the dependancies) removing libxfcegui4 and re-syncing it?

Simply re-syncing it hasn't changed anything.

Offline

#18 2005-07-12 14:55:03

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Can't Detect Dependency when Building a PKGBUILD

AHA!!!  This worked:

#pacman -Rd libxfcegui4
#pacman -Sy libxfcegui4

Simply re-syncing it did nothing...so what does that mean?  I would guess since Snowman was having the same problem, that the installation of the xfce4 group somehow doesn't install libxfcegui4 exactly right?  Would this be a bug to report somewhere?

The makepkg succeeded, however pkg-config --modversion libxfcegui4 still fails...wierd!?!

Offline

#19 2005-07-12 15:37:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't Detect Dependency when Building a PKGBUILD

elasticdog wrote:

AHA!!!  This worked:

#pacman -Rd libxfcegui4
#pacman -Sy libxfcegui4

Simply re-syncing it did nothing...so what does that mean?  I would guess since Snowman was having the same problem, that the installation of the xfce4 group somehow doesn't install libxfcegui4 exactly right?  Would this be a bug to report somewhere?

The makepkg succeeded, however pkg-config --modversion libxfcegui4 still fails...wierd!?!

It sounds like one of those typical upgrade bugs - it happens sometimes....

Offline

Board footer

Powered by FluxBB