[bug #55526] FTBFS on GNU/kFreeBSD: NSWorkspace.m:1252:27: error: 'MOUNTED_PATH' undeclared

2019-01-21 Thread Yavor Doganov
Follow-up Comment #4, bug #55526 (project gnustep):

Thanks; I won't be able to build-test it until the next gnustep-gui upload to
Debian.

GNU/kFreeBSD is more closer to GNU/Linux than to FreeBSD, because the
underlying C library (glibc) is the same.  This is basically a GNU system but
running with another kernel.  Part of the confusion comes because people talk
about Linux as an OS when in fact it's just a kernel.

For programming purposes, you can (and should) treat GNU/kFreeBSD as a glibc
platform -- you are already using the portable macros as documented in the
glibc manual (albeit confusingly redefined to the deprecated ones) so that
should be sufficient.

The conditionals in -mountedLocalVolumePaths are of no concern since the
HAVE_GETMNTINFO branch will be compiled on GNU/kFreeBSD, which is fine.  It is
also fine to compile the other branch (HAVE_GETMNTENT) and you can enforce it
on GNU/kFreeBSD if you wish so with the appropriate defines.

But the result should be the same.  When Bruno Haibble ported the GNU C
Library to the FreeBSD kernel (hats off to this hacker!), he implemented
interfaces which were not feasible with the Linux kernel but were expected and
customary with a FreeBSD kernel, like getmntinfo.

So there it is, a hybrid system which proves the defines were wrong as it is
perfectly possible to have both.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep


[bug #55526] FTBFS on GNU/kFreeBSD: NSWorkspace.m:1252:27: error: 'MOUNTED_PATH' undeclared

2019-01-21 Thread Riccardo Mottola
Update of bug #55526 (project gnustep):

  Status:None => Ready For Test 

___

Follow-up Comment #3:

I commited an equivalent patch, you can try it. It has no adverse effects on
Linux where I tried. It will fix your "compile from source"

The issue might be in 
mountedLocalVolumePaths  though

However I don't know if on kFreeBSD it is more Linux like or not. Should i use
the getmintinfo code path or getmntent? 

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/


___
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep