pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/46622 (pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on NetBSD 4.0)
The following reply was made to PR pkg/46622; it has been noted by GNATS.
From: Wolfgang Stukenbrock <wolfgang.stukenbrock%nagler-company.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tnn%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
pkgsrc-bugs%NetBSD.org@localhost
Subject: Re: pkg/46622 (pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on
NetBSD 4.0)
Date: Fri, 06 Jul 2012 11:40:07 +0200
Hi again - an alog problem happens with pkgsrc-1012Q2 ...
Only the file nat needs the patch has changed ..
new patch for pkgsrc-2012Q2 follows ..
--- js/src/jsgc.cpp.orig 2012-07-06 11:33:52.000000000 +0200
+++ js/src/jsgc.cpp 2012-07-06 11:35:11.000000000 +0200
@@ -2636,8 +2636,12 @@
GetSystemInfo(&sysinfo);
ncpus = unsigned(sysinfo.dwNumberOfProcessors);
# else
+# ifdef _SC_NPROCESSORS_ONLN
long n = sysconf(_SC_NPROCESSORS_ONLN);
ncpus = (n > 0) ? unsigned(n) : 1;
+# else
+ ncpus = 1;
+# endif
# endif
}
return ncpus;
Wolfgang Stukenbrock wrote:
> The following reply was made to PR pkg/46622; it has been noted by GNATS.
>
> From: Wolfgang Stukenbrock
> <wolfgang.stukenbrock%nagler-company.com@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc: tnn%NetBSD.org@localhost, pkg-manager%NetBSD.org@localhost,
> pkgsrc-bugs%NetBSD.org@localhost,
> gnats-admin%NetBSD.org@localhost, hauke%NetBSD.org@localhost
> Subject: Re: pkg/46622 (pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on
> NetBSD 4.0)
> Date: Sun, 24 Jun 2012 16:29:23 +0200
>
> Hi again,
>
> here is a patch for the problem.
> It returns the same value aus if the sysconf() call failed and is equal
> to a simular workaround found in ipc/chronium/src/base/sys_info_posix.cc.
>
> --- js/src/jslock.cpp.orig 2012-06-24 15:07:53.000000000 +0200
> +++ js/src/jslock.cpp 2012-06-24 15:08:36.000000000 +0200
> @@ -322,8 +322,12 @@
> GetSystemInfo(&sysinfo);
> ncpus = unsigned(sysinfo.dwNumberOfProcessors);
> # else
> +# ifdef _SC_NPROCESSORS_ONLN
> long n = sysconf(_SC_NPROCESSORS_ONLN);
> ncpus = (n > 0) ? unsigned(n) : 1;
> +# else
> + ncpus = 1;
> +# endif
> # endif
> }
> return ncpus;
>
>
> hauke%NetBSD.org@localhost wrote:
>
> > Synopsis: pkgsrc-2012Q1 xulrunner-11.0nb1 does not compile on NetBSD 4.0
> >
> > Responsible-Changed-From-To: pkg-manager->tnn
> > Responsible-Changed-By: hauke%NetBSD.org@localhost
> > Responsible-Changed-When: Fri, 22 Jun 2012 19:48:37 +0000
> > Responsible-Changed-Why:
> > Over to maintainer.
> >
> >
> >
> >
> >
>
>
>
>
--
Dr. Nagler & Company GmbH
Hauptstraße 9
92253 Schnaittenbach
Tel. +49 9622/71 97-42
Fax +49 9622/71 97-50
Wolfgang.Stukenbrock%nagler-company.com@localhost
http://www.nagler-company.com
Hauptsitz: Schnaittenbach
Handelregister: Amberg HRB
Gerichtsstand: Amberg
Steuernummer: 201/118/51825
USt.-ID-Nummer: DE 273143997
Geschäftsführer: Dr. Martin Nagler, Dr. Dr. Karl-Kuno Kunze
Home |
Main Index |
Thread Index |
Old Index