Hello community, here is the log from the commit of package libhugetlbfs for openSUSE:Factory checked in at 2015-06-30 10:15:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libhugetlbfs (Old) and /work/SRC/openSUSE:Factory/.libhugetlbfs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libhugetlbfs" Changes: -------- --- /work/SRC/openSUSE:Factory/libhugetlbfs/libhugetlbfs.changes 2015-02-22 17:26:22.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libhugetlbfs.new/libhugetlbfs.changes 2015-06-30 10:16:00.000000000 +0200 @@ -1,0 +2,7 @@ +Tue Jun 23 22:35:32 UTC 2015 - antoine.belv...@laposte.net + +- Add libhugelbfs-2.18-restrict-is-a-reserved-word.patch which + fixes compilation with GCC 5 (and C99/C11 in general). +* Add libhugetlbfs-2.18-restrict-is-a-reserved-word.patch + +------------------------------------------------------------------- New: ---- libhugetlbfs-2.18-restrict-is-a-reserved-word.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libhugetlbfs.spec ++++++ --- /var/tmp/diff_new_pack.5OnWab/_old 2015-06-30 10:16:01.000000000 +0200 +++ /var/tmp/diff_new_pack.5OnWab/_new 2015-06-30 10:16:01.000000000 +0200 @@ -45,6 +45,8 @@ Patch13: ignore-perl-modules.diff Patch14: disable-rw-on-non-ldscripts.diff Patch15: fix_plt_extrasz_always_returning_0_on_ppc64le.patch +# PATCH-FIX-UPSTREAM libhugetlbfs-2.18-restrict-is-a-reserved-word.patch -- Fix compilation with GCC 5 (and C99/C11 in general) +Patch16: libhugetlbfs-2.18-restrict-is-a-reserved-word.patch %description The libhugetlbfs package interacts with the Linux hugetlbfs to @@ -67,6 +69,7 @@ %patch13 %patch14 %patch15 -p1 +%patch16 -p1 %build make %{my_make_flags} ++++++ libhugetlbfs-2.18-restrict-is-a-reserved-word.patch ++++++ diff -up libhugetlbfs-2.18/hugeutils.c.orig libhugetlbfs-2.18/hugeutils.c --- libhugetlbfs-2.18/hugeutils.c.orig 2015-06-24 00:23:09.374535669 +0200 +++ libhugetlbfs-2.18/hugeutils.c 2015-06-24 00:23:45.536534148 +0200 @@ -301,14 +301,14 @@ void hugetlbfs_setup_env() env = getenv("HUGETLB_RESTRICT_EXE"); if (env) { - char *p, *tok, *exe, buf[MAX_EXE+1], restrict[MAX_EXE]; + char *p, *tok, *exe, buf[MAX_EXE+1], restriction[MAX_EXE]; int found = 0; exe = get_exe_name(buf, sizeof buf); DEBUG("Found HUGETLB_RESTRICT_EXE, this exe is \"%s\"\n", exe); - strncpy(restrict, env, sizeof restrict); - restrict[sizeof(restrict)-1] = 0; - for (p = restrict; (tok = strtok(p, ":")) != NULL; p = NULL) { + strncpy(restriction, env, sizeof restriction); + restriction[sizeof(restriction)-1] = 0; + for (p = restriction; (tok = strtok(p, ":")) != NULL; p = NULL) { DEBUG(" ...check exe match for \"%s\"\n", tok); if (strcmp(tok, exe) == 0) { found = 1;