You are not logged in.

#1 2010-03-29 17:24:04

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

What happened to the wxgtk-2.6 package?

Hello community!

One of my AUR packages (graphthing) depends on wxgtk-2.6. Unfortunately this app isn't developed any more so it's quite hopeless to await compatibility to newer versions of wxgtk. Recently, I discovered that wxgtk-2.6 is gone from AUR. Why has it been removed? Is there a way to get it in again?

Thanks,
PhotonX


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#2 2010-03-30 13:12:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: What happened to the wxgtk-2.6 package?

It's in extra.

Offline

#3 2010-03-30 15:13:38

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

Re: What happened to the wxgtk-2.6 package?

Hmm, strange, I get following when trying to install graphthing:

==> graphthing dependencies:
 - wxgtk-2.6 (building from AUR)
 - libpng12 (building from AUR)
 - libjpeg7 (building from AUR)
 - flex (already installed)
==>  Continue the building of graphthing ? [Y/n]

So yaourt is trying to find the package on AUR where it doesn't exist. smile

Also yaourt doesn't find the package in extra:

photon@photon-desktop:~$ yaourt wxgtk
1 extra/wxgtk 2.8.10.1-6 [installed]
  GTK+ implementation of wxWidgets API for GUI
2 aur/lib32-wxgtk 2.8.10.1-3 (Out of Date) (11)
  GTK+ implementation of wxWidgets API for GUIs (lib32)
3 aur/wxgtk-extrema 2.6.4-1 (1)
  wxGTK 2.6.x with flags needed by extrema
4 aur/wxgtk-2.6-ansi 2.6.4-1 (1)
  wxGTK - GTK+ implementation of wxWidgets API for GUI - ANSI version (no unicode)
5 aur/wxgtk-ansi 2.8.10.1-2 (0)
  wxGTK - GTK+ implementation of wxWidgets API for GUI - ANSI version (no unicode)
6 aur/wxgtk-debug 2.8.10.1-5 (2)
  GTK+ implementation of wxWidgets API for GUI - debug mode (devel)
7 aur/wxgtk-2.9 2.9.0-1 (5)
  A GTK+ implementation of wxWidgets API for GUI
8 aur/smasher 1.1.6-3 (2)
  A beat slicer running on GNU/Linux platform using the wxGTK
==>  Enter n° (separated by blanks, or a range) of packages to be installed
==>   ----------------------------------------------
==>

Last edited by PhotonX (2010-03-30 15:15:08)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#4 2010-03-30 15:23:24

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: What happened to the wxgtk-2.6 package?

Yaourt does find wxgtk in extra. It's the first entry listed in the results of `yaourt wxgtk`.

The problem is that your PKGBUILD is asking for a package called precisely wxgtk-2.6, which doesn't exist. If you have an explicit need for that version, I suggest you modify wxgtk's PKGBUILD in ABS and build it yourself. Regardless, you'll need to edit the PKGBUILD of whatever you're building to get rid of this phony dependency.

tl;dr version: ditch yaourt.

Offline

#5 2010-03-30 15:54:12

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

Re: What happened to the wxgtk-2.6 package?

Well as I wrote in my first post the problem is that graphthing isn't developed any more and so there is no compatibility to wxgtk >2.6, so it needs gtk-2.6 which used to be in the AUR and is gone now...

So the only possibility to get wxgtk-2.6 back to the AUR is to create a new PKGBUILD for it? Isn't there some archive where old PKGBUILDS are stored where one could get this PKGBUILD from? smile


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#6 2010-03-30 16:48:48

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: What happened to the wxgtk-2.6 package?

Old PKGBUILD? Why? It is available, but you don't need it.

As I mentioned, you can take the PKGBUILD out of ABS and modify it (to build 2.6 rather than 2.8). The source for 2.6.4 is still hosted here.

Offline

#7 2010-03-31 07:27:09

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

Re: What happened to the wxgtk-2.6 package?

I don't know where to get PKGBUILDs of extra packages so I've taken the PKGBUILD of wxgtk-2.9 from AUR. But I get following error when trying to run makepkg (the make part is quite short since it's the second run):

[...]
Configured wxWidgets 2.6.4 for `x86_64-unknown-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.2      no
                                       wxWidgets 2.4      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                builtin
                                       regex              sys
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          yes
                                       sdl                no
                                       gnomeprint         yes
                                       hildon             no

/home/photon/PKGBUILDs/wxgtk-2.6/src/wxWidgets-2.6.4/bk-deps g++ -c -o coredll_gsockgtk.o -I.pch/wxprec_coredll -D__WXGTK__       -I./src/png     -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -DWX_PRECOMP -DNO_GCC_PRAGMA -DGTK_NO_CHECK_CASTS -Ilib/wx/include/gtk2-ansi-release-2.6 -I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -O0 -march=x86-64 -mtune=generic -O2 -pipe -pthread -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng14 -Wall -Wundef -Wno-ctor-dtor-privacy ./src/gtk/gsockgtk.cpp
In file included from ./src/gtk/gsockgtk.cpp:20:
./include/wx/gsocket.h:40: error: using typedef-name 'GSocket' after 'class'
/usr/include/glib-2.0/gio/giotypes.h:120: error: 'GSocket' has a previous declaration here
In file included from ./include/wx/gsocket.h:179,
                 from ./src/gtk/gsockgtk.cpp:20:
./include/wx/unix/gsockunx.h:40: error: using typedef-name 'GSocket' after 'class'
/usr/include/glib-2.0/gio/giotypes.h:120: error: 'GSocket' has a previous declaration here
./src/gtk/gsockgtk.cpp: In function 'void _GSocket_GDK_Input(void*, gint, GdkInputCondition)':
./src/gtk/gsockgtk.cpp:33: error: 'struct _GSocket' has no member named 'Detected_Read'
./src/gtk/gsockgtk.cpp:35: error: 'struct _GSocket' has no member named 'Detected_Write'
./src/gtk/gsockgtk.cpp: In member function 'virtual bool GSocketGUIFunctionsTableConcrete::Init_Socket(GSocket*)':
./src/gtk/gsockgtk.cpp:55: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:56: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete::Destroy_Socket(GSocket*)':
./src/gtk/gsockgtk.cpp:66: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete::Install_Callback(GSocket*, GSocketEvent)':
./src/gtk/gsockgtk.cpp:71: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:74: error: 'struct _GSocket' has no member named 'm_fd'
./src/gtk/gsockgtk.cpp:82: error: 'struct _GSocket' has no member named 'm_server'
./src/gtk/gsockgtk.cpp:89: error: 'struct _GSocket' has no member named 'm_fd'
./src/gtk/gsockgtk.cpp: In member function 'virtual void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket*, GSocketEvent)':
./src/gtk/gsockgtk.cpp:97: error: 'struct _GSocket' has no member named 'm_gui_dependent'
./src/gtk/gsockgtk.cpp:107: error: 'struct _GSocket' has no member named 'm_server'
make: *** [coredll_gsockgtk.o] Error 1
==> ERROR: Build Failed.
    Aborting...
photon@photon-desktop:~/PKGBUILDs/wxgtk-2.6$

Here is the edited PKGBUILD:

# Maintainer: PhotonX <photon89@googlemail.com>
# Contributor: TDY <tdy@gmx.com>
# Note: wxgtk-2.6 can coexist with extra/wxgtk

pkgname=wxgtk-2.6
pkgver=2.6.4
pkgrel=1
pkgdesc="A GTK+ implementation of wxWidgets API for GUI"
arch=('i686' 'x86_64')
url="http://wxwidgets.org/"
license=('custom:wxWindows')
depends=('gstreamer0.10-base' 'gtk2>=2.10' 'mesa')
makedepends=('gstreamer0.10-good-plugins' 'libgnomeprintui' 'pkgconfig>=0.9.0')
source=(http://downloads.sourceforge.net/wxwindows/wxWidgets-$pkgver.tar.bz2)
md5sums=('3df4d9f1d3d785fcc6d66dbbf4b672b6')

build() {
  cd "$srcdir/wxWidgets-$pkgver"
  ./configure --prefix=/usr --libdir=/usr/lib \
      --with-gtk=2          \
      --with-opengl         \
      --with-gnomeprint     \
      --enable-graphics_ctx \
      --enable-mediactrl    \
      --disable-optimise
  make || return 1
  make -C locale allmo || return 1
}

package() {
  cd "$srcdir/wxWidgets-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 docs/licence.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  # provide compatibility with extra/wxgtk
  ln -sf /usr/lib/wx/config/gtk2-unicode-release-2.6 \
    "$pkgdir/usr/bin/wx-config-2.6"
  rm -f "$pkgdir/usr/bin/wx-config"
  rm -f "$pkgdir/usr/bin/wxrc"
  rm -rf "$pkgdir/usr/share/bakefile"
  find "$pkgdir/usr/share/locale" -name wxmsw.mo -delete
  for _mo in "$pkgdir"/usr/share/locale/*/LC_MESSAGES/wxstd.mo; do
    mv $_mo ${_mo/wxstd.mo/compat-wxstd26.mo}
  done
  mv "$pkgdir/usr/share/aclocal/wxwin.m4" \
    "$pkgdir/usr/share/aclocal/wxwin-2.6.m4"
}

Last edited by PhotonX (2010-03-31 07:29:27)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#8 2010-03-31 08:47:38

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

Re: What happened to the wxgtk-2.6 package?

This will give you the latest PKGBUILD (and a patch for your problem) for wxgtk 2.6 at the time when it was removed from extra repo.

$ wget "http://repos.archlinux.org/wsvn/package … 99&isdir=1"
$ tar -xzvf index.html\?op\=dl\&rev\=64499\&peg\=64499\&isdir\=1

Offline

#9 2010-04-02 21:22:40

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 607

Re: What happened to the wxgtk-2.6 package?

Snowman, thanks! So shall I just upload this PKGBUILD to the AUR to make it accessible as dep? Or does anyone else want to maintain it (since I'm not very familiar with those patches that are needed to make it run)?


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

Board footer

Powered by FluxBB