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

problem comparing .zip with absolute symlinks to .jar #65

Open
bmwiedemann opened this issue Sep 14, 2023 · 2 comments
Open

problem comparing .zip with absolute symlinks to .jar #65

bmwiedemann opened this issue Sep 14, 2023 · 2 comments

Comments

@bmwiedemann
Copy link
Member

Steps to reproduce:

curl https://rb.zq1.de/other/tycho-build-compare-bug.tar.gz | tar xf
/usr/lib/build/pkg-diff.sh tycho-build-compare-bug/*/*rpm

produces:

Missing in old package: /usr/share/java/tycho/tycho-bundles-external.zip/eclipse/plugins/org.apache.felix.scr.jar

This bug was found, while working on reproducible builds for openSUSE with fstrba.

@bmwiedemann
Copy link
Member Author

found another affected package: eclipse-jgit

-/usr/share/eclipse/droplets/jgit/plugins/org.hamcrest_2.2.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/hamcrest/library.jar
-/usr/share/eclipse/droplets/jgit/plugins/org.junit_4.13.2.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/junit.jar
-/usr/share/eclipse/droplets/jgit/plugins/org.kohsuke.args4j_2.33.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/args4j/args4j.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.hamcrest_2.2.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/hamcrest/hamcrest.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.junit_4.13.2.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/junit4.jar
+/usr/share/eclipse/droplets/jgit/plugins/org.kohsuke.args4j_2.33.0.jar 0 (none) 120777 root root 0 4294967295 ../../../../java/args4j.jar

@olafhering
Copy link
Collaborator

The code uses the file name to decide what file type it is. I think it should use file to decide, then a broken symlink could be detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants