CFT: devel/directfb update to 1.1.1

Pietro Cerutti gahr at FreeBSD.org
Wed Apr 16 14:59:06 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Pietro Cerutti wrote:
| Ganael LAPLANCHE wrote:
| | On Wed, 16 Apr 2008 16:01:43 +0300, Anatoly Borodin wrote
|
| | It produces the same error as previously reported : "No system
| found!". Very
| | strange, but applying those two patches allows the libs to be found
| and mplayer
| | to (nearly) start :
| |
| | --- lib/direct/interface.c.orig 2008-04-12 13:25:57.542006795 +0200
| | +++ lib/direct/interface.c      2008-04-12 13:26:27.732927708 +0200
| | @@ -164,7 +164,7 @@
| |       /*
| |        * Iterate directory.
| |        */
| | -     while (readdir_r( dir, &tmp, &entry ) == 0 && entry) {
| | +     while (entry = readdir( dir )) {
| |            void *handle = NULL;
| |            char  buf[4096];
| |
| | --- lib/direct/modules.c.orig   2008-04-12 13:25:45.166038341 +0200
| | +++ lib/direct/modules.c        2008-04-12 13:27:56.054698492 +0200
| | @@ -158,7 +158,7 @@
| |            return 0;
| |       }
| |
| | -     while (readdir_r( dir, &tmp, &entry ) == 0 && entry) {
| | +     while (entry = readdir( dir )) {
| |            void              *handle;
| |            DirectModuleEntry *module;
| |            int                entry_len = strlen(entry->d_name);
|
| Actually, there is a bug in those two functions. What about this one?
|
| --- lib/direct/modules.c.orig    2008-04-16 16:51:42.000000000 +0200
| +++ lib/direct/modules.c    2008-04-16 16:51:53.000000000 +0200
| @@ -158,7 +158,7 @@
| ~           return 0;
| ~      }
|
| -     while (readdir_r( dir, &tmp, &entry ) == 0 && entry) {
| +     while (!readdir_r( dir, &tmp, &entry ) == 0 && entry) {
| ~           void              *handle;
| ~           DirectModuleEntry *module;
| ~           int                entry_len = strlen(entry->d_name);
|
| --- lib/direct/interface.c.orig    2008-04-16 16:49:47.000000000 +0200
| +++ lib/direct/interface.c    2008-04-16 16:50:52.000000000 +0200
| @@ -164,7 +164,7 @@
| ~      /*
| ~       * Iterate directory.
| ~       */
| -     while (readdir_r( dir, &tmp, &entry ) == 0 && entry) {
| +     while (!readdir_r( dir, &tmp, &entry ) && entry) {
| ~           void *handle = NULL;
| ~           char  buf[4096];
|
|
| | Best regards,
| Best,
|
| | Ganaël LAPLANCHE

Sorry, I'm hallucinating... forget it..


- --
Pietro Cerutti
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEUEAREKAAYFAkgGFDYACgkQwMJqmJVx946ffgCXfxfnwMaD1nmE5Gu19dthTM2n
3QCeLTBhjhyP3ePpYgbkKnGrtRheEAM=
=0+5s
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list