DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th February 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default Ports with several versions

I would like to build Python-3.4 (on 5.6-stable i386).

$ cd /usr/ports/lang/python
$ ls returns:
Code:
2.7/             3.3/             3.4/             CVS/             Makefile         Makefile.inc     python.port.mk
$ make show=FLAVORS returns:
Code:
===> lang/python/2.7
 
===> lang/python/3.3
 
===> lang/python/3.4
and $ ls /usr/ports/lang/python/3.4/pkg/ returns:
Code:
CVS/           DESCR-gdbm     DESCR-idle     DESCR-main     DESCR-tests    DESCR-tkinter  PLIST-gdbm     PLIST-idle     PLIST-main     PLIST-tests    PLIST-tkinter
So I guess the SUBPACKAGEs are "-gdbm -idle -main -tests -tkinter".

How do I build all of the subpackages (assuming none of them conflict with another) of the 3.4 version?

# env FLAVOR="lang/python/3.4" make and
# env FLAVOR="3.4" make both return:
Code:
Fatal: can't flavor a SUBDIR (in lang/python)
*** Error 1 in /usr/ports/lang/python (/usr/ports/infrastructure/mk/bsd.port.subdir.mk:187 '.BEGIN': @exit 1)
Reply With Quote
  #2   (View Single Post)  
Old 15th February 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

They're going to be built. If you want to install everything pass:
Code:
# make install-all
Reply With Quote
  #3   (View Single Post)  
Old 15th February 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Thanks.

The part that I am really stuck on is how to select the major version - 2.7, 3.3, and 3.4 are available. It's tempting to just change directory to /usr/ports/lang/python/3.4 and try # make install-all but it's not clear [to me] if that is the correct way to do it.
Reply With Quote
  #4   (View Single Post)  
Old 16th February 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Yes.
Reply With Quote
  #5   (View Single Post)  
Old 16th February 2015
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

I looked through the make files and it seems like SUBDIR might be used in cases like this in a similar way as FLAVOR or SUBPACKAGE is used. I haven't found any documentation to support that notion but I am trying:

# cd /usr/ports/lang/python
# make SUBDIR="3.4" COPTS="-march=native" CXXOPTS="-march=native" build 2>&1 | /usr/ports/infrastructure/bin/portslogger /tmp/ports_log

I am way off?

update: The SUBDIR method didn't work. Changing directory to 3.4 then building does work.

Last edited by hanzer; 16th February 2015 at 01:12 AM. Reason: update
Reply With Quote
  #6   (View Single Post)  
Old 16th February 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by hanzer View Post
Changing directory to 3.4 then building does work.
For future readers...
The way to work with the ports tree if you only want to build a single port is to go into a leaf directory and issue commands.
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
Trouble installing Python (library versions) pmaddams OpenBSD Packages and Ports 11 26th December 2022 12:54 PM
Security New holes discovered in latest Java versions J65nko News 0 27th February 2013 01:49 AM
PDF versions of the FAQ? PleaseHelpAnewbie OpenBSD General 6 4th March 2010 02:46 PM
Discovering SSH versions of compromised hosts with nc(1) J65nko General software and network 1 31st December 2009 11:01 AM
Both versions installing in same location, & can't delete jaymax FreeBSD General 5 9th June 2008 06:25 PM


All times are GMT. The time now is 04:30 AM.


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