Package Details: mpack 1.6-5

Git Clone URL: https://aur.archlinux.org/mpack.git (read-only, click to copy)
Package Base: mpack
Description: Utilities for encoding and decoding binaries files in MIME format mail messages
Upstream URL: http://ftp.andrew.cmu.edu/pub/mpack/
Licenses: GPL
Submitter: the-k
Maintainer: None
Last Packager: the-k
Votes: 3
Popularity: 0.002624
First Submitted: 2020-08-05 14:36 (UTC)
Last Updated: 2020-08-05 14:36 (UTC)

Dependencies (0)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

stasadev commented on 2025-01-24 13:10 (UTC)

If anyone wants to adopt this package, here is a working PKGBUILD with more patches from Debian:

pkgname=mpack
pkgver=1.6
pkgrel=6
pkgrel_debian=18
pkgdesc='Utilities for encoding and decoding binaries files in MIME format mail messages'
arch=('i686' 'x86_64')
url='http://ftp.andrew.cmu.edu/pub/mpack/'
license=('GPL')
source=("https://salsa.debian.org/debian/mpack/-/archive/debian/${pkgver}-${pkgrel_debian}/${pkgname}-debian-${pkgver}-${pkgrel_debian}.tar.gz")
sha256sums=('b3b8adc8cb4e7523f8d0c5a92d10b5b3ad7e1997665297519c4b34a4c7b9469a')

prepare(){
    cd ${srcdir}/${pkgname}-debian-${pkgver}-${pkgrel_debian}

    for patchfile in debian/patches/*.patch; do
        if [ "${patchfile}" != "debian/patches/06_fix-makefile.patch" ]; then
            patch -p1 -N < "${patchfile}"
        fi
    done
}

build() {
    cd ${srcdir}/${pkgname}-debian-${pkgver}-${pkgrel_debian}

    CFLAGS='-fpermissive' ./configure --prefix=/usr --mandir=/usr/share/man
    make
}

package() {
    cd ${srcdir}/${pkgname}-debian-${pkgver}-${pkgrel_debian}

    make DESTDIR=${pkgdir} install
}

Ticonderogafr commented on 2025-01-23 12:39 (UTC) (edited on 2025-01-23 12:40 (UTC) by Ticonderogafr)

I found a fix for the problem of @akarshsimha and @akaitea. You have to add the following line to the top of the configure file in src dir

CFLAGS='-fpermissive'

akarshsimha commented on 2024-11-24 02:29 (UTC)

I had the same problem as @akaitea. Running makepkg with CFLAGS='-fpermissive' on the command line did nothing. Based on the configure step that fails, i.e.

checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
==> ERROR: A failure occurred in build().
    Aborting...

I tried executing gcc with the same arguments (I've shown it with -fpermissive added, which seems to have no positive effect on this problem):

gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wl -O1 --sort-common --as-needed -z relro -z now -fpermissive
gcc: error: unrecognized command-line option ‘-Wl’; did you mean ‘-W’?
gcc: error: unrecognized command-line option ‘--sort-common’; did you mean ‘--no-common’?
gcc: error: unrecognized command-line option ‘--as-needed’; did you mean ‘-mno-needed’?
gcc: fatal error: no input files
compilation terminated.

So it looks like --sort-common , -Wl and --as-needed arguments are not understood by the compiler. Now if I instead run clang:

clang -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wl -O1 --sort-common --as-needed -z relro -z now -fpermissive
clang: error: unknown argument: '--sort-common'
clang: error: unknown argument: '--as-needed'

DrTebi commented on 2024-09-08 16:14 (UTC)

Please ignore my last post, it was an issue with my fstab mounting ("noexec"). Sorry for the confusion.

DrTebi commented on 2024-09-07 23:43 (UTC)

There are some awkward permission errors when trying to make this package:

$ makepkg
==> Making package: mpack 1.6-5 (Sun 08 Sep 2024 01:39:39 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading mpack-1.6.tar.gz...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100  175k  100  175k    0     0   583k      0 --:--:-- --:--:-- --:--:--  583k
-> Found gcc4-fixes.patch
==> Validating source files with sha256sums...
    mpack-1.6.tar.gz ... Passed
    gcc4-fixes.patch ... Passed
==> Extracting sources...
-> Extracting mpack-1.6.tar.gz with bsdtar
==> Starting prepare()...
patching file unixos.c
patching file unixpk.c
File unixunpk.c is read-only; trying to patch anyway
patching file unixunpk.c
File xmalloc.c is read-only; trying to patch anyway
patching file xmalloc.c
==> Starting build()...
/home/drtebi/Downloads/mpack/PKGBUILD: line 29: ./configure: Permission denied
==> ERROR: A failure occurred in build().
    Aborting...

Would be great if this could be fixed.

hjmjaa-aur commented on 2024-07-25 16:07 (UTC)

@akaitea Add -fpermissive to your CFLAGS. This is caused by breaking change in gcc 14 from 13. See https://forum.nim-lang.org/t/11587 where this was a problem.

akaitea commented on 2024-05-15 08:39 (UTC)

can't get it to makepkg:

checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
==> ERROR: A failure occurred in build().

on:

Linux 6.8.9-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 21:35:54 +0000 x86_64 GNU/Linux

gcc version 14.1.1 20240507 (GCC)

looked around online for possible solutions to the error message but no luck

the-k commented on 2021-11-22 09:46 (UTC)

The site operator has unblocked curl on my request, so no further action is required.

the-k commented on 2021-11-21 11:11 (UTC)

Actually, it stopped working for me too when using curl. Wget still works though, which is weird. Have you tried writing to info@fossies.org? Sounds like a bug to me. DLAGENTS could be added to the PKGBUILD, but I would rather have this resolved with the site operator if possible. In the meantime, you can change DLAGENTS in makepkg.conf according to https://wiki.archlinux.org/title/Nonfree_applications_package_guidelines#Custom_DLAGENTS.

TrevCan commented on 2021-11-19 23:57 (UTC)

Hello @the-k @zkrx. Maybe it's regional. I'm in Mexico and get a 412 http error. From the returned html:

Sorry, requests from your client to "Fossies" are denied (caused by unaccepted request-header fields)!

Copying the link and pasting it on a web browser works every time. I tried adding some User Agent headers to a curl command like this:

curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0" "https://fossies.org/linux/misc/old/mpack-1.6.tar.gz"

and that does yield a result, probing the outputted file does indeed says that it's a gzipped file. Is there a way to add user-agent headers to makepkg sources ?