setting up a ports distfile mirror

Julian Elischer julian at freebsd.org
Mon Apr 28 18:08:02 UTC 2014


On 4/29/14, 12:00 AM, Alfred Perlstein wrote:
> Julian, why not have a look at the freenas build system, you'll find 
> it does a lot of the magic you are looking to do.
I'm trying to repare an exisiting build system, not write  a new one.. 
the existing one has a whole company's work in it
so redoing it from scratch isn't an option.. They started out with the 
Busybox build system on Linux and kept it but wrote the word FreeBSD 
on it in crayon. "A mess" is being kind..
bunch of linux and windows people bolting a new (freebSD) kernel and 
system build into a Linux build env.
I'm sure your already starting to get a sense of the problems that 
might come up.
especially when you consider that they weren't really following the 
rules with the linux build to start with.

Things like "checking in system libraries and includes into the 
product so they get the right ones"
(so what happens when you try to move to  a new system revision and 
you have libraries and include files from the old system checked in 
hither and yon?)?    Or checking in binaries to put into /bin that 
come from some unknown place but worked on someone's test system.

>
>
> I'll be at BSDcan and I can walk anyone through it that is interested.
>
> In the meanwhile the fix to your problem is this:
>
> : 
> ${MASTER_SITE_OVERRIDE='http://gitserver/freenas/distfiles/${DIST_SUBDIR}/'}
>
> (from: https://github.com/freenas/freenas/blob/master/nanobsd/common)
OK! I'll check that and see if it helps

>
> On 4/28/14 1:09 AM, Julian Elischer wrote:
>> I noticed that if I set an override site, that it uses it 
>> differently that a primary site.
>> for example:
>>
>> if I have a file needed for a perl install on my ftp server:
>>
>> /pub/ports-distfiles/perl/defined-or-5.8.9.bz2
>>
>> and set the over-ride to point to my local server's ports-distfiles 
>> directory,
>> it fails to find that file because it doesn't look in .../perl/..,
>> yet on the primary site (or the FreeBSD site)
>> it looks for , and finds this file in the 'perl' subdirectory.
>>
>> On the Over-ride site however, it looks for it in the base directory.
>> and doesn't look in the 'perl' subdirectory. (this is an 8.0 
>> vintage system)
>> but I see similar happennig on newer systems, (I will confirm this 
>> soon).
>>
>> Is there a way to specify a local distfile mirror that has the same 
>> layout as the
>> primaries?
>>
>> Julian
>> p.s. keep me in CCs please.
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to 
>> "freebsd-ports-unsubscribe at freebsd.org"
>>
>
>



More information about the freebsd-ports mailing list