Re: [Patch] Fix anaconda build on s390x with recent kernel headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 02.09.2009 21:42, schrieb David Cantrell:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 2 Sep 2009, Karsten Hopp wrote:

Proposed patch for

https://bugzilla.redhat.com/show_bug.cgi?id=520830

These structures are copied from the s390-utils package (GPLv2):

Rather than updating isys/dasd.c with this information, could the s390utils
package provide a -devel package that gives us a header file with this
information? That way we don't have to maintain the information in anaconda
as well as s390utils.


Dan has built a new s390utils package with the headers in a -devel subpackage.
Here are the changes for anaconda:


--- anaconda.spec       2009-09-02 12:10:38.000000000 -0400
+++ anaconda.spec__     2009-09-03 09:37:50.000000000 -0400
@@ -80,6 +80,9 @@
 BuildRequires: desktop-file-utils
 %endif
 BuildRequires: iscsi-initiator-utils-devel >= %{iscsiver}
+%ifarch s390 s390x
+BuildRequires: s390utils-devel
+%endif

 Requires: policycoreutils
 Requires: rpm-python >= %{rpmpythonver}
diff -urN anaconda-12.17/isys/dasd.c anaconda-12.17_/isys/dasd.c
--- anaconda-12.17/isys/dasd.c  2009-08-07 12:00:11.000000000 -0400
+++ anaconda-12.17_/isys/dasd.c 2009-09-03 09:10:26.000000000 -0400
@@ -35,9 +35,8 @@
 #define u16 __u16
 #define u32 __u32
 #define u64 __u64
-#include <asm/vtoc.h>
+#include <s390utils/vtoc.h>
 #include <asm/dasd.h>
-typedef struct vtoc_volume_label volume_label_t;
 #endif

 #if defined(__s390__) || defined(__s390x__)



        Karsten

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux