[opensuse-factory] git symlink jungle
Hi, I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle? ---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut--- Is this mess OpenSUSE specific and/or intended? -- Thanks, //richard -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
At Fri, 22 Apr 2011 17:03:06 -0700, Greg KH wrote:
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there?
It's a historical ugly reason. For AppArmor profile, it has to be linked to an existing binary in the earlier packaging. (The use of symlink instead of hardlink is intentional, BTW.) The fix would be to remove the following snippet ================================================================ %if %{dist_has_fdupes} # create predictable symlinks to make apparmor profile work for i in git git-upload-archive; do rm $RPM_BUILD_ROOT%{_bindir}/$i ln -s %{gitexecdir}/git-add $RPM_BUILD_ROOT%{_bindir}/$i done ================================================================ or use below ln -s %{gitexecdir}/git $RPM_BUILD_ROOT%{_bindir}/$i Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Apr 26, 2011 at 11:17:30AM +0200, Takashi Iwai wrote:
At Fri, 22 Apr 2011 17:03:06 -0700, Greg KH wrote:
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there?
It's a historical ugly reason. For AppArmor profile, it has to be linked to an existing binary in the earlier packaging. (The use of symlink instead of hardlink is intentional, BTW.)
The fix would be to remove the following snippet
================================================================ %if %{dist_has_fdupes} # create predictable symlinks to make apparmor profile work for i in git git-upload-archive; do rm $RPM_BUILD_ROOT%{_bindir}/$i ln -s %{gitexecdir}/git-add $RPM_BUILD_ROOT%{_bindir}/$i done ================================================================
or use below
ln -s %{gitexecdir}/git $RPM_BUILD_ROOT%{_bindir}/$i
Can't we just fix the apparmor profile instead of being forced to carry this around for forever? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
At Tue, 26 Apr 2011 05:44:01 -0700, Greg KH wrote:
On Tue, Apr 26, 2011 at 11:17:30AM +0200, Takashi Iwai wrote:
At Fri, 22 Apr 2011 17:03:06 -0700, Greg KH wrote:
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there?
It's a historical ugly reason. For AppArmor profile, it has to be linked to an existing binary in the earlier packaging. (The use of symlink instead of hardlink is intentional, BTW.)
The fix would be to remove the following snippet
================================================================ %if %{dist_has_fdupes} # create predictable symlinks to make apparmor profile work for i in git git-upload-archive; do rm $RPM_BUILD_ROOT%{_bindir}/$i ln -s %{gitexecdir}/git-add $RPM_BUILD_ROOT%{_bindir}/$i done ================================================================
or use below
ln -s %{gitexecdir}/git $RPM_BUILD_ROOT%{_bindir}/$i
Can't we just fix the apparmor profile instead of being forced to carry this around for forever?
I guess the above isn't needed any more for now. But someone needs to check it before actually removing... Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Apr 26, 2011 at 02:50:01PM +0200, Takashi Iwai wrote:
At Tue, 26 Apr 2011 05:44:01 -0700, Greg KH wrote:
On Tue, Apr 26, 2011 at 11:17:30AM +0200, Takashi Iwai wrote:
At Fri, 22 Apr 2011 17:03:06 -0700, Greg KH wrote:
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there?
It's a historical ugly reason. For AppArmor profile, it has to be linked to an existing binary in the earlier packaging. (The use of symlink instead of hardlink is intentional, BTW.)
The fix would be to remove the following snippet
================================================================ %if %{dist_has_fdupes} # create predictable symlinks to make apparmor profile work for i in git git-upload-archive; do rm $RPM_BUILD_ROOT%{_bindir}/$i ln -s %{gitexecdir}/git-add $RPM_BUILD_ROOT%{_bindir}/$i done ================================================================
or use below
ln -s %{gitexecdir}/git $RPM_BUILD_ROOT%{_bindir}/$i
Can't we just fix the apparmor profile instead of being forced to carry this around for forever?
I guess the above isn't needed any more for now. But someone needs to check it before actually removing...
Do we "support" apparmor in openSUSE right now? Where is the profile for it, in the git package or somewhere else? thanks, greg k-h -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/26/2011 08:51 AM, Greg KH wrote:
On Tue, Apr 26, 2011 at 02:50:01PM +0200, Takashi Iwai wrote:
At Tue, 26 Apr 2011 05:44:01 -0700, Greg KH wrote:
On Tue, Apr 26, 2011 at 11:17:30AM +0200, Takashi Iwai wrote:
At Fri, 22 Apr 2011 17:03:06 -0700, Greg KH wrote:
On Sat, Apr 23, 2011 at 01:45:07AM +0200, richard -rw- weinberger wrote:
Hi,
I'm using git-1.7.4.2-5.1 from Tumbleweed. Can somebody please explain me this symlink jungle?
---cut--- rw@raccoon:~> which git /usr/bin/git rw@raccoon:~> ls -l /usr/bin/git lrwxrwxrwx 1 root root 18 22. Apr 14:05 /usr/bin/git -> ../lib/git/git-add rw@raccoon:~> ls -l /usr/lib/git/git-add lrwxrwxrwx 1 root root 3 22. Apr 14:05 /usr/lib/git/git-add -> git rw@raccoon:~> ls -l /usr/lib/git/git lrwxrwxrwx 1 root root 26 22. Apr 14:05 /usr/lib/git/git -> ../../bin/git-receive-pack rw@raccoon:~> ls -l /usr/bin/git-receive-pack -rwxr-xr-x 1 root root 1235872 22. Apr 03:25 /usr/bin/git-receive-pack ---cut---
Is this mess OpenSUSE specific and/or intended?
Heh, I think it's intended, but I don't quite know. Care to file a bug and assign it to the git package owner and take it from there?
It's a historical ugly reason. For AppArmor profile, it has to be linked to an existing binary in the earlier packaging. (The use of symlink instead of hardlink is intentional, BTW.)
The fix would be to remove the following snippet
================================================================ %if %{dist_has_fdupes} # create predictable symlinks to make apparmor profile work for i in git git-upload-archive; do rm $RPM_BUILD_ROOT%{_bindir}/$i ln -s %{gitexecdir}/git-add $RPM_BUILD_ROOT%{_bindir}/$i done ================================================================
or use below
ln -s %{gitexecdir}/git $RPM_BUILD_ROOT%{_bindir}/$i
Can't we just fix the apparmor profile instead of being forced to carry this around for forever?
I guess the above isn't needed any more for now. But someone needs to check it before actually removing...
Do we "support" apparmor in openSUSE right now? Where is the profile for it, in the git package or somewhere else?
Yes, we do. The profiles typically live in the apparmor-profiles package, which is built from the 'apparmor' source package. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk22wLwACgkQLPWxlyuTD7K5FQCggoTv5cIFydjUFmBmGLLBTnix IPwAn2nOe00Scv83o5AWzPJMgeLjclDZ =zleu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Apr 26, 2011 at 2:55 PM, Jeff Mahoney
Yes, we do. The profiles typically live in the apparmor-profiles package, which is built from the 'apparmor' source package.
Are you sure? rpm -ql apparmor-profiles | grep -i git Doesn’t list any git file. I'm using apparmor-profiles-2.5.1.r1445-52.55.1.x86_64. -- Thanks, //richard -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/26/2011 09:16 AM, richard -rw- weinberger wrote:
On Tue, Apr 26, 2011 at 2:55 PM, Jeff Mahoney
wrote: Yes, we do. The profiles typically live in the apparmor-profiles package, which is built from the 'apparmor' source package.
Are you sure?
No. Typically they do live there. In this case, it's part of git-web. - -Jeff
rpm -ql apparmor-profiles | grep -i git Doesn’t list any git file. I'm using apparmor-profiles-2.5.1.r1445-52.55.1.x86_64.
- -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk22xhUACgkQLPWxlyuTD7LqcgCgofAR2MMMebVgOksOFON9AhM1 g58An3eQBx9SJLQz31W2NqPun5abD/03 =UVs9 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Tue, Apr 26, 2011 at 3:18 PM, Jeff Mahoney
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/26/2011 09:16 AM, richard -rw- weinberger wrote:
On Tue, Apr 26, 2011 at 2:55 PM, Jeff Mahoney
wrote: Yes, we do. The profiles typically live in the apparmor-profiles package, which is built from the 'apparmor' source package.
Are you sure?
No. Typically they do live there. In this case, it's part of git-web.
Ah, only the gitweb cgi is protected! I thought all git tools are covered. -- Thanks, //richard -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Greg KH
-
Jeff Mahoney
-
richard -rw- weinberger
-
Takashi Iwai