Your message dated Sat, 14 Jan 2023 00:23:49 +0000
with message-id <[email protected]>
and subject line Bug#1028600: fixed in postfix 3.7.3-4
has caused the Debian Bug report #1028600,
regarding postfix: ftbfs on riscv64
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 [email protected]
immediately.)


-- 
1028600: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028600
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: postfix
Version: 3.7.3-3
Severity: important
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
User: [email protected]
Usertags: riscv64
X-Debbugs-Cc: [email protected]

Dear Maintainer,

The package has a ftbfs on riscv64 arch due to:

```
./sys_defs.h:1264:2: error: #error "unsupported platform"
 1264 | #error "unsupported platform"
      |  ^~~~~
In file included from alldig.c:40:
./sys_defs.h:1264:2: error: #error "unsupported platform"
 1264 | #error "unsupported platform"
      |  ^~~~~
./sys_defs.h:1333:2: error: #error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
 1333 | #error "define HAS_FCNTL_LOCK and/or HAS_FLOCK_LOCK"
      |  ^~~~~
In file included from argv.c:123:
./sys_defs.h:1264:2: error: #error "unsupported platform"
 1264 | #error "unsupported platform"
 ...
```

The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=postfix&arch=riscv64&ver=3.7.3-3&stamp=1673457275&raw=0

I checked the changes since [0]:
https://tracker.debian.org/news/1407943/accepted-postfix-373-3-source-into-unstable/
So I think we may forget to add support LINUX6 on src/util/sys_defs.h
file. So the patch is to this issue and I have tested it on my real
riscv64 hardware and amd64&s390x to promise not to break something.

BTW, The same issue also happens on the ia64, powerpc, ppc64 and sparc64 arch.
These FTBFS issues should be fixed by the patch also I think, but I did
not test it on these arches.

Please let me know if there is any issues.

BR,
Bo

-- 
Regards,
--
  Bo YU

diff -Nru postfix-3.7.3/debian/changelog postfix-3.7.3/debian/changelog
--- postfix-3.7.3/debian/changelog      2023-01-12 00:02:33.000000000 +0800
+++ postfix-3.7.3/debian/changelog      2023-01-13 20:58:02.000000000 +0800
@@ -1,3 +1,10 @@
+postfix (3.7.3-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix ftbfs on riscv64. (Closes: #-1) 
+
+ -- Bo YU <[email protected]>  Fri, 13 Jan 2023 20:58:02 +0800
+
 postfix (3.7.3-3) unstable; urgency=medium
 
   [Scott Kitterman]
diff -Nru postfix-3.7.3/debian/patches/support_linux6 
postfix-3.7.3/debian/patches/support_linux6
--- postfix-3.7.3/debian/patches/support_linux6 2023-01-11 23:24:43.000000000 
+0800
+++ postfix-3.7.3/debian/patches/support_linux6 2023-01-13 17:54:01.000000000 
+0800
@@ -1,8 +1,6 @@
-Index: postfix/makedefs
-===================================================================
---- postfix.orig/makedefs
-+++ postfix/makedefs
-@@ -634,7 +634,7 @@ EOF
+--- a/makedefs
++++ b/makedefs
+@@ -634,7 +634,7 @@
                : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
                : ${PLUGIN_LD="${CC-gcc} -shared"}
                ;;
@@ -11,3 +9,14 @@
                case "$CCARGS" in
                 *-DNO_DB*) ;;
                 *-DHAS_DB*) ;;
+--- a/src/util/sys_defs.h
++++ b/src/util/sys_defs.h
+@@ -751,7 +751,7 @@
+  /*
+   * LINUX.
+   */
+-#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5)
++#if defined(LINUX2) || defined(LINUX3) || defined(LINUX4) || defined(LINUX5) 
|| defined(LINUX6)
+ #define SUPPORTED
+ #define UINT32_TYPE   unsigned int
+ #define UINT16_TYPE   unsigned short

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: postfix
Source-Version: 3.7.3-4
Done: Scott Kitterman <[email protected]>

We believe that the bug you reported is fixed in the latest version of
postfix, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <[email protected]> (supplier of updated postfix package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 13 Jan 2023 18:42:01 -0500
Source: postfix
Architecture: source
Version: 3.7.3-4
Distribution: unstable
Urgency: medium
Maintainer: LaMont Jones <[email protected]>
Changed-By: Scott Kitterman <[email protected]>
Closes: 1028600
Changes:
 postfix (3.7.3-4) unstable; urgency=medium
 .
   * Also add LINUX6 to sys_defs.h (thanks to Bo YU for the fix).
     Closes: #1028600
Checksums-Sha1:
 e45a53f8e2a168596ad647fbf0d3900dd0ea172d 2985 postfix_3.7.3-4.dsc
 456cdddb4bafec5014a9b6eac095c48ceb3006d1 196496 postfix_3.7.3-4.debian.tar.xz
 fede8f73359cc30646df39b420eee2f90b53bab5 7566 postfix_3.7.3-4_source.buildinfo
Checksums-Sha256:
 da97ee46a25ca460c407504bda4bbc6734ea17b4b1faf9a6efb93a6602bb7856 2985 
postfix_3.7.3-4.dsc
 21ec2f168058475230d60e41692369a3869fdca646de5a30bd68f91aba5289b1 196496 
postfix_3.7.3-4.debian.tar.xz
 dd216ae96af0554605f8149b0d105830efd47aa2592cd33965d02d56ad6e4769 7566 
postfix_3.7.3-4_source.buildinfo
Files:
 e3cc34be3cef190d37f601af6c2f1354 2985 mail optional postfix_3.7.3-4.dsc
 5ea0165422c2d8b82ea21d97fcd4cc12 196496 mail optional 
postfix_3.7.3-4.debian.tar.xz
 674f5ad6219aa7c59127da95f54598c7 7566 mail optional 
postfix_3.7.3-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmPB7IsACgkQeNfe+5rV
mvHX0hAAy914yBlBlPYxSnmGa9ZpOT01frOdqRLY0nd8hKsqgT2l3ES8iYs38GEW
QBvtgfvFcEF/cmSMqaGEOUPK2DgBHIp92dXJgmPjtug+SJJvw2OeLswV+ZBJI0Cm
ENYEXdGCxehvTgtF6MeEni0shPfhNzSw4K2Xoiu8LVSp6vRhkVdrYlM77JwKnMve
rYJ9UF3jfa1UD/OrVMCVLGIiZCoQV5gT1oSpQRmsU4Weg7pXRoW6+Zah+ahyUAoH
0U34rtYGpnuyXCo33u/xPuT86VsTdCYzBsRKW1N57huxOoYJCkusxJwy6xxmewH7
M2LNCxr5oxF5yktYRaCol9dOAKxNTvhsKO2gqzh6Wsi9g8PsaSJNcrhyXsbQgz0u
v9IjsVd/u2Nu4ooE8ttBbJeuZgQzR15jqigYTCldkuOAnL0N2HRu6kWkZLGKlkiw
bkyRLLQLnoYWRDA9G/YoaavQIRayfZdIRoodXQL67Cv+U5itMD5kEIYUF/wpdazL
ymIJzupnBF5+plbBYpXTU9obgyioVWzq7w61gf2axfRE7+ZqwC/uRJXLOPO/A/gy
2vM0MihnUrtxupjR4g1KR35Tt6mda5knZyUxLS5Z0o25tx93zgy/oBMSfSB7s8JD
KGqp21+KdUqwO2+w8c+WiMwVO02kQearEQ9OhKHyUIoaCK/V5Nk=
=wYXQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to