-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
fsarchiver 0.8.7 (new formula) #192565
base: master
Are you sure you want to change the base?
fsarchiver 0.8.7 (new formula) #192565
Conversation
Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request. |
end | ||
|
||
test do | ||
system bin/"fsarchiver", "usage" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you propose a more substantial test than checking the version or calling for help? These tests rarely ever fail even for broken installations.
We want tests that don’t require any user input and test the basic functionality of the application. For example
foo build-foo input.foo
is a good test and (despite their widespread use)foo --version
andfoo --help
are bad tests.
Ref. https://docs.brew.sh/Formula-Cookbook#add-a-test-to-the-formula
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know, most fsarchiver runs need root access and mess with disks.
I will see if there are any partitions which can be accessed without root access.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we try to do something that requires root access while not actually having root access, and check that we get the expected failure message and exit code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've applied some of my suggestions since you seem to be having a rough time here. I'll have a look at the failures later to find the right fix for some of the things I've removed.
I guess this should be Linux-only? |
Yes, this is Linux-only. |
I have copied the build problem info from the discussion: When I run brew install --build-from-source fsarchiver --debug I get the error,
I choose shell and do the following: cd src
make -d fsarchiver-fs_ext2.o This reproduces the error.
However if I run the compile by hand. gcc -DHAVE_CONFIG_H -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -I. -I.. -g -O2 -Wall -std=gnu99 -rdynamic -ggdb -I/home/linuxbrew/.linuxbrew/Cellar/xz/5.6.2/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/ext2fs -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/et -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/et -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/e2p -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.2/include/blkid -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.2/include/uuid -g -O2 -c -o fsarchiver-fs_ext2.o `test -f 'fs_ext2.c' || echo './'`fs_ext2.c It compiles and produces the object file (with warnings).
How does running the compile from the makefile produce a different result? |
It appears the version of When I select (5) the shell, cd src. /home/linuxbrew/.linuxbrew/opt/make/bin/make all This version is installed by The following /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/make When I ask for the version information the two report the same information. |
Signed-off-by: Patrick Linnane <patrick@linnane.io>
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I need some guidance on how to proceed. |
"MKDIR_P=mkdir -p", | ||
] | ||
|
||
system "autoreconf", "--force", "--install", "--verbose" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release tarball contains a configure
script. Perhaps we can skip this?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Develop Formulae: fsarchiver
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?There are some remaining issues I would like some guidance on.
make
which should be used does not properly include headers from dependencies (see the discussion)