You are not logged in.
I maintain the mingw32-glib2-* packages in AUR and after modifying the PKGBUILD for mingw32-glib2 (conforming to MinGW PKGBUILD guidelines and properly quoting URLs/paths), I find myself unable to compile it fully, with the following error:
Traceback (most recent call last):
File "../../../gio/gdbus-2.0/codegen/gdbus-codegen", line 41, in <module>
sys.exit(codegen_main.codegen_main())
File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/codegen_main.py", line 171, in codegen_main
parsed_ifaces = parser.parse_dbus_xml(xml_data)
File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 289, in parse_dbus_xml
parser = DBusXMLParser(xml_data)
File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 57, in __init__
self._parser.Parse(xml_data)
File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 155, in handle_start_element
if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']:
AttributeError: 'dict' object has no attribute 'has_key'
make[6]: *** [gdbus-example-objectmanager-generated.h] Error 1Here is the current PKGBUILD (unsubmitted):
pkgname=mingw32-glib2
pkgver=2.30.2
pkgrel=4
arch=(any)
pkgdesc="Common C routines used by GTK+ 2.4 and other libs (mingw32)"
depends=(mingw32-runtime mingw32-gettext mingw32-zlib mingw32-libffi)
makedepends=(mingw32-gcc python2)
license=(LGPL)
options=(!strip)
url="http://www.gtk.org/"
source=("http://ftp.gnome.org/pub/GNOME/sources/glib/2.30/glib-$pkgver.tar.xz")
sha256sums=('f0e91e6333321ddb48fa12b5c66f56c3d5f05325748c66dd2e9016c278ff8e82')
build()
{
cd "$srcdir/glib-$pkgver"
cat > win32.cache << EOF
glib_cv_long_long_format=I64
glib_cv_stack_grows=no
EOF
export CFLAGS="-O2 -pipe -march=i686 -mms-bitfields"
export CPPFLAGS="-D_REENTRANT"
export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig"
unset PKG_CONFIG_PATH
unset LDFLAGS
PYTHON="/usr/bin/python2"
./configure \
--prefix=/usr/i486-mingw32 \
--host=i486-mingw32 \
--cache-file=win32.cache \
--with-threads=win32
make
}
package() {
cd "$srcdir/glib-$pkgver"
make DESTDIR="$pkgdir" install
cd ${pkgdir}
rm -rf usr/i486-mingw32/{share/{gtk-doc,man},lib/charset.alias}
rm $pkgdir/usr/i486-mingw32/lib/*.def
i486-mingw32-strip $pkgdir/usr/i486-mingw32/bin/*.exe
i486-mingw32-strip -x $pkgdir/usr/i486-mingw32/bin/*.dll
i486-mingw32-strip -g $pkgdir/usr/i486-mingw32/lib/*.a
}I appreciate any help I can get. Thanks!
EDIT: Fixed!
Last edited by Schala (2012-03-12 08:40:18)
Hardware: Gigabyte X570 AORUS Pro, AMD Ryzen 5900X, Nvidia GTX 1080, 32 GB DDR4 RAM
Choice software: Arch Linux 64-bit with KDE desktop / Windows 11 Home 64-bit
Offline