Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: glib cannot be found while cross compiling
https://bugzilla.redhat.com/show_bug.cgi?id=513824
Summary: glib cannot be found while cross compiling Product: Fedora Version: 11 Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: low Component: mingw32-glib2 AssignedTo: rjones@redhat.com ReportedBy: pbonzini@redhat.com QAContact: extras-qa@fedoraproject.org CC: lfarkas@lfarkas.org, t.sailer@alumni.ethz.ch, berrange@redhat.com, rjones@redhat.com, fedora-mingw@lists.fedoraproject.org Depends on: 513819 Classification: Fedora Target Release: ---
Description of problem: The glib configure macros will not detect glib correctly. Part of the problem is that the \mingw paths are not available inside Wine.
The part this bug is concerned about, is that the glib macros require a working touch binary.
This can be as simple as:
#include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <errno.h> #include <utime.h>
int main(int argc, char **argv) { int i; struct utimbuf u; u.actime = time (NULL); u.modtime = time (NULL);
for (i = 1; i < argc; i++) { int fd = open (argv[i], O_WRONLY | O_EXCL | O_CREAT, 0600); if (fd == -1) { if ((errno == EACCES || errno == EISDIR) && utime (argv[i], &u) == -1) perror ("touch"); } else close (fd); } }
and (if bug 513819 is fixed, which is a prerequisite anyway) it should be placed in c:\windows so that a more complete mingw installation including GNU touch would override it.