Broken Symlinks or am I just smoking dope?

I've exhausted all my resources, and can't figure out what's going on here...
I was making an "openal-devel" package and noticed something curious after I installed it.
1. After PACMAN installl:
ls -al /usr/lib/libopenal.*
-rwxr-xr-x  1 root root 352434 Oct  8 22:58 /usr/lib/libopenal.a
lrwxrwxrwx  1 root root     52 Oct  9 02:54 /usr/lib/libopenal.so -> /var/abs/local/openal/pkg/usr/lib/libopenal.so.0.0.7
lrwxrwxrwx  1 root root     18 Oct  9 02:54 /usr/lib/libopenal.so.0 -> libopenal.so.0.0.7
-rwxr-xr-x  1 root root 255809 Oct  8 22:58 /usr/lib/libopenal.so.0.0.7
look at "libopenal.so" above.  It's using "/var/abs/local/openal/pkg/usr/lib/".
It gets stranger...
2. EXTRACTING to TEMP folder:
If I just take the "openal-devel-20040810-1.pkg.tar.gz" package and untar/gunzip it to a temp folder, I get the following:
-rwxr-xr-x  1 root root 352434 Oct  9 00:21 libopenal.a
lrwxrwxrwx  1 root root     56 Oct  9 04:05 libopenal.so -> /var/abs/local/lib/openal/pkg/usr/lib/libopenal.so.0.0.7
lrwxrwxrwx  1 root root     56 Oct  9 04:05 libopenal.so.0 -> /var/abs/local/lib/openal/pkg/usr/lib/libopenal.so.0.0.7
-rwxr-xr-x  1 root root 255809 Oct  9 00:21 libopenal.so.0.0.7
Now, both of the symlinks are using my "abs" path.
* Why does a pacman install "doo-hickey" one of the symlinks, but a regular extraction keeps them as they were originally created?
Here's the relevant install part from the "Makefile" (which is all self generated):
install_minor_libs:
        $(INSTALL) -d -m 755 $(DESTLIB)
        $(INSTALL) -m 755 src/libopenal.$(SO_EXT).$(VERSION) $(DESTLIB)
        $(LN_S) -f $(DESTLIB)/libopenal.$(SO_EXT).$(VERSION) $(DESTLIB)/libopenal.$(SO_EXT).$(MAJOR_VERSION)
        $(LN_S) -f $(DESTLIB)/libopenal.$(SO_EXT).$(VERSION) $(DESTLIB)/libopenal.so
* I fully understand why those paths are being used, since I use "make DESTDIR=$startdir/pkg/usr/ install" in my PKGBUILD and, of course, the install section from Makefile creates them and makepkg just tar's/gzip's that folder.  What I don't understand is why after a PACMAN install, 1 symlink gets fixed.
I must be overlooking something obvious.  Hell, I can easily add a post_install script to tidy up these symlinks.  I'm just curious why this is happening.  I don't touch the "weed", but I am partially drunk, so what's going on here?

sarah31 wrote:not sure why one symlink gets "fixed" but i would first suggest [...]
Thanks for the suggestions Sarah.
I tried installing fakeroot and I still get the "bad" prefixes in my symlinks, and "namcap" just verifies that.
I tried removing the "/usr" prefix but the "bad" prefixes persist.
I'm at a loss on this one.  In the meantime, I'll just manually "tidy" up the symlinks on my system for my own use.  I'll wait until you experienced maintainers check it out or release the update since I flagged the package as "out of date" per your suggestion.
I'm by no means an expert with the "autoconf" suite, but have used it for quite some time.  When it generates the "Makefile" (with relevant snipets shown above in this thread), $DESTLIB is defined from $DESTDIR, and I don't know how you can get around this without breaking the rest of the install locations.  It's just these symlinks causing problems.  So, I'd be curious to see how you guys take care of it without some "post_install" stuff.
Thanks for the help.

Similar Messages

  • How to find/remove broken symlinks in Snow Leopard?

    Long story, but I need to check my system for broken symlinks and aliases and, if there are any, remove them.  Is there a way to do that in the Terminal?  If so, what are the exact commands?  Obviously, I would like to know what they are, if any, before I issue any commands to delete them, so I would prefer a two-step process, if possible.

    Works fine for me. 10.6.3.

  • Iphone 4s won't turn on. broken lock button. It just randomly turned off and won't turn back on. Can't go to apple store because going on vacation. Please help

    iPhone 4ws won't turn on. I have a broken lock button. It just randmoly turned off and won't turn on. I can't go to the apple store because I'm going on vacation. Someone please help

    Your phone is broken; there's no magic solution for you.  You can try plugging it in to wall power and see if this turns the phone on, but if it doesn't, you can either go on vacation without your iPhone, or make the time to visit the Apple store before you leave.

  • I have numerous different apple products with the new lightening connector, all of which have broken or stopped working after just short periods of time, I have an iPhone 5C, and iPad mini and and iPod Touch 5th gen?

    Hi, I have numerous different Apple products, an iphone 5c, iPad mini and iPod touch 5th gen.
    I have had them all for only relatively short periods of time yet the lightning cable has stopped working on all of them?
    On the touch, charging has stopped completely?
    Is this a manufacturing issue with the new charging system?

    Hi, yes I'm using the original apple cables.
    This definitely isn't user error nor confined just to me, the devices are used by different people in the home.
    On a quick sample around the office (survey of 7 people let me add) 4 of them said the cables had broken on them and had to be replaced.
    Having also searched through the forums it appears this is a fairly widespread issue.
    It's defo not user error!

  • My iphone 4s' screen in broken, without dropping it.it just went hazy white to dark green and i can no longer see my screen, can i have a screen replacement?

    My iphone 4s' screen is broken. I haven't dropped it or anything, or else it must've shown through its physical appearance. It just went into hazy white and green and now i cannot use it. Can i have a replacement for it? Thanks

    Apple doesn't replace the screen, they replace the entire phone.  If you've tried the basics (restart, reset, restore from backup, restore as new) and your screen is still broken, bring it to Apple for replacement.  If you're not in the warranty period, you will pay $199 for the replacement.

  • Can't report a broken web site - trys but just waits and waits and waits "sending report to server..."

    I was trying to report a web site as broken. I sent this URL http://www.thrillist.com/links/203501
    "This web site is the worst I've ever seen for Firefox. You can only see part of the text and you can't even guess what it is trying to do. There are cards that are supposed to be shuffling."
    Instead of reporting anything when I clicked "submit report" it was sending and sending and sending

    That webpage looks fine to me - I can see the cards shuffling, as long as Javascript is enabled in Firefox (and allowed in NoScript for all the domains that "feed" that web page).
    Beyond making sure Javascript is enabled, see if this helps you. <br />
    https://support.mozilla.com/en-US/kb/Websites%20look%20wrong
    As far as '''Report Broken Web Site''' goes, that was a Mozilla "Web Evangelism" project where Mozilla reps would "reach out" to web sites to encourage them to fix their web sites to conform with established standards. After doing that for the last 5 or 6 years, Mozilla has decided to discontinue that project. That menu item (feature) is gone from Firefox 4.0 betas for many months now. <br />
    I am only guessing, but the server that collected the data that Firefox users would submit may have been shut down already, or maybe it just wasn't accessible when you tried to submit that report.

  • CS3 InDesign - broken prefs fixed but documents just created not working

    I've been on tech support at Adobe and we cannot figure this out. We fixed the prefs in 2 places (cache and preferences in the library). When I open a new doc, things work.
    CS3 and this computer are new as of about a week ago. (Mac )S 10.5.5). InDesign doc's just created w/in last week.
    No matter what we do, when we do copy (command/c) and paste (command/v) the item I am trying to paste, pastes in back.
    So I tried taking the top item to send to back, but it thinks it is in back already and send to back is greyed out. When I tried to take the item I pasted which went in back instead of in front, it thinks it's in front already and bring to front is greyed out (even tough it is really in back).
    Has anyone had anything like this? These doc's are all new and were just created with a lot of work put into them over the last week. Don't want to have to recreate. Thanks in advance for any help on this.

    Do you have multiple layers?
    And if so, is "Paste Remembers Layers" checked?

  • Printing broken on a Mac or just my hardware?

    I am using an intel Mac running leopard 10.5.3 and firefox
    2.0.0.14 printing to an HP laserjet 4000N. When I print from
    buzzword I get blank pages. Also the word count is a little useless
    for me since I would like to see a word count for selected text,
    not just for the whole document.
    Apart from this, it is a remarkable achievement. Well done
    everyone.

    Hello Moosoid,
    Apologies for the delay in getting to you!
    Thanks for your compliments! And thanks for the update!
    We are looking into the printing issue.
    Do single-sided pages print ok for you?
    Are you using a duplexer for the double sided pages?
    Do you get blank pages from other text editors (i.e.
    textedit, etc) when printing double sided?
    Take Care

  • Is there anyway I can get my photos from my iPhone 5 if the screen is broken? the DCIM folder just shows up as empty?

    Is there anyway of transfering photos from my iPhone to my PC, Siri works its only the actual screen that doesn't work but as there is a password on my account I cant unlock it so the DCIM folder shows up as empty.
    Thanks all!

    No. Not without getting the display replaced first. Many Apple Stores in the US and UK can replace the display on the iPhone 5 or 5c (but not the 5s currently) for $149. Make an appointment at the genius bar.

  • X1 Carbon 2014 Key Broken

    Hey Guys! I have a Thnkpad X1 Carbon - 2014. I was working on my laptop a while back; and pressed the Esc key just to see it pop out. I tried fixing it bak, but noticed that one of the hinges on the right hand side clamp is broken.
    The Machine is just 6 months old and I am under onsite warranty. The machine works fine otherwise.
    I called up support guys and they told me that since I did not have accidental damage protection, I need to carry my laptop to an authorised service centre and that I would not be covered under warranty. I tried explaining that it popped out in the regular course of use and that there was no accident or damage inflicted on the machine, but they seemed to ingore and simply repeated the accidental damage protection thing.
    We may so much for the quality of machines and the quality of after sales service and buy these expensive machine. This is totally unexpected of Lenovo and so disappointing. I am sure my next machine is going to be something which costs 1/2 as much for a much better configuration. Its pointless paying so much and then getting such substandard service and steroetype answers to your issues.
    Any suggestions? Should I just go and buy a new keyboard to save me the hassle of contacting the support guys again?
    Neil.

    Gesture Control from eyesight solved!
    http://support.lenovo.com/en_IE/downloads/detail.page?DocID=DS041364
    Thank Troy from the Atl Support Center for this!
    Ugh wait spoke too soon this is only the update...... :-(

  • I feel like i am going to cry after my 3 hour update generated an 9006 error message. apple support tried to restore my ipod and when they made an error they just returned the thing to me and said sorry. sorry is not enough for breaking it. it's dead.

    my ipod locked while it was in my bag. i took it out and tried all possible passcodes that i had. my internet was slow to update and restore it so i took it to the Apple Store. My home button was broken and ive been using just the accessibility home button for a couple of months now. i agreed to have it restored for 500php. While it was being restored by the apple technician. she encountered an error and broke my eff in iPod! she just returned it to me and thought it was just okay!! now my internet is back and i waited 3 hours!!! for the update to finish and now im getting an error message. 9006!!! what the heck am i supposed to do to fix this thing and is Apple really forcing me to buy a new one?>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! grrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
    im a loyal Apple fan but now i feel like getting a samsung or an HTC!!!!!!!!!!!!!!!!!!!!!!!!!

    Error 2, 4 (or -4), 6, 1000, 9006
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

  • Remote Symlink Folders in Windows 8.1

    I have two PCs in a Windows 8.1 home group. On one PC I have multiple folder symlinks that are working just fine on that PC. However, when I map to that PC's folders, that contain symlinks, on the other PC, I'm not able to access the folders created by
    the symlinks. I've tried the directive fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1. When I do
    fsutil behavior query SymlinkEvaluation, it shows all the correct properties enabled.
    However, when I attempt to access the folder on the remote PC, I get the message, "Location is not available: <folder_name> is unavailable. If the location is on this PC ... If the location is on a network, make sure you're connected to the network
    ..." The problem is that I have an entire drive mapped, and the symlinked folders are just a few of the folders on that drive. I can access all of the other folders with absolutely no problem.
    How can I make this seemingly simple task work? I thought, when I made the fsutil settings, it would cure the whole problem, but it hasn't effectively changed anything even though it shows that all types of exchange -- including R2L and R2R -- are enabled.

     Hi,
    Location that is unavailable, your link isn't pointing to the right place, or you have a different view on another pc. Access the share and see if the path that the link references actually exists\avilable from the problematic pc. You should also put the
    folders you want to access in a public folder or a shared folder. Meanwhile, make sure the connection is fine.
    Yolanda Zhu
    TechNet Community Support

  • My phone is broken, I am trying to set up my iMessage on my laptop but it is telling me i have to sign in with my apple ID on my phone, which i can not do

    How can i set up iMessage on my laptop without my phone (it is broken. not the actual phone just the screen)

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • How come some of my JPG files show up broken and some don't in my assets panel?

    I'm using Adobe Photoshop CS6 and when I create JPG files, some show up in the Assets panel of Dreamweaver and some don't.  I'm miffed as to why?  I've tried resaving them as JPGs to no avail.  When you try and insert the broken ones in Dreamweaver you just get the broken link box.  I've also tried to link to the source file to no avail.  So, please help!
    Dale

    Ben,
    Thanks for the video.  I learned some new stuff about the assets panel that I've been using.  However, the problem still remains.  Some of the JPGs that I've created in Photoshop CS6 show up fine and some don't.  The same happens with Illustrator.  I did find a workaround for this though.  If you open up the JPGs in Fireworks and create a slice over the image and then export the selected slice, it does show up in the assets panel unbroken.  So far it works every time.  I don't want keep going to Fireworks though.  Adobe needs to fix this problem.  In CS4, I never, ever had this problem.
    Thanks again Ben...

  • Charger socket broken!!!!

    hey, a couple weeks ago my phone charger wasnt fitting in the fone properally i found out it was because of the charger element inside the phone as it was becoming wobbly, but at the time it was charging fine, until then one day i put the charger in a and took it out again and the chargeing element from insde the phone came out with the charger, this now means i can not charge my phone anymore. i just wanted to no if anyone knew how much it would cost to send it to repair! 
    please get back to me
    thanksyouuu. 
    katie  x

    If the card edge connector is truly broken and it's not just an obstruction inside the charging port, then you would need to have Apple replace the entire iPod for a fee.
    Looks like $129: http://www.apple.com/support/ipod/service/prices/

Maybe you are looking for

  • If I connect HDMI between TV & Mac Mini will audio pump out the TV Speakers?

    I connected my Mini with HDMI to my 46in Samsung the Mini recgonized it as 1080 and it looks great.  Though the audio was coming out the speaker in the Mini.  Shouldn't it come out the TV speakers?

  • Itunes Video Quality issues and crash in Windows vista

    When using itunes listening to music works great, however when i play music videos purchased from the store they keep on skiping and after a while itunes will close and a message from windows will appear saying the software stopped working. when the

  • Changing the email pop/smpt server in photoshop elements 7

    Thought I just finished sending photo via email thru organizer ( using share ) on photoshop...put in the pop and smpt address when prompted.... tried to send..I left out a couple characters and now i need to go back and correct it. I can't find how o

  • Safari crashes every time on startup. Crash report is added.

    Hi, I can't use safari. It crashes everytime I startup Safari. I read the crash report. My knowledge is minor. I see something wrong in thread 6 "QuickLiteDatabase sqaux_rowsetopen:getResults:getError:] + 153" How do I reinstall Safari? I cannot find

  • Search based on data

    Hi Does BerkeleyDB support a search based on the data stored along with a key. I know that it supports a search based on both key and data. Thanks Obomo