Olaf Hering
2013-Jun-04 14:39 UTC
[Libguestfs] [PATCH] Set DISTRO to SUSE if /etc/SuSE-release exists
Signed-off-by: Olaf Hering <olaf@aepfle.de> --- not compile-tested. configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 71f7b06..2db9593 100644 --- a/configure.ac +++ b/configure.ac @@ -519,6 +519,9 @@ fi if test -f /etc/arch-release; then DISTRO=ARCHLINUX fi +if test -f /etc/SuSE-release; then + DISTRO=SUSE +fi AC_MSG_RESULT([$DISTRO]) AC_SUBST([DISTRO])
Richard W.M. Jones
2013-Jun-04 14:46 UTC
Re: [Libguestfs] [PATCH] Set DISTRO to SUSE if /etc/SuSE-release exists
On Tue, Jun 04, 2013 at 04:39:12PM +0200, Olaf Hering wrote:> Signed-off-by: Olaf Hering <olaf@aepfle.de> > --- > > not compile-tested. > > configure.ac | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/configure.ac b/configure.ac > index 71f7b06..2db9593 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -519,6 +519,9 @@ fi > if test -f /etc/arch-release; then > DISTRO=ARCHLINUX > fi > +if test -f /etc/SuSE-release; then > + DISTRO=SUSE > +fi > AC_MSG_RESULT([$DISTRO]) > AC_SUBST([DISTRO])Looks fine. ACKed and pushed. Of course it'll need corresponding adjustments to appliance/packagelist.in, as I'm sure you're aware :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Olaf Hering
2013-Jun-04 15:03 UTC
Re: [Libguestfs] [PATCH] Set DISTRO to SUSE if /etc/SuSE-release exists
On Tue, Jun 04, Richard W.M. Jones wrote:> Looks fine. ACKed and pushed. Of course it'll need corresponding > adjustments to appliance/packagelist.in, as I'm sure you're aware :-)Yes. Hopefully there will be a generic set of package names to support everything from SLES to Factory. Might be problematic with the switch to systemd, maybe --with-extra-pkgs= will be the rescue. Olaf
Seemingly Similar Threads
- Re: [PATCH] Set DISTRO to SUSE if /etc/SuSE-release exists
- [PATCH] Mask some package names if appliance is build for SUSE
- [PATCH] sysprep: handle SuSE in hostname operation
- [PATCH] tools: specify datadir for qemu-xen build to fix firmware loading
- [xen-4.1-testing test] 10458: trouble: broken/fail/pass