Your message dated Fri, 26 Jul 2024 18:41:31 +0000
with message-id <e1sxpsh-005bn8...@fasolo.debian.org>
and subject line Bug#1072230: Removed package(s) from unstable
has caused the Debian Bug report #876186,
regarding freebsd-glue: fix ctfutils FTBFS on ppc64el
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
876186: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876186
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:freebsd-glue
Version: 0.2.22
Tags: patch pending
User: debian-powe...@lists.debian.org
Usertags: ppc64el 

--

Dear maintainer,

I see that the package ctfutils fails to build on ppc64/ppc64el :
https://buildd.debian.org/status/logs.php?pkg=ctfutils&ver=10.3%7Esvn297264-2&suite=sid
On those architectures, the macro in 
./ctfutils-10.3~svn297264/sys/cddl/compat/opensolaris/sys/elf.h
#define __sElfN(x) typedef 
__CONCAT(__CONCAT(__CONCAT(Elf,__ELF_WORD_SIZE),_),x) x

does not have __ELF_WORD_SIZE defined.
This normally comes from freebsd-glue in /usr/include/freebsd/machine/elf.h 
where
we have :
#ifndef ELF_ARCH
#include <machine/__get_elf_arch.h>    /* ELF_ARCH */
#endif

and in machine/__get_elf_arch.h :
#define ELF_ARCH 21
#define __ELF_WORD_SIZE 64

On ppc64[el]; ELF_ARCH is already defined by linux-libc-dev in
/usr/include/powerpc64le-linux-gnu/asm/elf.h but I couldn't find any
reference to __ELF_WORD_SIZE. As ELF_ARCH is already define we just
skip inclusion of machine/__get_elf_arch.h and __ELF_WORD_SIZE.

Not sure if that is the good approach to solve that issue, but in the
attached patched, I ifndef-ed ELF_ARCH within get_elf_arch.c to always
include machine/__get_elf_arch.h but skip ELF_ARCH definition (will come
from signal.h that at some point includes asm/elf.h) if not needed while
still defining __ELF_WORD_SIZE.
It looks like letting ctfutils compile properly on ppc64[el] ; other
architecture shouldn't be impacted.

Regards.
F.
diff -Nru freebsd-glue-0.2.22/debian/changelog 
freebsd-glue-0.2.22+nmu1/debian/changelog
--- freebsd-glue-0.2.22/debian/changelog        2016-03-05 15:44:54.000000000 
+0000
+++ freebsd-glue-0.2.22+nmu1/debian/changelog   2017-09-19 07:32:25.000000000 
+0000
@@ -1,3 +1,12 @@
+freebsd-glue (0.2.22+nmu1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * fix ctfutils package FTBFS on ppc64[el] : selectively export
+    __ELF_WORD_SIZE and ELF_ARCH : on those archs ELF_ARCH is already defined
+    in asm/elf.h but not __ELF_WORD_SIZE
+
+ -- Frédéric Bonnard <fre...@linux.vnet.ibm.com>  Tue, 19 Sep 2017 07:32:25 
+0000
+
 freebsd-glue (0.2.22) unstable; urgency=medium
 
   * Actually use the proper build architecture compiler
diff -Nru freebsd-glue-0.2.22/include/machine/elf.h 
freebsd-glue-0.2.22+nmu1/include/machine/elf.h
--- freebsd-glue-0.2.22/include/machine/elf.h   2014-08-25 19:40:16.000000000 
+0000
+++ freebsd-glue-0.2.22+nmu1/include/machine/elf.h      2017-09-18 
15:52:44.000000000 +0000
@@ -8,9 +8,7 @@
 #include <sys/elf32.h>
 #include <sys/elf64.h>
 
-#ifndef ELF_ARCH
-#include <machine/__get_elf_arch.h>    /* ELF_ARCH */
-#endif
+#include <machine/__get_elf_arch.h>    /* possible ELF_ARCH and 
__ELF_WORD_SIZE */
 
 #ifndef ELF_TARG_DATA
 #include <endian.h>
diff -Nru freebsd-glue-0.2.22/src/get_elf_arch.c 
freebsd-glue-0.2.22+nmu1/src/get_elf_arch.c
--- freebsd-glue-0.2.22/src/get_elf_arch.c      2016-03-02 14:19:59.000000000 
+0000
+++ freebsd-glue-0.2.22+nmu1/src/get_elf_arch.c 2017-09-19 07:32:25.000000000 
+0000
@@ -2,6 +2,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <elf.h>
+#include <signal.h>
 
 int
 main (int argc, char **argv)
@@ -16,7 +17,9 @@
   if (read (fd, &ehdr, sizeof (ehdr)) != sizeof (ehdr))
     perror ("read");
 
+#ifndef ELF_ARCH
   printf ("#define ELF_ARCH %u\n", ehdr.e_machine);
+#endif
   printf ("#define __ELF_WORD_SIZE %u\n", ehdr.e_ident[EI_CLASS] == ELFCLASS64 
? 64 : 32);
 
   close (fd);

Attachment: pgp4KI8Jbu4Al.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 0.2.22+nmu1+rm

Dear submitter,

as the package freebsd-glue has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1072230

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to