amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
501 stars 38 forks source link

[Package Request] - libapreq2 and perl-libapreq2 #619

Open cjhamil opened 5 months ago

cjhamil commented 5 months ago

What package is missing from Amazon Linux 2023? Please describe and include package name. libapreq2 and perl-libapreq2

Is this an update to existing package or new package request? new

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. yes, available via EPEL in Amazon Linux 2

Any additional information you'd like to include. (use-cases, etc)

daniejstriata commented 5 months ago

It was easy enough to build the libapreq2 package using COPR. It required perl-ExtUtils-XSBuilder to build. Here is my repo with the packages if you don't want to build your own: https://copr.fedorainfracloud.org/coprs/faramirza/al2023/packages/

Dependencies resolved.
===================================================================================================================================================================================
 Package                             Architecture             Version                                      Repository                                                         Size
===================================================================================================================================================================================
Installing:
 libapreq2                           x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                    35 k
 perl-libapreq2                      x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                   116 k
Installing dependencies:
 httpd-core                          x86_64                   2.4.58-1.amzn2023                            amazonlinux                                                       1.4 M
 httpd-filesystem                    noarch                   2.4.58-1.amzn2023                            amazonlinux                                                        14 k
 httpd-tools                         x86_64                   2.4.58-1.amzn2023                            amazonlinux                                                        81 k
 libapreq2-libs                      x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                    37 k
 mailcap                             noarch                   2.1.49-3.amzn2023.0.3                        amazonlinux                                                        33 k
 mod_perl                            x86_64                   2.0.11-8.amzn2023.0.3                        amazonlinux                                                       2.9 M
 perl-BSD-Resource                   x86_64                   1.291.100-15.amzn2023.0.2                    amazonlinux                                                        40 k
 perl-Linux-Pid                      x86_64                   0.04-44.amzn2023.0.2                         amazonlinux                                                        17 k
stewartsmith commented 5 months ago

According to https://src.fedoraproject.org/rpms/libapreq2

libapreq is a shared library with associated modules for manipulating client request data via the Apache API. Functionality includes parsing of application/x-www-form-urlencoded and multipart/form-data content, as well as HTTP cookies.

TheJuki commented 5 months ago

It was easy enough to build the libapreq2 package using COPR. It required perl-ExtUtils-XSBuilder to build. Here is my repo with the packages if you don't want to build your own: https://copr.fedorainfracloud.org/coprs/faramirza/al2023/packages/

Dependencies resolved.
===================================================================================================================================================================================
 Package                             Architecture             Version                                      Repository                                                         Size
===================================================================================================================================================================================
Installing:
 libapreq2                           x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                    35 k
 perl-libapreq2                      x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                   116 k
Installing dependencies:
 httpd-core                          x86_64                   2.4.58-1.amzn2023                            amazonlinux                                                       1.4 M
 httpd-filesystem                    noarch                   2.4.58-1.amzn2023                            amazonlinux                                                        14 k
 httpd-tools                         x86_64                   2.4.58-1.amzn2023                            amazonlinux                                                        81 k
 libapreq2-libs                      x86_64                   2.17-5.amzn2023                              copr:copr.fedorainfracloud.org:faramirza:al2023                    37 k
 mailcap                             noarch                   2.1.49-3.amzn2023.0.3                        amazonlinux                                                        33 k
 mod_perl                            x86_64                   2.0.11-8.amzn2023.0.3                        amazonlinux                                                       2.9 M
 perl-BSD-Resource                   x86_64                   1.291.100-15.amzn2023.0.2                    amazonlinux                                                        40 k
 perl-Linux-Pid                      x86_64                   0.04-44.amzn2023.0.2                         amazonlinux                                                        17 k

@daniejstriata Can you add these installation instructions? Thanks for the repo! Without the repository at the end you get this error: "Repository 'epel-2023-x86_64' does not exist in project 'faramirza/al2023'."

For x86_64:

dnf copr enable faramirza/al2023 amazonlinux-2023-x86_64 dnf install libapreq2 perl-libapreq2

For aarch64:

dnf copr enable faramirza/al2023 amazonlinux-2023-aarch64 dnf install libapreq2 perl-libapreq2

Full output:

[root@ec2 bin]# dnf copr enable faramirza/al2023 amazonlinux-2023-x86_64
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/faramirza/al2023? [y/N]: y
Repository successfully enabled.

Maintainer of the enabled Copr repository decided to make
it dependent on other repositories. Such repositories are
usually necessary for successful installation of RPMs from
the main Copr repository (they provide runtime dependencies).

Be aware that the note about quality and bug-reporting
above applies here too, Fedora Project doesn't control the
content. Please review the list:

 1. [coprdep:https_download_copr_fedorainfracloud_org_results_faramirza_al2023_amazonlinux_2023_basearch]
    baseurl=https://download.copr.fedorainfracloud.org/results/faramirza/al2023/amazonlinux-2023-$basearch/

These repositories have been enabled automatically.

Do you want to keep them enabled? [y/N]: y

[root@ec2 bin]# dnf install perl-libapreq2
Amazon Linux 2023 repository                                                                                                             24 kB/s | 3.6 kB     00:00
Amazon Linux 2023 Kernel Livepatch repository                                                                                            20 kB/s | 2.9 kB     00:00
Copr repo for al2023 owned by faramirza                                                                                                 1.3 MB/s | 188 kB     00:00
Copr copr.fedorainfracloud.org/faramirza/al2023 external runtime dependency #1 - https_download_copr_fedorainfracloud_org_results_faram 522 kB/s | 188 kB     00:00
Dependencies resolved.
========================================================================================================================================================================
 Package                                 Architecture       Version                                   Repository                                                   Size
========================================================================================================================================================================
Installing:
 perl-libapreq2                          x86_64             2.17-6.amzn2023                           copr:copr.fedorainfracloud.org:faramirza:al2023             116 k
Installing dependencies:
 annobin-docs                            noarch             10.93-1.amzn2023.0.1                      amazonlinux                                                  92 k
 annobin-plugin-gcc                      x86_64             10.93-1.amzn2023.0.1                      amazonlinux                                                 887 k
 cpp                                     x86_64             11.4.1-2.amzn2023.0.2                     amazonlinux                                                  10 M
 glibc-devel                             x86_64             2.34-52.amzn2023.0.7                      amazonlinux                                                  45 k
 glibc-headers-x86                       noarch             2.34-52.amzn2023.0.7                      amazonlinux                                                 446 k
 kernel-headers                          x86_64             6.1.72-96.166.amzn2023                    amazonlinux                                                 1.4 M
 libapreq2-libs                          x86_64             2.17-6.amzn2023                           copr:copr.fedorainfracloud.org:faramirza:al2023              37 k
 libmpc                                  x86_64             1.2.1-2.amzn2023.0.2                      amazonlinux                                                  62 k
 libxcrypt-devel                         x86_64             4.4.33-7.amzn2023                         amazonlinux                                                  32 k
 mod_perl                                x86_64             2.0.11-8.amzn2023.0.3                     amazonlinux                                                 2.9 M
 perl-AutoLoader                         noarch             5.74-477.amzn2023.0.6                     amazonlinux                                                  22 k
 perl-AutoSplit                          noarch             5.74-477.amzn2023.0.6                     amazonlinux                                                  22 k
 perl-B                                  x86_64             1.80-477.amzn2023.0.6                     amazonlinux                                                 179 k
 perl-BSD-Resource                       x86_64             1.291.100-15.amzn2023.0.2                 amazonlinux                                                  40 k
 perl-Benchmark                          noarch             1.23-477.amzn2023.0.6                     amazonlinux                                                  27 k
 perl-CPAN-Meta-Requirements             noarch             2.140-459.amzn2023.0.2                    amazonlinux                                                  32 k
 perl-CPAN-Meta-YAML                     noarch             0.018-459.amzn2023.0.2                    amazonlinux                                                  26 k
 perl-Data-Dumper                        x86_64             2.174-460.amzn2023.0.2                    amazonlinux                                                  55 k
 perl-Devel-PPPort                       x86_64             3.62-2.amzn2023.0.2                       amazonlinux                                                 211 k
 perl-ExtUtils-Command                   noarch             2:7.62-1.amzn2023.0.2                     amazonlinux                                                  14 k
 perl-ExtUtils-Constant                  noarch             0.25-477.amzn2023.0.6                     amazonlinux                                                  47 k
 perl-ExtUtils-Install                   noarch             2.20-2.amzn2023.0.2                       amazonlinux                                                  45 k
 perl-ExtUtils-MakeMaker                 noarch             2:7.62-1.amzn2023.0.2                     amazonlinux                                                 288 k
 perl-ExtUtils-Manifest                  noarch             1:1.73-2.amzn2023.0.2                     amazonlinux                                                  35 k
 perl-ExtUtils-ParseXS                   noarch             1:3.40-458.amzn2023.0.2                   amazonlinux                                                 182 k
 perl-File-Compare                       noarch             1.100.600-477.amzn2023.0.6                amazonlinux                                                  14 k
 perl-File-Copy                          noarch             2.34-477.amzn2023.0.6                     amazonlinux                                                  20 k
 perl-File-Find                          noarch             1.37-477.amzn2023.0.6                     amazonlinux                                                  26 k
 perl-FindBin                            noarch             1.51-477.amzn2023.0.6                     amazonlinux                                                  14 k
 perl-I18N-Langinfo                      x86_64             0.19-477.amzn2023.0.6                     amazonlinux                                                  23 k
 perl-JSON-PP                            noarch             1:4.06-2.amzn2023.0.2                     amazonlinux                                                  66 k
 perl-Linux-Pid                          x86_64             0.04-44.amzn2023.0.2                      amazonlinux                                                  17 k
 perl-Math-BigInt                        noarch             1:1.9998.18-458.amzn2023.0.2              amazonlinux                                                 189 k
 perl-Math-Complex                       noarch             1.59-477.amzn2023.0.6                     amazonlinux                                                  47 k
 perl-Test-Harness                       noarch             1:3.42-459.amzn2023.0.2                   amazonlinux                                                 267 k
 perl-base                               noarch             2.27-477.amzn2023.0.6                     amazonlinux                                                  17 k
 perl-lib                                x86_64             0.65-477.amzn2023.0.6                     amazonlinux                                                  15 k
 perl-locale                             noarch             1.09-477.amzn2023.0.6                     amazonlinux                                                  14 k
 perl-version                            x86_64             7:0.99.29-1.amzn2023.0.2                  amazonlinux                                                  63 k
 python3-pyparsing                       noarch             2.4.7-6.amzn2023.0.2                      amazonlinux                                                 152 k
 systemtap-sdt-devel                     x86_64             4.8-3.amzn2023.0.5                        amazonlinux                                                  74 k
Installing weak dependencies:
 gcc                                     x86_64             11.4.1-2.amzn2023.0.2                     amazonlinux                                                  32 M
 perl-CPAN-Meta                          noarch             2.150010-458.amzn2023.0.2                 amazonlinux                                                 177 k
 perl-Encode-Locale                      noarch             1.05-19.amzn2023.0.2                      amazonlinux                                                  19 k
 perl-Time-HiRes                         x86_64             4:1.9764-460.amzn2023.0.2                 amazonlinux                                                  58 k
 perl-devel                              x86_64             4:5.32.1-477.amzn2023.0.6                 amazonlinux                                                 660 k
 perl-doc                                noarch             5.32.1-477.amzn2023.0.6                   amazonlinux                                                 4.5 M

Transaction Summary
========================================================================================================================================================================
Install  48 Packages

Total download size: 56 M
Installed size: 152 M
daniejstriata commented 5 months ago

@TheJuki I don't work for AWS. Your instructions do work. @stewartsmith Can an AWS page be created on how to integrate COPR builds into AL2023 in a safe manner?