home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   linux.debian.bugs.dist      Ohh some weird Debian bug report thing      28,835 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 27,301 of 28,835   
   Helmut Grohne to All   
   Bug#1127715: freetuxtv FTCBFS: hard code   
   12 Feb 26 08:40:02   
   
   From: helmut@subdivi.de   
      
   Source: freetuxtv   
   Version: 0.6.8~dfsg1-2   
   Tags: patch upstream   
   User: debian-cross@lists.debian.org   
   Usertags: ftcbfs   
      
   freetuxtv fails to cross build from source, because the upstream   
   configure.ac hard codes the build architecture pkg-config in several   
   places. Using the standard autoconf macros such as PKG_CHECK_MODULES is   
   the intended way to use pkg-config and once doing so, freetuxtv cross   
   builds successfully. I'm attaching a patch for your convenience. Please   
   consider forwarding it upstream, because it also helps with other Linux   
   distributions such as Yocto or PtxDist.   
      
   Helmut   
      
   --- freetuxtv-0.6.8~dfsg1.orig/configure.ac   
   +++ freetuxtv-0.6.8~dfsg1/configure.ac   
   @@ -35,14 +35,6 @@   
      
    AM_PROG_CC_C_O   
      
   -dnl Check for pkg-config   
   -if pkg-config --version >/dev/null 2>&1; then   
   -  dnl We have pkg-config, everything is cool.   
   -  PKGCONFIG=yes   
   -else   
   -  PKGCONFIG=no   
   -fi   
   -   
    dnl ***********************************************************   
   ***************   
    dnl Internationalization   
    dnl ***********************************************************   
   ***************   
   @@ -64,13 +56,11 @@   
    VLC_BIN=`which vlc | sed '/.*:$/d;s/.*: //;s/ /\'$'\n''/g' | sed q`   
    VLC_CONFIG=`which vlc-config | sed '/.*:$/d;s/.*: //;s/ /\'$'\n''/g' | sed q`   
    dnl Check first with pkg-config   
   -if test "$PKGCONFIG" == "yes"; then   
   -  if pkg-config --exists libvlc; then   
   -    LIBVLC_VERSION=`pkg-config --modversion libvlc | sed 's/[[a   
   zA-Z\-]].*$//'`   
   +PKG_CHECK_MODULES([LIBVLC],[libvlc],[   
   +    LIBVLC_VERSION=`$PKG_CONFIG --modversion libvlc | sed 's/[[   
   -zA-Z\-]].*$//'`   
        LIBVLC_PKGCONFIG="libvlc"   
        LIBVLC_FOUND=yes   
   -  fi   
   -fi   
   +],[])   
    dnl If not found try with vlc-config   
    if test "$LIBVLC_FOUND" == "no"; then   
      if test -x "$VLC_CONFIG"; then   
   @@ -102,13 +92,11 @@   
    LIBNOTIFY_VERSION=""   
    LIBNOTIFY_PKGCONFIG=""   
    LIBNOTIFY_FOUND=no   
   -if test "$PKGCONFIG" == "yes"; then   
   -  if pkg-config --exists libvlc; then   
   -    LIBNOTIFY_VERSION=`pkg-config --modversion libnotify | sed    
   s/[[a-zA-Z\-]].*$//'`   
   +PKG_CHECK_MODULES([LIBNOTIFY],[libnotify],[   
   +    LIBNOTIFY_VERSION=`$PKG_CONFIG --modversion libnotify | sed   
   's/[[a-zA-Z\-]].*$//'`   
        LIBNOTIFY_PKGCONFIG="libnotify"   
        LIBNOTIFY_FOUND=yes   
   -  fi   
   -fi   
   +],[])   
    dnl Set variable for the config.h   
    AC_MSG_CHECKING([which libnotify version to compile against])   
    if test "$LIBNOTIFY_FOUND" == "yes"; then   
   @@ -141,14 +129,14 @@   
         *) AC_MSG_ERROR([invalid gtk version specified]) ;;   
       esac],   
      [])   
   -if test "$with_gtk" == ""; then   
   +AS_IF([test "$with_gtk" = ""],[   
    	dnl If not precised we try to detect it automatically   
   -	if pkg-config --exists gtk+-3.0; then   
   +	PKG_CHECK_MODULES([GTK],[gtk+-3.0],[   
    	   with_gtk=3.0   
   -	else   
   +	],[   
    	   with_gtk=2.0   
   -	fi   
   -fi   
   +	])   
   +])   
      
    AC_MSG_RESULT([$with_gtk])   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca