DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th August 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Germany
Posts: 93
Default Mosquitto and Cmake

Hello,
i have ported Mosquitto 1.4.10 to NetBSD. But when i trying to make a package or install i getting a strange cmake error from install recipe like:

Quote:
install -d /usr/pkgsrc/wip/mosquitto/work/.destdir/usr/pkg/lib/
install -s --strip-program=strip libmosquitto.so.1 /usr/pkgsrc/wip/mosquitto/work/.destdir/usr/pkg/lib/libmosquitto..
install: unknown option -- -
Any ideas?

The same is working without changes in the FreeBSD and OpenBSD port.
__________________
NetBSD 7.99.69(AMD64)@x240
Reply With Quote
  #2   (View Single Post)  
Old 29th August 2016
ibara's Avatar
ibara ibara is offline
AsiaBSDCon 2016 Speaker
 
Join Date: Jan 2014
Posts: 403
Default

That's how the install(1) program on NetBSD informs you that it doesn't accept long options (options that begin with --).

Besides, the --strip-program=strip flag is useless on the BSDs. That's almost certainly a Solaris or AIX (maybe HP-UX) compat thing. You should just delete it in your Makefile (probably more accurately in CMakeLists.txt).

I'm rather surprised that you say this works on OpenBSD. It shouldn't. OpenBSD's install(1) also lacks longopt support. I don't know about FreeBSD. I wonder if CMake checks for FreeBSD and OpenBSD and removes the flag. Then you should add NetBSD to that check.

Anyhow, simply remove the --strip-program=strip part of the command from your Makefile and it'll work.
Reply With Quote
  #3   (View Single Post)  
Old 3rd September 2016
rons's Avatar
rons rons is offline
Snoozing
 
Join Date: Oct 2015
Posts: 37
Default

Quote:
Hello,
i have ported Mosquitto 1.4.10 to NetBSD. But when i trying to make a package or install i getting a strange cmake error from install recipe like:
I've thought about using Mosquito myself, so thanks for positing the question. Are you using an embedded platform for sensor capture? Or another use?
Reply With Quote
  #4   (View Single Post)  
Old 3rd September 2016
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Germany
Posts: 93
Default

No, this port wasn't for me and I'm not a user. Long story:
Someone from another forum has asked how could he build this. I made the suggestion that a port should be easy, so i made only the package recipe. Now you can find this package in pkgsrc-wip branch. I need more testers and cleanups. Maybe someone knows how can i get my pull request integrated into master branch of mosquitto and is Dragonfly BSD already supported?
__________________
NetBSD 7.99.69(AMD64)@x240
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMake problem sw2wolf OpenBSD Packages and Ports 8 21st January 2015 08:08 AM


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick