OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Can't find packages
« previous next »
  • Print
Pages: [1]

Author Topic: Can't find packages  (Read 5658 times)

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Can't find packages
« on: January 21, 2018, 06:29:28 pm »
I want to install
Code: [Select]
tree and
Code: [Select]
python3 (3.5 or 3.6).

Neither seems to be available in the OPNsense repository.

I'm also wanting to install other packages.
What are my options?
Logged
:-D  Hobbyist programmer since 1986

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Can't find packages
« Reply #1 on: January 21, 2018, 08:54:51 pm »
you can request packages via GitHub (https://github.com/opnsense/tools/issues/new) or build them from the ports tree (https://github.com/opnsense/ports)
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #2 on: January 21, 2018, 09:39:36 pm »
Quote from: fabian on January 21, 2018, 08:54:51 pm
you can request packages via GitHub (https://github.com/opnsense/tools/issues/new)
Guessing that is the long way round.  ;)

Quote from: fabian on January 21, 2018, 08:54:51 pm
or build them from the ports tree (https://github.com/opnsense/ports)
I think that would probably be the way to go.
Just to make sure I'm clear on the workflow:
1. pkg install git
2. cd /usr
3. git clone https://github.com/opnsense/ports.git
Right? Did I forget something?π
Logged
:-D  Hobbyist programmer since 1986

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Can't find packages
« Reply #3 on: January 21, 2018, 10:26:21 pm »
Quote from: mausy5043 on January 21, 2018, 09:39:36 pm
3. git clone https://github.com/opnsense/ports.git
Right? Did I forget something?π
yes: change into the directory and build the port ;)
It is a category with the port name as a subdirectory. You can build it using the Makefile.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #4 on: January 22, 2018, 07:20:27 am »
To reiterate:

# opnsense-code tools ports
# cd /usr/port/category/name
# make install


Cheers,
Franco
« Last Edit: January 22, 2018, 06:54:23 pm by franco »
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #5 on: January 22, 2018, 06:43:30 pm »
Great! thanks.

Wishing '#' would complete to 'sudo'. Would make copy & paste even easier. ;-)
Logged
:-D  Hobbyist programmer since 1986

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #6 on: January 22, 2018, 06:53:50 pm »
Whoops, sorry for the German in there. I'll fix that up...

How about "sudo csh" and exit again when done?

I always wanted to make opnsense-code a little more clever to be able to operate e.g. the ports tree. If someone wants to try I'm happy to review.


Cheers,
Franco
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #7 on: January 22, 2018, 09:11:27 pm »
Unfortunately, no joy:

Code: [Select]
% cd /usr/ports/sysutils/tree
% sudo make install
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/tree

 ???
Logged
:-D  Hobbyist programmer since 1986

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #8 on: January 22, 2018, 09:40:11 pm »
Almost there. FreeBSD obsoleted FreeBSD 11.0 very quickly after 11.1, namely 3 months so 6 month release cycles are hard to finish in that time. :)

A change was reverted in the tools to make 17.7 the default again. This will fix it:

% sudo opnsense-code tools


Cheers,
Franco
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #9 on: January 23, 2018, 05:52:31 pm »
Quote from: franco on January 22, 2018, 09:40:11 pm
% sudo opnsense-code tools

Did that.
Code: [Select]
% sudo opnsense-code tools
remote: Counting objects: 1, done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), done.
From https://github.com/opnsense/tools
   8db0e61..f7ff6ea  master     -> origin/master
Updating 8db0e61..f7ff6ea
Fast-forward
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Code: [Select]
% cd /usr/ports/sysutils/tree
% sudo make install
/!\ WARNING /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

===>  License GPLv2 accepted by the user
===>   tree-1.7.0 depends on file: /usr/local/sbin/pkg - found
=> tree-1.7.0.tgz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch ftp://mama.indstate.edu/linux/tree/tree-1.7.0.tgz
tree-1.7.0.tgz                                100% of   45 kB  197 kBps 00m00s
===> Fetching all distfiles required by tree-1.7.0 for building
===>  Extracting for tree-1.7.0
=> SHA256 Checksum OK for tree-1.7.0.tgz.
===>  Patching for tree-1.7.0
===>  Applying FreeBSD patches for tree-1.7.0
===>   tree-1.7.0 depends on executable: gmake - not found
/!\ WARNING /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

===>  License GPLv3 accepted by the user
===>   gmake-4.2.1_1 depends on file: /usr/local/sbin/pkg - found
=> make-4.2.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://ftpmirror.gnu.org/make/make-4.2.1.tar.bz2
make-4.2.1.tar.bz2                            100% of 1374 kB 7565 kBps 00m00s
===> Fetching all distfiles required by gmake-4.2.1_1 for building
===>  Extracting for gmake-4.2.1_1
=> SHA256 Checksum OK for make-4.2.1.tar.bz2.
===>  Patching for gmake-4.2.1_1
===>  Applying FreeBSD patches for gmake-4.2.1_1
===>  Configuring for gmake-4.2.1_1
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
:
:
: blablabla building stuff blablabla
:
:
gmake[1]: Leaving directory '/usr/obj/usr/ports/sysutils/tree/work/tree-1.7.0'
===>  Staging for tree-1.7.0
===>   Generating temporary packing list
install  -s -m 555 /usr/obj/usr/ports/sysutils/tree/work/tree-1.7.0/tree /usr/obj/usr/ports/sysutils/tree/work/stage/usr/local/bin
install  -m 444 /usr/obj/usr/ports/sysutils/tree/work/tree-1.7.0/doc/*.1 /usr/obj/usr/ports/sysutils/tree/work/stage/usr/local/man/man1
install  -m 0644 /usr/obj/usr/ports/sysutils/tree/work/tree-1.7.0/CHANGES /usr/obj/usr/ports/sysutils/tree/work/tree-1.7.0/README /usr/obj/usr/ports/sysutils/tree/work/stage/usr/local/share/doc/tree
====> Compressing man pages (compress-man)
===>  Installing for tree-1.7.0
===>  Checking if tree already installed
===>   Registering installation for tree-1.7.0
Installing tree-1.7.0...
% tree -dL 1 /
/
|-- bin
|-- boot
|-- conf
|-- dev
|-- etc
|-- home
|-- lib
|-- libexec
|-- media
|-- mnt
|-- proc
|-- rescue
|-- root
|-- sbin
|-- tmp
|-- usr
`-- var

17 directories

 :)
The error has turned into a warning and the build works fine. Seems to have worked.

Thanks.
Logged
:-D  Hobbyist programmer since 1986

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #10 on: January 23, 2018, 06:52:21 pm »
But where would you advice me to get the kernel sources from?

Code: [Select]
===>  lsof-4.90.q,8 requires kernel sources.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/lsof
Logged
:-D  Hobbyist programmer since 1986

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #11 on: January 23, 2018, 06:56:41 pm »
% sudo opnsense-code src


Cheers,
Franco
Logged

mausy5043

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 5
    • View Profile
Re: Can't find packages
« Reply #12 on: January 23, 2018, 07:39:53 pm »
Already tried that

Code: [Select]
% sudo opnsense-code src
fatal: Not a git repository (or any of the parent directories): .git
Which surprised me as it does exist.
Logged
:-D  Hobbyist programmer since 1986

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #13 on: January 23, 2018, 09:51:49 pm »
/usr/src is created by FreeBSD by default even if empty. Git doesn't like that. I forgot. Sorry.

% sudo opnsense-code -f src

I'll fix this in the next version of opnsense-code.


Cheers,
Franco
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13945
  • Karma: 1208
    • View Profile
Re: Can't find packages
« Reply #14 on: January 23, 2018, 10:24:36 pm »
This will automatically fix it in the future... https://github.com/opnsense/update/commit/db7f7ce0c0


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Can't find packages
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2