Package Details: paps 0.8.0-4

Git Clone URL: https://aur.archlinux.org/paps.git (read-only, click to copy)
Package Base: paps
Description: Converts Unicode text to postscript and pdf using pango
Upstream URL: https://github.com/dov/paps
Licenses: LGPL
Submitter: arojas
Maintainer: vesath
Last Packager: vesath
Votes: 5
Popularity: 0.000101
First Submitted: 2021-05-08 09:19 (UTC)
Last Updated: 2025-10-08 02:40 (UTC)

Latest Comments

1 2 Next › Last »

Auerhuhn commented on 2025-10-10 10:39 (UTC)

@emk2203 I can’t reproduce this, not in a clean chroot nor on my workstation directly.

The warning messages in lines 1 through 7 of your output are consistent with the theory that the compiler may fail to honor the -fpermissive option. (That’s why it says „Fehler: ungültige Umwandlung“ instead of „Warnung: ungültige Umwandlung“, breaking the build.)

A simple fix for you might be to build in a clean chroot, then it should work just fine. If you don’t want to do that, then post the outputs of g++ -v, /usr/bin/g++ -v, and which g++ here.

emk2203 commented on 2025-10-10 07:04 (UTC) (edited on 2025-10-10 07:05 (UTC) by emk2203)

Compile aborts with the latest version (pap 0.8.0-3 successfully installed on system earlier):


cc1plus: Warnung: Kommandozeilenoption »-Wnested-externs« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wmissing-prototypes« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wstrict-prototypes« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wdeclaration-after-statement« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wimplicit-function-declaration« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wold-style-definition« ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption »-Wjump-misses-init« ist gültig für C/ObjC, aber nicht für C++
In Datei, eingebunden von /usr/include/glib-2.0/glib/gstring.h:35,
                 von /usr/include/glib-2.0/glib/giochannel.h:36,
                 von /usr/include/glib-2.0/glib.h:56,
                 von /usr/include/glib-2.0/glib/gprintf.h:23,
                 von /usr/include/glib-2.0/glib/gstdio.h:24,
                 von paps.cc:23:
paps.cc: In function »GList* split_text_into_paragraphs(PangoContext*, PageLayout*, int, const char*)«:
/usr/include/glib-2.0/glib/gunicode.h:825:34: Fehler: ungültige Umwandlung von »const char*« in »char*« [-Werror=permissive]
  825 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
      |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  const char*
paps.cc:1118:18: Anmerkung: bei Substitution des Makros »g_utf8_next_char«
 1118 |           next = g_utf8_next_char (p);
      |                  ^~~~~~~~~~~~~~~~
paps.cc: In function »bool copy_pango_parse_enum(GType, const char*, int*, bool, char**)«:
/usr/include/glib-2.0/glib/gstring.h:77:31: Fehler: Der Rückgabewert von »gchar* g_string_free_and_steal(GString*)«, der mit dem Attribut »warn_unused_result« deklariert wurde, wird ignoriert [-Werror=unused-result]
   77 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
paps.cc:388:11: Anmerkung: bei Substitution des Makros »g_string_free«
  388 |           g_string_free (s, possible_values ? false : true);
      |           ^~~~~~~~~~~~~
paps.cc: In function »char* read_file(FILE*, gchar*)«:
/usr/include/glib-2.0/glib/gstring.h:77:31: Fehler: Der Rückgabewert von »gchar* g_string_free_and_steal(GString*)«, der mit dem Attribut »warn_unused_result« deklariert wurde, wird ignoriert [-Werror=unused-result]
   77 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
paps.cc:1047:3: Anmerkung: bei Substitution des Makros »g_string_free«
 1047 |   g_string_free (inbuf, false);
      |   ^~~~~~~~~~~~~
paps.cc: In function »std::string get_date()«:
/usr/include/glib-2.0/glib/gstring.h:77:31: Fehler: Der Rückgabewert von »gchar* g_string_free_and_steal(GString*)«, der mit dem Attribut »warn_unused_result« deklariert wurde, wird ignoriert [-Werror=unused-result]
   77 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
paps.cc:1674:7: Anmerkung: bei Substitution des Makros »g_string_free«
 1674 |       g_string_free(inbuf, false);
      |       ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:77:31: Fehler: Der Rückgabewert von »gchar* g_string_free_and_steal(GString*)«, der mit dem Attribut »warn_unused_result« deklariert wurde, wird ignoriert [-Werror=unused-result]
   77 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
paps.cc:1683:5: Anmerkung: bei Substitution des Makros »g_string_free«
 1683 |     g_string_free(inbuf, false);
      |     ^~~~~~~~~~~~~
cc1plus: Alle Warnungen werden als Fehler behandelt
make[2]: *** [Makefile:457: paps-paps.o] Fehler 1
make[2]: Verzeichnis „/home/emk2203/.cache/paru/clone/paps/src/paps-0.8.0/src“ wird verlassen
make[1]: *** [Makefile:414: all-recursive] Fehler 1
make[1]: Verzeichnis „/home/emk2203/.cache/paru/clone/paps/src/paps-0.8.0“ wird verlassen
make: *** [Makefile:355: all] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
Fehler: ‚paps-0.8.0-4‘ konnte nicht erstellt werden: 

vesath commented on 2025-10-08 02:40 (UTC)

Thanks!

Auerhuhn commented on 2025-10-07 22:24 (UTC)

The latest build of fmt causes an error with fmt::localtime while building this package:

../src/format_from_dict.cc:57:58: error: ‘localtime’ is not a member of ‘fmt’

Applying the patch from dov/paps#77 fixes the issue:

source=(
    "https://github.com/dov/paps/archive/v${pkgver}.tar.gz"
    'github-pr-77.patch'
)

and:

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    # https://github.com/dov/paps/pull/77
    patch -p1 < ../github-pr-77.patch
}

sergeG239 commented on 2024-12-26 20:48 (UTC)

@vesath, thanks, successfully build it with -Wno-error

vesath commented on 2024-12-26 06:10 (UTC)

It still builds just fine for me. The error you got should have been a warning. You probably have overzealous flags in your makepkg.conf which implied -Werror=permissive. Simply remove them.

sergeG239 commented on 2024-12-25 11:04 (UTC)

Does not build anymore, https://pastebin.com/2xwfq7DA

bittin commented on 2023-03-01 08:29 (UTC)

ah forgot to change that glad that you did @vesath

vesath commented on 2023-03-01 08:25 (UTC)

Thanks for the notification. Note that there is a new dependency. Cheers.