Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files missing from Github repo resulting in compilation failures #274

Closed
jahway603 opened this issue Jul 8, 2023 · 5 comments
Closed

Files missing from Github repo resulting in compilation failures #274

jahway603 opened this issue Jul 8, 2023 · 5 comments
Assignees
Labels
C: build Related to the build system question Issue opened to ask a question

Comments

@jahway603
Copy link

I'm reporting this issue as I am not able to build/compile INN using either the Github repo or the Github source releases. Both the Github repo & Gihub source releases are missing certain files which do exist in the source code releases from the ISC website, such as configure and include/config.h.in -- the ISC source code release is building/compiling and has these files which are missing from the Github.

Also, the Arch Linux package does build/compile INN successfully, but it is using the source code from ISC, as seen on Line 61

Can these missing files, which are required to build/compile INN, be included in this Github repo?

@Julien-Elie
Copy link
Contributor

Julien-Elie commented Jul 8, 2023

When building directly from the GitHub sources, you have to run the following commands first (see BOOTSRAP):

    ./autogen
    ./configure
    make bootstrap

Alternatively, if you do not want to bootstrap the sources, you can use the daily generated snapshots which contain the latest source with the bootstrapped files like configure.

@Julien-Elie Julien-Elie self-assigned this Jul 8, 2023
@Julien-Elie Julien-Elie added invalid This doesn't seem right C: build Related to the build system labels Jul 8, 2023
@jahway603
Copy link
Author

Thank you for this @Julien-Elie. I was able to successfully build inn from this github repo, but I used make instead of make bootstrap.

@Julien-Elie
Copy link
Contributor

make bootstrap will essentially generate the documentation.
I think the missing step was for you ./autogen. Once run, you can ./configure and just run the usual make command. It will generate the documentation at the same time it builds INN.

@jahway603
Copy link
Author

jahway603 commented Jul 10, 2023

Much appreciated! With your help, I was able to create the Arch Linux AUR inn-git package for people who want to run the bleeding edge INN.

@Julien-Elie
Copy link
Contributor

Good to know! Thanks for having packaged the latest version of INN!

If I may suggest:

[innd.service]
Description=Inetnet News Daemon

There's a typo in the name of INN. Also, if you wish to add more parameters, you can have a look at the init systemd sample.

Why not just use news instead of IDs? Aren't they define in the system? (Why not create them instead, if not present?)
It would notably save you the change in config.h:

	--with-news-user=9 \
	--with-news-group=13
  # See https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database
  test -f include/config.h
  cat >>include/config.h <<EOF
#undef RUNASUSER
#define RUNASUSER "news"
#undef RUNASGROUP
#define RUNASGROUP "news"
EOF

It seems that there is no default crontab shipped with the package. Couldn't one be added at least with news.daily, rnews -U, sendinpaths (along with the appropriate inpaths! flush) and a regular flushing of cached IP addresses (reloading incoming.conf)?

There also are useful dependencies to install which do not seem to be present (like gnupg, libcanlock which is in AUR, zlib).

@Julien-Elie Julien-Elie added question Issue opened to ask a question and removed invalid This doesn't seem right labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: build Related to the build system question Issue opened to ask a question
Development

No branches or pull requests

2 participants