-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build from source files fails on Ubuntu due to missing ChangeLog #1162
Comments
Please use the expressly packaged source and not the github generated one. https://github.com/trapexit/mergerfs/releases/download/2.35.0/mergerfs-2.35.0.tar.gz |
Downloaded the tar and retried. Now generating a debian-buster package, although we are on Ubuntu 22.10 |
It isnt. It's just the changelog was built on that os. Is there some proper way to generate a changelog that isn't just sed? |
Can you please explain to me what your trying to accomplish? Do you just want to build a package without git? You want a specific branded deb for download? |
I am trying to build it from source on a Ubuntu 22.10 machine with Ansible. Just to verify that the system is the correct one, I ran: So the CODENAME and DISTRIB_ID are correct, the make file is not picking it up. |
It's not the makefile. Deb packages, afaik, need a fixed changelog file and the details about the OS is for some reason in the changelog. The only place that makes sense to pull a changelog is from git. Besides using sed to change those values I honestly don't know what I'm supposed to do. The documentation on this stuff is not great. |
So I see a few options:
1. Change the changeling before building it for ubuntu. So if I changed
debian/changelog first line to read:
mergerfs (2.35.0~ubuntu-kenetic) kenetic; urgency=medium
I got a mergerfs_2.35.0~ubuntu-kenetic_amd64.deb
I guess you could sed the first line with lsb_release -c -s and lab_release
-d -s
2. The other option, according to the docs, is to use debchange which
does this for you, but it requires to install devscripts which is heavy.
I will submit a PR
…On Apr 3, 2023 at 12:21:40 AM, trapexit ***@***.***> wrote:
It's not the makefile. Deb packages, afaik, need a fixed changelog file
and the details about the OS is for some reason in the changelog. The only
place that makes sense to pull a changelog is from git. Besides using sed
to change those values I honestly don't know what I'm supposed to do. The
documentation on this stuff is not great.
—
Reply to this email directly, view it on GitHub
<#1162 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5BWKILRWYDFYEOPJATWS3W7HUWJANCNFSM6AAAAAAWOQTVSU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
1 was what I was thinking. It's the simplest. But will need to work with the build process I have for creating the tarball. Need to put some token there to replace. I can do this. Don't worry about it. |
Describe the bug
Build from source files fails on Ubuntu due to missing ChangeLog
Steps to reproduce:
On Ubuntu 22.10 new system
cd /tmp
wget https://github.com/trapexit/mergerfs/archive/refs/tags/2.35.0.tar.gz
tar xvf mergerfs-2.35.0.tar.gz
cd mergerfs-2.35.0
./tools/install-build-pkgs
make deb
make distclean
make[1]: Entering directory '/opt/src/mergerfs-2.35.0'
rm -rf rpmbuild
rm -rf build
find . -name "*~" -delete
make -C libfuse clean
make[2]: Entering directory '/opt/src/mergerfs-2.35.0/libfuse'
rm -rf build
make[2]: Leaving directory '/opt/src/mergerfs-2.35.0/libfuse'
make[1]: Leaving directory '/opt/src/mergerfs-2.35.0'
make debian-changelog
make[1]: Entering directory '/opt/src/mergerfs-2.35.0'
cp ChangeLog debian/changelog
cp: cannot stat 'ChangeLog': No such file or directory
make[1]: *** [Makefile:222: debian-changelog] Error 1
make[1]: Leaving directory '/opt/src/mergerfs-2.35.0'
make: *** [Makefile:233: deb] Error 2
Expected - build to work
Issue: No ChangeLog is included in src file and it is not a git directory
The text was updated successfully, but these errors were encountered: