add LINUX_OSRELEASE to bsd.linux-rpm.mk

Alexander Leidinger Alexander at Leidinger.net
Wed Apr 2 08:39:48 UTC 2008


Quoting Boris Samorodov <bsam at ipt.ru> (from Wed, 02 Apr 2008 12:28:17 +0400):

> On Wed, 02 Apr 2008 08:01:45 +0200 Alexander Leidinger wrote:
>> Quoting Boris Samorodov <bsam at ipt.ru> (from Tue, 01 Apr 2008  
>> 20:42:27 +0400):
>> > On Mon, 24 Mar 2008 00:36:00 +0300 Boris Samorodov wrote:
>> >> On Sat, 22 Mar 2008 08:54:34 +0100 Alexander Leidinger wrote:
>> >
>> >> > Where do we have to introduce the *_PORT
>> >> > stuff? Do we need a bsd.linux.mk, or can the bsd.linux-rpm.mk be used
>> >> > for this? The strict answer may be no, but do we want to be  
>> that strict?
>> >
>> >> Well, I'd prefer to use one existing file: bsd.linux-rpm.mk. If/when
>> >> we use some other distro (I have some positive results with ubuntu)
>> >> then may be we will have to use bsd.linux-deb.mk and split
>> >> bsd.linux-rpm.mk into two files. But so far it's OK to me to use
>> >> the existing one.
>> >
>> > Seems that I have change my mind since linux-rpm.mk is too tied to rpm
>> > format and dealing with it. The file can't be (easily) used with an
>> > average linux port. I tried to convert to using linux-rpm.mk acroread7
>> > port. I got a mess. :-(
>> >
>> > Well, what about new bsd.linux-apps.rpm?
>
>> I think we should keep the .mk at the end.
>
> Sure, it was a typo.
>
>> What about
>>  - bsd.port.mk which includes
>>    - bsd.linux.mk which includes
>>      - bsd.linux-rpm.mk (maybe conditionally)
>>      - bsd.linux-XXX.mk (maybe conditionally)
>
>> LINUX_OSRELEASE can be put into bsd.linux.mk. The USE_LINUX stuff can
>> go into it too.
>
> Yep, fully agreed, this is our goal. But it will influence all linux
> ports at once. While I try to use an evolition way with minimal
> immediate impact to most linux ports. Almost as a Russian proverb says
> "Drive slower, get farther". ;-)

Oh, I was commenting on the final result. As an intermediate step you  
can have bsd.linux.mk separate and don't include anything in it. If it  
is ready, we can move from including it explicitly to including it  
implicitly by asking portmgr to test a patch which adds linux.mk to  
port.mk, adds linux-XXX.mk to linux.mk and removes linux-XXX.mk from  
port.mk. Not a big deal, I think.

Bye,
Alexander.

-- 
	"And what will you do when you grow up to be as big as me?"
asked the father of his little son.
	"Diet."

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list