Re: portgen go - how to?
On 2020/08/21 04:22, Aaron Bieber wrote: > > > On Fri, Aug 21, 2020, at 3:41 AM, Mikolaj Kucharski wrote: > > Hi, > > > > I've looked at github.com/cli/cli and wanted to give it a go, but I'm > > not familar how to create a port in golang ecosystem. > > > > I've looked at portgen and not sure how to do it with it either :/ > > > > I've ran portgen and it failed as follows: > > > > $ env PORTSDIR=/home/mkucharski/openbsd \ > > /home/mkucharski/openbsd/ports/infrastructure/bin/portgen go > > github.com/cli/cli > > I am not 100% sure setting PORTSDIR via env will work. Can you set it via > mk.conf to see if it gets further? I would really recommend people just make a partition for /usr/ports and save the hassle and potential problems of moving it elsewhere via environment/ mk.conf/attempts with symlinks...
Re: portgen go - how to?
On Fri, Aug 21, 2020 at 04:22:46AM -0600, Aaron Bieber wrote: > > On Fri, Aug 21, 2020, at 3:41 AM, Mikolaj Kucharski wrote: > > > > $ env PORTSDIR=/home/mkucharski/openbsd \ > > /home/mkucharski/openbsd/ports/infrastructure/bin/portgen go > > github.com/cli/cli > > I am not 100% sure setting PORTSDIR via env will work. Can you set it via > mk.conf to see if it gets further? > I should mention that I already had PORTSDIR in mk.conf, before I executed portgen. Here is my entire mk.conf file: # /etc/mk.conf PORTSDIR = /home/mkucharski/openbsd/ports PORTSDIR_PATH = ${PORTSDIR}:/home/mkucharski/openbsd/mystuff SUDO = doas I've looked at mail archives and I think I'm executing portgen with correct arguments, so I guess I need to dive into the code. portgen go github.com/cli/cli Above is correct execution, putting aside my issue, right? -- Regards, Mikolaj
Re: portgen go - how to?
On Fri, Aug 21, 2020, at 3:41 AM, Mikolaj Kucharski wrote: > Hi, > > I've looked at github.com/cli/cli and wanted to give it a go, but I'm > not familar how to create a port in golang ecosystem. > > I've looked at portgen and not sure how to do it with it either :/ > > I've ran portgen and it failed as follows: > > $ env PORTSDIR=/home/mkucharski/openbsd \ > /home/mkucharski/openbsd/ports/infrastructure/bin/portgen go > github.com/cli/cli I am not 100% sure setting PORTSDIR via env will work. Can you set it via mk.conf to see if it gets further? > make: don't know how to make makesum > Stop in /home/mkucharski/openbsd/mystuff/go/cli > make: don't know how to make checksum > Stop in /home/mkucharski/openbsd/mystuff/go/cli > make: don't know how to make clean > Stop in /home/mkucharski/openbsd/mystuff/go/cli > make: don't know how to make extract > Stop in /home/mkucharski/openbsd/mystuff/go/cli > make: no target to make. > Can't stat : No such file or directory > at > /home/mkucharski/openbsd/ports/infrastructure/bin/../lib/OpenBSD/PortGen/Port.pm > line 251. > make: no target to make. > make: don't know how to make fake > Stop in /home/mkucharski/openbsd/mystuff/go/cli > make: don't know how to make update-plist > Stop in /home/mkucharski/openbsd/mystuff/go/cli > /home/mkucharski/openbsd/mystuff/go/cli > > However, I'm not exactly sure am I executing it correctly. Any clues? > > -- > Regards, > Mikolaj > >
portgen go - how to?
Hi, I've looked at github.com/cli/cli and wanted to give it a go, but I'm not familar how to create a port in golang ecosystem. I've looked at portgen and not sure how to do it with it either :/ I've ran portgen and it failed as follows: $ env PORTSDIR=/home/mkucharski/openbsd \ /home/mkucharski/openbsd/ports/infrastructure/bin/portgen go github.com/cli/cli make: don't know how to make makesum Stop in /home/mkucharski/openbsd/mystuff/go/cli make: don't know how to make checksum Stop in /home/mkucharski/openbsd/mystuff/go/cli make: don't know how to make clean Stop in /home/mkucharski/openbsd/mystuff/go/cli make: don't know how to make extract Stop in /home/mkucharski/openbsd/mystuff/go/cli make: no target to make. Can't stat : No such file or directory at /home/mkucharski/openbsd/ports/infrastructure/bin/../lib/OpenBSD/PortGen/Port.pm line 251. make: no target to make. make: don't know how to make fake Stop in /home/mkucharski/openbsd/mystuff/go/cli make: don't know how to make update-plist Stop in /home/mkucharski/openbsd/mystuff/go/cli /home/mkucharski/openbsd/mystuff/go/cli However, I'm not exactly sure am I executing it correctly. Any clues? -- Regards, Mikolaj