amazonlinux / amazon-linux-2023

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

[Package Request] - xmlstarlet #550

Open calbutl opened 10 months ago

calbutl commented 10 months ago

What package is missing from Amazon Linux 2023? Please describe and include package name. xmlstarlet This is a package for editing xml content, such as SSM Agent Log configuration files (/etc/amazon/ssm/seelog.xml.template)

Is this an update to existing package or new package request? This is a new package.

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. This package is available via EPEL repo, however I cannot download EPEL repo on amazon linux 2023

Any additional information you'd like to include. (use-cases, etc) The reason I want the package is to edit an SSM Agent Log configuration file (/etc/amazon/ssm/seelog.xml.template) to make ssm command stdout/stderr log to cloudwatch.

calbutl commented 10 months ago

For anyone else having this issue, I'm installing xmlstarlet like this for the time being:

install_xmlstarlet() {
    # Install required dependencies
    sudo yum -y install gcc libxml2 libxml2-devel libxslt-devel

    # Download xmlstarlet source code
    wget https://sourceforge.net/projects/xmlstar/files/xmlstarlet/1.6.1/xmlstarlet-1.6.1.tar.gz

    # Extract and navigate to the directory
    tar -xzvf xmlstarlet-1.6.1.tar.gz
    cd xmlstarlet-1.6.1

    # Compile and install
    ./configure
    export C_INCLUDE_PATH=/usr/include/libxml2
    make
    sudo make install
}
stewartsmith commented 10 months ago

It looks like upstream hasn't been touched in over 9 years (august 2014), and the request for help maintaining it had been there for 4 years prior (July 2010). So it is a package that makes me a little nervous about inclusion in Amazon Linux.

If looking for a public build service that can build from a fedora branch, you can always build it on https://copr.fedorainfracloud.org/

calbutl commented 10 months ago

Hi Stewart, You bring up good points. I can continue doing the install as I have been. It is a shame that there isn't a maintained packaged for editing xml docs in shell out there. That said, I don't have the bandwidth or expertise at the moment to contribute to that work myself so I've got no right to complain :).

stewartsmith commented 7 months ago

I'm going to mark this as a WONTFIX and also add a documentation tag, as for these kind of packages it would be good to have explicit documentation as to the reason why we don't include them.