Bug 208998

Summary: yast Makefiles run pkg-config during "make install"
Product: [openSUSE] SUSE Linux 10.1 Reporter: Ludwig Nussel <lnussel>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2006-09-29 12:34:39 UTC
sudo clears the environment so running pkg-config in "make install" will fail when run via sudo as pkg-config needs $PKG_CONFIG_PATH. pkg-config should be called from "configure" only.
Comment 1 Martin Vidner 2006-10-17 14:55:19 UTC
Workaround: 'sudo make install PKG_CONFIG_PATH=$PKG_CONFIG_PATH'
Comment 2 Katarina Machalkova 2006-10-24 14:33:03 UTC
This is copy-paste of failed 'sudo make install':

Package yast2-devtools was not found in the pkg-config search path.
Perhaps you should add the directory containing `yast2-devtools.pc'
to the PKG_CONFIG_PATH environment variable
No package 'yast2-devtools' found
make[1]: Entering directory `/opt/work/yast2'
Package yast2-devtools was not found in the pkg-config search path.
Perhaps you should add the directory containing `yast2-devtools.pc'
to the PKG_CONFIG_PATH environment variable
No package 'yast2-devtools' found
make[2]: Entering directory `/opt/work/yast2'
make[2]: Nothing to be done for `install-exec-am'.
mkdir -p /usr/share/doc/packages/yast2
Error: No file README in ./ or in /share/YaST2/data/devtools/admin/copyright/gpl/
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/opt/work/yast2'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/opt/work/yast2'
make: *** [install-recursive] Error 1
Comment 3 Katarina Machalkova 2006-10-24 14:35:13 UTC
With fresh devtools from svn (r33645) it seems to work :-)
Comment 4 Martin Vidner 2006-10-24 15:22:15 UTC
Thanks.
Fixed in yast2-devtools-2.13.28.