Bug 28631 - Add os_compat for BSDi 4.0
Add os_compat for BSDi 4.0
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-02-21 12:31 EST by Joe Orton
Modified: 2007-04-18 12:31 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-22 11:31:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2001-02-21 12:31:08 EST
Add compatibility mapping for BSD/OS.  Without this line,
RPMs would not install on BSDi 4.0.

--- rpm-4.0.1jan05-vanilla/rpmrc.in	Mon Dec  4 21:36:09 2000
+++ rpm-4.0.1jan05/rpmrc.in	Mon Dec  4 21:36:09 2000
@@ -240,6 +240,8 @@
 os_compat: osf4.0: osf3.2 osf1
+os_compat: BSD/OS: bsd_os
 os_compat: ncr-sysv4.3: ncr-sysv4.2
 os_compat: FreeMiNT: mint MiNT TOS
Comment 1 Jeff Johnson 2001-02-21 14:55:27 EST
Can you give me the output of uname -a on a BSDI 4.0 box? There may be more to
do, but I can't tell w/o seeing the output of uname -a. Actually, the exact
default output
from config.guess would be helpful as well. Thanks.
Comment 2 Joe Orton 2001-02-21 16:10:55 EST
bsdi40: {3} % uname -a
BSD/OS bsdi40.worknet 4.0 BSDI BSD/OS 4.0 Kernel #0: Tue Jul 28 15:56:54 MDT
1998     polk@demiurge.BSDI.COM:/rel/proto/4.0-i386/usr/src/sys/compile/GENERIC 

bsdi40: {15} % ./config.guess 

Hope that helps (confession: I found the os_compat setting by trial and error)

Comment 3 Jeff Johnson 2001-02-22 10:41:08 EST
OK, here's what I'd like to happen, but it's gonna take a while.

My goal is to use the text output of config.guess for <arch>, <vendor>, and <os>
as closely as possible within rpmrc configuration.

That means that what I want to see happen is to change from
	os_canon:       BSD/OS: BSD_OS 12
	os_canon:        BSD/OS: bsdi 12
so that the rpmrc distinguished os name is exactly the same as the config.guess

That also means that there will need to be os compat glue to handle the 4.0 os

FWIW, your patch did little more AFAICT than permit you to match lower case
in a %ifos statement but I may be wrong, as all this rpmrc compatibility goo
makes my head
hurt a lot. Meanwhile locate any/all uses of %ifos in your packaging, as I'm
about to
break things on bsdi to achieve the goal mentioned previously.

Comment 4 Joe Orton 2001-02-22 10:46:32 EST
Sorry, I should have mentioned the error too.  When installing a binary RPM,
without this patch, RPM would give the error:

  package foo is for a different operating system

and refuse to install.

Comment 5 Jeff Johnson 2001-02-22 11:01:23 EST
Yup. Try the following, let me know if it "works".

diff -u -r2.28.2.5 rpmrc.in
--- rpmrc.in    2000/12/04 21:36:09
+++ rpmrc.in    2001/02/22 15:59:37
@@ -112,7 +112,7 @@
 os_canon:       SCO_SV: SCO_SV3.2v5.0.2  9
 os_canon:      IRIX64: Irix64  10
 os_canon:     NEXTSTEP: NextStep 11
-os_canon:       BSD/OS: BSD_OS 12
+os_canon:       BSD/OS: bsdi   12
 os_canon:      machten: machten 13
 os_canon:  CYGWIN32_NT: cygwin32 14
 os_canon:  CYGWIN32_95: cygwin32 15
@@ -246,6 +246,9 @@
 os_compat: MiNT: FreeMiNT mint TOS
 os_compat: mint: FreeMiNT MiNT TOS
 os_compat: TOS: FreeMiNT MiNT mint
+os_compat: BSDI_OS: bsdi
+os_compat: bsdi4.0: bsdi
Comment 6 Joe Orton 2001-02-22 11:31:41 EST
+os_compat: BSDI_OS: bsdi

you mean BSD_OS there I think? 

But either way, the change didn't work.

If I apply your os_compat's, and use

os_canon:	BSD_OS: bsdi   12

instead of your os_canon, that *does* work.
Comment 7 Jeff Johnson 2001-02-22 13:05:15 EST
Yup, BSDI_OS was my typo., change in os_canon incorporated as well.

Note You need to log in before you can comment on or make changes to this bug.