Best/Easiest way to work with git repository for testing ports

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Best/Easiest way to work with git repository for testing ports

Steve Williams-16
Hi,

I'm working on freerdp and guacamole clones.

I've got ports built for both thanks to various assistance from Stuart
et al.

However, they are both under active development and rather than working
with the tarballs, I want to work with the git repository.

I've done this a couple of times, but it seems fragile... download the
git repository, create a tarball named like the latest release, make
makesum, etc and keep going down the garden path.  But then they bump
versions in the git (eg: freerdp3 instead of freerdp2) which I can deal
with.. modifying the guacamole build files...

It's not very "seamless" and I'm looking for a way to simplify it a bit.

For example, testing release candidates, different branches, etc.

Is there any elegant way to work with git repositories within the ports
infrastructure?

Thanks,
Steve W.

Reply | Threaded
Open this post in threaded view
|

Re: Best/Easiest way to work with git repository for testing ports

Stuart Henderson
On 2020/06/25 10:06, Steve Williams wrote:

> Hi,
>
> I'm working on freerdp and guacamole clones.
>
> I've got ports built for both thanks to various assistance from Stuart et
> al.
>
> However, they are both under active development and rather than working with
> the tarballs, I want to work with the git repository.
>
> I've done this a couple of times, but it seems fragile... download the git
> repository, create a tarball named like the latest release, make makesum,
> etc and keep going down the garden path.  But then they bump versions in the
> git (eg: freerdp3 instead of freerdp2) which I can deal with.. modifying the
> guacamole build files...
>
> It's not very "seamless" and I'm looking for a way to simplify it a bit.
>
> For example, testing release candidates, different branches, etc.
>
> Is there any elegant way to work with git repositories within the ports
> infrastructure?
>
> Thanks,
> Steve W.
>

For things on github you can do this which generates the right paths/
filenames for the on-the-fly generated archives:

GH_ACCOUNT=     apache
GH_PROJECT=     guacamole-server
GH_COMMIT=      45a0cd943b0106320de2f7eb6a3cccf1f5b53485
DISTNAME=       guacamole-server-1.2.0pre20200625

This is probably about the best you'll get from ports.

Reply | Threaded
Open this post in threaded view
|

Re: Best/Easiest way to work with git repository for testing ports

Steve Williams-16
On 25/06/2020 10:28 a.m., Stuart Henderson wrote:

> On 2020/06/25 10:06, Steve Williams wrote:
>> Hi,
>>
>> I'm working on freerdp and guacamole clones.
>>
>> I've got ports built for both thanks to various assistance from Stuart et
>> al.
>>
>> However, they are both under active development and rather than working with
>> the tarballs, I want to work with the git repository.
>>
>> I've done this a couple of times, but it seems fragile... download the git
>> repository, create a tarball named like the latest release, make makesum,
>> etc and keep going down the garden path.  But then they bump versions in the
>> git (eg: freerdp3 instead of freerdp2) which I can deal with.. modifying the
>> guacamole build files...
>>
>> It's not very "seamless" and I'm looking for a way to simplify it a bit.
>>
>> For example, testing release candidates, different branches, etc.
>>
>> Is there any elegant way to work with git repositories within the ports
>> infrastructure?
>>
>> Thanks,
>> Steve W.
>>
> For things on github you can do this which generates the right paths/
> filenames for the on-the-fly generated archives:
>
> GH_ACCOUNT=     apache
> GH_PROJECT=     guacamole-server
> GH_COMMIT=      45a0cd943b0106320de2f7eb6a3cccf1f5b53485
> DISTNAME=       guacamole-server-1.2.0pre20200625
>
> This is probably about the best you'll get from ports.
Hi Stuart,

Thanks very much for that information.

I was able to fairly trivially get a freerdp-3.0.0devp0 which is pretty
cool :)

I have hacked freerdp to get a xfreerdp (git version) working properly
talking to a Windows XP system and a Windows 7 system.  The latest
release version of xfreerdp won't work properly with Windows XP.    I
need to do some work on timers, but the fact it works (hacked) is amazing!

The latest release version of guacamole (RDP) doesn't work properly with
Windows XP, so I want to try the git version of guacamole-server using
the freerdp-3.0.0devp0.

Thanks for all your guidance!

Cheers,
Steve W.