Processed: Patch is broken - packaging is too

2009-12-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tag 539187 - patch
Bug #539187 [python-support] Moving symlink fails where linkdest is also moved
Removed tag(s) patch.
 reassign 539187 libgv-python
Bug #539187 [python-support] Moving symlink fails where linkdest is also moved
Bug reassigned from package 'python-support' to 'libgv-python'.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#559310: marked as done (dh_installdefoma creates wrong prerm code)

2009-12-03 Thread Debian Bug Tracking System
Your message dated Thu, 3 Dec 2009 15:27:14 +0100
with message-id 20091203142714.gg18...@gamma.logic.tuwien.ac.at
and subject line Re: Bug#559310: dh_installdefoma creates wrong prerm code
has caused the Debian Bug report #559310,
regarding dh_installdefoma creates wrong prerm code
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
559310: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559310
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
---BeginMessage---
Package: defoma
Version: 0.11.10-3
Severity: important

From experimental's lmodern prerm:

# Automatically added by dh_installdefoma
FILE='/etc/defoma/hints/lmodern.hints'
if [ $1 = remove ]; then
test -x `which defoma-font`  defoma-font update lmodern
fi
# End automatically added section


but that generates only:
Removing lmodern ...
defoma-font [option..] register category font hints..
defoma-font [option..] unregister category font
defoma-font [option..] reregister category font hints..
defoma-font [option..] purge category font
defoma-font [option..] register-all hintfile
defoma-font [option..] unregister-all hintfile
defoma-font [option..] reregister-all hintfile
defoma-font [option..] purge-all hintfile
defoma-font [option..] register-one hintfile font
defoma-font [option..] unregister-one hintfile font
defoma-font [option..] reregister-one hintfile font
defoma-font [option..] purge-one hintfile font
dpkg: error processing lmodern (--remove):


defoma-font update lmodern is *NOT* a supported way to be called.

Please fix that urgently.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages defoma depends on:
ii  dialog1.1-20080819-1 Displays user-friendly dialog boxe
ii  file  5.03-3 Determines file type using magic
ii  perl  5.10.1-8   Larry Wall's Practical Extraction 
ii  whiptail  0.52.10-4.1Displays user-friendly dialog boxe

Versions of packages defoma recommends:
ii  libfont-freetype-perl 0.03-1 Read font files and render glyphs 

Versions of packages defoma suggests:
pn  defoma-docnone (no description available)
pn  dfontmgr  none (no description available)
ii  psfontmgr 0.11.10-3  PostScript font manager -- part of
ii  x-ttcidfont-conf  32 TrueType and CID fonts configurati

-- no debconf information


---End Message---
---BeginMessage---
Closing this bug, I see that it has been fixed in the-3 version
but my lmodern packages were build with an old version.

Sorry for the noise.

On Do, 03 Dez 2009, Norbert Preining wrote:
 Package: defoma
 Version: 0.11.10-3
 Severity: important
 
 From experimental's lmodern prerm:
 
 # Automatically added by dh_installdefoma
 FILE='/etc/defoma/hints/lmodern.hints'
 if [ $1 = remove ]; then
 test -x `which defoma-font`  defoma-font update lmodern
 fi
 # End automatically added section
 
 
 but that generates only:
 Removing lmodern ...
 defoma-font [option..] register category font hints..
 defoma-font [option..] unregister category font
 defoma-font [option..] reregister category font hints..
 defoma-font [option..] purge category font
 defoma-font [option..] register-all hintfile
 defoma-font [option..] unregister-all hintfile
 defoma-font [option..] reregister-all hintfile
 defoma-font [option..] purge-all hintfile
 defoma-font [option..] register-one hintfile font
 defoma-font [option..] unregister-one hintfile font
 defoma-font [option..] reregister-one hintfile font
 defoma-font [option..] purge-one hintfile font
 dpkg: error processing lmodern (--remove):
 
 
 defoma-font update lmodern is *NOT* a supported way to be called.
 
 Please fix that urgently.
 
 
 -- System Information:
 Debian Release: squeeze/sid
   APT prefers unstable
   APT policy: (500, 'unstable')
 Architecture: amd64 (x86_64)
 
 Kernel: Linux 2.6.32 (SMP w/2 CPU cores; PREEMPT)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash
 
 Versions of packages defoma depends on:
 ii  dialog1.1-20080819-1 Displays user-friendly dialog 
 boxe
 ii  file  5.03-3 Determines file type using 
 magic
 ii  perl  5.10.1-8   Larry Wall's Practical 
 Extraction 
 ii  whiptail  

Bug#559310: dh_installdefoma creates wrong prerm code

2009-12-03 Thread Norbert Preining
Package: defoma
Version: 0.11.10-3
Severity: important

From experimental's lmodern prerm:

# Automatically added by dh_installdefoma
FILE='/etc/defoma/hints/lmodern.hints'
if [ $1 = remove ]; then
test -x `which defoma-font`  defoma-font update lmodern
fi
# End automatically added section


but that generates only:
Removing lmodern ...
defoma-font [option..] register category font hints..
defoma-font [option..] unregister category font
defoma-font [option..] reregister category font hints..
defoma-font [option..] purge category font
defoma-font [option..] register-all hintfile
defoma-font [option..] unregister-all hintfile
defoma-font [option..] reregister-all hintfile
defoma-font [option..] purge-all hintfile
defoma-font [option..] register-one hintfile font
defoma-font [option..] unregister-one hintfile font
defoma-font [option..] reregister-one hintfile font
defoma-font [option..] purge-one hintfile font
dpkg: error processing lmodern (--remove):


defoma-font update lmodern is *NOT* a supported way to be called.

Please fix that urgently.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages defoma depends on:
ii  dialog1.1-20080819-1 Displays user-friendly dialog boxe
ii  file  5.03-3 Determines file type using magic
ii  perl  5.10.1-8   Larry Wall's Practical Extraction 
ii  whiptail  0.52.10-4.1Displays user-friendly dialog boxe

Versions of packages defoma recommends:
ii  libfont-freetype-perl 0.03-1 Read font files and render glyphs 

Versions of packages defoma suggests:
pn  defoma-docnone (no description available)
pn  dfontmgr  none (no description available)
ii  psfontmgr 0.11.10-3  PostScript font manager -- part of
ii  x-ttcidfont-conf  32 TrueType and CID fonts configurati

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



defoma 0.11.10-3 MIGRATED to testing

2009-12-03 Thread Debian testing watch
FYI: The status of the defoma source package
in Debian's testing distribution has changed.

  Previous version: 0.11.10-2
  Current version:  0.11.10-3

-- 
This email is automatically generated once a day.  As the installation of
new packages into testing happens multiple times a day you will receive
later changes on the next day.
See http://release.debian.org/testing-watch/ for more information.


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#524554: Bug not fixed in skencil-0.6.17-17

2009-12-03 Thread enno . vet
As Octavian Voicu reported, the patch lets skencil start, but the the actual 
bug is just prevented from raising an exception.  The intended file menu is 
repeated thrice.  Skencil does work, but the bug isn't fixed.

But it can be fixed with tiny patch found on:
https://bugs.launchpad.net/ubuntu/+source/skencil/+bug/361636/comments/4
apparently reported by wolfseyn AT usermail.com
apparently provided by maxim-s-barabash

It just changes 2 lines in /usr/lib/skencil/Sketch/UI/tkext.py:

:/usr/lib/skencil # diff -au Sketch/UI/tkext.py.dpkg-dist Sketch/UI/tkext.py
--- Sketch/UI/tkext.py.dpkg-dist 2009-07-16 14:52:36.0 +0100
+++ Sketch/UI/tkext.py   2009-12-03 17:44:31.0 +
@@ -365,7 +365,7 @@
 def RebuildMenu(self):
if self.entries is not None:
try:
-   self.menu.delete(0, END)
+   self.menu.tk.call(self.menu._w, 'delete', 0, END)
except:
warn_tb(INTERNAL, 'Delete failed (bug #524554)')
if self.rebuild_func is not None:
@@ -378,7 +378,7 @@
 
 def SetEntries(self, entries):
if self.entries is not None:
-   self.menu.delete(0, END)
+   self.menu.tk.call(self.menu._w, 'delete', 0, END)
for entry in self.entries:
entry.clean_up()
self.entries = entries

Regards, e.





-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#539187: Patch is broken - packaging is too

2009-12-03 Thread David Claughton
Josselin Mouette wrote:
 Furthermore, it is not the role of dh_pysupport to fix broken symbolic
 links. 

Hi Josselin,

I think maybe I wasn't clear enough about the problem - I'm not
suggesting dh_pysupport should fix a broken symlink - I'm suggesting it
breaks a symlink that wasn't broken before :-)

Specifically, prior to the call to dh_pysupport 'site-packages' contains
the following files (I've removed the cruft from the ls -l output for
clarity) ...

$ pwd
/home/david/src/graphviz-2.24.0/debian/libgv-python/usr/lib/python2.5/site-packages
$ ls -l
-rw-r--r--  gv.py
lrwxrwxrwx  _gv.so - libgv_python25.so
-rw-r--r--  libgv_python25.so

After dh_pysupport is called, 'pyshared' has the following ...

$ pwd
/home/david/src/graphviz-2.24.0/debian/libgv-python/usr/lib/pyshared/python2.5

$ ls -l
lrwxrwxrwx  _gv.so - ../../python2.5/site-packages/libgv_python25.so
-rw-r--r--  libgv_python25.so

In other words, dh_pysupport moves the '_gv.so' link and adjusts it so
it continues to point to 'libgv_python25.so' in site_packages.  However
it then proceeds to also move 'libgv_python25.so' to pyshared and this
breaks the link.

The intent of my patch is to check if the link destination is in the
same directory as the link (i.e. both in site_packages) and just do a
plain 'os.renames' on the link if it is, on the assumption that the link
destination will also be moved and will end up in the same directory
under pyshared.

I don't quite see how running dh_link before dh_pysupport will help here
... I suppose I could delete the link prior to calling dh_pysupport and
then recreate it with dh_link in all the pyshared/python2.X directories
afterwards ... but it just seems to me that this is something that
dh_pysupport should be able to do for me, and of course it worked prior
to the introduction of the 'rename_subtle' function (in 1.0.3 I think)

 Also note that the package should be named python-gv instead.

Well it's not my package - although I have expressed an interest in
adopting it, which is why I thought I'd have a poke at the bug reports...

If I end up taking it on, I'll look into renaming it ;-)

Cheers,

David.




-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed (with 1 errors): reassign 512347 to libbotan1.8-dev, reopening 512347

2009-12-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 # this is still valid for unstable, 1.8 conflicts only with 1.6 but *not* 
 with 1.7
 reassign 512347 libbotan1.8-dev
Bug #512347 {Done: Zack Weinberg za...@panix.com} [botan] libbotanX.Y-dev 
packages should all conflict
Bug reassigned from package 'botan' to 'libbotan1.8-dev'.
Bug No longer marked as found in versions 1.6.5-3.
Bug No longer marked as fixed in versions 1.6.5-4.
 reopen 512347 1.8.6-2
Failed to reopen 512347: New submitter address 1.8.6-2 is not a valid e-mail 
address.


End of message, stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#376591: marked as done (denemo: FTBFS on GNU/kFreeBSD (due to unsatisfied Build-Depends on libasound2-dev))

2009-12-03 Thread Debian Bug Tracking System
Your message dated Thu, 3 Dec 2009 21:14:53 -0600
with message-id 20091204031453.ga2...@rivendel
and subject line Bug#376591: fixed in denemo 0.8.10-1
has caused the Debian Bug report #376591,
regarding denemo: FTBFS on GNU/kFreeBSD (due to unsatisfied Build-Depends on 
libasound2-dev)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
376591: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=376591
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
---BeginMessage---

Package: denemo
Version: 0.7.5-2
Severity: important

Hi,

the current version has unsatisfied Build-Depends on 
libasound2-dev under non-linux ports.


This package is able to use OSS under GNU/kFreeBSD,
it builds fine without libasound2-dev installed with patch bellow.

Please, could you exclude linux specific package in Build-Depends
by using libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
and apply patch bellow to debian/rules.

Thanks for your cooperation.

Petr



diff -u denemo-0.7.5/debian/rules denemo-0.7.5/debian/rules
--- denemo-0.7.5/debian/rules
+++ denemo-0.7.5/debian/rules
@@ -14,4 +14,8 @@
-DEB_CONFIGURE_EXTRA_FLAGS := --enable-alsa \
---with-plugins=analysis \
+DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
+DEB_CONFIGURE_EXTRA_FLAGS := --with-plugins=analysis \
 --enable-gtk2

+ifeq (linux,$(DEB_HOST_ARCH_OS))
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-alsa
+endif


---End Message---
---BeginMessage---
The current version of denemo does not Build-Depend on libasound2-dev.

-- 
Josué M. Abarca S.

---End Message---


Processed: Bug#376591: fixed in denemo 0.8.10-1

2009-12-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 fixed 376591 0.8.10-1
Bug #376591 {Done: Josue Abarca jmasli...@debian.org.gt} [denemo] denemo: 
FTBFS on GNU/kFreeBSD (due to unsatisfied Build-Depends on libasound2-dev)
Bug Marked as fixed in versions denemo/0.8.10-1.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#376591: fixed in denemo 0.8.10-1

2009-12-03 Thread Josue Abarca
The current version of denemo does not Build-Depend on libasound2-dev.

-- 
Josué M. Abarca S.



-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#449788: marked as done (denemo: debian/watch fails to report upstream's version)

2009-12-03 Thread Debian Bug Tracking System
Your message dated Thu, 3 Dec 2009 21:32:42 -0600
with message-id 20091204033242.gc2...@rivendel
and subject line #449788 fixed in denemo 0.8.10-1
has caused the Debian Bug report #449788,
regarding denemo: debian/watch fails to report upstream's version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
449788: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449788
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
---BeginMessage---
Source: denemo
Version: 0.7.5-4
Severity: minor
Usertags: dehs-no-upstream

Hello maintainer,

The debian/watch file of your package on the unstable distribution fails to 
report upstream's version.
Uscan's message follows:


uscan warning: /tmp/denemo_watchKhCJQO is an obsolete version 1 watchfile;
  please upgrade to a higher version
  (see uscan(1) for details).


Please note that this message is auto-generated by extracting the information
 from the Debian External Health Status (a.k.a. DEHS) no_upstream page[1].
At the moment of running the package version found is the one indicated in the 
report.
If you have already fixed this issue please ignore and close this report.

If you belive this message can be improved in any way don't hesitate to contact 
me
 by replying to n-submit...@bugs.debian.org (where N is the number of 
this bug report).

If you wish not to be notified in the future contact me so I add you to the 
ignore list.

[1] http://dehs.alioth.debian.org/no_upstream.html

Kind regards, Raphael Geissert.


---End Message---
---BeginMessage---
fixed 449788 0.8.10-1
thanks

---End Message---


Processed: #449788 fixed in denemo 0.8.10-1

2009-12-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 fixed 449788 0.8.10-1
Bug #449788 [denemo] denemo: debian/watch fails to report upstream's version
Bug Marked as fixed in versions denemo/0.8.10-1.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Bug#559405: opencryptoki: FTBFS on GNU/kFreeBSD

2009-12-03 Thread Cyril Brulebois
Package: opencryptoki
Version: 2.2.8+dfsg-3
Severity: important
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package FTBFS on GNU/kFreeBSD due to some includes: linux/limits.h
isn't found, PATH_MAX is not defined, etc.

The attached prospective patch fixes that in several files, but isn't
sufficient to get the package built (hence my not tagging it “patch”).

The build log now ends with:
| gcc -DPACKAGE_NAME=\openCryptoki\ -DPACKAGE_TARNAME=\opencryptoki\ 
-DPACKAGE_VERSION=\2.2.6\ -DPACKAGE_STRING=\openCryptoki\ 2.2.6\ 
-DPACKAGE_BUGREPORT=\opencryptoki-t...@lists.sourceforge.net\ 
-DPACKAGE=\opencryptoki\ -DVERSION=\2.2.6\ -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\.libs/\ -DSTDC_HEADERS=1 
-DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 
-DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 
-DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETCWD=1 -I.-DSPINXPL 
-DPROGRAM_NAME=\pkcsslotd-err.o\ -DNOODM -DNODAE -I../. 
-I../../include/pkcs11 -I../../include/pkcs11/stdll -g -O2 -O2 -DPKCS64 
 -DCONFIG_PATH=\/var/lib/opencryptoki\ 
-DSBIN_PATH=\/usr/sbin\   
-DLIB_PATH=\/usr/lib/opencryptoki\-D_XOPEN_SOURCE=500 -c -o 
pkcsslotd-err.o 
 `test -f 'err.c' || echo './'`err.c
| err.c:334: error: 'ECHRNG' undeclared here (not in a function)
| err.c:335: error: 'EL2NSYNC' undeclared here (not in a function)
| err.c:336: error: 'EL3HLT' undeclared here (not in a function)
| err.c:337: error: 'EL3RST' undeclared here (not in a function)
| err.c:338: error: 'ELNRNG' undeclared here (not in a function)
| err.c:339: error: 'EUNATCH' undeclared here (not in a function)
| err.c:340: error: 'ENOCSI' undeclared here (not in a function)
| err.c:341: error: 'EL2HLT' undeclared here (not in a function)
| err.c:372: error: 'ERESTART' undeclared here (not in a function)
| err.c:383: error: 'ENOSR' undeclared here (not in a function)
| err.c:384: error: 'ETIME' undeclared here (not in a function)
| err.c:387: error: 'ENODATA' undeclared here (not in a function)
| err.c:388: error: 'ENOSTR' undeclared here (not in a function)
| err.c:427: error: 'SIGPWR' undeclared here (not in a function)
| err.c:427: error: initializer element is not constant
| err.c:427: error: (near initialization for 'SignalInfo[25].Code')
| make[3]: *** [pkcsslotd-err.o] Error 1

Using some #ifdef around those variables would probably fix it, but I'm
not sure it's the way to go. Opening this bug to keep track of the
limits.h thingy at the very least.

Mraw,
KiBi.
--- a/usr/include/pkcs11/apictl.h
+++ b/usr/include/pkcs11/apictl.h
@@ -296,7 +296,11 @@
 
 
 #include pkcs11types.h
+#ifdef linux
 #include linux/limits.h
+#else
+#include limits.h
+#endif
 #include local_types.h
 #include stdll.h
 #include slotmgr.h
--- a/usr/include/pkcs11/slotmgr.h
+++ b/usr/include/pkcs11/slotmgr.h
@@ -301,7 +301,11 @@
 
 
 #include pkcs11types.h
+#ifdef linux
 #include linux/limits.h
+#else
+#include limits.h
+#endif
 #include local_types.h
 #include pthread.h
 
--- a/usr/include/pkcs11/stdll.h
+++ b/usr/include/pkcs11/stdll.h
@@ -302,7 +302,11 @@
 
 
 #include pkcs11types.h
+#ifdef linux
 #include linux/limits.h
+#else
+#include limits.h
+#endif
 #include local_types.h
 #include slotmgr.h
 
--- a/usr/sbin/pkcsslotd/pkcsslotd.h
+++ b/usr/sbin/pkcsslotd/pkcsslotd.h
@@ -353,7 +353,11 @@
 #include nl_types.h
 
 #include sys/ipc.h
+#ifdef linux
 #include linux/limits.h
+#else
+#include limits.h
+#endif
 #include sys/shm.h
 #include sys/stat.h
 #include sys/types.h